joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x810
mov eax, dword [esp + 0x818]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov ebp, 0x401300
je 0x40181f
mov ebp, 0x401310
lea eax, [esp + 0x10]
push eax
push 3
push 0
push 0x4012e0
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40192a
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push ebp
push ecx
mov dword [esp + 0x30], 0x79c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40192a
mov esi, dword [esp + 0x824]
lea edx, [esp + 0x20]
push esi
push edx
call fcn.00401770
add esp, 8
test eax, eax
jne 0x401922
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4018d6
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
push eax
mov ebx, ecx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + ebx + 0x29]
push edx
call fcn.00403150
mov ecx, ebx
lea edi, [esp + 0x2c]
mov eax, ecx
add esp, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + ebx + 0x20], 0x3b
jmp 0x4018f9
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
mov eax, dword [esp + 0x20]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40192a
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401939
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x810
ret
Function at 0x402ed0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401328
push 0x404ac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40dda8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40dda4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40dda0], ecx
shr eax, 0x10
mov dword [0x40dd9c], eax
call fcn.00404990
test eax, eax
jne 0x402f3a
push 0x1c
call fcn.00403070
add esp, 4
mov dword [ebp - 4], 0
call fcn.00404790
call fcn.00404780
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40f1b0], eax
call fcn.00404350
mov dword [0x40dd84], eax
test eax, eax
je 0x402f6d
mov eax, dword [0x40f1b0]
test eax, eax
jne 0x402f77
push 0xffffffffffffffff
call fcn.00403cb0
add esp, 4
call fcn.004040a0
call fcn.00403fb0
call fcn.00403c80
mov esi, dword [0x40f1b0]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x403056
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x402fbe
test al, al
je 0x402fbe
and eax, 0xff
push eax
call fcn.00403f50
add esp, 4
test eax, eax
je 0x402f98
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402f98
cmp byte [esi], 0x22
jne 0x402fc7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x402fd7
cmp al, 0x20
ja 0x402fd7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402fc7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x402ff8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x402ffd
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00403cb0
jmp 0x40303b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x402fc7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x403056

Function at 0x403cf0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40ddd8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x403d0f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40ddd4], 1
mov byte [0x40ddd0], bl
jne 0x403d69
mov ecx, dword [0x40f1a8]
test ecx, ecx
je 0x403d57
mov esi, dword [0x40f1a4]
sub esi, 4
cmp esi, ecx
jb 0x403d57
mov eax, dword [esi]
test eax, eax
je 0x403d50
call eax
mov ecx, dword [0x40f1a8]
sub esi, 4
cmp esi, ecx
jae 0x403d42
push 0x40901c
push 0x409014
call fcn.00403da0
add esp, 8
push 0x409024
push 0x409020
call fcn.00403da0
add esp, 8
test ebx, ebx
jne 0x403d90
push ebp
mov dword [0x40ddd8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x404350
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40dee8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x404392
call edi
mov esi, eax
test esi, esi
je 0x40437c
mov eax, 1
jmp 0x40438d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40449f
mov eax, 2
mov dword [0x40dee8], eax
cmp eax, 1
jne 0x404432
test esi, esi
jne 0x4043ab
call edi
mov esi, eax
test esi, esi
je 0x40449f
cmp word [esi], 0
mov eax, esi
je 0x4043c5
add eax, 2
cmp word [eax], 0
jne 0x4043b3
add eax, 2
cmp word [eax], 0
jne 0x4043b3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x404424
push edi
call fcn.00406880
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404424
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x404416
push ebx
call fcn.00405b60
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40449f
test ebx, ebx
jne 0x404443
call ebp
mov ebx, eax
test ebx, ebx
je 0x40449f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40445b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40444b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40444b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00406880
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40447d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x404be0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x409680
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x404c04
add eax, 8
inc ebp
cmp eax, 0x409710
jb 0x404bf5
cmp ecx, dword [ebp*8 + 0x409680]
jne 0x404dab
mov eax, dword [0x40dd8c]
cmp eax, 1
je 0x404d6d
test eax, eax
jne 0x404c30
cmp dword [0x4094d4], 1
je 0x404d6d
cmp ecx, 0xfc
je 0x404dab
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404c6b
mov ecx, 5
mov esi, 0x40160c
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x404cb4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x401608
add ebx, ecx
push ebx
call fcn.004070e0
add esp, 0xc
mov ecx, 6
mov esi, 0x4015ec
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4015e8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4015c0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x409684]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00407050
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40f0a0]
test eax, eax
je 0x404d7e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404d88
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x409684]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x406400
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40f1a0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x4065ad
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x40f0a0]
lea edi, [ecx*4 + 0x40f0a0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x4065ad
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40646e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40647f
push 2
push ebp
push eax
call fcn.00406080
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4065de
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x406529
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4064da
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4064c7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4064aa
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4065cf
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x406525
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4064a6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40659e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x406572
cmp eax, 5
jne 0x40655b
mov dword [0x40dd94], eax
mov dword [0x40dd90], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004076e0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x406592
cmp byte [ebp], 0x1a
jne 0x406592
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40dd90], 0x1c
jmp 0x4065b7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40dd90], 9
pop edi
pop esi
pop ebp
mov dword [0x40dd94], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x406525
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40660f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x406529
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x406529
Function at 0x407f90
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00402ea0
mov eax, dword [0x40f1a0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x4080f2
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x40f0a0]
test byte [edx + ecx*8 + 4], 1
je 0x4080f2
push 1
push ebp
push ebx
call fcn.00406080
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x4080fc
push 2
push ebp
push ebx
call fcn.00406080
add esp, 0xc
cmp eax, 0xffffffff
je 0x4080fc
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x408098
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00408110
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x40803f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00406400
add esp, 0xc
cmp eax, 0xffffffff
je 0x40805b
sub esi, eax
test esi, esi
jle 0x408071
jmp 0x408030
cmp dword [0x40dd94], 5
jne 0x40806e
mov dword [0x40dd90], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00408110
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00406080
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x4080d9
push 0
push ecx
push ebx
call fcn.00406080
add esp, 0xc
push ebx
call fcn.00407960
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x4080d9
mov dword [0x40dd90], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40dd94], eax
push 0
push edi
push ebx
call fcn.00406080
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x40dd90], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x407cc8
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 8
call fcn.004ab8f1
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x4b4206
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 8], 0
cmp dword [0x4c4fc5], 0
jne 0x407d41
push 0
push 0
push 0
push 0x80000004
push 0
push 0x4b59f7
push 0x80000301
push 0
push 0x40
push 0x80000004
push 0
push 0x4b5a00
push 4
mov ebx, 0x300
call fcn.004aee60
add esp, 0x34
jmp 0x407e40
lea eax, [ebp - 4]
push eax
push 0x4c4f25
call fcn.00407e89
mov ebx, dword [ebp - 4]
call fcn.00401010
xor ecx, ecx
push eax
lea eax, [ebp - 8]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x407dd3
mov ebx, dword [ebp - 4]
call fcn.00401029
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x407d8b
push 4
call fcn.004ab8f7
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x407d9e
push 1
call fcn.004ab8f7
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0xc], ebx
push 0x80000004
push 0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x407dbb
mov eax, 0x4b423d
push eax
push 1
mov ebx, 0x244
call fcn.004af0a0
add esp, 0x10
pop eax
pop ebx
pop ecx
jmp 0x407d60
add esp, 0xc
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
push 0x4c4fa9
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
push 0x4c4fad
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov dword [ebp - 0xc], esp
push 0
push dword [0x4c4fb1]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x407e36
push 6
call fcn.004ab8f7
add esp, 4
push 0
call fcn.004ab8d9
add esp, 4
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x407e5e
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x407e5a
imul eax, dword [ebx]
jmp 0x407e4f
mov ecx, eax
test ecx, ecx
je 0x407e7d
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x407e76
push ebx
push eax
call fcn.004ab8eb
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x407e64
call fcn.004ab8eb
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40805e
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.004af290
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4080a3
push ebx
call fcn.004ab8eb
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push 0x24
push dword [ebp - 4]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4080d8
push 6
call fcn.004ab8f7
add esp, 4
push str.explorer.exe
push dword [ebp - 4]
mov ecx, 2
call fcn.004012a7
add esp, 8
mov dword [ebp - 8], eax
push dword [0x4c4fc9]
push str.__select_
mov ecx, 2
call fcn.004012a7
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 1
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
push str.OPEN
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x408142
push 6
call fcn.004ab8f7
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x408152
push ebx
call fcn.004ab8eb
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x408162
push ebx
call fcn.004ab8eb
add esp, 4
call fcn.00407cc8
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x408177
push ebx
call fcn.004ab8eb
add esp, 4
mov esp, ebp
pop ebp
ret 4

Function at 0x40819c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0x4b423d
push 0x4b423d
push dword [0x4c4fc9]
push str.OPEN
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4081e3
push 6
call fcn.004ab8f7
add esp, 4
call fcn.00407cc8
mov esp, ebp
pop ebp
ret 4

Function at 0x414779
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000005
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4147a5
mov eax, 0x4b4206
push eax
push 1
mov ebx, 0x194
call fcn.004af970
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0x40
push 0x1000
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4147ec
push 6
call fcn.004ab8f7
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x414801
add eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x414821
push 6
call fcn.004ab8f7
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x414829
mov esp, ebp
pop ebp
ret 4
Function at 0x444fc3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x444ffc
push 6
call fcn.004ab8f7
add esp, 4
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x4b59db]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.00402263
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x184
call fcn.004af290
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x44504a
push ebx
call fcn.004ab8eb
add esp, 4
pop eax
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x4b59db]
fstp qword [ebp - 0x18]
mov dword [ebp - 0x1c], esp
fld qword [ebp - 0x18]
call fcn.00402263
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x44508e
push 6
call fcn.004ab8f7
add esp, 4
push 0x4b423d
push dword [ebp - 8]
call fcn.00401049
add esp, 8
cmp eax, 0
jne 0x44516f
mov dword [ebp - 0xc], esp
push 0
push 0
push 0xe
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4450d8
push 6
call fcn.004ab8f7
add esp, 4
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x4b59db]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.00402263
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x184
call fcn.004af290
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x445126
push ebx
call fcn.004ab8eb
add esp, 4
pop eax
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x4b59db]
fstp qword [ebp - 0x18]
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
fld qword [ebp - 0x18]
call fcn.00402263
push eax
push 0xd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x44516f
push 6
call fcn.004ab8f7
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x44518b
push eax
mov ebx, eax
call fcn.0040123c
inc eax
push eax
call fcn.004ab8f1
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x445190
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4451a1
push ebx
call fcn.004ab8eb
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x46e586
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x46e5c4
push 6
call fcn.004ab8f7
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
call dword [0x4c5541]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x46e5e6
push 6
call fcn.004ab8f7
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 1
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_AttachThreadInput]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x46e613
push 6
call fcn.004ab8f7
add esp, 4
cmp dword [ebp + 8], 0
jne 0x46e641
mov dword [ebp - 8], esp
call dword [sym.imp.USER32.dll_ReleaseCapture]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x46e63c
push 6
call fcn.004ab8f7
add esp, 4
jmp 0x46e663
mov dword [ebp - 8], esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetCapture]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x46e663
push 6
call fcn.004ab8f7
add esp, 4
mov dword [ebp - 8], esp
call dword [0x4c5541]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x46e682
push 6
call fcn.004ab8f7
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_AttachThreadInput]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x46e6af
push 6
call fcn.004ab8f7
add esp, 4
jmp 0x46e6b4
mov esp, ebp
pop ebp
ret 8