joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d56f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x41dae0
call fcn.0040d680
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov edi, 0x94
push edi
push 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x40d3da
push 0x12
call fcn.004c8000
pop ecx
jmp 0x40d564
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x40d3f8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40d564
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x20]
cmp esi, 2
je 0x40d42a
or edi, 0x8000
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x42542c], esi
mov dword [0x425434], eax
mov dword [0x425438], ecx
mov dword [0x42543c], edx
mov dword [0x425430], edi
call fcn.0040d34e
mov dword [ebp - 0x20], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.0040e0b6
pop ecx
test eax, eax
jne 0x40d472
push 0x1c
call fcn.0040d32a
pop ecx
call fcn.0040f594
test eax, eax
jne 0x40d483
push 0x10
call fcn.0040d32a
pop ecx
call fcn.004106d6
mov dword [ebp - 4], ebx
call fcn.00410496
test eax, eax
jge 0x40d49c
push 0x1b
call fcn.0040f88e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x426c9c], eax
call fcn.00410361
mov dword [0x424f70], eax
call fcn.004102a8
test eax, eax
jge 0x40d4c2
push 8
call fcn.0040f88e
pop ecx
call fcn.00410035
test eax, eax
jge 0x40d4d3
push 9
call fcn.0040f88e
pop ecx
push ebx
call fcn.0040f9aa
pop ecx
test eax, eax
je 0x40d4e5
push eax
call fcn.0040f88e
pop ecx
call fcn.0040ffd8
test byte [ebp - 0x44], bl
je 0x40d4f5
movzx ecx, word [ebp - 0x40]
jmp 0x40d4f8
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call main
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x40d515
push eax
call fcn.0040fb0a
call fcn.0040fb2c
jmp 0x40d54a
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x40d569
mov eax, 0xff
call fcn.0040d6c5
ret
call fcn.0040c412
jmp 0x40d38f
Function at 0x77ec6b40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0
push eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
pop eax
mov esi, dword [ebp - 4]
call fcn.77ec6a50
push 0x46cd2c
push esi
mov dword [0x478518], eax
call eax
push 0x46cd3c
push esi
mov dword [0x478514], eax
call dword [0x478518]
push 0x46cd50
push esi
mov dword [0x478510], eax
call dword [0x478518]
push 0x46cd60
push esi
mov dword [0x47850c], eax
call dword [0x478518]
push 0x46cd6c
push esi
mov dword [0x478504], eax
call dword [0x478518]
push 0
mov dword [0x478508], eax
call dword [0x478510]
mov dword [0x47852c], eax
mov eax, dword [0x46914c]
push 0x40
push 0x3000
shl eax, 2
push eax
push 0
call dword [0x478508]
mov dword [0x47851c], eax
mov dword [0x478528], 7
mov dword [0x478524], 3
mov dword [0x478520], 0xd
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x77ec6c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x468040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x47852c]
lea eax, [ebp - 0x18]
add esi, dword [0x46911c]
push eax
push 0x40
push dword [0x469120]
mov dword [ebp - 0x18], 0
push esi
call dword [0x47850c]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x14], xmm0
mov eax, 0
xor edx, edx
cpuid
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov eax, 1
xor ecx, ecx
xor edx, edx
cpuid
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov ecx, dword [0x469120]
xor eax, eax
xor edx, edx
test ecx, ecx
je 0x77ec6cfb
mov edi, edi
mov cl, byte [ebp + eax - 0x14]
inc eax
xor byte [edx + esi], cl
xor ecx, ecx
cmp eax, 0x10
cmove eax, ecx
mov ecx, dword [0x469120]
inc edx
cmp edx, ecx
jb 0x77ec6ce0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push ecx
push esi
call dword [0x47850c]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.77ec6f60
mov esp, ebp
pop ebp
ret

Function at 0x77ec6d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x468040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x47852c]
lea eax, [ebp - 8]
add esi, dword [0x46911c]
push eax
push 0x40
push dword [0x469120]
mov dword [ebp - 8], 0
push esi
call dword [0x47850c]
mov ecx, dword [0x469120]
xor eax, eax
test ecx, ecx
je 0x77ec6d77
mov cl, byte [0x469118]
xor byte [eax + esi], cl
inc eax
mov ecx, dword [0x469120]
cmp eax, ecx
jb 0x77ec6d63
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ecx
push esi
call dword [0x47850c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.77ec6f60
mov esp, ebp
pop ebp
ret
Function at 0x407c6f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433c40]
jne 0x407c79
repz ret
jmp fcn.0040c3ad

Function at 0x40b100
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405ea0
and dword [ebp - 4], 0
cmp dword [0x43d600], 0
mov ebx, eax
jne 0x40b1b1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b262
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b262
push eax
call fcn.00405e2e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43d600], eax
call esi
push eax
call fcn.00405e2e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43d604], eax
call esi
push eax
call fcn.00405e2e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43d608], eax
call esi
push eax
call fcn.00405e2e
pop ecx
mov dword [0x43d610], eax
test eax, eax
je 0x40b1b1
push 0x42fec0
push edi
call esi
push eax
call fcn.00405e2e
pop ecx
mov dword [0x43d60c], eax
mov eax, dword [0x43d60c]
cmp eax, ebx
je 0x40b209
cmp dword [0x43d610], ebx
je 0x40b209
push eax
call fcn.00405ea9
push dword [0x43d610]
mov esi, eax
call fcn.00405ea9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b209
test edi, edi
je 0x40b209
call esi
test eax, eax
je 0x40b200
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b200
test byte [ebp - 0xc], 1
jne 0x40b209
or dword [ebp + 0x10], 0x200000
jmp 0x40b242
mov eax, dword [0x43d604]
cmp eax, ebx
je 0x40b242
push eax
call fcn.00405ea9
pop ecx
test eax, eax
je 0x40b242
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b242
mov eax, dword [0x43d608]
cmp eax, ebx
je 0x40b242
push eax
call fcn.00405ea9
pop ecx
test eax, eax
je 0x40b242
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43d600]
call fcn.00405ea9
pop ecx
test eax, eax
je 0x40b262
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b264
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410690
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x24
mov eax, dword [0x46398c]
xor eax, esp
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x28]
cmp eax, 0x3e9
ja 0x410794
je case.0x41079e.1002
cmp eax, 0x69
ja case.0x41079e.1002
movzx eax, byte [eax + 0x41082c]
jmp dword [eax*4 + 0x41080c]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0xc]
shr ecx, 0xa
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00439ac1
add esp, 0x24
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
or ecx, 0xffffffff
cmp dword [esp + 0xc], 0xffffffff
cmovb ecx, dword [esp + 0xc]
shr ecx, 0xa
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00439ac1
add esp, 0x24
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x1c]
shr ecx, 0xa
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00439ac1
add esp, 0x24
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 8]
shr ecx, 0xa
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00439ac1
add esp, 0x24
ret
mov ecx, 1
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00439ac1
add esp, 0x24
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x14]
shr ecx, 0xa
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00439ac1
add esp, 0x24
ret
sub eax, 0x3ea
cmp eax, 5
ja case.0x41079e.1002
jmp dword [eax*4 + 0x410898]
mov ecx, dword [0x465d6c]
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00439ac1
add esp, 0x24
ret
mov eax, dword [0x465d6c]
lea ecx, [eax + eax*2]
shl ecx, 3
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00439ac1
add esp, 0x24
ret
mov ecx, dword [0x465d64]
sub ecx, dword [0x465d60]
sar ecx, 2
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00439ac1
add esp, 0x24
ret
xor ecx, ecx
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00439ac1
add esp, 0x24
ret
Function at 0x420b20
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ecx
mov ax, word [esp + 0x10]
mov dword [esp], 0
push esi
test ax, ax
je 0x420b57
push 0
lea ecx, [esp + 8]
movzx eax, ax
push ecx
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00420850
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x420b6a
push dword [esp + 0xc]
call fcn.00420850
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
push 0
push esi
call fcn.00420d10
add esp, 8
test esi, esi
pop esi
je 0x420b82
movzx eax, word [esp]
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x420b90
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov dword [esp], 0
test eax, eax
je 0x420bcf
push 0
lea ecx, [esp + 4]
push ecx
push eax
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00420850
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push eax
call fcn.00420d10
mov eax, dword [esp + 8]
add esp, 0xc
ret
push dword [esp + 8]
call fcn.00420850
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push eax
call fcn.00420d10
mov eax, dword [esp + 8]
add esp, 0xc
ret

