joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e690
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x64e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push closesocket
call dword [0x64918c]
test eax, eax
jne 0x41e750
push edi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push ebx
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x110], 1
call dword [0x649190]
test eax, eax
jne 0x41e73f
cmp dword [ebp - 0x110], 2
mov byte [ebp - 5], bl
lea eax, [ebp - 0x108]
jne 0x41e730
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb ebx, ebx
inc ebx
jmp 0x41e73f
push eax
push edi
push esi
call fcn.0041e7c2
xor ebx, ebx
test eax, eax
setns bl
push dword [ebp - 0x10c]
call dword [0x649028]
mov eax, ebx
pop edi
jmp 0x41e752
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00541b41
leave
ret

Function at 0x422f69
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x64e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x654ef8]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x422fb5
push 0x5daa24
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x422fd2
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [0x64f5f0]
mov dword [0x654ef8], eax
jmp 0x422fbe
push eax
call dword [0x64f5f4]
mov esi, eax
test esi, esi
je 0x422fd2
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x42303f
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x422fed
xor eax, eax
jmp 0x42303f
lea eax, [ebp - 0x210]
push eax
call fcn.0054706e
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x42301e
push 0x5db8c0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0054640f
add esp, 0xc
test eax, eax
jne 0x422fe9
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0054640f
add esp, 0xc
test eax, eax
jne 0x422fe9
lea eax, [ebp - 0x210]
push eax
call fcn.00427d82
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00541b41
leave
ret
Function at 0x423801
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x423846
call fcn.0042def3
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x423846
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x423862
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042d323
mov ebx, eax
test edi, edi
je 0x423860
test esi, esi
je 0x423860
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4287ea
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5c827a
call fcn.00546ad7
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x428810
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x428864
call fcn.0042b91f
push eax
lea ecx, [ebp - 0x10]
call fcn.00402240
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00543d6d
push eax
call fcn.00404d60
add esp, 0x14
test edi, edi
je 0x428857
push edi
call fcn.0054706e
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004022e0
mov eax, esi
call fcn.00546aa5
ret 8

Function at 0x42bcb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0042def3
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42bce7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0042bd06
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x431e96
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x431ee0
call fcn.0042def3
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x431edd
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x431f19
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test edi, edi
je 0x431f02
push dword [ebp + 0x10]
mov edx, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, eax
test esi, esi
je 0x431f02
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x431f17
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0xa0]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x433ab8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.0042840a
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x433af4
call fcn.00433cd3
mov dword [esi + 0xc], 1
jmp 0x433af9
call fcn.00433cd3
cmp dword [esi], 0
je 0x433b42
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x433b1c
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00409950
jmp 0x433b2d
push 0xff
mov ecx, esi
call fcn.00402430
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00409900
jmp 0x433b66
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x433b66
push dword [esi]
push dword [ebp - 4]
call fcn.00435c3a
pop esi
leave
ret 0xc

Function at 0x433c2a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00433cd3
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x433c72
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00409950
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00409900
jmp 0x433c7d
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00435c3a
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x435544
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x64e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x6551f8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x43559d
push 0x5daa24
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4355ba
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [0x64f5f0]
mov dword [0x6551f8], eax
jmp 0x4355a6
push eax
call dword [0x64f5f4]
mov esi, eax
test esi, esi
je 0x4355ba
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x4356f7
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0055e5ba
lea eax, [ebp - 0x14]
push eax
call fcn.0054706e
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.00543349
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.0055e5ba
lea eax, [ebp - 0x14]
push eax
call fcn.0054706e
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00543349
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0055e5ba
lea eax, [ebp - 0x14]
push eax
call fcn.0054706e
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00543349
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.0055e5ba
lea eax, [ebp - 0x14]
push eax
call fcn.0054706e
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.00543349
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.0055e5ba
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0054706e
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.00543349
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00541b41
leave
ret
Function at 0x462506
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x46251e
call fcn.0042def3
mov esi, dword [eax + 0xc]
push 0x5e4054
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x462574
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x462573
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x462554
xor esi, esi
jmp 0x46256a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0046257a
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x525e79
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x525e93
mov edi, dword [esi + 0xc]
jmp 0x525ed3
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x525eac
call fcn.00429d0b
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x525ec1
call fcn.00429d0b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x525ed3
call fcn.00429d0b
call fcn.0042def3
cmp dword [eax + 0x3c], 0
je 0x525ee8
push edi
mov ecx, ebx
call fcn.0052570d
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.005260ab
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x525f0b
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x525f14
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x559588
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x64e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x64f5f0]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0054bca5
mov dword [ebp - 0x14], eax
cmp dword [0x659a10], edi
jne 0x559679
push 0x800
push edi
push 0x6097f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x559606
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x559759
push 0x6097f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x559759
push 0x609808
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x559759
push eax
call ebx
push 0x609814
push esi
mov dword [0x659a10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x609824
push esi
mov dword [0x659a14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x659a18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x659a20], eax
test eax, eax
je 0x559676
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x659a1c], eax
mov esi, dword [ebp - 0x18]
call dword [0x64f610]
test eax, eax
je 0x55969e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x559691
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x5596b3
push 4
pop eax
jmp 0x55975b
cmp dword [ebp - 0x14], edi
je 0x5596b3
push dword [0x659a10]
call dword [0x64f5f4]
push 3
jmp 0x559698
mov eax, dword [0x659a1c]
mov ebx, dword [0x64f5f4]
cmp eax, esi
je 0x559711
cmp dword [0x659a20], esi
je 0x559711
push eax
call ebx
push dword [0x659a20]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x559711
test eax, eax
je 0x559711
call ecx
test eax, eax
je 0x559706
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x559706
test byte [ebp - 8], 1
jne 0x559711
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x559741
mov eax, dword [0x659a14]
cmp eax, esi
je 0x55973e
push eax
call ebx
test eax, eax
je 0x55973e
call eax
mov edi, eax
test edi, edi
je 0x55973e
mov eax, dword [0x659a18]
cmp eax, esi
je 0x55973e
push eax
call ebx
test eax, eax
je 0x55973e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x659a10]
call ebx
test eax, eax
je 0x559759
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x55975b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00541b41
leave
ret
Function at 0x5601c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d48a1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x64e0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov byte [esi], 4
mov dword [esi + 4], vtable.ByteArray.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edi, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [edi], vtable.ByteArray.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [esi + 0x2c], vtable.CArrayNoThrow_class_ASN1__class_ASN1_const__.0
mov dword [esi + 0x30], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov byte [ebp - 4], 2
mov ebx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push ecx
mov byte [esi + 0x40], 1
push dword [ebx + 0x10]
call fcn.0055f1f0
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [edi + 0xc]
mov byte [ecx + eax], 4
mov eax, dword [edi + 4]
test eax, eax
je 0x560292
mov eax, dword [eax + 4]
add eax, dword [edi + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x5602a4
mov eax, dword [eax + 4]
add eax, dword [ebx + 0xc]
push dword [ebx + 0x10]
push eax
push ecx
call fcn.005495a0
add esp, 0xc
push dword [ebx + 0x10]
lea ecx, [esi + 4]
push dword [ebp + 0xc]
push edi
call fcn.005612e0
mov al, byte [esi + 0x40]
and al, 0xfc
or al, 4
mov byte [esi + 0x40], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5602e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d48dd
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x64e0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov bl, byte [ebp + 8]
mov byte [edi], bl
mov dword [edi + 4], vtable.ByteArray.0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x18], vtable.ByteArray.0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], vtable.CArrayNoThrow_class_ASN1__class_ASN1_const__.0
mov dword [edi + 0x30], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
push ecx
push 2
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 2
call fcn.00561180
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 4]
mov eax, dword [edi + 0x24]
mov byte [ecx + eax], bl
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 4]
mov eax, dword [edi + 0x24]
mov byte [ecx + eax + 1], 0
mov al, byte [edi + 0x40]
and al, 0xfc
or al, 4
mov byte [edi + 0x40], al
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x568060
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov dword [esi], vtable.CommandLine.0
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [edx], ax
jne 0x568090
xor ecx, ecx
jmp 0x5680a4
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x568095
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004035e0
lea ebx, [esi + 0x24]
mov dword [esi + 0x20], 0
mov dword [ebx], 0
mov dword [esi + 0x1c], 0x60d320
cmp dword [edi + 0x14], 8
jb 0x5680cc
mov edi, dword [edi]
push ebx
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esi + 0x20], eax
test eax, eax
mov eax, esi
jne 0x5680e3
mov dword [ebx], 0
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x569230
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
mov bl, cl
call fcn.00546fa0
add esp, 0xc
cmp word [0x659b20], 0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x400
mov dword [ebp - 0x30], 0x60d390
jne 0x56927a
push 0x1000
push 0x659b20
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test bl, bl
mov dword [ebp - 0x2c], 0x659b20
mov dword [ebp - 0x20], 1
pop ebx
mov dword [ebp - 0x28], 0x60d394
jne 0x56929b
mov dword [ebp - 0x28], 0x60d3a8
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
dec eax
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x56cc30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x64e0a0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [edi + 4], 0x100
mov dword [esp + 0x18], edi
jne 0x56cd20
cmp dword [edi + 8], 9
jne 0x56cd20
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.00423869
cmp esi, eax
jne 0x56cd20
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x56cd20
push 0x10
call ebx
mov ebx, dword [esi + 0x88]
push 0
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
shr eax, 0xf
and al, 1
mov eax, 0
sete al
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
lea eax, [eax*2 - 1]
add ebx, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
push ebx
mov eax, dword [eax + 0x164]
call eax
test al, al
je 0x56cd20
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
je 0x56cd3c
mov eax, dword [eax + 0x164]
push 0
push ecx
add ebx, edi
push ebx
mov ecx, esi
call eax
test al, al
jne 0x56ccf3
mov edi, dword [esp + 0x18]
push edi
mov ecx, esi
call fcn.004257c8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00541b41
mov esp, ebp
pop ebp
ret 4
push ecx
push dword [esi + 0x88]
mov ecx, esi
call dword [eax + 0x168]
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
lea eax, [esp + 0x20]
push eax
push dword [esi + 0x20]
call edi
mov eax, dword [esi]
push 0
push dword [esi + 0x88]
mov ecx, esi
call dword [eax + 0x160]
mov eax, dword [esi]
push 1
push ebx
mov ecx, esi
mov dword [esi + 0x88], ebx
call dword [eax + 0x160]
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push dword [esi + 0x88]
mov ecx, esi
call dword [eax + 0x168]
push 1
lea eax, [esp + 0x20]
push eax
push dword [esi + 0x20]
call edi
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00541b41
mov esp, ebp
pop ebp
ret 4
Function at 0x56f690
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
push 0
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
call dword [0x649010]
mov esi, eax
cmp esi, 0xffffffff
je 0x56f765
test esi, esi
je 0x56f765
push edi
lea eax, [ebp - 4]
push eax
push esi
mov byte [ebp + 0xb], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], 0
mov edi, eax
ja 0x56f753
cmp edi, 0x6400000
ja 0x56f753
lea eax, [edi + 1]
push ebx
push eax
call fcn.0042162b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x56f752
lea eax, [edi + 1]
push eax
push 0
push ebx
call fcn.00546fa0
add esp, 0xc
lea eax, [ebp - 8]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], edi
je 0x56f744
push dword [ebp + 0xc]
call fcn.00421634
add esp, 4
pop ebx
push esi
call dword [0x649008]
mov al, byte [ebp + 0xb]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov byte [ebp + 0xb], 1
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edi
pop ebx
push esi
call dword [0x649008]
mov al, byte [ebp + 0xb]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x56f770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call dword [0x649010]
mov edi, eax
cmp edi, 0xffffffff
je 0x56f7ca
test edi, edi
je 0x56f7ca
push ebx
push esi
mov esi, dword [ebp + 0x10]
push 0
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 8], esi
push edi
sete bl
call dword [0x649008]
pop esi
mov al, bl
pop ebx
pop edi
pop ebp
ret 0xc
xor al, al
pop edi
pop ebp
ret 0xc