joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4980
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14
push ebx
push ebp
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x18], ecx
xor esi, esi
mov dword [esp + 0x14], ecx
mov eax, dword [0x58b6e4]
test eax, eax
mov dword [esp + 0x10], ecx
je 0x4a49a8
cmp ecx, eax
jg 0x4a4a5e
push 0x10000
call fcn.004a47b0
cmp dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
je 0x4a49c1
mov dword [esi], eax
jmp 0x4a49c5
mov dword [esp + 0x18], eax
lea esi, [eax + 4]
lea ebx, [eax + 0x10000]
cmp esi, ebx
mov dword [esp + 0x20], eax
mov dword [eax], 0
jae 0x4a4a39
lea esp, [esp]
mov ecx, dword [esp + 0x28]
push 2
mov eax, ebx
sub eax, esi
push eax
push esi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4a4a6a
test eax, eax
mov edi, esi
je 0x4a4ad9
add eax, esi
cmp esi, eax
jae 0x4a4a14
cmp byte [edi], 0xa
je 0x4a4a88
add edi, 1
cmp edi, eax
jb 0x4a4a08
mov edx, dword [esp + 0x28]
push 0
mov ebp, edi
sub ebp, esi
push ebp
push esi
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebp
jne 0x4a4b82
cmp edi, ebx
mov esi, edi
jb 0x4a49e0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
xor ecx, ecx
cmp byte [ebx - 1], 0xd
setne cl
sub ecx, 1
and ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffc
jmp 0x4a4993
push eax
push ecx
push str._d____d_n
jmp 0x4a4b8b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv__d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0xc
jmp 0x4a4b98
mov edx, dword [esp + 0x28]
mov ebp, edi
push 0
sub ebp, esi
lea ebx, [ebp + 1]
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
je 0x4a4aae
push ebx
push eax
push str.ret__d___p_d1__d_n
jmp 0x4a4b8b
test ebp, ebp
je 0x4a4acd
cmp byte [edi - 1], 0xd
mov dword [esp + 0x14], 0
jne 0x4a4ac3
add edi, 0xffffffff
mov eax, edi
sub eax, esi
add dword [esp + 0x10], eax
jmp 0x4a4ad9
cmp dword [esp + 0x14], 0
je 0x4a4ad9
sub dword [esp + 0x10], 1
mov edx, dword [esp + 0x10]
mov ecx, dword [0x58b6e4]
lea eax, [edx + 1]
cmp eax, ecx
jle 0x4a4af6
push ecx
push edx
push str.buflen__d__1____d_n
jmp 0x4a4b8b
mov ebx, dword [esp + 0x2c]
cmp eax, dword [ebx + 4]
jle 0x4a4b06
push eax
push ebx
call fcn.00523670
mov ebp, dword [ebx + 8]
sub edi, esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4a4b6f
mov ebx, dword [esi]
test ebx, ebx
je 0x4a4b53
cmp dword [esp + 0x14], esi
jne 0x4a4b39
push 0xfffb
lea ecx, [esi + 4]
push ecx
push ebp
call fcn.00549c80
add esp, 0xc
add ebp, 0xfffb
jmp 0x4a4b63
push 0xfffc
lea edx, [esi + 4]
push edx
push ebp
call fcn.00549c80
add esp, 0xc
add ebp, 0xfffc
jmp 0x4a4b63
push edi
lea eax, [esi + 4]
push eax
push ebp
call fcn.00549c80
add esp, 0xc
add ebp, edi
push esi
call fcn.004a4810
test ebx, ebx
mov esi, ebx
jne 0x4a4b13
pop edi
pop esi
mov byte [ebp], 0
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 8
sub edi, esi
push edi
push eax
push str.ret__d___p_d__d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0x10
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a4bae
mov esi, dword [eax]
push eax
call fcn.004a4810
test esi, esi
mov eax, esi
jne 0x4a4ba0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 8
Function at 0x4a4bc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x14], ecx
xor esi, esi
mov dword [esp + 0x10], ecx
mov eax, dword [0x58b6e4]
test eax, eax
je 0x4a4be4
cmp ecx, eax
jg 0x4a4c46
push 0x10000
call fcn.004a47b0
cmp dword [esp + 0x14], 0
mov edi, eax
je 0x4a4bfb
mov dword [esi], edi
jmp 0x4a4bff
mov dword [esp + 0x14], edi
lea esi, [edi + 4]
lea ebx, [edi + 0x10000]
cmp esi, ebx
mov dword [esp + 0x1c], edi
mov dword [edi], 0
jae 0x4a4c34
push 0
mov eax, ebx
sub eax, esi
push eax
push esi
push ebp
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4a4c4f
test eax, eax
je 0x4a4c6a
add esi, eax
cmp esi, ebx
jb 0x4a4c16
add dword [esp + 0x10], 0xfffc
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
jmp 0x4a4bd7
push eax
push ecx
push str._d____d_n
jmp 0x4a4c8a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv__d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0xc
jmp 0x4a4c97
mov edx, dword [esp + 0x10]
mov ecx, esi
sub ecx, edi
lea ecx, [edx + ecx - 4]
mov edx, dword [0x58b6e4]
lea eax, [ecx + 1]
cmp eax, edx
jle 0x4a4cba
push edx
push ecx
push str.buflen__d1____d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a4cae
nop
mov esi, dword [eax]
push eax
call fcn.004a4810
test esi, esi
mov eax, esi
jne 0x4a4ca0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov edi, dword [esp + 0x20]
cmp eax, dword [edi + 4]
jle 0x4a4cca
push eax
push edi
call fcn.00523670
mov ebx, dword [edi + 8]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4a4d20
cmp edi, dword [esp + 0x1c]
mov ebp, dword [edi]
jne 0x4a4cfc
mov eax, esi
sub eax, edi
sub eax, 4
push eax
lea ecx, [edi + 4]
push ecx
push ebx
call fcn.00549c80
mov edx, esi
add esp, 0xc
sub edx, edi
lea ebx, [ebx + edx - 4]
jmp 0x4a4d14
push 0xfffc
lea eax, [edi + 4]
push eax
push ebx
call fcn.00549c80
add esp, 0xc
add ebx, 0xfffc
push edi
call fcn.004a4810
test ebp, ebp
mov edi, ebp
jne 0x4a4cd5
pop edi
pop esi
pop ebp
mov byte [ebx], 0
mov eax, 1
pop ebx
add esp, 8
ret 8
Function at 0x4a5010
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push 0
push ebx
push ebp
push edi
call fcn.004af360
test eax, eax
je 0x4a5077
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a505e
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x4a509f
push esi
push eax
push str.NRFR_read_error__d____d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0x10
jmp 0x4a5077
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NRFR_read_error__d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push ebp
push str.read_error__I64x__d_n
push 0xffff0000
call fcn.0048f0a0
mov edx, dword [esp + 0x28]
push esi
push 0
push edx
call fcn.00549ff0
add esp, 0x20
pop ebp
pop ebx
ret 0xc
Function at 0x4a9a50
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, eax
je 0x4a9a94
mov ebp, dword [esp + 0x14]
cmp ebx, 0xffffffff
ja 0x4a9a6f
mov esi, ebx
jmp 0x4a9a72
or esi, 0xffffffff
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a9aa0
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x4a9aa0
add edi, eax
sub ebx, eax
jne 0x4a9a66
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc

Function at 0x4a9ab0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x218
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov edi, dword [esp + 0x224]
lea eax, [esp + 8]
push eax
call fcn.00523650
push edi
lea ecx, [esp + 0xc]
push ecx
call fcn.00527c80
mov edx, dword [esp + 0x234]
mov eax, dword [esp + 0x230]
mov ecx, dword [esp + 0x22c]
push 0
push edx
mov edx, dword [esp + 0x230]
push eax
mov eax, dword [esp + 0x1c]
push 0
push ecx
push edx
push eax
call dword [0x598ccc]
lea ecx, [esp + 8]
push ecx
mov esi, eax
call fcn.00401210
cmp esi, 0xffffffff
jne 0x4a9b5d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 2
je 0x4a9b41
push edi
call ebx
push eax
push str.CreateFileW__:__d:_Failed_to_open_file__s_n
call fcn.0048f080
add esp, 0xc
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
call fcn.005498fd
add esp, 0x218
ret 0x14
mov eax, esi
jmp 0x4a9b44
Function at 0x4a9b70
Capabilities:
Move file

Disassembly:
sub esp, 0x42c
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x43c]
push edi
mov edi, dword [esp + 0x444]
lea eax, [esp + 0x224]
push eax
call fcn.00523650
lea ecx, [esp + 0x10]
push ecx
call fcn.00523650
push esi
lea edx, [esp + 0x228]
push edx
call fcn.00527c80
push edi
lea eax, [esp + 0x14]
push eax
call fcn.00527c80
mov ebp, dword [esp + 0x448]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x22c]
xor ecx, ecx
test ebp, ebp
setne cl
or ecx, 2
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov ebx, dword [esp + 0x44c]
jne 0x4a9c66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x4a9c15
push edi
push esi
push eax
push str.MoveFileExW__:_GetLastError__:__d:_Failed_to_move_file_from__s_to__s_n
call fcn.0048f080
add esp, 0x10
xor esi, esi
jmp 0x4a9c8d
test ebp, ebp
je 0x4a9c35
test ebx, ebx
je 0x4a9c2a
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x598d68]
jmp 0x4a9c35
mov edx, dword [esp + 0x18]
push edx
call dword [0x598cd8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x22c]
push eax
push ecx
call dword [0x598d5c]
test eax, eax
jne 0x4a9c66
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MoveFileW__:_GetLastError__:__d:_Failed_to_move_file_from__s_to__s_n
call fcn.0048f080
add esp, 0x10
xor esi, esi
jmp 0x4a9c8d
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x22c]
neg ebx
push edx
sbb ebx, ebx
push eax
and ebx, 0x1ffff
mov esi, 1
push 5
add ebx, esi
push ebx
call dword [0x598d7c]
lea ecx, [esp + 0x10]
push ecx
call fcn.00401210
lea edx, [esp + 0x224]
push edx
call fcn.00401210
mov ecx, dword [esp + 0x438]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005498fd
add esp, 0x42c
ret 0x10

