joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cee9
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x258], 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [0x100f6a4], esi
cmp edi, esi
je 0x100cf3e
push dword [ebp + 0x10]
lea eax, [ebp - 0x258]
push esi
push edi
push eax
call fcn.0100bf3d
test eax, eax
je 0x100cf3e
mov dword [0x100f6a4], 0x3f2
jmp 0x100d052
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push ebx
mov dword [0x100f488], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x104f6c0], eax
cmp eax, 0xffffffff
je 0x100d038
push esi
lea ecx, [ebp - 0x25c]
push ecx
push 2
push 0x100d064
push eax
mov dword [0x104f6c4], esi
mov dword [0x104f6c8], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x1008380
call fcn.0100c6bd
push 0x1003c34
call fcn.0100c6bd
push 0x100d068
call fcn.0100c6bd
push 0x100d074
call fcn.0100c6bd
lea eax, [ebp - 0x254]
cmp edi, esi
je 0x100cfda
push edi
push 0x128
push eax
call fcn.010022fa
push dword [ebp + 0x10]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
jmp 0x100d020
push 0x1004824
mov ebx, 0x128
push ebx
push eax
call fcn.010022fa
push dword [ebp + 0x10]
lea eax, [ebp - 0x254]
push eax
push 0x80000002
call fcn.0100cbca
push 0x10082e0
push ebx
lea eax, [ebp - 0x254]
push eax
call fcn.010022fa
push dword [ebp + 0x10]
lea eax, [ebp - 0x254]
push eax
push 0x80000003
call fcn.0100cbca
call fcn.0100bde3
push dword [0x104f6c0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100d042
mov dword [0x100f6a4], 0x6e
cmp edi, esi
je 0x100d052
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002af3
leave
ret 0xc
Function at 0x421801
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x454d50]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x421899
push 0x444d8c
push 4
push eax
call fcn.00428696
push eax
call fcn.00401000
add esp, 0x10
push ebx
push edi
call fcn.00428786
mov edi, dword [eax]
call fcn.00428786
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00428723
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00428786
cmp dword [eax], ebx
je 0x4218b0
call fcn.00428786
push dword [eax]
call fcn.0041838d
pop ecx
jmp 0x4218b7
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x421844
jmp 0x42193e
call fcn.00428786
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x42193a
cmp dword [ebp - 0x234], esi
jae 0x42193a
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.0042a570
add esp, 0xc
push 0x444aec
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x421929
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x421929
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x421929
push ebx
push ebx
push esi
jmp 0x421932
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x42193c
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004267a2
leave
ret

Function at 0x422465
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.004220fd
invalid
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.004220b2
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
invalid
inc ebp

Function at 0x4224b3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xchg esi, eax
mov esi, 0xc6975d88
inc ebp
cwde
pop ss

Function at 0x42413c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x424183
invalid
test esp, ebp

Function at 0x4267a2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454d50]
jne 0x4267ac
repz ret
jmp fcn.0042c5f3
Function at 0x436713
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.0042bf55
and dword [ebp - 4], 0
cmp dword [0x45902c], 0
mov ebx, eax
jne 0x4367c4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x436875
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x436875
push eax
call fcn.0042bee3
mov dword [esp], 0x446310
push edi
mov dword [0x45902c], eax
call esi
push eax
call fcn.0042bee3
mov dword [esp], 0x4462fc
push edi
mov dword [0x459030], eax
call esi
push eax
call fcn.0042bee3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x459034], eax
call esi
push eax
call fcn.0042bee3
pop ecx
mov dword [0x45903c], eax
test eax, eax
je 0x4367c4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042bee3
pop ecx
mov dword [0x459038], eax
mov eax, dword [0x459038]
cmp eax, ebx
je 0x43681c
cmp dword [0x45903c], ebx
je 0x43681c
push eax
call fcn.0042bf5e
push dword [0x45903c]
mov esi, eax
call fcn.0042bf5e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43681c
test edi, edi
je 0x43681c
call esi
test eax, eax
je 0x436813
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x436813
test byte [ebp - 0xc], 1
jne 0x43681c
or dword [ebp + 0x10], 0x200000
jmp 0x436855
mov eax, dword [0x459030]
cmp eax, ebx
je 0x436855
push eax
call fcn.0042bf5e
pop ecx
test eax, eax
je 0x436855
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x436855
mov eax, dword [0x459034]
cmp eax, ebx
je 0x436855
push eax
call fcn.0042bf5e
pop ecx
test eax, eax
je 0x436855
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45902c]
call fcn.0042bf5e
pop ecx
test eax, eax
je 0x436875
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x436877
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x237462
Capabilities:
Resolve function by parsing pe exports

