joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
xor ebx, ebx
movq qword [ebp - 0xc], xmm0
cmp dword [ebp + 8], 2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], ebx
je 0x401040
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004011ff
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
jne 0x40107b
pop edi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004011ff
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x401092
lea ebx, [eax + 3]
jmp 0x4011e6
cmp dword [ebp - 8], ebx
je 0x4010a1
mov ebx, 4
jmp 0x4011e6
push esi
mov esi, dword [ebp - 0xc]
xor ecx, ecx
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0040360f
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4010cb
lea ebx, [eax + 5]
jmp 0x4011e5
push 0
lea ecx, [ebp - 0x10]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4011d5
mov eax, dword [ebp - 0x10]
cmp esi, eax
jne 0x4011d5
mov ecx, dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
mov byte [ecx + eax], bl
call edi
mov esi, eax
test esi, esi
jne 0x40111a
mov edi, dword [ebp - 0x18]
lea ebx, [eax + 7]
jmp 0x4011da
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040360f
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x401145
mov edi, dword [ebp - 0x18]
lea ebx, [eax + 8]
jmp 0x4011da
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push 0
push 0xfde9
call edi
cmp eax, esi
mov eax, dword [ebp - 0x14]
je 0x40116f
push eax
mov ebx, 9
call fcn.004035f4
mov edi, dword [ebp - 0x18]
add esp, 4
jmp 0x4011da
lea ecx, [eax + esi*2]
mov edi, eax
cmp eax, ecx
jae 0x4011c7
mov ebx, ecx
nop word [eax + eax]
push 0x411bec
push edi
call fcn.00401d47
mov esi, eax
add esp, 8
test esi, esi
je 0x4011c1
mov ecx, edi
xor eax, eax
mov word [esi], ax
add esi, 2
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4011a1
sub ecx, edx
sar ecx, 1
je 0x4011bb
push edi
push 3
call dword [sym.imp.SHELL32.dll_SHAddToRecentDocs]
mov edi, esi
cmp esi, ebx
jb 0x401180
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
push eax
call fcn.004035f4
mov edi, dword [ebp - 0x18]
add esp, 4
jmp 0x4011da
mov ebx, 6
push dword [ebp - 0x1c]
call fcn.004035f4
add esp, 4
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004011ff
mov esp, ebp
pop ebp
ret

Function at 0x406629
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004062a6
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2f133ce3
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5955211f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1002aaee
pop dword [ebp - 0xc]
mov eax, 0x95cff4de
add eax, 0x7a32b610
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xc6fc479e
add dword [ebp - 0x1c], 0x8755fdad
mov dword [ebp - 0x18], 0x43388c52
sub dword [ebp - 0x18], 0x1105400d
mov dword [ebp - 0x14], 0x772b78d8
add dword [ebp - 0x14], 0xd520cb56
mov dword [ebp - 0x10], 0xe6536c9f
add dword [ebp - 0x10], 0x19ac9361
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xa8fd6ae0
sub dword [ebp - 0x1c], 0x348b018a
mov dword [ebp - 0x18], 0x402d675e
add dword [ebp - 0x18], 0x13efa17
mov dword [ebp - 0x14], 0x8b135e51
add dword [ebp - 0x14], 0xd85c0e1b
mov dword [ebp - 0x10], 0x43119f3f
add dword [ebp - 0x10], 0xbcee60c1
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x35a88
push 0
call eax
mov ecx, 0x44c3
xor esi, esi
add esi, eax
mov edi, 0x2d8be8a
add edi, 0xd2ad776
add edi, dword [ebp - 0xc]
mov ebx, 0x4f8b96c7
sub dword [ebp - 4], 0x82823235
mov edx, dword [edi]
xor dword [ebp - 8], 0xb64e91b4
add edx, ebx
sub dword [ebp - 4], eax
mov dword [esi], edx
add dword [ebp - 4], 0x265000ab
add esi, 0x3df06a6f
sub esi, 0x3df06a6b
add edi, 0xe38e2c43
add edi, 0x1c71d3c1
loop 0x1002abfc
add eax, 0x9491b7d7
add eax, 0x6b6f4e08
mov ebx, eax
add eax, 5
mov ecx, 0x5d8e6b62
add ecx, 0xb271949e
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x425a70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20000]
push edi
or ebp, 0xffffffff
jmp 0x425a92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x425a99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x425a88
mov eax, 1
add ebx, ebx
jne 0x425aab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x425aa0
jne 0x425abc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x425aa0
xor ecx, ecx
sub eax, 3
jb 0x425ad0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x425b42
mov ebp, eax
add ebx, ebx
jne 0x425adb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x425ae8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x425b0c
inc ecx
add ebx, ebx
jne 0x425af8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x425aed
jne 0x425b09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x425aed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x425b2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x425b1d
jmp 0x425a8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x425b2c
add edi, ecx
jmp 0x425a8e
pop esi
mov edi, esi
mov ecx, 0x3f4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x425b4a
cmp byte [edi], 3
jne 0x425b4a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x425b4f
lea edi, [esi + 0x23000]
mov eax, dword [edi]
or eax, eax
je 0x425bc7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3951c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x39558]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x425b7c
mov ecx, edi
jns 0x425bab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x39560]
or eax, eax
je 0x425bc1
mov dword [ebx], eax
add ebx, 4
jmp 0x425b99
call dword [esi + 0x3955c]
mov ebp, dword [esi + 0x39564]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x425bfb
sub esp, 0xffffff80
jmp 0x40152c

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1001bd34
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret

Function at 0x1004022c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1004023b
pop dword [ebp - 0x24]
mov eax, 0x4f8343c2
sub eax, 0x3f7f4187
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x9633bda4
add dword [ebp - 0x34], 0xb81e87a7
mov dword [ebp - 0x30], 0x953bae5f
sub dword [ebp - 0x30], 0x6308621a
mov dword [ebp - 0x2c], 0x9637f84a
sub dword [ebp - 0x2c], 0x49ebb41c
mov dword [ebp - 0x28], 0x738af8a0
sub dword [ebp - 0x28], 0x738af8a0
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xddb55f46
add dword [ebp - 0x34], 0x96bd0a10
mov dword [ebp - 0x30], 0x720454d5
sub dword [ebp - 0x30], 0x3097f360
mov dword [ebp - 0x2c], 0x27b56be0
add dword [ebp - 0x2c], 0x3bba008c
mov dword [ebp - 0x28], 0x253f78b4
add dword [ebp - 0x28], 0xdac0874c
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xb01c03db
sub eax, 0xa017b323
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x48321
push 0
call eax
mov ecx, 0x819044ba
add ecx, 0x7e6ff9c2
mov esi, eax
mov edx, 0x10075000
add edx, dword [ebp - 0x24]
mov edi, 0xa1b51971
sub edi, 0xa3c9e57d
xor dword [ebp - 0x1c], 0x798bed2a
mov ebx, dword [edx]
sub dword [ebp - 0x20], 0x66a933fc
sub ebx, edi
xor dword [ebp - 0x14], ebx
mov dword [esi], ebx
sub dword [ebp - 0x10], esi
add esi, 0x7fc103b0
add esi, 0x803efc54
add edx, 4
loop 0x10040352
add eax, 0xa537f261
add eax, 0x5ac8fa62
mov ebx, eax
add eax, 5
mov ecx, 0x8dbeffa9
add ecx, 0x82410057
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x4018fa
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ecx
push edx
mov ecx, 0xfe
add ecx, 1
push ecx
push ebx
push 0x404734
call sub.KERNEL32.dll_lstrcpynA
pop edx
pop ecx
push ecx
push edx
push 0xfe
push 0x404734
push 0x404039
call fcn.004010ba
pop edx
pop ecx
push ecx
push edx
push 0xfe
push 0x404734
push 0x404062
call fcn.004010ba
pop edx
pop ecx
push esi
mov esi, dword [0x404c90]
call fcn.004010fc
push ecx
push edx
push 0x404ca0
push dword [0x404730]
call sub.KERNEL32.dll_lstrcpyA
pop edx
pop ecx
pop esi
push ecx
push edx
push 0xfe
push 0x404734
push dword [0x404730]
call fcn.004010ba
pop edx
pop ecx
push ecx
push edx
push 0xfe
push 0x404734
push 0x404077
call fcn.004010ba
pop edx
pop ecx
cmp dword [0x404c90], 0
jne 0x4019c2
push ecx
push edx
mov ecx, 0xfe
add ecx, 1
push ecx
push 0x404038
push 0x404b74
call sub.KERNEL32.dll_lstrcpynA
pop edx
pop ecx
jmp 0x4019e2
push 0
push 0x100
push 0x404b74
push 0
push dword [0x404c90]
push 0
push 0x1200
call sub.KERNEL32.dll_FormatMessageA
push ecx
push edx
push 0xfe
push 0x404734
push 0x404039
call fcn.004010ba
pop edx
pop ecx
push ecx
push edx
push 0xfe
push 0x404734
push 0x404b74
call fcn.004010ba
pop edx
pop ecx
push ecx
push pe_overlay
push str.ERROR:
call fcn.00401000
push 0
push 0x404c88
push eax
push str.ERROR:
push dword [0x404c98]
call sub.KERNEL32.dll_WriteFile
pop ecx
mov eax, dword [0x404c88]
push ecx
push pe_overlay
push 0x404734
call fcn.00401000
push 0
push 0x404c88
push eax
push 0x404734
push dword [0x404c98]
call sub.KERNEL32.dll_WriteFile
pop ecx
mov eax, dword [0x404c88]
push 0xfe
push 0x404840
call sub.KERNEL32.dll_GetConsoleTitleA
push ecx
push edx
push 0x100
push 4
push 0x404950
push 0x404840
call fcn.00401072
pop edx
pop ecx
push ecx
push edx
mov eax, 0x100
cmp eax, 0x10000
jbe 0x401aaa
mov eax, 0x10000
push eax
push str.CMD
push 0x404950
call fcn.0040101d
pop edx
pop ecx
je 0x401b4a
push ecx
push edx
push 0x100
push 8
push 0x404950
push 0x404840
call fcn.00401072
pop edx
pop ecx
push ecx
push edx
mov eax, 0x100
cmp eax, 0x10000
jbe 0x401aef
mov eax, 0x10000
push eax
push str.Command
push 0x404950
call fcn.0040101d
pop edx
pop ecx
je 0x401b4a
push ecx
push pe_overlay
push str._r_n__press_ENTER:
call fcn.00401000
push 0
push 0x404c88
push eax
push str._r_n__press_ENTER:
push dword [0x404c98]
call sub.KERNEL32.dll_WriteFile
pop ecx
mov eax, dword [0x404c88]
push 0
push 0x404c88
push 1
push 0x404734
push dword [0x404c94]
call fcn.00402bc0
mov eax, 0xffffffff
pop ebx
leave
ret 4
Function at 0x1001cf50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100df320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1001cf80
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1001cfb0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1001cfb0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1001d0ab
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1001cfd9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1001d00d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1001d06c
sub eax, 1
je 0x1001d06c
sub eax, 2
jne 0x1001d0ab
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1009d350
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1001d08a
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001d0ab
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1001d0ab
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
Function at 0x4062c0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
xor esi, esi
call edi
mov ecx, 0x8000
test cx, ax
je 0x4062dd
mov esi, 1
push 0x11
call edi
mov edx, 0x8000
test dx, ax
je 0x4062ee
or esi, 2
push 0xa4
call edi
mov ecx, 0x8000
test cx, ax
je 0x406302
or esi, 4
push 0xa5
call edi
mov edx, 0x8000
test dx, ax
je 0x406316
or esi, 0x10
pop edi
mov eax, esi
pop esi
ret
Function at 0x41b400
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, 0x4d4110
mov esi, 0x3f
nop dword [eax]
cmp dword [0x4d4110], 0
je 0x41b43b
call edi
cmp dword [0x4d4118], eax
jne 0x41b447
mov eax, dword [0x4d4114]
inc eax
jmp 0x41b45d
mov eax, 1
xchg dword [ebp], eax
test eax, eax
je 0x41b451
sub esi, 1
jne 0x41b420
push esi
call ebx
jmp 0x41b418
call edi
mov dword [0x4d4118], eax
mov eax, 1
cmp dword [0x4d411c], 0
pop edi
pop esi
pop ebp
mov dword [0x4d4114], eax
pop ebx
jne 0x41b4d4
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x1c]
lea eax, [edx - 1]
test edx, eax
jne 0x41b4fb
mov ecx, dword [esp + 4]
lea eax, [ecx - 1]
test ecx, eax
jne 0x41b4fb
mov dword [0x4d4124], edx
mov dword [0x4d4120], ecx
mov dword [0x4d4128], 0x40000
mov dword [0x4d412c], 0x200000
mov dword [0x4d4130], 7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, 0x55555550
and eax, 0xfffffff8
or eax, 8
mov dword [0x4d411c], eax
mov eax, dword [0x4d4114]
sub eax, 1
mov dword [0x4d4114], eax
jne 0x41b4f2
mov dword [0x4d4118], 0
mov dword [0x4d4110], 0
mov eax, 1
add esp, 0x24
ret
call fcn.004a6167
int3
Function at 0x428060
Capabilities:
Get number of processors