Function at 0x428350
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
push esi
mov dword [edi], 0
mov dword [eax], 0
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x42843f
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42843f
push ebp
push esi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, eax
test ebp, ebp
je 0x428438
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x428437
sub esi, 1
je 0x4283f5
sub esi, 6
je 0x4283f5
sub esi, 6
je 0x4283cc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [edi], eax
test eax, eax
je 0x428430
inc eax
jmp 0x428410
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4283d1
sub ecx, edx
sar ecx, 1
mov dword [edi], ecx
je 0x428430
push ebx
call fcn.004368e0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], eax
jmp 0x428430
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x428400
sub ecx, edx
mov dword [edi], ecx
je 0x428430
lea eax, [ecx + 1]
push eax
call fcn.00410640
mov esi, dword [esp + 0x1c]
mov dword [esi], eax
push dword [edi]
push ebx
push eax
call fcn.0043aa10
mov eax, dword [edi]
add esp, 0x10
mov ecx, dword [esi]
mov byte [ecx + eax], 0
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebp
xor eax, eax
cmp dword [edi], eax
pop edi
setne al
pop esi
ret
Function at 0x428450
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4284e9
push ebp
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
lea eax, [esi*2 + 2]
cmp ebp, 0xd
je 0x428482
lea eax, [esi + 1]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4284e1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4284cd
push esi
push dword [esp + 0x20]
push ebx
cmp ebp, 0xd
jne 0x4284bc
call fcn.004368c0
add esp, 0xc
xor eax, eax
mov word [ebx + esi*2], ax
jmp 0x4284c8
call fcn.0043aa10
add esp, 0xc
mov byte [ebx + esi], 0
mov edi, 1
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push ebp
call dword [sym.imp.USER32.dll_SetClipboardData]
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebp
mov eax, edi
pop edi
pop ecx
ret

Function at 0x429e10
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x10
cmp dword [0x464834], 0
je 0x429f2a
mov ax, word [0x464810]
test ax, ax
jne 0x429ece
push ebx
mov bx, word [0x464828]
push edi
mov di, word [0x464824]
cmp di, bx
ja 0x429ecc
mov ax, word [0x46482c]
mov dx, word [0x464852]
mov cx, word [0x464850]
mov word [esp + 8], ax
mov word [esp + 0x10], ax
movzx eax, word [0x464830]
mov word [esp + 0x14], ax
xor eax, eax
mov word [0x464830], ax
mov word [0x464828], ax
lea eax, [esp + 0x10]
push eax
mov word [esp + 0xe], di
push dword [esp + 0xc]
mov word [esp + 0x16], dx
mov word [esp + 0x14], cx
push dword [esp + 0x14]
mov word [esp + 0x1e], di
push dword [0x464834]
mov word [esp + 0x26], bx
push dword [0x463374]
mov word [0x464824], dx
mov word [0x46482c], cx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
mov ax, word [0x464810]
pop edi
pop ebx
mov cx, word [0x464814]
cmp word [0x464818], cx
je 0x429efa
test ax, ax
je 0x429ee8
test cx, cx
jne 0x429eff
call fcn.00429f60
mov ax, word [0x464810]
mov cx, word [0x464814]
test cx, cx
je 0x429f2a
test ax, ax
jne 0x429f2a
mov ax, word [0x464856]
cmp ax, word [0x46481c]
jne 0x429f22
mov ax, word [0x464854]
cmp ax, word [0x464820]
je 0x429f2a
add esp, 0x10
jmp 0x429f30
add esp, 0x10
ret
movzx eax, word [0x46481c]
mov word [0x464856], ax
movzx eax, word [0x464820]
mov word [0x464854], ax
push dword [0x464854]
push dword [0x463374]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
ret

Function at 0x434c60
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
inc eax
push eax
call fcn.00410640
push dword [edi]
mov esi, eax
push dword [esp + 0x18]
push esi
call fcn.0043aa10
mov ecx, dword [edi]
add esp, 0x10
cmp dword [esp + 0xc], 1
mov byte [esi + ecx], 0
jne 0x434c9c
xor eax, eax
cmp dword [edi], eax
jbe 0x434c9c
xor byte [eax + esi], 0xf3
inc eax
cmp eax, dword [edi]
jb 0x434c93
pop edi
mov eax, esi
pop esi
ret
Function at 0x435e90
Capabilities:
Check os version