Disassembly:
stc
push ebp
btc bp, cx
xchg ebp, eax
movzx ebp, cl
push esi
lahf
push edi
xor al, 0xf8
push ebx
lea ebp, [esi + 0x34991a95]
xor bp, cx
bsf eax, ebx
sub bp, 0xe1bd
push edx
cmp dl, 0xbc
shrd bp, si, cl
push edx
btr ax, 0xe
add eax, eax
cwde
lea ebp, [esp + 0x1c]
pushfd
ror ah, cl
bsf ax, bx
shld ax, dx, 2
mov eax, dword [ebp]
bt bx, 2
push 0xcc33e42c
test eax, eax
push 0x1aafbe15
pushal
lea esp, [esp + 0x2c]
je 0x232344
dec edx
bts si, 0xa
pushal
mov esi, dword [eax + 0x3c]
and edx, 0x29d9aa0b
not dh
bswap dx
add esi, eax
sar dl, 3
sar dx, 3
movzx dx, al
cmp cl, al
mov edx, dword [esi + 0x78]
stc
cmp ecx, 0x47cf7b8e
jmp 0x236687
Function at 0x401000
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0xc3b5b4
call fcn.0040121c
mov edi, 0x94
mov eax, edi
call fcn.004011dc
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0xc3b5b4], ecx
mov eax, dword [esi + 4]
mov dword [0xc3b5b8], eax
mov edx, dword [esi + 8]
mov dword [0xc3b5bc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0xc3b5c0], esi
cmp ecx, 2
je 0x401060
or esi, 0x8000
mov dword [0xc3b5c4], esi
shl eax, 8
add eax, edx
mov dword [0xc3b5b4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40109b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40109b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4010b3
cmp eax, 0x20b
je 0x4010a0
mov dword [ebp - 0x1c], esi
jmp 0x4010c7
cmp dword [ecx + 0x84], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4010c1
cmp dword [ecx + 0x74], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00401224
pop ecx
test eax, eax
jne 0x4010f3
cmp dword [0xc3b5b4], 1
jne 0x4010e0
call fcn.00401224
push 0x1c
call fcn.00401224
push 0xff
call fcn.00401224
pop ecx
pop ecx
call fcn.00401224
mov dword [ebp - 4], esi
call fcn.00401224
test eax, eax
jge 0x40110c
push 0x1b
call fcn.00401224
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0xc3b5b4], eax
call fcn.00401224
mov dword [0xc3b5b8], eax
call fcn.00401224
test eax, eax
jge 0x401132
push 8
call fcn.00401224
pop ecx
call fcn.00401224
test eax, eax
jge 0x401143
push 9
call fcn.00401224
pop ecx
push 1
call fcn.00401224
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401159
push eax
call fcn.00401224
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401224
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40117a
movzx eax, word [ebp - 0x40]
jmp 0x40117d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401228
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40119b
push edi
call fcn.00401220
call fcn.00401224
jmp 0x4011cd
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401224
ret

Function at 0x401228
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push esi
push edi
push ebx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x462000
push section..rdata
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401252
push 0x7da300
jmp 0x40125e
pop ebx
pop edi
pop esi
leave
ret 0x14
ret
Function at 0x41ca73
Capabilities:
Change the wallpaper

Disassembly:
push ebx
push esi
push edi
mov edi, edx
sub ecx, 0
je 0x41cb1f
sub ecx, 1
je 0x41cb11
sub ecx, 1
je 0x41cb03
sub ecx, 1
je 0x41cad0
sub ecx, 1
jne 0x41cb61
push 1
sub esp, 0x18
mov ecx, esp
push 0x46612c
call fcn.00402093
mov esi, str.Control_PanelDesktop
push str.WallpaperStyle
mov edx, esi
call fcn.004137aa
add esp, 0x20
push 1
sub esp, 0x18
mov ecx, esp
push 0x466128
jmp 0x41cb4d
push 1
sub esp, 0x18
mov ecx, esp
push 0x46c600
call fcn.00402093
mov esi, str.Control_PanelDesktop
push str.WallpaperStyle
mov edx, esi
call fcn.004137aa
add esp, 0x20
push 1
sub esp, 0x18
mov ecx, esp
push 0x46612c
jmp 0x41cb4d
push 1
sub esp, 0x18
mov ecx, esp
push 0x46ca08
jmp 0x41cadc
push 1
sub esp, 0x18
mov ecx, esp
push 0x466114
jmp 0x41cadc
push 1
sub esp, 0x18
mov ebx, 0x46612c
mov ecx, esp
push ebx
call fcn.00402093
mov esi, str.Control_PanelDesktop
push str.WallpaperStyle
mov edx, esi
call fcn.004137aa
add esp, 0x20
push 1
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.00402093
push str.TileWallpaper
mov edx, esi
call fcn.004137aa
add esp, 0x20
push 3
push edi
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
pop edi
pop esi
pop ebx
ret

