joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a48f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
test esi, esi
push edi
mov edi, dword [esp + 0x18]
jle 0x4a4928
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.WS2_32.dll_send]
lea ebx, [ebx]
push 0
push esi
push edi
push ebx
call ebp
cmp eax, 0xffffffff
je 0x4a4934
test eax, eax
je 0x4a4934
sub esi, eax
add edi, eax
test esi, esi
jg 0x4a4910
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 0x4a49c0
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 [0x58b6d4]
test eax, eax
mov dword [esp + 0x10], ecx
je 0x4a49e8
cmp ecx, eax
jg 0x4a4a9e
push 0x10000
call fcn.004a47f0
cmp dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
je 0x4a4a01
mov dword [esi], eax
jmp 0x4a4a05
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 0x4a4a79
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 0x4a4aaa
test eax, eax
mov edi, esi
je 0x4a4b19
add eax, esi
cmp esi, eax
jae 0x4a4a54
cmp byte [edi], 0xa
je 0x4a4ac8
add edi, 1
cmp edi, eax
jb 0x4a4a48
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 0x4a4bc2
cmp edi, ebx
mov esi, edi
jb 0x4a4a20
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 0x4a49d3
push eax
push ecx
push str._d____d_n
jmp 0x4a4bcb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv__d_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0xc
jmp 0x4a4bd8
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 0x4a4aee
push ebx
push eax
push str.ret__d___p_d1__d_n
jmp 0x4a4bcb
test ebp, ebp
je 0x4a4b0d
cmp byte [edi - 1], 0xd
mov dword [esp + 0x14], 0
jne 0x4a4b03
add edi, 0xffffffff
mov eax, edi
sub eax, esi
add dword [esp + 0x10], eax
jmp 0x4a4b19
cmp dword [esp + 0x14], 0
je 0x4a4b19
sub dword [esp + 0x10], 1
mov edx, dword [esp + 0x10]
mov ecx, dword [0x58b6d4]
lea eax, [edx + 1]
cmp eax, ecx
jle 0x4a4b36
push ecx
push edx
push str.buflen__d__1____d_n
jmp 0x4a4bcb
mov ebx, dword [esp + 0x2c]
cmp eax, dword [ebx + 4]
jle 0x4a4b46
push eax
push ebx
call fcn.00523640
mov ebp, dword [ebx + 8]
sub edi, esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4a4baf
mov ebx, dword [esi]
test ebx, ebx
je 0x4a4b93
cmp dword [esp + 0x14], esi
jne 0x4a4b79
push 0xfffb
lea ecx, [esi + 4]
push ecx
push ebp
call fcn.00549c50
add esp, 0xc
add ebp, 0xfffb
jmp 0x4a4ba3
push 0xfffc
lea edx, [esi + 4]
push edx
push ebp
call fcn.00549c50
add esp, 0xc
add ebp, 0xfffc
jmp 0x4a4ba3
push edi
lea eax, [esi + 4]
push eax
push ebp
call fcn.00549c50
add esp, 0xc
add ebp, edi
push esi
call fcn.004a4850
test ebx, ebx
mov esi, ebx
jne 0x4a4b53
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.0048f0c0
add esp, 0x10
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a4bee
mov esi, dword [eax]
push eax
call fcn.004a4850
test esi, esi
mov eax, esi
jne 0x4a4be0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 8
Function at 0x4a4c00
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 [0x58b6d4]
test eax, eax
je 0x4a4c24
cmp ecx, eax
jg 0x4a4c86
push 0x10000
call fcn.004a47f0
cmp dword [esp + 0x14], 0
mov edi, eax
je 0x4a4c3b
mov dword [esi], edi
jmp 0x4a4c3f
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 0x4a4c74
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 0x4a4c8f
test eax, eax
je 0x4a4caa
add esi, eax
cmp esi, ebx
jb 0x4a4c56
add dword [esp + 0x10], 0xfffc
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
jmp 0x4a4c17
push eax
push ecx
push str._d____d_n
jmp 0x4a4cca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv__d_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0xc
jmp 0x4a4cd7
mov edx, dword [esp + 0x10]
mov ecx, esi
sub ecx, edi
lea ecx, [edx + ecx - 4]
mov edx, dword [0x58b6d4]
lea eax, [ecx + 1]
cmp eax, edx
jle 0x4a4cfa
push edx
push ecx
push str.buflen__d1____d_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a4cee
nop
mov esi, dword [eax]
push eax
call fcn.004a4850
test esi, esi
mov eax, esi
jne 0x4a4ce0
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 0x4a4d0a
push eax
push edi
call fcn.00523640
mov ebx, dword [edi + 8]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4a4d60
cmp edi, dword [esp + 0x1c]
mov ebp, dword [edi]
jne 0x4a4d3c
mov eax, esi
sub eax, edi
sub eax, 4
push eax
lea ecx, [edi + 4]
push ecx
push ebx
call fcn.00549c50
mov edx, esi
add esp, 0xc
sub edx, edi
lea ebx, [ebx + edx - 4]
jmp 0x4a4d54
push 0xfffc
lea eax, [edi + 4]
push eax
push ebx
call fcn.00549c50
add esp, 0xc
add ebx, 0xfffc
push edi
call fcn.004a4850
test ebp, ebp
mov edi, ebp
jne 0x4a4d15
pop edi
pop esi
pop ebp
mov byte [ebx], 0
mov eax, 1
pop ebx
add esp, 8
ret 8
Function at 0x4a4d80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov ebx, eax
xor edi, edi
cmp ebx, 0x50
mov dword [esp + 0x1c], edi
push ebx
jb 0x4a4f77
call fcn.004a4890
mov edi, eax
test edi, edi
je 0x4a4f6a
push 0
push 0
push 0
push ebp
call fcn.004af390
test eax, eax
je 0x4a4f50
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a4f42
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4a4f3a
lea ecx, [edi + 3]
mov edx, str.NTFS
mov dword [esp + 0xc], 8
mov eax, ecx
sub edx, ecx
movzx ebx, byte [edx + eax]
movzx ebp, byte [eax]
sub ebp, ebx
jne 0x4a4f17
mov ebx, 1
add eax, ebx
sub dword [esp + 0xc], ebx
jne 0x4a4df7
movzx ecx, byte [edi + 0xd]
push ecx
push str.sectors_per_cluster__d_n
call fcn.0048f0a0
mov al, byte [edi + 0xd]
add esp, 8
cmp al, 0x80
ja 0x4a4e31
movzx edx, al
jmp 0x4a4e3c
mov ecx, 0x100
sub ecx, eax
mov edx, ebx
shl edx, cl
movzx eax, word [edi + 0xb]
imul edx, eax
mov ecx, edx
push ecx
push str.bytes_per_cluster__d_n
mov dword [esi + 0x10], edx
call fcn.0048f0a0
mov edx, dword [esi + 0x10]
add esp, 8
test edx, edx
je 0x4a4f0e
movzx eax, word [edi + 0xb]
test eax, eax
mov dword [esi + 0x18], eax
je 0x4a4f05
mov cl, byte [edi + 0x40]
test cl, cl
jle 0x4a4e82
movsx eax, cl
imul eax, edx
mov dword [esi + 0x14], eax
jmp 0x4a4e8b
neg ecx
mov edx, ebx
shl edx, cl
mov dword [esi + 0x14], edx
cmp dword [esi + 0x14], 0
je 0x4a4efc
mov eax, dword [edi + 0x30]
mov dword [esi], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 4], ecx
mov edx, dword [edi + 0x48]
mov dword [esi + 8], edx
mov edx, dword [esi]
mov eax, dword [edi + 0x4c]
push ecx
push edx
push str.mft_lcn__I64u_n
mov dword [esi + 0xc], eax
call fcn.0048f0a0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
push str.serial_number__I64u_n
call fcn.0048f0a0
mov edx, dword [esi + 0x10]
push edx
push str.bytes_per_cluster__u_n
call fcn.0048f0a0
mov eax, dword [esi + 0x14]
push eax
push str.bytes_per_file_record__u_n
call fcn.0048f0a0
add esp, 0x28
push edi
mov dword [esp + 0x20], ebx
call fcn.004a48d0
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
push 0
push str.invalid_bytes_per_file_record__u_n
jmp 0x4a4f5c
push 0
push str.invalid_bytes_per_sector__u_n
jmp 0x4a4f5c
push 0
push str.invalid_bytes_per_cluster__u_n
jmp 0x4a4f5c
push 8
push ecx
push str.bad_NTFS_signature:__t_n
call fcn.0048f0a0
add esp, 0xc
push edi
call fcn.004a48d0
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 4
push eax
push str.unable_to_read_all_of_NTFS_boot_sector:__u_n
jmp 0x4a4f5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_read_NTFS_boot_sector:__u_n
jmp 0x4a4f5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_set_file_pointer_to_boot_sector__u_n
call fcn.0048f0a0
add esp, 8
push edi
call fcn.004a48d0
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 4
push str.bad_sector_size__u_n
call fcn.0048f0a0
add esp, 8
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x4a5030
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.004af390
test eax, eax
je 0x4a5097
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 0x4a507e
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x4a50bf
push esi
push eax
push str.NRFR_read_error__d____d_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0x10
jmp 0x4a5097
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NRFR_read_error__d_n
push 0xffff0000
call fcn.0048f0c0
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.0048f0c0
mov edx, dword [esp + 0x28]
push esi
push 0
push edx
call fcn.00549fc0
add esp, 0x20
pop ebp
pop ebx
ret 0xc
Function at 0x4a9a70
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 0x4a9ab4
mov ebp, dword [esp + 0x14]
cmp ebx, 0xffffffff
ja 0x4a9a8f
mov esi, ebx
jmp 0x4a9a92
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 0x4a9ac0
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x4a9ac0
add edi, eax
sub ebx, eax
jne 0x4a9a86
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 0x4a9ad0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x218
mov eax, dword [0x597f98]
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.00401210
push edi
lea ecx, [esp + 0xc]
push ecx
call fcn.00527c50
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 [0x598cbc]
lea ecx, [esp + 8]
push ecx
mov esi, eax
call fcn.00401230
cmp esi, 0xffffffff
jne 0x4a9b7d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 2
je 0x4a9b61
push edi
call ebx
push eax
push str.CreateFileW__:__d:_Failed_to_open_file__s_n
call fcn.0048f0a0
add esp, 0xc
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
call fcn.005498cd
add esp, 0x218
ret 0x14
mov eax, esi
jmp 0x4a9b64
Function at 0x4a9b90
Capabilities:
Move file

