joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9590
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5a244b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x14], esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esp + 0x28], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
lea ecx, [esi + 0x58]
mov byte [esp + 0x28], 4
call fcn.0054a880
lea edi, [esi + 0xa0]
push 8
mov ecx, edi
mov dword [esp + 0x1c], edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.00460a50
mov ecx, edi
mov byte [esp + 0x28], 5
call fcn.00402970
lea ebp, [edi + 0xc]
lea eax, [esp + 0x10]
push 8
push eax
mov ecx, ebp
mov byte [esp + 0x30], 6
mov dword [esp + 0x24], ebp
call fcn.00402a70
mov ecx, ebp
mov byte [esp + 0x28], 7
call fcn.00402970
lea ecx, [esp + 0x11]
lea ebp, [edi + 0x18]
push 8
push ecx
mov ecx, ebp
mov byte [esp + 0x30], 8
mov dword [esp + 0x24], ebp
call fcn.00402a70
mov ecx, ebp
mov byte [esp + 0x28], 9
call fcn.00402970
lea edx, [esp + 0x12]
lea eax, [esp + 0x13]
push edx
lea ecx, [edi + 0x58]
push eax
mov byte [esp + 0x30], 0xa
call fcn.004caa70
mov dword [edi + 0x38], ebx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x50], 0x64
mov dword [edi + 0x2c], 2
mov dword [edi + 0x30], 0x12c
mov dword [edi + 0x34], 3
mov ecx, esi
mov byte [esp + 0x28], 0xb
mov dword [esi], 0x5aa668
call fcn.004c98b0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4cbb70
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5a25eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.00503de0
xor ebx, ebx
lea ecx, [esi + 0xf0]
mov dword [esp + 0x28], ebx
call fcn.0054a880
lea ecx, [esi + 0x138]
call fcn.0054a880
lea ecx, [esi + 0x180]
call fcn.0054a880
lea ecx, [esi + 0x1c8]
call fcn.0054a880
lea ecx, [esi + 0x210]
call fcn.0054a880
lea ecx, [esi + 0x258]
call fcn.0054a880
lea ecx, [esi + 0x2a0]
call fcn.0054a880
lea edi, [esi + 0x2e8]
push 8
mov ecx, edi
mov dword [esp + 0x1c], edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.00460a50
mov ecx, edi
mov byte [esp + 0x28], 1
call fcn.00402970
lea edi, [esi + 0x2f4]
push 8
mov ecx, edi
mov byte [esp + 0x2c], 2
mov dword [esp + 0x1c], edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.00460a50
mov ecx, edi
mov byte [esp + 0x28], 3
call fcn.00402970
lea ecx, [esi + 0x300]
mov byte [esp + 0x28], 4
call fcn.0054a880
lea edi, [esi + 0x3d4]
push 0x18
mov dword [esp + 0x1c], edi
mov dword [edi + 4], ebx
call fcn.00402b20
mov cl, byte [esp + 0x17]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov byte [edi + 0xc], cl
mov byte [eax], bl
mov edx, dword [edi + 4]
mov dword [edx + 4], ebx
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, dword [edi + 4]
mov dword [eax + 0xc], eax
lea ebp, [edi + 0x10]
push 0x18
mov byte [esp + 0x30], 5
mov dword [esp + 0x24], ebp
mov dword [ebp], ebx
call fcn.00402b20
add esp, 8
mov dword [ebp], eax
mov byte [esp + 0x28], 6
mov al, byte [esp + 0x13]
mov ecx, ebp
mov dword [ebp + 4], ebx
mov byte [ebp + 8], al
call fcn.004b4d30
lea ebp, [edi + 0x1c]
mov byte [esp + 0x28], 7
lea ecx, [ebp + 8]
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
call fcn.0049c210
lea ecx, [ebp + 0x18]
call fcn.0049c210
push ebx
mov ecx, ebp
call fcn.004d3200
mov ecx, edi
mov byte [esp + 0x28], 8
mov dword [edi], 0x5aa898
call fcn.004d1df0
mov ecx, esi
mov byte [esp + 0x28], 9
mov dword [esi], 0x5aa6b0
call fcn.004cbf50
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4cbb8a
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5a25eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.00503de0
xor ebx, ebx
lea ecx, [esi + 0xf0]
mov dword [esp + 0x28], ebx
call fcn.0054a880
lea ecx, [esi + 0x138]
call fcn.0054a880
lea ecx, [esi + 0x180]
call fcn.0054a880
lea ecx, [esi + 0x1c8]
call fcn.0054a880
lea ecx, [esi + 0x210]
call fcn.0054a880
lea ecx, [esi + 0x258]
call fcn.0054a880
lea ecx, [esi + 0x2a0]
call fcn.0054a880
lea edi, [esi + 0x2e8]
push 8
mov ecx, edi
mov dword [esp + 0x1c], edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.00460a50
mov ecx, edi
mov byte [esp + 0x28], 1
call fcn.00402970
lea edi, [esi + 0x2f4]
push 8
mov ecx, edi
mov byte [esp + 0x2c], 2
mov dword [esp + 0x1c], edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.00460a50
mov ecx, edi
mov byte [esp + 0x28], 3
call fcn.00402970
lea ecx, [esi + 0x300]
mov byte [esp + 0x28], 4
call fcn.0054a880
lea edi, [esi + 0x3d4]
push 0x18
mov dword [esp + 0x1c], edi
mov dword [edi + 4], ebx
call fcn.00402b20
mov cl, byte [esp + 0x17]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov byte [edi + 0xc], cl
mov byte [eax], bl
mov edx, dword [edi + 4]
mov dword [edx + 4], ebx
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, dword [edi + 4]
mov dword [eax + 0xc], eax
lea ebp, [edi + 0x10]
push 0x18
mov byte [esp + 0x30], 5
mov dword [esp + 0x24], ebp
mov dword [ebp], ebx
call fcn.00402b20
add esp, 8
mov dword [ebp], eax
mov byte [esp + 0x28], 6
mov al, byte [esp + 0x13]
mov ecx, ebp
mov dword [ebp + 4], ebx
mov byte [ebp + 8], al
call fcn.004b4d30
lea ebp, [edi + 0x1c]
mov byte [esp + 0x28], 7
lea ecx, [ebp + 8]
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
call fcn.0049c210
lea ecx, [ebp + 0x18]
call fcn.0049c210
push ebx
mov ecx, ebp
call fcn.004d3200
mov ecx, edi
mov byte [esp + 0x28], 8
mov dword [edi], 0x5aa898
call fcn.004d1df0
mov ecx, esi
mov byte [esp + 0x28], 9
mov dword [esi], 0x5aa6b0
call fcn.004cbf50
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x4d3860
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4d38a1
push esi
mov esi, dword [esp + 0x14]
mov ecx, 0x2800
sub ecx, eax
add eax, esi
push ecx
push eax
push esi
call fcn.0050a1c0
mov eax, dword [edi]
mov edx, dword [esp + 0x18]
sub esi, eax
push eax
add esi, 0x2800
push esi
push edx
call fcn.0050c92f
add esp, 0x18
mov dword [edi], 0
pop esi
pop edi
ret 0xc
Function at 0x4dd870
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5a3469
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push 0xc
mov dword [esp + 0x10], esi
call fcn.00402b20
mov dword [esi + 0x10], eax
mov dword [eax], eax
mov eax, dword [esi + 0x10]
add esp, 4
mov dword [eax + 4], eax
mov dword [esi + 4], 0x5aaaf0
mov dword [esi + 0xc], 0x1869f
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov ecx, 0x5d5740
mov byte [esp + 0x18], 2
mov dword [esi + 0x34], ebx
call fcn.00402360
mov eax, dword [0x5d5708]
mov byte [esp + 0x18], 3
cmp eax, ebx
jne 0x4dd8f7
push 0x18
call fcn.004031e0
add esp, 4
jmp 0x4dd8ff
mov ecx, dword [eax]
mov dword [0x5d5708], ecx
mov dl, byte [esp + 0xb]
mov dword [0x5d5740], ebx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebx
mov byte [esi + 0x3c], dl
mov byte [eax], bl
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x34]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x34]
mov dword [eax + 0xc], eax
mov dword [esi], 0x5aaa80
mov dword [esi + 0x18], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4ffb00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a4b1a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
mov ebx, dword [esp + 0x144]
mov eax, ebx
push ebp
mov ebp, ecx
push esi
mov edx, dword [eax]
push edi
mov dword [ecx], edx
lea edi, [ebp + 0x10]
mov edx, dword [eax + 4]
xor esi, esi
mov dword [ecx + 4], edx
mov dword [esp + 0x30], ebp
mov eax, dword [eax + 8]
mov dword [esp + 0x20], edi
mov dword [ecx + 8], eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], ecx
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
sub eax, ecx
mov dword [esp + 0x148], esi
mov dword [esp + 0x14], ecx
lea edx, [eax + 1]
mov dword [esp + 0x1c], eax
cmp edx, 0xfffffffe
ja 0x4ffcad
cmp edx, esi
je 0x4ffb93
push edx
call fcn.00402b20
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 4
push eax
lea edx, [esi + eax + 1]
push ecx
push esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], edx
call fcn.0050a1c0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub esi, eax
add esp, 0xc
add esi, edx
mov ecx, edi
mov dword [edi + 4], esi
call fcn.00402970
lea esi, [ebp + 0x1c]
xor edi, edi
mov dword [esp + 0x148], 2
mov dword [esp + 0x20], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x1c]
mov dword [esp + 0x1c], eax
sub eax, edx
mov byte [esp + 0x148], 3
mov dword [esp + 0x14], edx
lea ecx, [eax + 1]
mov dword [esp + 0x18], eax
cmp ecx, 0xfffffffe
ja 0x4ffc6d
cmp ecx, edi
je 0x4ffc17
push ecx
call fcn.00402b20
mov edx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
lea ecx, [edi + eax + 1]
push edx
push edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
call fcn.0050a1c0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
sub edi, ecx
add esp, 0xc
add edi, eax
mov ecx, esi
mov dword [esi + 4], edi
call fcn.00402970
mov edx, dword [ebx + 0x28]
mov ecx, dword [esp + 0x140]
mov dword [ebp + 0x28], edx
mov eax, dword [ebx + 0x2c]
mov dword [ebp + 0x2c], eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret 4
lea ecx, [esp + 0x13]
push ecx
push str.basic_string
lea ecx, [esp + 0x2c]
call fcn.00402450
lea edx, [esp + 0x24]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0x14c], 4
call fcn.00402730
lea eax, [esp + 0x34]
push 0x5b3c20
push eax
mov dword [esp + 0x3c], 0x5a83c0
call fcn.0050a062
lea ecx, [esp + 0x13]
push ecx
push str.basic_string
lea ecx, [esp + 0x2c]
call fcn.00402450
lea edx, [esp + 0x24]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0x14c], 1
call fcn.00402730
lea eax, [esp + 0x34]
push 0x5b3c20
push eax
mov dword [esp + 0x3c], 0x5a83c0
call fcn.0050a062
nop
nop
nop
Function at 0x5110b6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5cce08
cmp edx, dword [eax]
je 0x5110d8
add eax, 8
inc ecx
cmp eax, 0x5cce98
jl 0x5110c9
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5cce08]
jne 0x511206
mov eax, dword [0x6673ec]
cmp eax, 1
je 0x5111e0
test eax, eax
jne 0x511109
cmp dword [0x5ca764], 1
je 0x5111e0
cmp edx, 0xfc
je 0x511206
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x511140
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0050f500
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0050d610
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x511183
lea eax, [ebp - 0x1a4]
push eax
call fcn.0050d610
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5ac964
push edi
call fcn.0050a720
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0050f500
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0050f510
lea eax, [ebp - 0xa0]
push 0x5ac944
push eax
call fcn.0050f510
push dword [esi + 0x5cce0c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0050f510
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00513e27
add esp, 0x2c
pop edi
jmp 0x511206
lea eax, [ebp + 8]
lea esi, [esi + 0x5cce0c]
push 0
push eax
push dword [esi]
call fcn.0050d610
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x519d2a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x519d82
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x519d82
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x519d82
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x519e63
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
push ebx
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
xor bl, bl
and byte [ebp + 0x73], bl
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x519e9a
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x519ebc
cmp dword [ebp - 0x20], 4
ja 0x519ec6
jne 0x519eb6
cmp dword [ebp - 0x1c], 0xa
jb 0x519eb6
cmp word [ebp - 0x18], 0x55d
jae 0x519ec6
mov byte [ebp + 0x73], 1
jmp 0x519ec6
cmp dword [ebp - 0x14], 2
jne 0x519edc
test bl, bl
je 0x519ef7
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x519ee7
dec eax
je 0x519ee0
sub eax, 3
jne 0x519edc
cmp byte [ebp + 0x73], 0
je 0x519f08
xor eax, eax
jmp 0x519f10
call fcn.00519d86
jmp 0x519f10
cmp byte [ebp + 0x73], 0
jne 0x519edc
call fcn.00519dbe
and eax, 4
jmp 0x519f10
cmp dword [ebp + 0x7c], 0xa
je 0x519f08
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x519f10
call fcn.00519dbe
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret

Function at 0x524740
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x6677ac]
cmp eax, ecx
push esi
jne 0x524756
mov eax, 1
pop esi
ret
cmp eax, 0x1c
ja 0x52484b
je 0x5247af
dec eax
je 0x52479b
sub eax, 2
jne 0x52488f
mov eax, dword [esp + 0x10]
mov edx, dword [0x5d5764]
mov ecx, eax
pop esi
and ecx, 0xffff
mov dword [edx + 0x684], ecx
mov ecx, dword [0x5d5764]
shr eax, 0x10
mov dword [ecx + 0x688], eax
mov eax, 1
ret
push str.QueryCancelAutoPlay
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x6677ac], eax
xor eax, eax
pop esi
ret
mov eax, dword [0x5d575c]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x52480d
cmp esi, 1
jne 0x5247c8
call fcn.0041ab60
jmp 0x524812
mov eax, dword [0x5d5764]
mov ecx, dword [eax + 0x6ec]
test ecx, ecx
jne 0x5247de
mov eax, 1
pop esi
ret
mov eax, dword [eax + 0x6f8]
test eax, eax
je 0x5247f3
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x80]
mov eax, dword [0x5d5764]
mov eax, dword [eax + 0x6f4]
test eax, eax
je 0x52480d
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x80]
cmp esi, 1
jne 0x524844
mov eax, dword [0x5d5770]
test eax, eax
je 0x524844
mov edx, dword [0x5d5764]
xor esi, esi
mov eax, dword [edx + 0x45c]
test eax, eax
jle 0x524844
push esi
call fcn.00412040
mov eax, dword [0x5d5764]
add esp, 4
inc esi
cmp esi, dword [eax + 0x45c]
jl 0x52482d
mov eax, 1
pop esi
ret
sub eax, 0x100
je 0x524857
sub eax, 4
jne 0x52488f
cmp dword [esp + 0xc], 0x75
jne 0x52488f
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
push 0x10
mov si, ax
call edi
and esi, eax
pop edi
and esi, 0xffffff00
test si, si
mov word [0x6677a0], si
je 0x52488f
mov dword [0x6677a4], 1
xor eax, eax
pop esi
ret
Function at 0x529330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub esp, 0x60
mov dword [eax], 0x1101
mov eax, dword [esp + 0x78]
push ebp
mov ebp, dword [esp + 0x70]
push esi
mov dword [ebp], 0
mov dword [ecx], 0
mov dword [edx], 0x5622
mov byte [eax], 0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x52956f
push 0x5c4598
push eax
call fcn.005099ce
mov esi, eax
add esp, 8
test esi, esi
je 0x52956f
push ebx
push edi
push esi
mov ebx, 1
push 0xc
lea ecx, [esp + 0x20]
push ebx
push ecx
call fcn.0050b0c8
mov edx, dword [esp + 0x2c]
add esp, 0x10
inc edx
and edx, 0xfffffffe
sub edx, 4
mov dword [esp + 0x1c], edx
je 0x529564
mov edi, 8
push esi
push edi
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0050b0c8
add esp, 0x10
test eax, eax
je 0x529564
lea edx, [esp + 0x10]
mov ecx, str.fmt
mov eax, dword [edx]
mov edx, dword [ecx]
cmp eax, edx
jne 0x52946e
push esi
push 0x10
lea ecx, [esp + 0x2c]
push ebx
push ecx
call fcn.0050b0c8
add esp, 0x10
cmp word [esp + 0x24], bx
jne 0x529446
xor eax, eax
cmp word [esp + 0x26], bx
jne 0x529418
cmp word [esp + 0x32], di
setne al
add eax, 0x1100
jmp 0x529425
cmp word [esp + 0x32], di
setne al
add eax, 0x1102
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x84]
push ebx
mov dword [edx], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
add edx, 0xfffffff0
mov dword [ecx], eax
push edx
jmp 0x52952c
push esi
push 4
lea eax, [esp + 0x84]
push ebx
push eax
call fcn.0050b0c8
mov ecx, dword [esp + 0x24]
push ebx
add ecx, 0xffffffec
push ecx
push esi
call fcn.0050b283
add esp, 0x1c
jmp 0x529535
lea eax, [esp + 0x10]
mov edx, str.data
mov ecx, dword [eax]
mov eax, dword [edx]
cmp ecx, eax
jne 0x5294e1
cmp word [esp + 0x24], bx
jne 0x529535
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x14]
mov dword [edx], eax
add eax, 0x1f
push eax
call fcn.0050a4f5
mov ecx, eax
add esp, 4
test ecx, ecx
mov dword [ebp], ecx
je 0x5294ca
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
and edi, 0xffff
xor edx, edx
div edi
push esi
push eax
push edi
push ecx
call fcn.0050b0c8
add esp, 0x10
mov edi, dword [ebp]
mov edx, dword [esp + 0x14]
xor eax, eax
mov ecx, 7
add edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jmp 0x529535
lea ecx, [esp + 0x10]
mov eax, str.smpl
mov edx, dword [ecx]
mov ecx, dword [eax]
cmp edx, ecx
jne 0x529526
push esi
push 0x3c
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0050b0c8
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x98]
test eax, eax
mov eax, dword [esp + 0x24]
push ebx
setne cl
add eax, 0xffffffc4
mov byte [edx], cl
push eax
push esi
call fcn.0050b283
add esp, 0x1c
jmp 0x529535
mov ecx, dword [esp + 0x14]
push ebx
push ecx
push esi
call fcn.0050b283
add esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
and edx, ebx
push edx
push esi
call fcn.0050b283
mov eax, dword [esp + 0x20]
add esp, 0xc
inc eax
mov ecx, 0xfffffff8
and al, 0xfe
sub ecx, eax
mov eax, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x1c], eax
jne 0x5293b6
push esi
call fcn.0050ae47
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x60
ret
Function at 0x53f320
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x53f350
push esi
call fcn.00540b00
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x53f349
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x53f3d3
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x53f3bf
mov eax, dword [esi + 8]
test eax, eax
je 0x53f374
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x53f3bb
cmp eax, 2
je 0x53f3bf
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x53f367
cmp eax, 3
je 0x53f39a
cmp eax, 1
jne 0x53f367
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x53f367
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x53f367
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0053f400
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x53f3f3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0053f400
add esp, 4
pop esi
ret
Function at 0x54d4f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5a5348
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [esp + 0x34]
push edi
mov ebx, ecx
mov ecx, 6
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x24]
mov edi, dword [ebx]
mov ecx, dword [ebx + 4]
sub eax, edi
sar eax, 2
sub ecx, eax
mov dword [esp + 0x30], 0
cmp ecx, 2
jae 0x54d543
push 0
push 1
mov ecx, ebx
call fcn.0049f170
push 0x1f8
call fcn.0050a4f5
add esp, 4
test eax, eax
jne 0x54d561
push 0x1f8
call fcn.00403390
add esp, 4
mov edx, dword [ebx + 0x24]
mov dword [edx + 4], eax
mov edi, dword [ebx + 0x18]
test edi, edi
je 0x54d579
mov ecx, 6
lea esi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x24]
lea ecx, [esp + 0xc]
add eax, 4
mov dword [esp + 0x30], 0xffffffff
mov dword [ebx + 0x24], eax
mov eax, dword [eax]
mov dword [ebx + 0x1c], eax
add eax, 0x1f8
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x18], eax
call fcn.00555a80
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x551890
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [0x7258a0]
lea eax, [esp]
push ebx
push eax
push 1
push 0
push ecx
push reloc.WS2_32.dll_bind
xor bl, bl
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x551982
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x725790
push eax
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x551977
push esi
push edi
mov edi, 0x725790
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x1c]
mov esi, 0x725790
not ecx
mov edi, dword [ebx]
dec ecx
mov edx, ecx
mov ecx, dword [ebx + 4]
add edx, 0x725790
sub ecx, edi
mov eax, edx
sub eax, 0x725790
cmp eax, ecx
ja 0x55194e
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
add esi, eax
cmp esi, edi
je 0x551973
mov eax, edi
sub eax, edi
inc eax
push eax
push edi
push esi
call fcn.0050a1c0
mov eax, dword [ebx + 4]
sub esi, edi
add esp, 0xc
add eax, esi
mov dword [ebx + 4], eax
jmp 0x551973
mov eax, ecx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, 0x725790
sub ecx, esi
add ecx, edx
push ecx
mov ecx, ebx
call fcn.004033e0
pop edi
mov bl, 1
pop esi
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 8
ret