Function at 0x4aba70
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi], eax
pop esi
jne 0x4aba9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4aba9b
xor eax, eax
ret 8
mov eax, 1
ret 8
Function at 0x4aca40
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x218
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
push edi
mov edi, dword [esp + 0x224]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4acb1e
push ebx
push ebp
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [esp + 0x10]
push eax
call fcn.00523650
push edi
lea ecx, [esp + 0x14]
push ecx
call fcn.005277a0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00401000
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add eax, 1
push eax
push 2
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x4acadc
push esi
call ebp
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
call fcn.00401120
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
lea eax, [esp + 0x10]
push eax
call fcn.00401210
push edi
call fcn.00527100
lea ecx, [eax + eax + 2]
push ecx
push 2
call ebx
mov esi, eax
test esi, esi
je 0x4acb15
push esi
call ebp
push edi
push eax
call fcn.00526da0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
pop edi
xor ecx, esp
call fcn.005498fd
add esp, 0x218
ret 8

Function at 0x4ad5c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0x20c], eax
mov ecx, dword [esp + 0x218]
push esi
push edi
mov edi, dword [esp + 0x21c]
lea eax, [esp + 8]
push eax
push ecx
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4ad626
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x598d88]
test eax, eax
je 0x4ad61b
lea ecx, [esp + 0xc]
push ecx
push edi
call fcn.00524000
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x214]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.005498fd
add esp, 0x210
ret 8
Function at 0x4ae740
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x434
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0x430], eax
push ebp
lea eax, [esp + 0x220]
push eax
xor ebp, ebp
call fcn.00523650
lea ecx, [esp + 0xc]
push ecx
call fcn.00523650
push edi
lea edx, [esp + 0x224]
push edx
call fcn.005277a0
test esi, esi
je 0x4ae78d
push esi
lea eax, [esp + 0x10]
push eax
call fcn.005277a0
jmp 0x4ae797
lea ecx, [esp + 0xc]
push ecx
call fcn.00523b60
mov eax, dword [esp + 0x440]
mov edx, dword [esp + 0x43c]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x238]
push ebx
mov dword [esp + 0x18], edx
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
jne 0x4ae7d3
lea ebp, [eax + 1]
lea edx, [esp + 0xc]
push edx
call fcn.00401210
lea eax, [esp + 0x220]
push eax
call fcn.00401210
mov ecx, dword [esp + 0x434]
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.005498fd
add esp, 0x434
ret 8