Disassembly:
sub esp, 0x134
mov eax, dword [0x46398c]
xor eax, esp
mov dword [esp + 0x130], eax
push esi
push edi
push pe_nt_image_headers32
call fcn.00410640
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 4
mov edi, eax
mov dword [esp + 8], 0x94
lea eax, [esp + 8]
push eax
call esi
test eax, eax
je 0x436006
mov eax, dword [esp + 0x18]
mov ecx, str.Windows
cmp eax, 3
ja case.default.0x435ee4
jmp dword [eax*4 + 0x436034]
cmp dword [esp + 0xc], 4
jne 0x435f0f
cmp dword [esp + 0x10], 0xa
jae 0x435f03
mov ecx, str.Windows_95
jmp case.default.0x435ee4
jne 0x435f0f
mov ecx, str.Windows_98
jmp case.default.0x435ee4
mov ecx, str.Windows_ME
jmp case.default.0x435ee4
cmp dword [esp + 0xc], 6
jne 0x435f54
lea eax, [esp + 0x9c]
mov dword [esp + 0x9c], 0x9c
push eax
call esi
test eax, eax
je 0x435f4d
cmp byte [esp + 0x136], 1
mov ecx, str.Windows_Vista
mov eax, str.Windows_Server_2008
cmovne ecx, eax
jmp case.default.0x435ee4
mov ecx, str.Windows
jmp case.default.0x435ee4
cmp dword [esp + 0xc], 5
jne 0x435f7d
cmp dword [esp + 0x10], 2
jb 0x435f69
mov ecx, str.Windows_Server_2003___XP_x64
jmp case.default.0x435ee4
cmp dword [esp + 0x10], 1
mov ecx, str.Windows_XP
mov eax, str.Windows_2000
cmovne ecx, eax
jmp case.default.0x435ee4
mov ecx, str.Windows_NT
jmp case.default.0x435ee4
mov ecx, str.Windows_32s
jmp case.default.0x435ee4
mov ecx, str.Windows_CE
movzx eax, word [esp + 0x14]
push eax
push dword [esp + 0x14]
push dword [esp + 0x14]
push ecx
push str._s__lu._lu._04d
push pe_nt_image_headers32
push edi
call fcn.00407790
add esp, 0x1c
xor esi, esi
cmp byte [esp + 0x1c], 0
je 0x435fda
nop dword [eax + eax]
movsx eax, byte [esp + esi + 0x1c]
push eax
call fcn.0043bd80
add esp, 4
test eax, eax
je 0x435fda
inc esi
cmp byte [esp + esi + 0x1c], 0
jne 0x435fc0
cmp byte [esp + esi + 0x1c], 0
lea esi, [esp + esi + 0x1c]
je 0x436019
push 0xff
push 0x451594
push edi
call fcn.00435530
push 0xff
push esi
push edi
call fcn.00435530
add esp, 0x18
jmp 0x436019
push str.Windows
push pe_nt_image_headers32
push edi
call fcn.00407790
add esp, 0xc
mov ecx, dword [esp + 0x138]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00439ac1
add esp, 0x134
ret

Function at 0x436530
Capabilities:
Query environment variable

Disassembly:
push edi
push 0
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
je 0x436562
push esi
push edi
call fcn.00410640
add esp, 4
mov esi, eax
push edi
push esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, esi
pop esi
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x44f700
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
mov eax, dword [0x46398c]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx ecx, byte [esp + 0x14]
movzx eax, byte [esp + 0x15]
shr ecx, 7
mov edx, ecx
or edx, 2
and al, 0x80
movzx eax, byte [esp + 0x16]
cmove edx, ecx
mov ecx, edx
or ecx, 4
and al, 0x80
movzx eax, byte [esp + 0x5f]
cmove ecx, edx
mov edx, ecx
or edx, 8
and al, 0x80
movzx eax, byte [esp + 0x60]
cmove edx, ecx
mov ecx, edx
or ecx, 0x10
and al, 0x80
movzx eax, byte [esp + 0x61]
cmove ecx, edx
mov edx, ecx
or edx, 0x20
and al, 0x80
movzx eax, byte [esp + 0x95]
cmove edx, ecx
mov ecx, edx
or ecx, 0x100
and al, 1
movzx eax, byte [esp + 0x94]
cmove ecx, edx
mov edx, ecx
or edx, 0x200
and al, 1
movzx eax, byte [esp + 0x18]
cmove edx, ecx
mov cl, byte [esp + 0x31]
mov esi, edx
or esi, 0x400
and al, 1
cmove esi, edx
mov eax, esi
or eax, 0x80
and cl, 1
mov ecx, dword [esp + 0x104]
cmove eax, esi
pop esi
xor ecx, esp
call fcn.00439ac1
add esp, 0x104
ret

Function at 0x44f7e0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
mov eax, dword [0x46398c]
xor eax, esp
mov dword [esp + 0x100], eax
lea eax, [esp]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov ecx, dword [esp + 0x108]
mov al, cl
shl al, 7
mov byte [esp + 0x10], al
mov al, cl
and al, 0xfe
shl al, 6
mov byte [esp + 0x11], al
mov al, cl
and al, 0xfc
shl al, 5
mov byte [esp + 0x12], al
mov al, cl
and al, 0xf8
shl al, 4
mov byte [esp + 0x5b], al
mov al, cl
and al, 0xf0
shl al, 3
mov byte [esp + 0x5c], al
mov al, cl
and al, 0xe0
shl al, 2
mov byte [esp + 0x5d], al
mov eax, ecx
shr eax, 8
and al, 1
mov byte [esp + 0x91], al
mov eax, ecx
shr eax, 9
and al, 1
mov byte [esp + 0x90], al
mov eax, ecx
shr eax, 0xa
and al, 1
shr ecx, 7
mov byte [esp + 0x14], al
and cl, 1
lea eax, [esp]
mov byte [esp + 0x2d], cl
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00439ac1
add esp, 0x104
ret
Function at 0x401970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0xbc]
mov eax, dword [ecx + 0x14]
add esi, edi
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0xc], edx
mov dword [esi + 8], eax
mov eax, dword [ecx + 0x18]
mov ecx, 1
mov dword [esi + 0xc], eax
mov eax, 0x100
mov dword [esi + 0x10], 1
test word [edi + 0x94], ax
jne 0x4019ba
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x78]
mov dword [ebp - 8], eax
lea eax, [edx + 0x3a]
test byte [ebp - 8], 4
je 0x4019d5
test byte [eax], 1
je 0x401a0c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
and eax, 0xfffffffb
mov dword [edi + 0x78], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 4]
or ecx, 0x200
mov edx, eax
mov dword [esi + 0x10], ecx
test byte [edx], 2
mov edx, dword [ebp - 0xc]
je 0x401a0c
mov eax, dword [edx + 0x46]
or ecx, 0x400
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x10], ecx
test dword [edi + 0x78], 0x400
je 0x401a1e
or ecx, 0x4000
mov dword [esi + 0x10], ecx
test byte [eax], 4
je 0x401a2c
or ecx, 0x100
mov dword [esi + 0x10], ecx
mov eax, dword [ebp + 8]
test byte [eax + 6], 2
je 0x401a59
or ecx, 0x80
mov eax, 1
mov dword [esi + 0x10], ecx
mov word [esi + 0x20], ax
cmp word [edi + 0x18], 3
jne 0x401a5e
mov eax, 0x2000
or word [edi + 0x7c], ax
jmp 0x401a5e
or word [esi + 0x20], 0x20
mov ecx, dword [edx + 0x3c]
mov dword [esi + 0x18], ecx
mov eax, dword [edx + 0x40]
mov dword [esi + 0x1c], eax
cmp cx, 0xd
jne 0x401ac3
mov ecx, dword [0x4b00c4]
movsx edx, word [edx]
cmp edx, dword [ecx + 0x194]
jge 0x401ab6
mov eax, dword [ecx + 0x198]
movzx eax, word [eax + edx*2]
mov dword [ecx + 0x1a0], eax
mov eax, dword [0x4b00c4]
imul edx, dword [eax + 0x1a0], 0x2c
add edx, dword [eax + 0x400]
je 0x401ab6
mov ecx, dword [edx + 0x24]
test ecx, ecx
je 0x401ab6
mov edx, dword [edx + 0xc]
call fcn.00437370
jmp 0x401ab8
xor eax, eax
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x401ac3
mov word [esi + 0x18], ax
cmp dword [edi + 0xcc], 0
jne 0x401aea
or word [esi + 0x20], 2
mov eax, 1
or dword [esi + 0x10], 8
mov ecx, dword [esi + 0x10]
movzx ecx, cx
pop edi
mov word [esi + 0x22], cx
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 0x10]
mov word [esi + 0x22], ax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret