joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5990f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push esi
mov esi, ecx
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x599298
mov ecx, dword [0x74e914]
mov eax, dword [ecx]
push ebx
push ebp
push edi
push 2
call dword [eax + 0x10]
mov edi, dword [esi + 0xac]
mov edx, dword [esi + 0xa8]
mov ecx, dword [esi + 0xb4]
mov ebx, dword [esi + 0xb0]
sub edi, 8
sub edx, 4
and edi, 0xfffffff8
inc ecx
and ecx, 0xfffffffe
test edx, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
jge 0x599155
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x28]
test edi, edi
jge 0x59915b
xor edi, edi
mov eax, dword [esi + 0x74]
cmp ebx, eax
jle 0x599166
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x78]
cmp ecx, eax
jle 0x599171
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0x90]
mov eax, dword [esi + 0x98]
mov ebp, dword [esi + 0x94]
add eax, ecx
mov ecx, dword [esi + 0x9c]
shl edx, 6
add ecx, ebp
mov ebp, edx
mov edx, edi
shl edx, 5
sub ebp, eax
mov ebx, edx
mov dword [esp + 0x20], ebp
sub ebx, ecx
call sub.WINMM.dll_timeGetTime
mov edx, dword [esi + 0x114]
mov ecx, dword [esp + 0x34]
sub eax, edx
cmp edi, ecx
mov dword [esp + 0x1c], eax
mov eax, edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
jae 0x59928a
jmp 0x5991d0
mov ebp, dword [esp + 0x20]
mov edi, edi
mov ebx, dword [esp + 0x28]
cmp ebx, dword [esp + 0x30]
jae 0x59926c
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
jmp 0x5991f0
mov eax, dword [esp + 0x18]
lea ecx, [ecx]
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x80]
imul ecx, eax
add ecx, ebx
lea eax, [edx + ecx*4]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x59925c
xor edx, edx
mov edi, 0x64
div edi
mov ecx, dword [esi + 0xd0]
mov edi, dword [ecx]
push edx
push eax
call dword [edi + 0x28]
mov ecx, eax
test ecx, ecx
je 0x59925c
mov di, word [ecx + 0xa]
test di, di
je 0x59925c
xor edx, edx
cmp di, 1
je 0x599243
mov eax, dword [esp + 0x1c]
div dword [ecx + 0xc]
movzx edi, di
xor edx, edx
div edi
mov eax, dword [ecx]
push edx
call dword [eax]
mov ecx, dword [esp + 0x3c]
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push ebp
mov ecx, eax
call dword [edx + 0xc]
mov eax, dword [esp + 0x30]
add ebp, 0x40
inc ebx
cmp ebx, eax
jb 0x5991e9
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
add eax, 2
add edi, 0x40
cmp eax, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
jb 0x5991ca
mov ecx, dword [0x74e914]
mov edx, dword [ecx]
call dword [edx + 0x14]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x28
ret 4
Function at 0x59ba00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6c9a7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045ed10
lea eax, [edi + 0x10]
push eax
lea ecx, [esi + 0x10]
mov dword [esp + 0x18], 0
call fcn.0045ed10
lea ecx, [edi + 0x20]
push ecx
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 1
call fcn.0045ed10
add edi, 0x30
push edi
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 2
call fcn.0045ed10
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x59e200
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x6c9ce1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi], fcn.0059c610
mov byte [esi + 4], bl
mov byte [esi + 5], bl
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 1
mov byte [esi + 0x28], 1
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.0059bef0
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x100], ebx
mov dword [esi + 0x108], ebx
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x110], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
lea edi, [esi + 0x23c]
mov ecx, edi
mov byte [esp + 0x18], 7
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x130], ebx
mov dword [esi + 0x134], ebx
call fcn.005996c0
mov dword [edi + 4], eax
mov byte [eax + 0x51], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x248], ebx
mov dword [esi + 0x24c], ebx
mov byte [esi + 0x250], bl
mov byte [esi + 0x25c], bl
mov dword [esi + 0x260], ebx
mov dword [esi + 0x268], ebx
mov dword [esi + 0x26c], ebx
mov dword [esi + 0x270], ebx
mov dword [esi + 0x278], ebx
mov dword [esi + 0x27c], ebx
mov dword [esi + 0x280], ebx
mov byte [esp + 0x18], 0xa
mov dword [0x75069c], esi
mov ecx, esi
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
call fcn.0059cfe0
mov ecx, dword [esp + 0x10]
mov dword [0x74e910], esi
mov byte [esi + 0x138], bl
pop edi
mov dword [esi + 0x254], 0xc8
mov dword [esi + 0x258], 0xff808080
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x5b11c8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6ca298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
lea eax, [esp + 7]
push eax
lea ecx, [esp + 0xb]
push ecx
lea ecx, [esi + 8]
mov dword [esp + 0x1c], 0
call fcn.005b1130
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x30], 0
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x5b5260
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [eax + 0x14]
mov eax, dword [esi + 8]
test eax, eax
push edi
mov edi, ecx
jne 0x5b52d9
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov eax, dword [edi + 0x4c]
mov ebx, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ecx
push edx
push 0
push 4
push eax
call ebx
test eax, eax
mov dword [esi + 8], eax
jne 0x5b52d9
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 5
jne 0x5b52c7
mov ecx, dword [0x74e914]
mov edx, dword [ecx]
call dword [edx + 0xf4]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [edi + 0x4c]
push eax
push ecx
push 0
push 4
push edx
call ebx
test eax, eax
mov dword [esi + 8], eax
jne 0x5b52d0
call ebp
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret 4
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
ret 4
pop edi
pop esi
mov al, 1
pop ebx
ret 4
Function at 0x5c1ef6
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x6ca84b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esi + 8]
xor eax, eax
mov dword [esi], 0x6f029c
mov dword [esp + 4], esi
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esp + 0x10], eax
mov byte [esi + 4], al
mov eax, dword [0x6efd7c]
push eax
call fcn.005c1c40
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x5c5710
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x6ca9cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea eax, [esi + 4]
mov dword [eax], eax
mov dword [eax + 4], eax
lea ecx, [esi + 0xc]
xor eax, eax
mov dword [esi], 0x6f06e8
mov dword [esp + 4], esi
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x24], edx
mov dl, byte [esp + 0x28]
mov dword [esp + 0x10], eax
mov byte [esi + 0x28], dl
mov dl, byte [esp + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x18]
push 0x10
mov byte [esi + 0x29], dl
mov dword [esi + 0x30], eax
call fcn.005c5560
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18

Function at 0x5c6a90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6caa98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x6f0750
xor ebx, ebx
mov dword [esp + 0x14], ebx
call fcn.006bec80
cmp byte [esi + 0x34], bl
je 0x5c6aca
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov ecx, esi
call fcn.006beae0
mov eax, dword [esi + 0x30]
push eax
call fcn.00631fc2
add esp, 4
mov ecx, esi
mov dword [esi + 0x30], ebx
mov dword [esp + 0x14], 0xffffffff
call fcn.006beb50
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x5cc910
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x6cac0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
lea edi, [esi + 0x54]
mov ecx, edi
mov dword [esp + 0x18], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x50], ebx
call fcn.00587420
mov ecx, dword [esp + 0x24]
mov dl, byte [esp + 0x28]
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 8], ebx
mov dword [esi + 0x60], eax
cmp byte [esp + 0x2c], bl
mov dword [esi + 0x64], ecx
mov byte [esi + 0x68], dl
mov dword [esi], 0xfe
je 0x5cc9b3
mov dword [esi + 0xc], 0x81
mov dword [esi + 8], 0xfe
mov dword [esi + 4], 0x40
jmp 0x5cc9c8
mov dword [esi + 0xc], 0xa1
mov dword [esi + 8], 0xf7
mov dword [esi + 4], 0xa0
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
inc eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
mov ecx, 0x100
sub ecx, eax
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x5d2b60
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x6cb099
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.005cebf0
lea edi, [esi + 0xc]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x1c], ebp
mov dword [esi], 0x6f0860
call fcn.005cf230
mov dword [edi + 4], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x18]
mov bl, 1
mov ecx, edi
mov byte [esp + 0x1c], bl
call fcn.005cf250
mov dword [edi + 4], eax
mov byte [eax + 0x49], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x24]
mov ecx, edi
mov byte [esp + 0x1c], 2
call fcn.005cf250
mov dword [edi + 4], eax
mov byte [eax + 0x49], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
push 0x5d1f70
push fcn.00488b30
push 0xc
push 0x10
lea eax, [esi + 0x30]
push eax
mov byte [esp + 0x30], 3
call fcn.00631025
lea edi, [esi + 0xf0]
mov ecx, edi
mov byte [esp + 0x1c], 4
call fcn.00587420
mov dword [edi + 4], eax
mov byte [eax + 0x15], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
mov dword [esi + 0x100], ebp
mov dword [esi + 0x104], ebp
mov dword [esi + 0x108], ebp
mov dword [esi + 0x110], ebp
mov dword [esi + 0x114], ebp
mov dword [esi + 0x118], ebp
lea ecx, [esi + 0x158]
mov byte [esp + 0x1c], 7
call fcn.005cec20
mov ecx, dword [esp + 0x24]
pop edi
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x5d2d30
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x6cb149
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x158]
mov dword [esp + 0x1c], 7
call fcn.005cec50
lea ecx, [esi + 0x10c]
mov byte [esp + 0x1c], 6
call fcn.005d1be0
mov eax, dword [esi + 0x100]
xor ebx, ebx
cmp eax, ebx
je 0x5d2d89
push eax
call fcn.00630114
add esp, 4
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
mov dword [esi + 0x108], ebx
mov eax, dword [esi + 0xf4]
mov ecx, dword [eax]
lea edi, [esi + 0xf0]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x28], 4
call fcn.005d04c0
mov eax, dword [edi + 4]
push eax
call fcn.00630114
add esp, 4
push 0x5d1f70
push 0xc
push 0x10
lea ecx, [esi + 0x30]
push ecx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov byte [esp + 0x2c], 3
call fcn.006310e5
mov eax, dword [esi + 0x28]
mov ecx, dword [eax]
lea edi, [esi + 0x24]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov byte [esp + 0x28], 2
call fcn.005d1c30
mov eax, dword [edi + 4]
push eax
call fcn.00630114
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
add esp, 4
lea edi, [esi + 0x18]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x28], 1
call fcn.005d1c30
mov eax, dword [edi + 4]
push eax
call fcn.00630114
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
lea edi, [esi + 0xc]
add esp, 4
mov ecx, edi
mov byte [esp + 0x1c], bl
call fcn.005d2620
mov eax, dword [edi + 4]
push eax
call fcn.00630114
add esp, 4
mov ecx, esi
mov dword [edi + 4], ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.005cec00
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x5d3220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6cb1c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
mov esi, ecx
mov dword [esi], eax
mov dword [esi + 8], 0
mov eax, dword [edi + 8]
test eax, eax
mov dword [esp + 8], esi
je 0x5d3269
mov dword [esi + 8], eax
mov ecx, dword [edi + 8]
push 0
lea edx, [esi + 0x10]
push edx
lea eax, [edi + 0x10]
push eax
call dword [ecx]
add esp, 0xc
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x30]
lea ecx, [edi + 0x38]
mov dword [esi + 0x30], edx
mov eax, dword [edi + 0x34]
push ecx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], 0
mov dword [esi + 0x34], eax
call fcn.005d07d0
mov dl, byte [edi + 0x48]
mov ecx, dword [esp + 0xc]
mov byte [esi + 0x48], dl
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x5dadd0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x5dadf0
mov edx, dword [esp + 8]
mov dword [ecx + 0x44], edx
mov eax, dword [eax + 0x58]
push 1
add eax, 4
push eax
call fcn.00634e14
mov ecx, dword [eax + 0x10]
push eax
call dword [ecx + 0x28]
add esp, 4
push 1
call fcn.0063173c
int3

