joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f0970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4f097b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4f0a7e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x67debc]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x67debc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x67debc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x67debc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x67debc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x67debc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x67debc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x67debc]
xor eax, edx
inc ecx
dec edi
jne 0x4f0996
pop edi
test esi, esi
je 0x4f0aa0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x67debc]
xor eax, edx
inc ecx
dec esi
jne 0x4f0a82
pop esi
pop ebx
not eax
ret

Function at 0x4f12e0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x4f1321
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4f1316
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x4f1334
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x4f6a90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4f6b03
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4f6af8
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.0052faab
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret
Function at 0x508f80
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5557a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x6b9624]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.00541988
cmp dword [0x70f0ac], ebx
je 0x508ff0
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.0053f479
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x6b9624]
push ebp
push edi
mov edi, 1
mov dword [0x70f0ac], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x509019
mov dword [esp + 0x20], ebx
jmp 0x509020
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.00543ae8
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.0053f566
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x50907e
mov dword [esp + 0x14], ebx
jmp 0x509085
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x50909f
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x509099
cmp eax, 2
jne 0x50909f
mov dword [esp + 0x18], edi
jmp 0x5090a3
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x5090b1
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00540fbd
mov edi, eax
cmp edi, ebx
jne 0x5090c1
xor eax, eax
jmp 0x5090c4
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5090ec
mov ecx, esi
call fcn.00543ae8
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x509104
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x70f0ac], 0
test eax, eax
je 0x50912d
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x50912d
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.0053f479
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0053f479
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x50b030
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x555998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.005461da
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.0050af70
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00546108
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x50b0f7
cmp dword [esp + 0x40], 1
jne 0x50b0f5
cmp ecx, eax
jge 0x50b0f7
mov eax, ecx
cmp eax, 0x12c
jge 0x50b103
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.0050b150
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0054624c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x50f3d0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x555e86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x6b9624]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.00541988
mov edx, dword [0x6b9624]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x50f42a
mov dword [esp + 0x1c], ebx
jmp 0x50f431
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.00543ae8
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.0053f566
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x50f482
mov dword [esp + 0x14], ebx
jmp 0x50f489
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x50f4a4
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x50f49e
cmp eax, 2
jne 0x50f4a4
mov dword [esp + 0x18], edi
jmp 0x50f4a8
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x50f4b6
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00540fbd
mov edi, eax
cmp edi, ebx
jne 0x50f4c6
xor eax, eax
jmp 0x50f4c9
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x50f4f1
mov ecx, esi
call fcn.00543ae8
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x50f50d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x50f52c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x50f52c
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.0053f479
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.0053f479
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x512f80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
cmp di, 0x76d
jb 0x5130d5
cmp di, 0x801
ja 0x5130d5
mov ebx, dword [esp + 0x28]
cmp bx, 1
jb 0x5130d5
cmp bx, 0xc
ja 0x5130d5
mov al, byte [esp + 0x30]
test al, al
je 0x512fd4
push edi
call fcn.00513510
add esp, 4
cmp ax, bx
je 0x512fd4
mov byte [esp + 0x30], 0
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x14]
mov word [esi], di
mov edi, dword [esp + 0x38]
push eax
lea edx, [esp + 0x1c]
mov word [edi], bx
mov ebx, dword [esp + 0x30]
push ecx
lea eax, [esp + 0x24]
mov word [ebp], bx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ebx
push ecx
push edx
call fcn.005130e0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
push ebx
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
call fcn.00512f00
add esp, 0x34
mov ebx, eax
xor eax, eax
inc eax
cmp eax, 0x64
mov dword [esp + 0x34], eax
jg 0x5130d5
test ebx, ebx
jne 0x513069
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x30]
cmp al, cl
je 0x5130cb
test al, al
je 0x51305c
push 0xffffffffffffffe1
jmp 0x51305e
push 0x1f
push ebp
push edi
push esi
call fcn.00512eb0
add esp, 0x10
neg ebx
push ebx
push ebp
push edi
push esi
call fcn.00512eb0
lea edx, [esp + 0x23]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push eax
mov ax, word [ebp]
lea edx, [esp + 0x34]
push ecx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ecx
push edx
call fcn.005130e0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
call fcn.00512f00
mov ebx, eax
mov eax, dword [esp + 0x78]
add esp, 0x44
jmp 0x513036
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
Function at 0x514760
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5563a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push 0x70f158
lea ecx, [esp + 4]
call fcn.0053f4e7
push 0x6b3b30
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0
call fcn.0053f4e7
push 0x6b3b2c
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.0053f4e7
push 0x6b3b28
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call fcn.0053f4e7
push 0x6b3b24
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call fcn.0053f4e7
push 0x6b3b20
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 4
call fcn.0053f4e7
push 0x6b3b1c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 5
call fcn.0053f4e7
push 0x6b3b18
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 6
call fcn.0053f4e7
push 0x6b3b14
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 7
call fcn.0053f4e7
push 0x6b3b10
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 8
call fcn.0053f4e7
push 0x6b3b0c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 9
call fcn.0053f4e7
push 0x6b3b08
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 0xa
call fcn.0053f4e7
push 0x6b3b04
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 0xb
call fcn.0053f4e7
mov eax, dword [esp + 0x44]
mov byte [esp + 0x3c], 0xc
cmp eax, 1
jge 0x514890
cmp eax, 0xc
jle 0x514890
mov ecx, dword [esp + 0x48]
push 0x70f158
call fcn.0053f5b6
jmp 0x51489e
mov ecx, dword [esp + 0x48]
lea eax, [esp + eax*4]
push eax
call fcn.0053f566
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 0xb
call fcn.0053f479
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0xa
call fcn.0053f479
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 9
call fcn.0053f479
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 8
call fcn.0053f479
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 7
call fcn.0053f479
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 6
call fcn.0053f479
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 5
call fcn.0053f479
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 4
call fcn.0053f479
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.0053f479
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 2
call fcn.0053f479
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 1
call fcn.0053f479
lea ecx, [esp + 4]
mov byte [esp + 0x3c], 0
call fcn.0053f479
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0053f479
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x51b180
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x6b3de0]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x51b193
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x51b1d4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x6b3e88]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x51b206
mov bl, byte [esp + ecx + 0x4c]
jmp 0x51b20a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x51b1fb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x51b228
mov bl, byte [esp + ecx + 0x4c]
jmp 0x51b22c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x51b21d
xor ecx, ecx
mov eax, 0x6b3df0
xor ebx, ebx
mov bl, byte [ecx + 0x6b3e98]
cmp byte [esp + ebx + 0x14], 0
je 0x51b257
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x6b3eb0]
cmp byte [esp + ebx + 0x14], 0
je 0x51b26e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x51b23e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x51b1c7
lea edx, [esp + 0x84]
push edx
call fcn.0051b2b0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x52f5bd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x52f5dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0052e506
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x52f600
test byte [esp + 8], 2
je 0x52f600
call fcn.0052e579
mov dword [eax], 0xd
call fcn.0052e582
mov dword [eax], 5
jmp 0x52f5d9
xor eax, eax
ret

