joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402650
Capabilities:
Terminate process

Disassembly:
push 0x51a6e0
push str._n_ERROR:_PREMATURE_END_OF_FILE_ON__s_n_OHX51_ABORTED._n
call fcn.004042fe
add esp, 8
call fcn.00402680
call fcn.00405dcd
push 3
call fcn.00404229
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x4026d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x519574]
test eax, eax
je 0x402724
mov ecx, dword [0x515d04]
push ecx
push eax
push 1
push 0x50dd00
call fcn.00404817
mov edx, dword [0x515d04]
add esp, 0x10
test byte [edx + 0xc], 0x20
je 0x40271a
call fcn.00402680
push 0x51a960
push str._n_I_O_ERROR_ON_FILE__s_n_OHX51_ABORTED._n
call fcn.004042fe
add esp, 8
push 3
call fcn.00404229
mov dword [0x519574], 0
ret

Function at 0x4029c0
Capabilities:
Terminate process

Disassembly:
mov cl, byte [0x50dcd1]
push esi
mov esi, dword [esp + 8]
cmp cl, 3
mov edx, esi
mov dword [0x50dcd8], 0
jne 0x4029ea
cmp esi, dword [0x519d5c]
je 0x402ad5
jmp 0x402a04
mov eax, dword [0x515d10]
shr eax, 0x10
cmp esi, eax
jb 0x4029f8
sub esi, eax
cmp esi, dword [0x519d5c]
je 0x402ad5
xor eax, eax
mov al, cl
dec eax
je 0x402aa4
dec eax
je 0x402a62
dec eax
jne 0x402a17
mov esi, edx
push 2
mov dword [0x519d5c], esi
mov dword [0x515d18], 0
mov dword [0x519570], 1
call fcn.004028d0
push 0
call fcn.00402830
mov al, byte [0x50dcd1]
add esp, 8
cmp al, 3
jne 0x402a8a
push 4
call fcn.004028d0
push esi
call fcn.00402830
add esp, 8
call fcn.00402930
pop esi
ret
cmp esi, 0x10
jb 0x402a17
push str._ERROR:_ADDRESS_OUTSIDE_INTEL_H86_RANGE__USE_H386_CONTROL__n
call fcn.004042fe
push str._OHX51_ABORTED._n
call fcn.004042fe
add esp, 8
call fcn.00405dcd
push 3
call fcn.00404229
push 2
call fcn.004028d0
shl esi, 0xc
push esi
call fcn.00402830
add esp, 8
call fcn.00402930
pop esi
ret
test esi, esi
je 0x402acb
push str._ERROR:_ADDRESS_OUTSIDE_INTEL_HEX_RANGE__USE_H386_CONTROL__n
call fcn.004042fe
push str._OHX51_ABORTED._n
call fcn.004042fe
add esp, 8
call fcn.00405dcd
push 3
call fcn.00404229
mov dword [0x519d5c], 0
pop esi
ret

Function at 0x402ae0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x515d08], 0x1ff
jne 0x402b0a
push 0x51a6e0
push str._n_ERROR:_MORE_THAN_512_CLASSES_ON__s_n_OHX51_ABORTED._n
call fcn.004042fe
add esp, 8
call fcn.00405dcd
push 3
call fcn.00404229
call fcn.00402810
mov edx, dword [0x519578]
mov cx, ax
mov eax, dword [0x515d08]
and ecx, 0xffff
push edx
mov dword [eax*4 + 0x515d60], ecx
inc eax
mov dword [0x515d08], eax
call fcn.00402b40
pop ecx
ret
Function at 0x403370
Capabilities:
Terminate process

Disassembly:
mov al, byte [0x519d51]
sub esp, 8
test al, al
je 0x4033d3
mov al, byte [0x51a840]
test al, al
jne 0x4033a6
cmp dword [0x51a838], 0x8000
jne 0x4033ad
cmp dword [0x51a83c], 0xffff
jne 0x4033ad
call fcn.004032b0
add esp, 8
ret
push str._n_ERROR:_CODE_BANK_0_USED:_MERGE32K_NOT_POSSIBLE
jmp 0x4033b2
push str._n_ERROR:_BANK_AREA_NOT_0x8000_0xFFFF:_MERGE32K_NOT_POSSIBLE
call fcn.004042fe
add esp, 4
push str._n_OHX51_ABORTED._n
call fcn.004042fe
add esp, 4
call fcn.00405dcd
push 3
call fcn.00404229
push ebx
push ebp
push esi
push edi
mov esi, 0x80
mov edi, 0x516b64
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov ebp, dword [edi - 4]
mov ebx, dword [edi]
test ebp, ebp
je 0x40346b
shl esi, 0x10
push esi
push ebx
call fcn.004030f0
push 0
push ebx
push 0
call fcn.004030c0
add esp, 0x14
cmp eax, 0x10000
je 0x40346b
mov al, byte [0x515d0c]
test al, al
je 0x403426
mov eax, dword [0x519d58]
add esi, eax
shr esi, 0x10
push esi
jmp 0x40342e
mov eax, dword [esp + 0x10]
add eax, 0xffffff80
push eax
call fcn.004029c0
add esp, 4
xor esi, esi
cmp byte [esi + ebx], 0
jne 0x403441
inc esi
jmp 0x403463
push 1
push ebx
push esi
call fcn.004030c0
mov edi, eax
push 0
mov ecx, edi
push esi
sub ecx, esi
push ecx
push ebp
call fcn.00402fa0
mov esi, edi
mov edi, dword [esp + 0x30]
add esp, 0x1c
cmp esi, 0x10000
jb 0x403438
mov esi, dword [esp + 0x10]
add edi, 0xc
inc esi
cmp edi, 0x517164
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
jb 0x4033e9
call fcn.00402980
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x403880
Capabilities:
Terminate process

Disassembly:
mov al, byte [0x519d51]
sub esp, 8
test al, al
je 0x403900
mov al, byte [0x51957c]
test al, al
jne 0x4038a9
mov dword [0x515d10], 0x800000
mov dword [0x519d68], 0xbfffff
mov al, byte [0x51a840]
test al, al
jne 0x4038d3
cmp dword [0x51a838], 0x8000
jne 0x4038da
cmp dword [0x51a83c], 0xffff
jne 0x4038da
call fcn.00403580
add esp, 8
ret
push str._n_ERROR:_CODE_BANK_0_USED:_MERGE32K_NOT_POSSIBLE
jmp 0x4038df
push str._n_ERROR:_BANK_AREA_NOT_0x8000_0xFFFF:_MERGE32K_NOT_POSSIBLE
call fcn.004042fe
add esp, 4
push str._n_OHX51_ABORTED._n
call fcn.004042fe
add esp, 4
call fcn.00405dcd
push 3
call fcn.00404229
mov al, byte [0x51a820]
test al, al
mov al, byte [0x51957c]
je 0x40394e
mov cl, byte [0x51a822]
test cl, cl
je 0x40394e
test al, al
je 0x403931
cmp dword [0x515d10], 0x2000000
jae 0x40394e
call fcn.004036f0
add esp, 8
ret
mov dword [0x515d10], 0x800000
mov dword [0x519d68], 0xbfffff
call fcn.004036f0
add esp, 8
ret
test al, al
jne 0x403966
mov dword [0x515d10], 0x1000000
mov dword [0x519d68], 0x1ffffff
push ebx
push ebp
push esi
push edi
xor esi, esi
mov edi, 0x516564
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov ebp, dword [edi - 4]
mov ebx, dword [edi]
test ebp, ebp
je 0x4039fc
shl esi, 0x10
push esi
push ebx
call fcn.004030f0
push 0
push ebx
push 0
call fcn.004030c0
add esp, 0x14
cmp eax, 0x10000
je 0x4039fc
mov ecx, dword [0x519d58]
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x4039bb
mov eax, esi
jge 0x4039b6
sub eax, ecx
jmp 0x4039b8
add eax, ecx
shr eax, 0x10
add eax, 0xffffff00
push eax
call fcn.004029c0
add esp, 4
xor esi, esi
cmp byte [esi + ebx], 0
jne 0x4039d4
inc esi
jmp 0x4039f4
push 1
push ebx
push esi
call fcn.004030c0
mov edi, eax
push 0
sub eax, esi
push esi
push eax
push ebp
call fcn.00402fa0
mov esi, edi
mov edi, dword [esp + 0x30]
add esp, 0x1c
cmp esi, 0x10000
jb 0x4039cb
mov esi, dword [esp + 0x10]
add edi, 0xc
inc esi
cmp edi, 0x519564
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
jb 0x403979
call fcn.00402980
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x403f10
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x515d14], eax
je 0x403f8d
push 0
push 0
push 0
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [0x515d44], eax
je 0x403f8d
push 0x515d20
push esi
call fcn.00404a56
add esp, 8
test eax, eax
jne 0x403f8d
mov ecx, dword [0x515d44]
mov eax, dword [0x515d34]
push 0
push 0
push 0
push 4
push ecx
mov dword [0x519d54], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [0x519564], eax
jne 0x403f97
call fcn.00402680
or eax, 0xffffffff
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x404040
Capabilities:
Get file version info
Terminate process

Disassembly:
mov eax, dword [0x50da88]
push eax
call fcn.00403fa0
mov ecx, dword [0x50da88]
add esp, 4
push 0x519580
push 0x7d0
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
push 0x519d64
push 0x519d60
push str.StringFileInfo040904B0FileVersion
push 0x519580
call sub.VERSION.dll_VerQueryValueA
push 0x519d64
push 0x515d00
push str.StringFileInfo040904B0LegalCopyright
push 0x519580
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [0x50dce0]
test eax, eax
mov eax, str.MCS_51_251_OBJECT_TO_HEX_FILE_CONVERTER
jne 0x4040ab
mov eax, str.Extended_8051_251_Object_to_Hex_File_Converter
mov edx, dword [0x519d60]
push edx
push eax
push str._n_s_V_s
call fcn.004042fe
mov eax, dword [0x515d00]
push eax
push str._nCOPYRIGHT__s_n
call fcn.004042fe
mov byte [0x51956c], 0
mov byte [0x51957d], 0
mov dword [0x519568], 1
call fcn.004041b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov byte [0x50dcd1], 3
mov dword [0x519d5c], 0xab9c
call fcn.00401e70
mov eax, dword [0x515d14]
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x404130
push 0x51a6e0
push str._n_ERROR:_CANT_OPEN_FILE__s_n
call fcn.004042fe
add esp, 8
push 3
call fcn.00404229
push 0x40c68c
push 0x51a960
call fcn.00404804
add esp, 8
mov dword [0x515d04], eax
test eax, eax
jne 0x404164
push 0x51a960
push str._ERROR:_CANT_CREATE_FILE__s_n
call fcn.004042fe
add esp, 8
push 3
call fcn.00404229
mov byte [0x51956c], 1
call fcn.00403a30
call fcn.004026d0
call fcn.00402680
mov eax, dword [0x515d04]
push eax
call fcn.00404737
mov al, byte [0x51957d]
add esp, 4
test al, al
je 0x40419e
push 0x51a960
call fcn.00401fb0
add esp, 4
xor eax, eax
ret
Function at 0x408109
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40cde8
cmp edx, dword [eax]
je 0x40812b
add eax, 8
inc ecx
cmp eax, 0x40ce78
jl 0x40811c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40cde8]
jne 0x408259
mov eax, dword [0x50daa8]
cmp eax, 1
je 0x408233
test eax, eax
jne 0x40815c
cmp dword [0x40cbc4], 1
je 0x408233
cmp edx, 0xfc
je 0x408259
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408193
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409aa0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004076e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4081d6
lea eax, [ebp - 0x1a4]
push eax
call fcn.004076e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b7f8
push edi
call fcn.00404330
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409aa0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409ab0
lea eax, [ebp - 0xa0]
push 0x40b7d8
push eax
call fcn.00409ab0
push dword [esi + 0x40cdec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409ab0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409b90
add esp, 0x2c
pop edi
jmp 0x408259
lea eax, [ebp + 8]
lea esi, [esi + 0x40cdec]
push 0
push eax
push dword [esi]
call fcn.004076e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401080
Capabilities:
Connect network resource

Disassembly:
mov al, byte [0x40b628]
sub esp, 0x124
test al, al
jne 0x401098
xor al, al
add esp, 0x124
ret
push 0x40b420
lea eax, [esp + 0x24]
push str._sADMIN_
push eax
call fcn.004022dd
add esp, 0xc
lea edx, [esp]
lea ecx, [esp + 0x20]
mov dword [esp + 4], 0
push 0
push 0x40ba20
push 0x40b900
push edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], 0
call sub.MPR.dll_WNetAddConnection2A
neg eax
sbb eax, eax
inc eax
add esp, 0x124
ret