Function at 0x5db2d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov ebp, edi
sub ebp, ecx
cmp eax, 6
je 0x5db2f0
call fcn.005db240
mov edi, eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x24]
add eax, 0x18
cmp eax, ecx
jne 0x5db334
mov ax, word [esi + 0x2c]
cmp ax, 0x1000
jbe 0x5db30f
push 5
push esi
call fcn.005dadd0
movzx ecx, ax
shl ecx, 1
push ecx
push esi
call fcn.005daf40
add esp, 8
cmp word [esi + 0x2c], 0x1000
jbe 0x5db334
push str.stack_overflow
push esi
call fcn.005e0ac0
add esp, 8
mov eax, dword [edi + 8]
mov cl, byte [eax + 6]
test cl, cl
jne 0x5db3f7
push ebx
mov ebx, dword [eax + 0xc]
mov al, byte [ebx + 0x46]
test al, al
je 0x5db35d
movzx eax, byte [ebx + 0x45]
lea edx, [edi + 0x10]
push eax
call fcn.005db100
add esp, 4
movzx eax, byte [ebx + 0x47]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, edx
mov edx, eax
shl edx, 4
cmp ecx, edx
jg 0x5db37c
push eax
push esi
call fcn.005dafb0
add esp, 8
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add eax, 0x18
mov dword [esi + 0x14], eax
lea edx, [ecx + ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx]
mov dword [esi + 0xc], ecx
movzx edx, byte [ebx + 0x47]
shl edx, 4
add edx, ecx
mov dword [eax + 4], edx
mov ecx, dword [ebx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 4]
mov dword [eax + 0x14], 0
mov dword [eax + 8], 8
mov edx, dword [esi + 8]
cmp edx, ecx
jae 0x5db3ea
mov ecx, 0x10
jmp 0x5db3d0
mov edx, dword [esi + 8]
mov dword [edx], 0
mov ebx, dword [esi + 8]
add ebx, ecx
mov dword [esi + 8], ebx
mov edi, dword [eax + 4]
mov edx, ebx
cmp edx, edi
jb 0x5db3d0
mov eax, dword [eax + 4]
pop ebx
pop edi
mov dword [esi + 8], eax
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 8]
cmp ecx, 0x140
jg 0x5db410
push 0x14
push esi
call fcn.005dafb0
add esp, 8
mov edx, dword [esi + 0x14]
add edx, 0x18
mov dword [esi + 0x14], edx
mov eax, edx
mov edx, dword [esi + 0x1c]
lea ecx, [edx + ebp + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x14]
mov ecx, dword [edx]
mov edx, dword [esi + 8]
mov dword [esi + 0xc], ecx
add edx, 0x140
mov ecx, 1
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
test byte [esi + 0x30], cl
je 0x5db452
push 0xffffffffffffffff
push 0
push esi
call fcn.005db030
add esp, 0xc
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 8]
push esi
call dword [ecx + 0xc]
add esp, 4
shl eax, 4
mov edx, eax
mov eax, dword [esi + 8]
pop edi
pop esi
sub eax, edx
pop ebp
ret
Function at 0x5deae0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
mov eax, ebp
shr eax, 5
push esi
inc eax
cmp ebp, eax
push edi
mov edi, ebp
mov ecx, ebp
jb 0x5deb1b
lea ebx, [ebx]
movzx edx, byte [ebx + ecx - 1]
mov esi, edi
shl esi, 5
add edx, esi
mov esi, edi
shr esi, 2
add edx, esi
sub ecx, eax
xor edi, edx
cmp ecx, eax
jae 0x5deb00
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
dec ecx
and ecx, edi
mov esi, dword [edx + ecx*4]
test esi, esi
je 0x5deb4e
cmp dword [esi + 0xc], ebp
jne 0x5deb48
push ebp
lea eax, [esi + 0x10]
push eax
push ebx
call fcn.0062f710
add esp, 0xc
test eax, eax
je 0x5deb63
mov esi, dword [esi]
test esi, esi
jne 0x5deb31
push ebp
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, edi
call fcn.005dea60
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x5e83e0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, ecx
mov eax, dword [edi]
push esi
push ebp
call dword [eax + 0x18]
test eax, eax
jne 0x5e8409
pop edi
pop esi
mov eax, 0xfffffffe
pop ebp
add esp, 0x18
ret 8
mov edx, dword [edi]
push esi
push ebp
mov ecx, edi
call dword [edx + 0x14]
test eax, eax
jne 0x5e8422
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret 8
test byte [edi + 0x300], 8
push ebx
jne 0x5e844c
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call ebx
test ax, ax
jge 0x5e85c0
push 0x11
call ebx
test ax, ax
jge 0x5e85c0
mov ebx, dword [edi + 0x1d4]
mov eax, dword [edi + 0x1dc]
mov ecx, dword [edi + 0x1d8]
mov esi, dword [edi + 0x1e0]
add eax, ebx
mov edx, eax
sub edx, ebp
add esi, ecx
cmp edx, 0xc
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jg 0x5e8499
mov edx, dword [esp + 0x30]
mov ecx, esi
sub ecx, edx
cmp ecx, 0xc
jg 0x5e8495
pop ebx
pop edi
pop esi
mov eax, 0x11
pop ebp
add esp, 0x18
ret 8
mov ecx, dword [esp + 0x10]
mov edx, ebx
add edx, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x18], edx
mov edx, ecx
add edx, 4
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x1c], edx
mov edx, eax
sub edx, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x20], edx
mov edx, esi
sub edx, 4
cmp ebp, ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x24], edx
jl 0x5e85bc
cmp ebp, eax
jge 0x5e85bc
mov eax, dword [esp + 0x30]
cmp eax, ecx
jl 0x5e85bc
cmp eax, esi
jge 0x5e85bc
mov edx, eax
push edx
push ebp
lea ecx, [esp + 0x20]
call fcn.00425ee0
test al, al
jne 0x5e85bc
sub ebp, ebx
cmp ebp, 3
jg 0x5e8548
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov ecx, eax
sub ecx, edi
cmp ecx, 3
jg 0x5e852d
pop ebx
pop edi
pop esi
mov eax, 0xd
pop ebp
add esp, 0x18
ret 8
sub esi, eax
xor eax, eax
cmp esi, 3
setg al
pop ebx
pop edi
pop esi
pop ebp
dec eax
and eax, 6
add eax, 0xa
add esp, 0x18
ret 8
cmp dword [esp + 0x14], 3
mov eax, dword [esp + 0x30]
jg 0x5e858a
mov edi, dword [esp + 0x10]
mov edx, eax
sub edx, edi
cmp edx, 3
jg 0x5e856f
pop ebx
pop edi
pop esi
mov eax, 0xe
pop ebp
add esp, 0x18
ret 8
sub esi, eax
xor eax, eax
cmp esi, 3
setg al
pop ebx
pop edi
pop esi
pop ebp
dec eax
and eax, 6
add eax, 0xb
add esp, 0x18
ret 8
mov ebx, dword [esp + 0x10]
mov ecx, eax
sub ecx, ebx
cmp ecx, 3
jg 0x5e85a6
pop ebx
pop edi
pop esi
mov eax, 0xc
pop ebp
add esp, 0x18
ret 8
sub esi, eax
cmp esi, 3
jg 0x5e85bc
pop ebx
pop edi
pop esi
mov eax, 0xf
pop ebp
add esp, 0x18
ret 8
mov esi, dword [esp + 0x30]
mov al, byte [edi + 0x92]
test al, al
je 0x5e85ee
mov eax, dword [edi + 0x1e4]
test eax, eax
je 0x5e85ee
sub esi, dword [edi + 0x1d8]
xor edx, edx
cmp esi, eax
setl dl
pop ebx
pop edi
pop esi
pop ebp
inc edx
mov eax, edx
add esp, 0x18
ret 8
pop ebx
pop edi
pop esi
mov eax, 2
pop ebp
add esp, 0x18
ret 8
Function at 0x5f0976
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6cb899
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [esi + 8], eax
mov dword [esp + 4], esi
mov dword [esi + 0x28], 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x50], eax
lea ecx, [esi + 0x70]
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
push eax
mov byte [esp + 0x14], 3
mov byte [esi + 0x80], 1
call fcn.0047efd0
mov ecx, dword [esp + 8]
mov dword [esi + 0x28], 1
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x5f09e6
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6cb899
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [esi + 8], eax
mov dword [esp + 4], esi
mov dword [esi + 0x28], 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x50], eax
lea ecx, [esi + 0x70]
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
push eax
mov byte [esp + 0x14], 3
mov byte [esi + 0x80], al
call fcn.0047efd0
mov ecx, dword [esp + 8]
mov dword [esi + 0x28], 1
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8