Disassembly:
sub esp, 0x64
push esi
mov esi, dword [esp + 0x6c]
push esi
call fcn.00411170
add esp, 4
test eax, eax
je 0x4282c0
push ebx
push 0x4d1158
mov dword [esp + 0x20], 2
call fcn.0042e480
mov ecx, dword [0x4df87c]
mov edx, dword [eax]
mov eax, dword fs:[0x2c]
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0x24]
and eax, 4
mov dword [esp + 0x34], 9
shl eax, 9
or eax, edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x24], eax
mov eax, 0x3f
mov word [esp + 0x56], ax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push eax
call fcn.00411340
add esp, 8
test eax, eax
jne 0x428275
cmp dword [esp + 0x4c], 6
jne 0x428103
mov esi, 0x4bafb8
jmp 0x42827a
mov al, byte [esp + 0x34]
test al, 8
je 0x428115
mov esi, 0x4bafdc
jmp 0x42827a
test al, 4
je 0x428123
mov esi, 0x4bb460
jmp 0x42827a
test al, 1
je 0x428275
lea eax, [esp + 0x1c]
mov dword [esp + 8], 0x411260
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
call fcn.0043c310
mov ecx, dword [esp + 0x40]
mov esi, eax
push 0
push dword [ecx]
call fcn.0042f4c0
push esi
call fcn.0043c310
add esp, 0x10
test byte [esp + 0x34], 1
je 0x428253
mov ebx, dword [ebx + 4]
push edi
mov edi, dword [ebx]
add edi, 0xfffffffc
mov ecx, dword [edi]
test ecx, ecx
je case.0x42819d.3
mov eax, dword [ecx]
and eax, 0xfffbffff
cmp eax, 0x40
ja 0x4281cd
je 0x4281c6
dec eax
cmp eax, 0x1f
ja case.0x42819d.3
movzx eax, byte [eax + 0x4282e0]
jmp dword [eax*4 + 0x4282cc]
mov esi, 0x4bafbc
jmp 0x42823b
mov esi, 0x4bafc8
jmp 0x42823b
mov esi, 0x4bafd0
jmp 0x42823b
mov esi, 0x4bafd4
jmp 0x42823b
mov esi, 0x4bafc0
jmp 0x42823b
cmp eax, 0xc00
ja 0x428207
je 0x428200
cmp eax, 0x80
je 0x4281f9
cmp eax, 0x100
je 0x4281f2
cmp eax, 0x400
jne case.0x42819d.3
mov esi, 0x4b9448
jmp 0x42823b
mov esi, 0x4bafd8
jmp 0x42823b
mov esi, 0x4bafc4
jmp 0x42823b
mov esi, 0x4bafcc
jmp 0x42823b
cmp eax, 0x1000
je 0x42822f
cmp eax, 0x8000
jne case.0x42819d.3
push ecx
call fcn.0041ff00
add esp, 4
mov esi, str.OABDTLNMHPSU
test eax, eax
mov ecx, 0x4bafb4
cmove esi, ecx
jmp 0x42823b
mov esi, 0x4bafb8
jmp 0x42823b
mov esi, 0x4bafdc
mov dword [ebx], edi
mov eax, dword [edi]
pop edi
test dword [eax], 0xb405
je 0x42827a
push eax
call fcn.004237d0
add esp, 4
jmp 0x42827a
mov eax, dword [esp + 0x38]
test eax, eax
je 0x428275
push eax
call fcn.0043b7c0
add esp, 4
cmp eax, 0xe
je 0x42826e
cmp eax, 0xf
jne 0x428275
mov esi, 0x4bafdc
jmp 0x42827a
mov esi, 0x4bb464
mov eax, dword [esp + 0x3c]
pop ebx
mov eax, dword [eax]
test eax, eax
je 0x428295
add eax, 0xfffffffc
push eax
push 0
call fcn.00435bb0
add esp, 8
jmp 0x4282a8
push 0
push 0
push 0
push 0x2333
call fcn.0044b600
add esp, 0x10
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4282b9
push eax
call fcn.0043c2d0
add esp, 4
mov eax, esi
pop esi
add esp, 0x64
ret
mov eax, 0x4bafdc
pop esi
add esp, 0x64
ret
Function at 0x434530
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword [0x4df87c]
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 4]
push dword [eax + 0x30]
call fcn.0042ea30
mov ecx, dword [esi + 4]
add esp, 4
mov eax, dword [ecx]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0xc]
mov dword [ecx + 0x30], eax
mov eax, dword [ecx]
movzx ebx, word [ecx + 0x34]
mov eax, dword [eax - 4]
movzx edx, word [eax + 0x12]
mov eax, edx
or eax, ebx
test al, 1
je 0x43457f
mov eax, 1
jmp 0x434597
test al, 2
je 0x43458a
mov eax, 2
jmp 0x434597
test al, 4
je 0x434595
mov eax, 4
jmp 0x434597
xor eax, eax
mov word [ecx + 0x34], ax
add dword [ecx], 0xfffffffc
mov eax, dword [ecx]
test bl, 4
jne 0x4345e9
test dl, 4
je 0x4345e9
test dword [ecx + 0x10], 0xb405
lea eax, [ecx + 0x10]
je 0x4345c5
push eax
call fcn.004237d0
mov ecx, dword [esi + 4]
add esp, 4
add dword [ecx], 0xfffffffc
mov eax, dword [ecx]
mov eax, dword [eax]
movups xmm0, xmmword [eax]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x20], xmm0
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [eax], 0
jmp 0x434601
add eax, 0xfffffffc
mov dword [ecx], eax
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x434601
push eax
call fcn.004237d0
add esp, 4
cmp dword [0x4d3f70], 0
je 0x43460f
call fcn.0041a5d0
mov eax, dword [esi + 4]
pop esi
pop ebx
test byte [eax + 0x34], 7
mov eax, 0
setne al
ret