Function at 0x401100
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov al, byte [esp + 4]
push ebx
push esi
push edi
test al, al
je 0x4011e9
mov esi, dword [esp + 0x14]
push 0xc
push str._SystemRoot_
push esi
call fcn.00402330
add esp, 0xc
test eax, eax
jne 0x401146
mov eax, dword [esp + 0x18]
add esi, 0xc
push esi
push 0x40b420
push str._sADMIN__s
push eax
call fcn.004022dd
add esp, 0x10
pop edi
pop esi
pop ebx
ret
mov al, byte [0x40b524]
test al, al
je 0x40119c
mov edi, 0x40b524
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40b524
push esi
call fcn.00402330
add esp, 0xc
test eax, eax
jne 0x40119c
mov edi, 0x40b524
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
mov ecx, dword [esp + 0x1c]
push 0x40b420
push str._sADMIN__s
push ecx
call fcn.004022dd
add esp, 0x10
pop edi
pop esi
pop ebx
ret
cmp byte [esi], 0x5c
je 0x401269
push str.WinMgmtr.Dll
push esi
call fcn.004086c0
add esp, 8
test eax, eax
push esi
push 0x40b420
jne 0x4011d3
mov edx, dword [esp + 0x20]
push str._sADMIN_System32Wbem_s
push edx
call fcn.004022dd
add esp, 0x10
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x20]
push str._sADMIN_System32_s
push eax
call fcn.004022dd
add esp, 0x10
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push ecx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x401220
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push str.WinMgmtr.Dll
push ebp
call fcn.004086c0
add esp, 8
test eax, eax
pop ebp
jne 0x401269
mov eax, dword [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.WbemWinMgmtr.Dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x402130
Capabilities:
Get hostname
Terminate process

Disassembly:
push ecx
push str._nPsLogList_v2.05___local_and_remote_event_log_viewer_n
call fcn.004022ac
push str.Copyright__C__2000_Mark_Russinovich_n
call fcn.004022ac
push str.Sysinternals___www.sysinternals.com_n_n
call fcn.004022ac
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x402171
push str.PsLogList_requires_Windows_NT_or_Windows_2000._n_n
call fcn.004022ac
add esp, 4
or eax, 0xffffffff
pop ecx
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.00401d00
add esp, 8
test al, al
jne 0x40218e
push 0xffffffffffffffff
call fcn.0040294c
mov al, byte [0x40b628]
push esi
test al, al
je 0x4021e6
mov al, byte [0x40b629]
test al, al
jne 0x4021e6
push str.Password:
call fcn.004022ac
push 0x40a958
call fcn.00402759
add esp, 8
xor esi, esi
call fcn.0040874c
cmp al, 0xd
je 0x4021d2
mov byte [esi + 0x40b900], al
inc esi
cmp esi, 0x103
jb 0x4021ba
push 0x40a0e0
mov byte [esi + 0x40b900], 0
call fcn.004022ac
add esp, 4
lea edx, [esp + 4]
mov dword [esp + 4], 0x104
push edx
push 0x40bb40
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov al, byte [0x40b420]
test al, al
je 0x402263
push 0x40bb40
push 0x40b420
call fcn.004086c0
add esp, 8
test eax, eax
je 0x402263
push 0
push 1
call fcn.00401660
add esp, 8
test al, al
jne 0x402296
call fcn.00401080
test al, al
je 0x40224c
push 1
push 1
call fcn.00401660
add esp, 8
call fcn.00401040
xor eax, eax
pop esi
pop ecx
ret
push 0x40b420
push str.Unable_to_connect_to__s._Verify_user_name_and_password._n
call fcn.004022ac
add esp, 8
xor eax, eax
pop esi
pop ecx
ret
push edi
mov edi, 0x40bb40
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, 0x40b420
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401660
add esp, 8
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4061d9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40ac80
cmp edx, dword [eax]
je 0x4061fb
add eax, 8
inc ecx
cmp eax, 0x40ad10
jl 0x4061ec
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40ac80]
jne 0x406329
mov eax, dword [0x40b690]
cmp eax, 1
je 0x406303
test eax, eax
jne 0x40622c
cmp dword [0x40abbc], 1
je 0x406303
cmp edx, 0xfc
je 0x406329
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406263
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004075a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404c50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4062a6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404c50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409490
push edi
call fcn.00407b00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004075a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004075b0
lea eax, [ebp - 0xa0]
push 0x409470
push eax
call fcn.004075b0
push dword [esi + 0x40ac84]
lea eax, [ebp - 0xa0]
push eax
call fcn.004075b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407a70
add esp, 0x2c
pop edi
jmp 0x406329
lea eax, [ebp + 8]
lea esi, [esi + 0x40ac84]
push 0
push eax
push dword [esi]
call fcn.00404c50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4038c3
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x40573f
call fcn.00404e03
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x4039d5
cmp byte [esi + 0x42], bl
je 0x4039d5
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp ax, di
jne 0x4038ff
xor al, al
jmp 0x4039d7
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040389d
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402b80
mov ecx, eax
call fcn.00403153
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402b80
mov ecx, eax
call fcn.00403153
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x40396f
dec eax
je 0x403973
dec eax
dec eax
je 0x4039d1
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401f10
mov al, bl
jmp 0x4039d7
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402b80
mov ecx, eax
call fcn.00403153
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x4039b3
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402b80
mov ecx, eax
call fcn.00403153
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00404eb6
add esp, 0x10
cmp edi, eax
jne 0x40395d
cmp byte [esi + 0x42], 0
je 0x4039d1
test edi, edi
jne 0x40390d
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004028e0
jmp 0x40390d
mov bl, 1
jmp 0x40395f
mov al, 1
call fcn.00404e4d
ret

Function at 0x4080b5
Capabilities:
Encode data using xor

Disassembly:
sub cl, byte [eax - 0x74d78164]
push ebp
sbb al, 0x3b
mov byte [esi], 0x30
invalid
cmp esi, ebx
mov byte [esi], 0x30
invalid
xor byte [esi + 5], dh
jbe 0x4080bd
dec esi
dec byte [ebp + 0x6c614eb]
xor dword [edx + 0x39], eax
push esp
test edx, edx
mov byte [esi], 0x31
inc edx
cmp dword [ebp + eax*4 - 0x2e], edx
mov dword [ecx], edi
jne 0x4080a9
fadd st(3), st(0)
jbe 0x4080d0
mov byte [eax], 0x30
inc eax
sbb bh, 0x39
jg 0x4080b1
mov byte [eax], 0
pop edi
mov edx, ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402100
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x439298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x4021aa
mov eax, dword [0x447b38]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00431b5a
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00431ba9
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00431b33
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x402191
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x402191
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0043180f
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4021c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402222
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x402430
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x402522
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocString
mov ecx, edi
call fcn.004021c0
test eax, eax
jne 0x402522
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocString
mov ecx, edi
call fcn.004021c0
test eax, eax
jne 0x402522
lea edx, [esp + 0x10]
push 0x446468
push edx
call fcn.0041e450
mov esi, eax
add esp, 8
test esi, esi
jne 0x4024f3
lea eax, [esp + 0x10]
push 0x446464
push eax
call fcn.0041e3d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4024f3
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4024f6
mov byte [esi], 0
push 0x446460
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8