Disassembly:
sub esp, 0x42c
mov eax, dword [0x597f98]
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.00401210
lea ecx, [esp + 0x10]
push ecx
call fcn.00401210
push esi
lea edx, [esp + 0x228]
push edx
call fcn.00527c50
push edi
lea eax, [esp + 0x14]
push eax
call fcn.00527c50
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 0x4a9c86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x4a9c35
push edi
push esi
push eax
push str.MoveFileExW__:_GetLastError__:__d:_Failed_to_move_file_from__s_to__s_n
call fcn.0048f0a0
add esp, 0x10
xor esi, esi
jmp 0x4a9cad
test ebp, ebp
je 0x4a9c55
test ebx, ebx
je 0x4a9c4a
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x598d58]
jmp 0x4a9c55
mov edx, dword [esp + 0x18]
push edx
call dword [0x598cc8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x22c]
push eax
push ecx
call dword [0x598d4c]
test eax, eax
jne 0x4a9c86
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.0048f0a0
add esp, 0x10
xor esi, esi
jmp 0x4a9cad
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 [0x598d6c]
lea ecx, [esp + 0x10]
push ecx
call fcn.00401230
lea edx, [esp + 0x224]
push edx
call fcn.00401230
mov ecx, dword [esp + 0x438]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005498cd
add esp, 0x42c
ret 0x10

Function at 0x4aba90
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 0x4ababb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4ababb
xor eax, eax
ret 8
mov eax, 1
ret 8
Function at 0x4aca60
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x218
mov eax, dword [0x597f98]
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 0x4acb3e
push ebx
push ebp
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [esp + 0x10]
push eax
call fcn.00401210
push edi
lea ecx, [esp + 0x14]
push ecx
call fcn.00527770
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 0x4acafc
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.00401230
push edi
call fcn.005270d0
lea ecx, [eax + eax + 2]
push ecx
push 2
call ebx
mov esi, eax
test esi, esi
je 0x4acb35
push esi
call ebp
push edi
push eax
call fcn.00526d70
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.005498cd
add esp, 0x218
ret 8

Function at 0x4ad5f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x597f98]
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 0x4ad656
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x598d78]
test eax, eax
je 0x4ad64b
lea ecx, [esp + 0xc]
push ecx
push edi
call fcn.00523fd0
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.005498cd
add esp, 0x210
ret 8
Function at 0x4ae770
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x434
mov eax, dword [0x597f98]
xor eax, esp
mov dword [esp + 0x430], eax
push ebp
lea eax, [esp + 0x220]
push eax
xor ebp, ebp
call fcn.00401210
lea ecx, [esp + 0xc]
push ecx
call fcn.00401210
push edi
lea edx, [esp + 0x224]
push edx
call fcn.00527770
test esi, esi
je 0x4ae7bd
push esi
lea eax, [esp + 0x10]
push eax
call fcn.00527770
jmp 0x4ae7c7
lea ecx, [esp + 0xc]
push ecx
call fcn.00523b30
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 0x4ae803
lea ebp, [eax + 1]
lea edx, [esp + 0xc]
push edx
call fcn.00401230
lea eax, [esp + 0x220]
push eax
call fcn.00401230
mov ecx, dword [esp + 0x434]
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.005498cd
add esp, 0x434
ret 8

Function at 0x4af690
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 0x4af6a7
mov eax, 7
push 0x8000000
push 3
push eax
mov eax, dword [esp + 0x24]
push closesocket
push eax
call fcn.004a9ad0
mov edi, eax
cmp edi, 0xffffffff
je 0x4af7c3
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4af6f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4af7bc
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, eax
or edx, ecx
jne 0x4af725
lea eax, [esp + 0x18]
push eax
push 1
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x4af7bc
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 0x4af7bc
jl 0x4af73a
cmp eax, 0x80000000
jae 0x4af7bc
push esi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4af7bb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4af7b4
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 0x4af7ae
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, dword [esp + 0x10]
jne 0x4af7b4
cmp ecx, dword [esp + 0x14]
jne 0x4af7b4
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x4af7b4
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 0x4afcc0
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 0x4afd6c
push edi
lea eax, [esi*4]
push eax
call fcn.004a47f0
mov edi, eax
push edi
push esi
call ebx
test eax, eax
mov dword [esp + 0x14], eax
je 0x4afd65
mov ebp, dword [0x598d10]
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 0x4afd3b
test dword [esp + 0x24], 0x8000000
je 0x4afd3b
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4afd36
mov edx, dword [edi + esi*4]
mov dword [eax], edx
or ebx, 2
jmp 0x4afd4b
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4afd48
mov ecx, dword [edi + esi*4]
mov dword [eax], ecx
or ebx, 1
cmp ebx, 3
jne 0x4afd58
mov dword [esp + 0x10], 1
add esi, 1
cmp esi, dword [esp + 0x14]
jne 0x4afd06
mov ebp, dword [esp + 0x10]
push edi
call fcn.004a4850
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x28
ret 8

Function at 0x4b00c0
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 0xc], 0
jne 0x4b00cf
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.0054a3d0
add esp, 0x18
ret 0xc
Function at 0x4b2130
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 0x4b2148
mov esi, 2
push 0x11
call edi
test ax, ax
jge 0x4b2154
or esi, 1
push 0x12
call edi
test ax, ax
jge 0x4b2160
or esi, 4
pop edi
mov eax, esi
pop esi
ret

Function at 0x4b2210
Capabilities:
Create thread

Disassembly:
cmp dword [0x599108], 0
je 0x4b2226
push str.create_thread_n
call fcn.0048f0a0
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 0x4b22a1
cmp esi, dword [0x5991ac]
mov eax, dword [esi]
mov dword [0x5991a8], eax
jne 0x4b2258
mov ecx, dword [esi + 4]
mov dword [0x5991ac], ecx
jmp 0x4b2260
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.0048f0c0
add esp, 0xc
push 0x1c
call fcn.004a47f0
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 [0x598cb8]
call edi
test eax, eax
jne 0x4b230f
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.0048f250
push 0
push 0
push 1
push 0
mov dword [esi + 0x14], eax
call edi
test eax, eax
je 0x4b22ef
mov dword [esi + 0x18], eax
add dword [0x5991b0], 1
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x4b2180
lea edx, [esp + 0x24]
push 0
push 0
mov dword [esp + 0x28], edx
call fcn.0054a3d0
add esp, 0x18
test eax, eax
mov dword [esi + 8], eax
jne 0x4b2299
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.0048f250
int3