joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402bc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x402bd0
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x402be0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4031a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4300a0]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea edx, [esp + 0x20]
push edx
xor edi, edi
or eax, 0x2001f
push eax
push edi
push ebp
push ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, edi
jne 0x403215
xor eax, eax
cmp ecx, edi
je 0x403203
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov esi, eax
mov dword [esp + 0x14], ecx
cmp eax, edi
je 0x403223
cmp ecx, edi
je 0x4032c0
push ecx
jmp 0x4032ba
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x28]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push edi
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x40328e
jmp 0x403250
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.004031a0
mov ebp, eax
cmp ebp, edi
jne 0x4032dd
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
push edx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
je 0x403250
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4032a1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov eax, dword [ebx]
push ebp
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4032c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041237e
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4032ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x4032c2
Function at 0x403d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x425ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4300a0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x403dff
call fcn.004024e0
mov esi, eax
jmp 0x403ee1
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x403e1b
call fcn.004024e0
jmp 0x403ed8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x403e34
call fcn.004024e0
jmp 0x403ed8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x403e68
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x403e56
lea eax, [ebp]
call fcn.00402c30
lea esi, [ebp - 0x1c]
call fcn.00402c10
mov eax, 0x8007000e
jmp 0x403ef3
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.004024a0
mov dword [ebp - 4], 1
jmp 0x403e91
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x403e9f
mov esi, 0x8007000e
jmp 0x403eda
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x403ebd
call fcn.004024e0
jmp 0x403ed8
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00403c30
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x403ef1
lea eax, [ebp]
call fcn.00402c30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0041237e
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405ba0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4256bd
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4300a0]
xor eax, esp
mov dword [esp + 0x44], eax
push edi
mov eax, dword [0x4300a0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov eax, dword [esp + 0x60]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esp + 8], esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], ecx
mov dword [esp + 0x58], edi
mov dword [esi + 0x24], vtable.WTL::CIdleHandler.0
mov dword [esi], vtable.CLauncherWindow.0
mov dword [esi + 0x24], vtable.CLauncherWindow.1.0
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
push 1
push eax
push str._s__d.PNG
lea edx, [esp + 0x18]
mov byte [esp + 0x64], 7
call fcn.00408530
add esp, 0xc
lea eax, [esp + 0xc]
call fcn.00401440
mov dword [esi + 0x64], eax
call fcn.00412ef6
mov dword [esi + 0x60], edi
mov dword [esi + 0x28], 1
mov dword [esi + 0x2c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0041237e
add esp, 0x54
ret 4
Function at 0x40f580
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x42751c
push 1
push 0
push 0x42758c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40f62f
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push esi
push eax
call edx
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x42759c
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
jl 0x40f621
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x4102d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x4300a0]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x410326
push eax
lea eax, [esp + 4]
push 0x42aadc
push eax
call fcn.004128fa
mov edx, dword [esi + 4]
add esp, 0xc
push 0x10
push 0x42aa24
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esi + 4]
push eax
mov dword [esi + 0x28], 0
call dword [sym.imp.USER32.dll_DestroyWindow]
push 2
jmp 0x41038a
push esi
call fcn.0040fee0
cmp dword [esi + 0xac], 0
je 0x410361
push 5
push 0
push 0
push 0x42aaf0
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x410377
mov ecx, dword [esi + 4]
push 0x10
push 0x42aa24
push 0x42ab10
push ecx
jmp 0x410371
mov edx, dword [esi + 4]
push 0x40
push 0x42aa24
push 0x42ab20
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esi + 4]
push eax
mov dword [esi + 0x28], 0
call dword [sym.imp.USER32.dll_DestroyWindow]
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [esp + 0x40]
xor ecx, esp
xor eax, eax
call fcn.0041237e
add esp, 0x44
ret

Function at 0x4103b0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.USER32.dll_IsIconic]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4103cd
mov ecx, dword [esi + 4]
push 9
push ecx
call edi
mov edx, dword [esi + 4]
push 5
push edx
call edi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esi + 4]
push 0x43
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
pop edi
ret

Function at 0x410a80
Capabilities:
Create thread
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x425eeb
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push esi
mov eax, dword [0x4300a0]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
call fcn.0040f1f0
mov dword [esp + 0xc0], 0
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x10]
call fcn.00405ee0
cmp eax, 0x6e
jne 0x410b5b
cmp dword [esi + 0xdc], 8
jb 0x410ae8
mov ecx, dword [esi + 0xc8]
jmp 0x410aee
lea ecx, [esi + 0xc8]
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [esi + 0xdc], 8
jb 0x410b0a
mov eax, dword [esi + 0xc8]
jmp 0x410b10
lea eax, [esi + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x410b45
push esi
push 0
push 0x40fed0
call fcn.004135e7
add esp, 0xc
cmp eax, 0xffffffff
je 0x410b45
push 0
push 0x6d
mov dword [esi + 0xa8], 0
call fcn.00407290
jmp 0x410b5b
mov ecx, dword [esi + 4]
push 0x10
push 0x42aa24
push 0x42ab5c
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc0], 0xffffffff
call fcn.00405d00
xor eax, eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xbc
ret
Function at 0x411140
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x425aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4300a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00404ce0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x411196
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.00410e10
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00404ce0
cmp dword [esp + 0x24], 8
jb 0x4111df
mov edx, dword [esp + 0x10]
push edx
call fcn.00412373
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x411580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x411597
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4115c8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4115c4
cmp esi, eax
jae 0x4115c8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4115b4
cmp esi, eax
jb 0x4115ce
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x411a56
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4327cc], 0
push esi
jne 0x4119c9
call fcn.004118ef
test eax, eax
je 0x411a0c
mov eax, dword [0x4327cc]
cmp eax, 1
jne 0x4119ea
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x411a0c
pop esi
ret
push eax
call dword [0x4327d4]
test eax, eax
jne 0x411a54
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x411a10
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4327cc]
call dword [0x4327d4]
mov edi, eax
test edi, edi
je 0x411a35
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x411a51
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4327cc]
call dword [0x4327d0]
add edi, 0x10
cmp edi, esi
jb 0x411a3d
mov eax, edi
pop edi
pop esi
ret
jmp 0x4119b6

Function at 0x41237e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4300a0]
jne 0x412388
repz ret
jmp fcn.0041416a
Function at 0x41bb0f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004142e2
and dword [ebp - 4], 0
cmp dword [0x4332c4], 0
mov ebx, eax
jne 0x41bbc0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41bc71
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41bc71
push eax
call fcn.00414270
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4332c4], eax
call esi
push eax
call fcn.00414270
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4332c8], eax
call esi
push eax
call fcn.00414270
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4332cc], eax
call esi
push eax
call fcn.00414270
pop ecx
mov dword [0x4332d4], eax
test eax, eax
je 0x41bbc0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414270
pop ecx
mov dword [0x4332d0], eax
mov eax, dword [0x4332d0]
cmp eax, ebx
je 0x41bc18
cmp dword [0x4332d4], ebx
je 0x41bc18
push eax
call fcn.004142eb
push dword [0x4332d4]
mov esi, eax
call fcn.004142eb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41bc18
test edi, edi
je 0x41bc18
call esi
test eax, eax
je 0x41bc0f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41bc0f
test byte [ebp - 0xc], 1
jne 0x41bc18
or dword [ebp + 0x10], 0x200000
jmp 0x41bc51
mov eax, dword [0x4332c8]
cmp eax, ebx
je 0x41bc51
push eax
call fcn.004142eb
pop ecx
test eax, eax
je 0x41bc51
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41bc51
mov eax, dword [0x4332cc]
cmp eax, ebx
je 0x41bc51
push eax
call fcn.004142eb
pop ecx
test eax, eax
je 0x41bc51
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4332c4]
call fcn.004142eb
pop ecx
test eax, eax
je 0x41bc71
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41bc73
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100049f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10004a22
jl 0x10004a15
test ecx, ecx
jne 0x10004a22
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10004ae2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10006210
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10004a8e
jg 0x10004a4d
test esi, esi
je 0x10004a8e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10004a65
mov eax, dword [esp + 0x10]
jl 0x10004a5f
cmp eax, esi
jae 0x10004a65
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10009d60
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x10004aaf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x10004acb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10004a34
jl 0x10004acb
test ecx, ecx
jne 0x10004a34
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10004b21
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x10004b21
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.10009d60
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x10004b90
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x10004b47
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x10004b79
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1000deb2
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x10004ba4
cmp edi, eax
ja 0x10004b55
test ecx, ecx
je 0x10004b90
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1000deb2
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000fd9a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000fdd9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000fdd9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000fdd9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000fdd9
cmp dword [ecx + 0x74], 0xe
jbe 0x1000fdd9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001473c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024250
push 0x10024248
push str.FlsAlloc
push 0x1f
call fcn.10014604
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10014770
push dword [ebp + 8]
mov ecx, esi
call dword [0x10021150]
call esi
jmp 0x10014776
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100147ba
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024260
push 0x10024258
push str.FlsGetValue
push 0x21
call fcn.10014604
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100147f1
push dword [ebp + 8]
mov ecx, esi
call dword [0x10021150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100147f9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024268
push 0x10024260
push str.FlsSetValue
push 0x22
call fcn.10014604
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10014833
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10021150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001505f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100096c0
mov eax, dword [0x1002f04c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10010fd2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100150a1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100151fd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001fca0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10030850]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10015f1c
mov ecx, dword [esi*4 + 0x10030850]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100151f6
cmp eax, dword [ecx + edi + 0x24]
jne 0x100151f6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100151f6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10015f1c
add esp, 0x14
test edx, edx
jl 0x100151f6
jg 0x1001516c
test eax, eax
jb 0x100151f6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100151f6
jl 0x10015186
cmp dword [ebp - 0x1008], eax
ja 0x100151f6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100151a4
test ebx, ebx
je 0x100151dd
cmp ecx, edi
jae 0x100151dd
mov al, byte [ecx]
cmp al, 0xd
jne 0x100151be
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100151ca
cmp byte [ecx + 1], 0xa
jne 0x100151ca
inc ecx
jmp 0x100151ca
movzx eax, al
movsx eax, byte [eax + 0x1002f2c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100151a4
cmp edx, ebx
jne 0x100151a4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100151fb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10008865
leave
ret