Function at 0x4af660
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
xor ebx, ebx
cmp byte [0x599180], bl
push edi
lea eax, [ebx + 3]
je 0x4af677
mov eax, 7
push 0x8000000
push 3
push eax
mov eax, dword [esp + 0x24]
push closesocket
push eax
call fcn.004a9ab0
mov edi, eax
cmp edi, 0xffffffff
je 0x4af793
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4af6c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4af78c
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, eax
or edx, ecx
jne 0x4af6f5
lea eax, [esp + 0x18]
push eax
push 1
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x4af78c
mov ebx, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
test ecx, ecx
jg 0x4af78c
jl 0x4af70a
cmp eax, 0x80000000
jae 0x4af78c
push esi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4af78b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4af784
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
je 0x4af77e
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, dword [esp + 0x10]
jne 0x4af784
cmp ecx, dword [esp + 0x14]
jne 0x4af784
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x4af784
mov ebx, dword [esp + 0xc]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
Function at 0x4afca0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push ebp
push esi
xor ebp, ebp
push ebp
push ebp
mov dword [esp + 0x14], ebp
call ebx
mov esi, eax
test esi, esi
je 0x4afd4c
push edi
lea eax, [esi*4]
push eax
call fcn.004a47b0
mov edi, eax
push edi
push esi
call ebx
test eax, eax
mov dword [esp + 0x14], eax
je 0x4afd45
mov ebp, dword [0x598d20]
xor ebx, ebx
xor esi, esi
movzx eax, word [edi + esi*4]
push 0x10
lea ecx, [esp + 0x1c]
push ecx
and eax, 0x3ff
push 0x58
push eax
call ebp
test eax, eax
je 0x4afd1b
test dword [esp + 0x24], 0x8000000
je 0x4afd1b
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4afd16
mov edx, dword [edi + esi*4]
mov dword [eax], edx
or ebx, 2
jmp 0x4afd2b
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4afd28
mov ecx, dword [edi + esi*4]
mov dword [eax], ecx
or ebx, 1
cmp ebx, 3
jne 0x4afd38
mov dword [esp + 0x10], 1
add esi, 1
cmp esi, dword [esp + 0x14]
jne 0x4afce6
mov ebp, dword [esp + 0x10]
push edi
call fcn.004a4810
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x28
ret 8

Function at 0x4b00a0
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 0xc], 0
jne 0x4b00af
lea eax, [esp + 8]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push eax
push 0
push 0
call fcn.0054a400
add esp, 0x18
ret 0xc

Function at 0x4b0120
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4b0160
mov ebp, dword [esp + 0x14]
cmp edi, 0xffffffff
mov esi, edi
jbe 0x4b013e
or esi, 0xffffffff
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b016c
cmp dword [esp + 0x18], esi
jne 0x4b016c
sub edi, esi
add ebx, esi
test edi, edi
jne 0x4b0134
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x4b20e0
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
test ax, ax
jge 0x4b20f8
mov esi, 2
push 0x11
call edi
test ax, ax
jge 0x4b2104
or esi, 1
push 0x12
call edi
test ax, ax
jge 0x4b2110
or esi, 4
pop edi
mov eax, esi
pop esi
ret

Function at 0x4b21c0
Capabilities:
Create thread

Disassembly:
cmp dword [0x599108], 0
je 0x4b21d6
push str.create_thread_n
call fcn.0048f080
add esp, 4
push ebx
push esi
push edi
push 0x599dc0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x5991a8]
test esi, esi
je 0x4b2251
cmp esi, dword [0x5991ac]
mov eax, dword [esi]
mov dword [0x5991a8], eax
jne 0x4b2208
mov ecx, dword [esi + 4]
mov dword [0x5991ac], ecx
jmp 0x4b2210
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
push 0x599dc0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
push 0x599dc0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x5991b0]
push eax
push str.new_thread___d__n
push 0xff00ffff
call fcn.0048f0a0
add esp, 0xc
push 0x1c
call fcn.004a47b0
mov esi, eax
mov ebx, dword [esp + 0x10]
mov dword [esi + 0xc], ebx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x10], ecx
push 0
push 0
push 1
push 0
mov edi, dword [0x598cc8]
call edi
test eax, eax
jne 0x4b22bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_create_event__d
push str.os_event_create
push 0x1b50
push str.._srcos.c
call fcn.0048f230
push 0
push 0
push 1
push 0
mov dword [esi + 0x14], eax
call edi
test eax, eax
je 0x4b229f
mov dword [esi + 0x18], eax
add dword [0x5991b0], 1
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x4b2130
lea edx, [esp + 0x24]
push 0
push 0
mov dword [esp + 0x28], edx
call fcn.0054a400
add esp, 0x18
test eax, eax
mov dword [esi + 8], eax
jne 0x4b2249
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_create_thread__d:__p
push str.os_thread_create
push 0x1aff
push str.._srcos.c
call fcn.0048f230
int3
Function at 0x4b32f0
Capabilities:
Log keystrokes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x4b3317
push esi
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov esi, eax
push esi
push str.GetLastActivePopup__p_n
call fcn.0048f080
add esp, 8
push esi
call dword [sym.imp.USER32.dll_OpenIcon]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x4b3382
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetForegroundWindow_failed__08x_n
call fcn.0048f080
add esp, 8
cmp byte [0x598ed6], 0
je 0x4b3382
push ebx
push edi
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
cmp edi, ebx
je 0x4b3380
push ebp
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push ebx
push edi
call ebp
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push ebx
push edi
call ebp
pop ebp
pop edi
pop ebx
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
test eax, eax
jne 0x4b33a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetActiveWindow_failed__08x_n
call fcn.0048f080
add esp, 8
push 0xffffffffffffffec
push esi
call dword [0x598de0]
movzx eax, al
push 3
push 0
shr eax, 3
push 0
and eax, 1
push 0
neg eax
push 0
sbb eax, eax
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x4b33e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetForegroundWindow2_failed__08x_n
call fcn.0048f080
add esp, 8
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop esi
ret 4

Function at 0x4b3400
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
test ax, ax
jge 0x4b3418
mov esi, 4
push 0x11
call edi
test ax, ax
jge 0x4b3424
or esi, 1
push 0x12
call edi
test ax, ax
jge 0x4b3430
or esi, 2
push 0x5b
call edi
test ax, ax
jge 0x4b343c
or esi, 8
push 0x5c
call edi
test ax, ax
jge 0x4b3448
or esi, 8
pop edi
mov eax, esi
pop esi
ret