Function at 0x5402d5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x5402f7
cmp dword [edi + 0x3c], 0
jne 0x5402f7
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00549fe2
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00540324
pop edi
pop esi
pop ebx
ret 8

Function at 0x541988
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5419c0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0053f8d4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0053f8ac
jmp 0x5419cc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5431fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x54323e
call fcn.00549fe2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x54323e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x543235
xor eax, eax
jmp 0x543246
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0054324c
pop edi
pop esi
pop ebx
ret 4

Function at 0x54a4f6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x54a524
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x54a542
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0054a45c
jmp 0x54a542
mov eax, dword [esi + 0x14]
test eax, eax
je 0x54a542
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0054a45c
test edi, edi
mov eax, edi
jne 0x54a52c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x54cebd
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x54cee5
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x54cef6
push 2
call edi
test ax, ax
jge 0x54cef6
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00540fbd
cmp dword [esi + 0x30], ebx
jne 0x54cfd0
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00540fbd
cmp eax, dword [esp + 0x34]
jne 0x54cfd0
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x54cf6c
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x54cfb1
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x54cfd0
cmp eax, 0x205
je 0x54cfd0
cmp eax, 0x201
je 0x54cfd0
cmp eax, 0x204
je 0x54cfd0
cmp eax, ebx
jne 0x54cf97
cmp dword [esp + 0x1c], 0x1b
je 0x54cfd0
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x712278]
jbe 0x54cfc6
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x54cf29
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x5350c926
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x5350c965
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5350c965
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5350c965
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5350c965
cmp dword [ecx + 0x74], 0xe
jbe 0x5350c965
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x5350e9f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5350ea1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5350ea1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5350ed10
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x53519508
push 0x53519500
push str.FlsAlloc
push 0x1f
call fcn.5350eff3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5350ed44
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x5350ed4a
call dword [sym.imp.kernel32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5350ed8e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x53519518
push 0x53519510
push str.FlsGetValue
push 0x21
call fcn.5350eff3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5350edc5
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsGetValue]

Function at 0x5350edcd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x53519520
push 0x53519518
push str.FlsSetValue
push 0x22
call fcn.5350eff3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5350ee07
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsSetValue]
Function at 0x5351191f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x535119bc
push ebx
push esi
call fcn.535119bf
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.53511823
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x53511969
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x535119bb
push edi
push eax
call fcn.53511a96
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x53511989
call fcn.535102c0
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x535119ba
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.53511823
add esp, 0x20
test eax, eax
jne 0x535119a8
push edi
call fcn.535102c0
jmp 0x535119b0
push ebx
call fcn.535102c0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret