joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477928
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a8139
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0047a3d0
lea edi, [esi + 0x108]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0xc]
mov dword [edi], 0x6fead8
call fcn.00494a03
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 1
call fcn.00494a03
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 2
call fcn.00479ff0
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 3
call fcn.00479ff0
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 4
call fcn.00494a03
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 5
call fcn.00494a03
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 6
call fcn.00479ff0
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 7
call fcn.00479ff0
mov dword [edi], 0x6fead0
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 8
call fcn.0047a3d0
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 9
call fcn.0047a3d0
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 0xa
call fcn.0047a3d0
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 0xb
call fcn.0047a3d0
lea ecx, [esi + 0x654]
mov byte [esp + 0x18], 0xc
call fcn.0047a3d0
mov ecx, esi
mov byte [esp + 0x18], 0xd
mov dword [esi], method.CWnd.virtual_0
call fcn.00477c50
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x477b10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a824b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CWnd.virtual_0
lea ecx, [esi + 0x654]
mov dword [esp + 0x18], 5
call fcn.0047a5a0
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 4
call fcn.0047a5a0
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 3
call fcn.0047a5a0
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 2
call fcn.0047a5a0
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 1
call fcn.0047a5a0
lea edi, [esi + 0x108]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 0xc
mov dword [ecx], 0x6feae0
call fcn.0047a1f0
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 0xb
mov dword [ecx], 0x6feae0
call fcn.0047a1f0
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 0xa
call fcn.00494a2c
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 9
call fcn.00494a2c
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x6feae0
call fcn.0047a1f0
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x6feae0
call fcn.0047a1f0
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 6
call fcn.00494a2c
lea ecx, [edi + 0xc]
mov byte [esp + 0x18], 0
call fcn.00494a2c
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0047a5a0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4986d1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x498709
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00496788
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00496760
jmp 0x498715
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x499dbf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x499e01
call fcn.0049ff37
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x499e01
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x499df8
xor eax, eax
jmp 0x499e09
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00499e0f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a0467
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a0495
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a04b3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a03cd
jmp 0x4a04b3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a04b3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a03cd
test edi, edi
mov eax, edi
jne 0x4a049d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403340
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
rol esi, 0x66
bswap ebx
add edi, 0x4b
dec eax
sub edi, 0x57
ror esi, 0xf2
rol edx, 0xfd
sub edi, 0xc0
mov edi, 0xde
imul ebx
dec edx
inc eax
mov edx, 0x32
bswap ebx
imul edx
neg edx
rol eax, 0x61
add esi, 0xe2
bswap edi
or eax, 0xaa
neg ebx
dec ebx
imul eax
neg esi
sub edi, 0x6c
and ebx, 0x48
mov esi, 0xf2
neg edi
rcr edx, 0xfc
imul ebx
bswap esi
inc eax
dec edx
bswap eax
dec esi
mov esi, 0xcb
rcl edi, 0xa5
or edi, 0x7e
mov esi, 0xa1
dec esi
neg eax
rol edx, 0x45
not edx
sbb edi, 0x42
sub eax, 0x58
dec edi
sbb esi, 0x14
sbb ebx, 2
and esi, 0xc2
bswap ebx
xor ecx, ecx
xor edi, edi
sub esi, 0xd8
bswap esi
ror ebx, 0x8c
bswap edx
imul eax
neg esi
neg edx
dec eax
mov ebx, 0x9d
sbb edx, 0x7f
rol esi, 0xc0
or esi, 0xf0
imul edx
dec eax
imul eax
rcl eax, 0x3b
rcr edi, 0xb0
ror esi, 0x89
not ebx
rol esi, 0xf9
not esi
not ebx
rcr edi, 0xf6
bswap eax
inc eax
mov ebx, 0x40
neg edx
neg eax
not eax
imul ebx
ror esi, 0x7e
imul edi
dec eax
sub ebx, 6
inc edi
and esi, 0x4b
inc edi
imul edi
or esi, 0xee
add eax, 0x56
mov eax, 0x75
not edx
and esi, 0xd8
imul esi
neg esi
add esi, 6
add edx, 0x2d
rcl ebx, 0x77
not ebx
and eax, 0x29
mov ecx, dword [ebp + 0xc]
inc edx
sbb esi, 0xb5
ror edi, 0x45
imul edx
bswap eax
not ebx
imul edi
and ebx, 0xa9
inc esi
imul eax
dec edx
not eax
ror eax, 0x67
mov esi, 0x42
bswap esi
or edi, 0x77
neg ebx
not edi
rol edi, 0xeb
sbb eax, 0xe9
dec ebx
add eax, 0xd0
rcl ebx, 6
not edi
mov eax, 0x57
rol eax, 0x18
mov edx, 0xbc
neg esi
neg edi
dec esi
and eax, 0x23
sub eax, 0xe0
add eax, 0x95
bswap eax
sbb ebx, 0xcc
or eax, 0x20
bswap eax
dec eax
add esi, 0x1b
and esi, 0xf3
imul esi
inc ebx
and esi, 0x8e
mov ebx, 0x7b
not edx
not eax
not edx
neg edi
bswap edi
rol esi, 4
mov edi, dword [ebp + 8]
xor esi, ebx
xor ebx, ebx
xor eax, eax
not byte [edi]
mov eax, esi
mov esi, esi
mov ebx, ebx
mov eax, ebx
xor eax, esi
mov eax, eax
mov esi, ebx
mov eax, ebx
xor ebx, ebx
add byte [edi], 0x68
xor eax, ebx
mov ebx, esi
mov ebx, eax
mov esi, eax
mov eax, eax
xor eax, ebx
mov eax, ebx
xor esi, ebx
xor esi, ebx
sub byte [edi], 0x44
mov ebx, ebx
mov eax, esi
xor ebx, eax
mov esi, esi
xor ebx, eax
mov esi, eax
mov ebx, eax
mov ebx, ebx
xor eax, esi
imul byte [edi]
inc edi
loop 0x4034f9
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x408f1a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418484]
jne 0x408f24
repz ret
jmp fcn.0040d8f5
Function at 0x4091b9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x474568]
jne 0x4091c3
repz ret
jmp fcn.0040c503

Function at 0x40a1fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x474568]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004075a4
and dword [ebp - 0x14], 0
cmp dword [0x478644], 0
mov dword [ebp - 0x18], eax
jne 0x40a2ae
push 0x403c10
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a356
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403c04
push ebx
call edi
test eax, eax
je 0x40a356
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403bf4
push ebx
mov dword [0x478644], eax
call edi
push eax
call esi
push 0x403be0
push ebx
mov dword [0x478648], eax
call edi
push eax
call esi
push 0x403bc4
push ebx
mov dword [0x47864c], eax
call edi
push eax
call esi
mov dword [0x478654], eax
test eax, eax
je 0x40a2ae
push 0x403bac
push ebx
call edi
push eax
call esi
mov dword [0x478650], eax
mov eax, dword [0x478650]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a307
cmp dword [0x478654], ecx
je 0x40a307
push eax
call esi
push dword [0x478654]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a307
test ebx, ebx
je 0x40a307
call edi
test eax, eax
je 0x40a2fe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a2fe
test byte [ebp - 8], 1
jne 0x40a307
or dword [ebp + 0x10], 0x200000
jmp 0x40a33a
mov eax, dword [0x478648]
cmp eax, dword [ebp - 0x18]
je 0x40a33a
push eax
call esi
test eax, eax
je 0x40a33a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a33a
mov eax, dword [0x47864c]
cmp eax, dword [ebp - 0x18]
je 0x40a33a
push eax
call esi
test eax, eax
je 0x40a33a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x478644]
call esi
test eax, eax
je 0x40a356
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a358
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004091b9
leave
ret
Function at 0x45d790
Capabilities:
Accept command line arguments
Delete directory
Get common file path
Read file on windows

Disassembly:
mov eax, 0x1420
call fcn.0040f030
cmp dword [0x7fd6c0], 0x37
jne 0x45d871
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x404548
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea ecx, [esp + 0x824]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [esp + 8]
push edx
push 0x404588
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
lea eax, [esp + 0xc24]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
lea ecx, [esp + 0x420]
push ecx
push 0
push 0x4045d4
push 0x4045f4
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x4045f8
push 0x404618
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov edx, dword [0x7fd6c4]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + esi]
mov edx, dword [0x47d724]
mov byte [edx + esi], cl
add esp, 0x1420
ret
Function at 0x45d9e0
Capabilities:
Manipulate console buffer

Disassembly:
mov eax, dword [0x7fd6c0]
sub esp, 0x1cc
push ebx
push ebp
push esi
mov esi, dword [0x47d724]
shr eax, 3
push edi
test eax, eax
je 0x45db5f
mov dword [esp + 0x30], 0x9e3779b9
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
jmp 0x45da16
mov esi, dword [esp + 0x1c]
cmp dword [0x7fd6c0], 0x1c
jne 0x45da33
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [esi]
mov edx, dword [0x4752f8]
mov ecx, dword [0x4752fc]
mov esi, dword [esi + 4]
mov ebx, dword [0x475300]
mov ebp, dword [0x475304]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0xc6ef3720
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], 0x20
jmp 0x45da74
mov eax, dword [esp + 0x18]
mov edx, eax
shr edx, 5
mov ecx, eax
shl ecx, 4
add edx, ebp
add ecx, ebx
xor edx, ecx
mov ecx, dword [esp + 0x10]
add ecx, eax
xor edx, ecx
sub esi, edx
mov edx, esi
shl edx, 4
mov dword [0x7fc644], 0
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x28]
add dword [esp + 0x14], eax
mov edi, dword [esp + 0x10]
add edi, esi
cmp dword [0x7fd6c0], 0x1be
jne 0x45dacc
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x2c]
mov dword [0x7fc648], 0xff6b3619
xor edx, edi
xor dword [esp + 0x14], edx
mov dword [0x7fc64c], 0xffffffff
mov eax, dword [esp + 0x14]
sub dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
sub dword [esp + 0x10], eax
dec dword [esp + 0x20]
jne 0x45da70
cmp dword [0x7fd6c0], 0x8d4
jne 0x45db20
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [edi], ecx
mov dword [edi + 4], esi
cmp dword [0x7fd6c0], 0x17
jne 0x45db4e
push 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea edx, [esp + 0x98]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add edi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], edi
jne 0x45da12
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret
Function at 0x402df0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x43ef64]
push ebx
push esi
push eax
call fcn.00401080
mov ebx, dword [esp + 0x10]
add esp, 4
cmp byte [ebx], 0
jne 0x402e1d
push str._n_ERROR:_MISSING_ARGUMENT_AFTER___n
call fcn.0040e99e
add esp, 4
push 3
call fcn.0040ebd4
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x418b28
mov edx, ecx
mov esi, edi
mov edi, 0x43ece0
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040eb94
add esp, 8
mov esi, eax
test esi, esi
pop edi
jne 0x402e6a
push ebx
push str._n_ERROR:_COMMAND_FILE__s_NOT_FOUND_n
call fcn.0040e99e
add esp, 8
push 3
call fcn.0040ebd4
mov eax, dword [0x43ee4c]
push esi
push 0xfa00
push 1
push eax
call fcn.0040ea8c
add esp, 0x10
test ax, ax
jne 0x402e9a
push ebx
push str._n_ERROR:_COMMAND_FILE__s_EMPTY_n
call fcn.0040e99e
add esp, 8
push 3
call fcn.0040ebd4
mov ecx, dword [0x43ee4c]
and eax, 0xffff
push esi
mov byte [eax + ecx], 0
call fcn.0040ea36
add esp, 4
test eax, eax
je 0x402ec4
push ebx
push str._n_ERROR:_COMMAND_FILE__s_READ_ERROR_n
call fcn.0040e99e
add esp, 8
mov edx, dword [0x43ee4c]
push edx
call fcn.0040e9cf
mov eax, dword [0x43ee4c]
push eax
call fcn.00402f00
mov ecx, dword [0x43ee4c]
push ecx
call fcn.00402b40
mov byte [eax], 0xa
mov byte [eax + 1], 0
mov edx, dword [0x43ee4c]
push edx
call fcn.00401080
add esp, 0x10
pop esi
pop ebx
ret

Function at 0x407c50
Capabilities:
Terminate process

Disassembly:
mov ax, word [0x41cbc2]
push esi
push edi
mov edi, dword [0x42efec]
mov byte [0x41cbb7], 1
mov word [0x41cbc4], ax
call fcn.00407b90
mov esi, dword [esp + 0xc]
push esi
push str._n_FATAL_ERROR_L_d:
call fcn.00407170
sub esi, 0xc8
add esp, 8
cmp esi, 0x36
jb 0x407c8f
xor esi, esi
lea ecx, [esi*8 + 0x419420]
mov dword [0x42efec], edi
push ecx
call fcn.00407570
add esp, 4
call fcn.00407390
call fcn.0040b140
push 3
call fcn.0040ebd4
pop edi
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4143b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41c810
cmp edx, dword [eax]
je 0x4143d3
add eax, 8
inc ecx
cmp eax, 0x41c8a0
jl 0x4143c4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41c810]
jne 0x414501
mov eax, dword [0x41ccac]
cmp eax, 1
je 0x4144db
test eax, eax
jne 0x414404
cmp dword [0x41c218], 1
je 0x4144db
cmp edx, 0xfc
je 0x414501
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x41443b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00412ca0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00411cb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41447e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00411cb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4175f8
push edi
call fcn.0040e770
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00412ca0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00412cb0
lea eax, [ebp - 0xa0]
push 0x41a9e4
push eax
call fcn.00412cb0
push dword [esi + 0x41c814]
lea eax, [ebp - 0xa0]
push eax
call fcn.00412cb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00415352
add esp, 0x2c
pop edi
jmp 0x414501
lea eax, [ebp + 8]
lea esi, [esi + 0x41c814]
push 0
push eax
push dword [esi]
call fcn.00411cb0
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 0x406d50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
push edi
push 8
call fcn.00408b84
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 3
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
mov dword [esp + 0x20], 8
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edi
push edx
push 0
push str.Nodrives
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406e63
mov al, byte [edi]
test al, al
jne 0x406dd1
mov cl, byte [edi + 1]
test cl, cl
jne 0x406dd1
mov cl, byte [edi + 2]
test cl, cl
jne 0x406dd1
mov cl, byte [edi + 3]
test cl, cl
je 0x406e63
xor ecx, ecx
xor edx, edx
mov cl, byte [edi + 3]
mov dl, byte [edi + 2]
mov esi, ecx
xor ecx, ecx
mov cl, byte [edi + 1]
and eax, 0xff
shl esi, 8
add esi, edx
shl esi, 8
add esi, ecx
shl esi, 8
add esi, eax
cmp esi, 1
jne 0x406e0b
push 0
call fcn.00406e70
add esp, 4
pop edi
pop esi
add esp, 0x10
ret
jle 0x406e63
push esi
call fcn.00407210
add esp, 4
test eax, eax
jne 0x406e35
push eax
call fcn.00406e70
push esi
call fcn.004071f0
push eax
mov dword [esp + 0x14], eax
call fcn.00406e70
add esp, 0xc
jmp 0x406e48
push esi
call fcn.004071f0
push eax
mov dword [esp + 0x10], eax
call fcn.00406e70
add esp, 8
fld qword [0x410230]
fild dword [esp + 8]
call fcn.00408c10
call fcn.00408be4
sub esi, eax
cmp esi, 1
jg 0x406e0d
pop edi
pop esi
add esp, 0x10
ret
Function at 0x407c00
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
mov eax, dword [0x413cf4]
push 0
push 0
push 0x184
push eax
call edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Process32First
push ebx
mov esi, eax
call ebp
push str.Process32Next
push ebx
call ebp
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
mov eax, dword [0x413cf4]
lea edx, [esp + 0x34]
push edx
push 0
push 0x180
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x407ca0
mov eax, dword [0x413cf4]
lea edx, [esp + 0x34]
push edx
push 0
push 0x180
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x407c7d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
Function at 0x408000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x5c
push esi
push 0x50
call fcn.00408b84
add esp, 4
mov esi, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push 0x80000002
mov dword [esp + 0x18], 0x50
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push esi
push edx
push 0
push str.SourcePath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40808d
push esi
lea ecx, [esp + 0x14]
push 0x412738
push ecx
call fcn.00408b32
mov eax, dword [0x413d00]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x41c
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop esi
add esp, 0x5c
ret
Function at 0x408350
Capabilities:
Get graphical window text
Set registry value

Disassembly:
sub esp, 0x54
push 0x50
call fcn.00408b84
add esp, 4
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [0x413d00]
lea ecx, [esp + 4]
push 0x50
push ecx
push 0x41c
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp]
lea eax, [esp + 4]
push 0x50
push eax
push 1
push 0
push str.SourcePath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 0x54
ret

Function at 0x4083c0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x4083d5
push 0xff
push esi
call dword [sym.imp.WS2_32.dll_gethostname]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
pop esi
jne 0x4083fa
push 0x10
push 0x41208c
push 0x412d24
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, str.0.0.0.0
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
ret

Function at 0x408410
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x120
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x1c]
mov ecx, 0x64
sub ecx, eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
lea eax, [esp + 0x34]
push 0x412d30
push eax
call fcn.00408b32
add esp, 0x1c
lea ecx, [esp + 0x20]
push 0
push 0x4122b4
push ecx
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x120
ret

Function at 0x408480
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x5c
push esi
push 0x50
call fcn.00408b84
add esp, 4
mov esi, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 1
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
mov dword [esp + 0x18], 0x50
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push esi
push edx
push 0
push str.Identifier
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40850d
push esi
lea ecx, [esp + 0x14]
push 0x412738
push ecx
call fcn.00408b32
mov eax, dword [0x413d00]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x421
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop esi
add esp, 0x5c
ret