Function at 0x41ce2c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
mov bl, cl
call dword [sym.imp.KERNEL32.dll_AllocConsole]
call dword [0x474b18]
test bl, bl
mov dword [0x474b34], eax
pop ebx
jne 0x41ce54
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call fcn.0043c208
push eax
push 0x46ce24
push str.CONOUT_
call fcn.00441c72
add esp, 0x10
push 0x4e4
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
call fcn.0041cde9
push 0x64
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00436f10
lea eax, [ebp - 0x64]
push str._n_tRemcos_v
push eax
call fcn.00441fb0
lea eax, [ebp - 0x64]
push str.5.1.3_Pro
push eax
call fcn.00441fb0
lea eax, [ebp - 0x64]
push 0x46cf28
push eax
call fcn.00441fb0
lea eax, [ebp - 0x64]
push eax
call fcn.0040723b
add esp, 0x28
mov esp, ebp
pop ebp
ret
Function at 0x401056
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x74]
push eax
push 1
xor ebx, ebx
push ebx
push str.SoftwareWinRAR
mov edi, 0x80000002
push edi
mov byte [ebp - 0x70], bl
call esi
test eax, eax
jne 0x4010cb
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.exe32
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x70], bl
jne 0x401113
lea eax, [ebp - 0x74]
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsWinRAR.exe
push edi
call esi
test eax, eax
jne 0x40110e
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x418a6a
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x70], bl
je 0x401142
lea eax, [ebp - 0x70]
push 0x5c
push eax
call fcn.004019a0
pop ecx
pop ecx
cmp eax, ebx
je 0x401142
mov byte [eax], bl
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
call fcn.004019d0
push str._rarext.dll
push dword [ebp - 0x7c]
call fcn.004019e0
add esp, 0x10
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401ac8
add ebp, 0x98
leave
ret
Function at 0x402ac8
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x41c018]
je 0x402ae3
inc edi
cmp edi, 0x17
jb 0x402ad4
cmp edi, 0x17
jae 0x402c63
push ebp
push 3
call fcn.0040524f
pop ecx
cmp eax, 1
je 0x402c2f
push 3
call fcn.0040524f
pop ecx
test eax, eax
jne 0x402b17
cmp dword [0x41c010], 1
je 0x402c2f
cmp ebx, 0xfc
je 0x402c62
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41d488
push ebp
call fcn.004051ea
add esp, 0xc
test eax, eax
je 0x402b4d
push esi
push esi
push esi
push esi
push esi
call fcn.00404206
add esp, 0x14
push 0x104
mov esi, 0x41d4a1
push esi
push 0
mov byte [0x41d5a5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402b91
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004051ea
add esp, 0xc
test eax, eax
je 0x402b91
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404206
add esp, 0x14
push esi
call fcn.00401ae0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402bd6
push esi
call fcn.00401ae0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41d79c
push 0x41912c
sub ecx, eax
push ecx
push eax
call fcn.00405137
add esp, 0x14
test eax, eax
je 0x402bd6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404206
add esp, 0x14
jmp 0x402bd8
xor esi, esi
push 0x419128
push ebx
push ebp
call fcn.004050c6
add esp, 0xc
test eax, eax
je 0x402bf8
push esi
push esi
push esi
push esi
push esi
call fcn.00404206
add esp, 0x14
push dword [edi*8 + 0x41c01c]
push ebx
push ebp
call fcn.004050c6
add esp, 0xc
test eax, eax
je 0x402c1a
push esi
push esi
push esi
push esi
push esi
call fcn.00404206
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00404f5f
add esp, 0xc
jmp 0x402c62
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x402c62
cmp ebp, 0xffffffff
je 0x402c62
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41c01c]
push dword [esi]
call fcn.00401ae0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4031d1
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x41d8a8]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
push 2
pop ebp
cmp eax, ebx
jne 0x40321a
call edi
mov esi, eax
cmp esi, ebx
je 0x403201
mov dword [0x41d8a8], 1
jmp 0x403223
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x403215
mov eax, ebp
mov dword [0x41d8a8], eax
jmp 0x40321a
mov eax, dword [0x41d8a8]
cmp eax, 1
jne 0x4032a7
cmp esi, ebx
jne 0x403236
call edi
mov esi, eax
cmp esi, ebx
jne 0x403236
xor eax, eax
jmp 0x4032ff
mov eax, esi
cmp word [esi], bx
je 0x40324b
add eax, ebp
cmp word [eax], bx
jne 0x40323d
add eax, ebp
cmp word [eax], bx
jne 0x40323d
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x40329c
push ebp
call fcn.00405d5e
pop ecx
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x40329c
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x403298
push dword [esp + 0x10]
call fcn.00405c9f
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x4032ff
cmp eax, ebp
je 0x4032af
cmp eax, ebx
jne 0x40322f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x40322f
cmp byte [esi], bl
je 0x4032cd
inc eax
cmp byte [eax], bl
jne 0x4032c3
inc eax
cmp byte [eax], bl
jne 0x4032c3
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.00405d5e
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x4032eb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40322f
push ebp
push esi
push edi
call fcn.00401b70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x403ab3
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
push edi
mov esi, str.KERNEL32.DLL
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x403acc
push esi
call fcn.004026e0
pop ecx
mov edi, eax
test edi, edi
je 0x403c34
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x41d8ac], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x41d8b0], eax
call esi
push str.FlsFree
push edi
mov dword [0x41d8b4], eax
call esi
cmp dword [0x41d8ac], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x41d8b8], eax
je 0x403b35
cmp dword [0x41d8b0], 0
je 0x403b35
cmp dword [0x41d8b4], 0
je 0x403b35
test eax, eax
jne 0x403b59
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x41d8b0], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x41d8ac], 0x4036ed
mov dword [0x41d8b4], esi
mov dword [0x41d8b8], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x41c124], eax
cmp eax, 0xffffffff
je 0x403c39
push dword [0x41d8b0]
push eax
call esi
test eax, eax
je 0x403c39
call fcn.00402a5a
push dword [0x41d8ac]
call fcn.00403606
push dword [0x41d8b0]
mov dword [0x41d8ac], eax
call fcn.00403606
push dword [0x41d8b4]
mov dword [0x41d8b0], eax
call fcn.00403606
push dword [0x41d8b8]
mov dword [0x41d8b4], eax
call fcn.00403606
add esp, 0x10
mov dword [0x41d8b8], eax
call fcn.0040403d
test eax, eax
je 0x403c34
push fcn.0040390f
push dword [0x41d8ac]
call fcn.0040367e
pop ecx
call eax
mov dword [0x41c120], eax
cmp eax, 0xffffffff
je 0x403c34
push 0x214
push 1
call fcn.00405d9e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x403c34
push esi
push dword [0x41c120]
push dword [0x41d8b4]
call fcn.0040367e
pop ecx
call eax
test eax, eax
je 0x403c34
push 0
push esi
call fcn.00403799
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x403c3b
call fcn.0040375c
xor eax, eax
pop edi
pop esi
ret
Function at 0x404206
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
and dword [ebp - 0x80], 0
push ebx
push 0x4c
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00402010
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x84], ecx
mov dword [ebp + 0x80], edx
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x78], esi
mov dword [ebp + 0x74], edi
mov word [ebp + 0xa0], ss
mov word [ebp + 0x94], cs
mov word [ebp + 0x70], ds
mov word [ebp + 0x6c], es
mov word [ebp + 0x68], fs
mov word [ebp + 0x64], gs
pushfd
pop dword [ebp + 0x98]
mov eax, dword [ebp + 0x2ac]
lea ecx, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov dword [ebp + 0x90], eax
mov dword [ebp + 0x9c], ecx
mov ecx, dword [ecx - 4]
mov dword [ebp + 0x8c], ecx
mov dword [ebp - 0x80], 0xc0000417
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x4042e5
test ebx, ebx
jne 0x4042e5
push 2
call fcn.00403fa0
pop ecx
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
xor ecx, ebp
pop ebx
call fcn.00401ac8
add ebp, 0x2a8
leave
ret

Function at 0x404345
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x41da18]
call fcn.0040367e
pop ecx
test eax, eax
je 0x40435b
pop ebp
jmp eax
push 2
call fcn.00403fa0
pop ecx
pop ebp
jmp fcn.00404206

Function at 0x4045e0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4045f1
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4045ee
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
ret

Function at 0x404610
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x40464a
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x404642
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40464c
inc edx
add eax, 0x28
cmp edx, esi
jb 0x404632
xor eax, eax
pop edi
pop esi
pop ebx
ret