joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dace0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584087
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x608514]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x18
mov byte [edi], 0
call fcn.0054bee4
add esp, 4
mov dword [edi + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
lea esi, [edi + 8]
push 0
mov dword [ebp - 0x14], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004dce50
mov dword [esi], eax
mov byte [ebp - 4], 3
lea esi, [edi + 0x10]
push 0
mov dword [ebp - 0x14], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004dce50
mov dword [esi], eax
mov byte [ebp - 4], 6
xor eax, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 7
mov word [edi + 0x20], ax
mov byte [ebp - 4], 7
lea ecx, [edi + 0x38]
call fcn.004d82d0
mov byte [ebp - 4], 8
lea eax, [edi + 0xb0]
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 9
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov byte [eax + 0x30], cl
mov byte [ebp - 4], 0xa
xor eax, eax
mov dword [edi + 0xf8], ecx
mov dword [edi + 0xfc], 7
mov word [edi + 0xe8], ax
mov byte [ebp - 4], 0xb
mov dword [edi + 0x110], eax
mov dword [edi + 0x114], 0xf
mov byte [edi + 0x100], al
mov byte [ebp - 4], 0xc
mov dword [edi + 0x128], eax
mov dword [edi + 0x12c], 0xf
mov byte [edi + 0x118], al
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4df920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585068
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x608514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [esi + 0x10], eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, dword [esi]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
test ecx, ecx
je 0x4df9f8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x1c], edx
call fcn.004dc5b0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0
je 0x4df9e9
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4df9e9
test esi, esi
je 0x4df9e9
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 8
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004046e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bed3
mov esp, ebp
pop ebp
ret 4
Function at 0x4e43d0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5858f3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x608514]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.004dce50
mov dword [edi], eax
mov dword [ebp - 4], 2
lea esi, [edi + 8]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004eb4f0
mov dword [esi], eax
mov byte [ebp - 4], 5
lea esi, [edi + 0x10]
push 0
mov dword [ebp - 0x14], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004eb060
mov dword [esi], eax
mov byte [ebp - 4], 8
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004eb4f0
mov dword [esi], eax
mov byte [ebp - 4], 0xb
lea esi, [edi + 0x20]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004eafe0
mov dword [esi], eax
mov byte [ebp - 4], 0xe
lea esi, [edi + 0x28]
push 0
mov dword [ebp - 0x14], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004eab50
mov dword [esi], eax
mov byte [ebp - 4], 0x11
lea esi, [edi + 0x30]
push 0
mov dword [ebp - 0x14], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004eaac0
mov dword [esi], eax
mov byte [ebp - 4], 0x14
lea esi, [edi + 0x38]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
push 0
push 0
call fcn.004eaac0
mov dword [esi], eax
mov byte [ebp - 4], 0x17
lea eax, [edi + 0x40]
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x18
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov byte [eax + 0x30], cl
mov byte [ebp - 4], 0x19
xor eax, eax
mov dword [edi + 0x88], ecx
mov dword [edi + 0x8c], 7
mov word [edi + 0x78], ax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e4670
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585a63
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x608514]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 8
lea ecx, [ebx + 0x78]
call fcn.004046e0
mov byte [ebp - 4], 7
lea ecx, [ebx + 0x40]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 7
call fcn.004046e0
mov byte [ebp - 4], 6
lea esi, [ebx + 0x38]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0xb
mov ecx, esi
call fcn.004e7f50
mov byte [ebp - 4], 6
push 0x38
push dword [esi]
call fcn.0054bf14
add esp, 8
mov byte [ebp - 4], 5
lea esi, [ebx + 0x30]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0xd
mov ecx, esi
call fcn.004e7f50
mov byte [ebp - 4], 5
push 0x38
push dword [esi]
call fcn.0054bf14
add esp, 8
mov byte [ebp - 4], 4
lea esi, [ebx + 0x28]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0xf
mov ecx, esi
call fcn.004e8140
mov byte [ebp - 4], 4
push 0x38
push dword [esi]
call fcn.0054bf14
add esp, 8
mov byte [ebp - 4], 3
lea edi, [ebx + 0x20]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0x12
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
call fcn.004e9430
mov eax, dword [edi]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
mov byte [ebp - 4], 3
push 0x40
push dword [edi]
call fcn.0054bf14
add esp, 8
mov byte [ebp - 4], 2
lea edi, [ebx + 0x18]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0x16
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
call fcn.004e9830
mov eax, dword [edi]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
mov byte [ebp - 4], 2
push 0x30
push dword [edi]
call fcn.0054bf14
add esp, 8
mov byte [ebp - 4], 1
lea esi, [ebx + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0x18
mov ecx, esi
call fcn.004e85d0
mov byte [ebp - 4], 1
push 0x28
push dword [esi]
call fcn.0054bf14
add esp, 8
mov byte [ebp - 4], 0
lea edi, [ebx + 8]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0x1b
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
call fcn.004e9830
mov eax, dword [edi]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
mov byte [ebp - 4], 0
push 0x30
push dword [edi]
call fcn.0054bf14
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0x1d
mov ecx, ebx
call fcn.004dc9a0
mov dword [ebp - 4], 0xffffffff
push 0x54
push dword [ebx]
call fcn.0054bf14
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e4a40
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585b08
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x608514]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx + 8]
lea ecx, [ebx + 8]
push dword [esi + 4]
call fcn.004e9830
mov eax, dword [ebx + 8]
lea ecx, [ebx + 0x18]
mov dword [eax + 4], esi
mov eax, dword [ebx + 8]
mov dword [eax], esi
mov eax, dword [ebx + 8]
mov dword [eax + 8], esi
mov dword [ebx + 0xc], 0
mov esi, dword [ebx + 0x18]
push dword [esi + 4]
call fcn.004e9830
mov eax, dword [ebx + 0x18]
lea ecx, [ebx + 0x10]
mov dword [eax + 4], esi
mov eax, dword [ebx + 0x18]
mov dword [eax], esi
mov eax, dword [ebx + 0x18]
mov dword [eax + 8], esi
mov dword [ebx + 0x1c], 0
call fcn.004e85d0
mov esi, dword [ebx + 0x20]
lea ecx, [ebx + 0x20]
push dword [esi + 4]
call fcn.004e9430
mov eax, dword [ebx + 0x20]
lea ecx, [ebx + 0x28]
mov dword [eax + 4], esi
mov eax, dword [ebx + 0x20]
mov dword [eax], esi
mov eax, dword [ebx + 0x20]
mov dword [eax + 8], esi
mov dword [ebx + 0x24], 0
call fcn.004e8140
lea ecx, [ebx + 0x30]
call fcn.004e7f50
push 0
push 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.004dce50
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 2
lea eax, [ebp - 0x14]
cmp ebx, eax
je 0x4e4b30
mov eax, dword [ebx]
lea edx, [ebp - 0x10]
mov dword [ebx], ecx
lea ecx, [ebx + 4]
mov dword [ebp - 0x14], eax
call fcn.00499390
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004dc9a0
mov dword [ebp - 4], 0xffffffff
push 0x54
push dword [ebp - 0x14]
call fcn.0054bf14
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5122b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x608514]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x51230c
cmp dword [esp + 4], 6
jb 0x51230c
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0054bed3
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.0054bed3
add esp, 0x118
ret
Function at 0x5170b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58db48
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x608514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 1
mov dword [ebp - 0x14], 0
call fcn.0054bee4
mov dword [ebp - 0x14], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp - 0x12c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x517134
cmp dword [ebp - 0x12c], 6
mov eax, dword [ebp - 0x14]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x14]
call fcn.004579c0
test al, al
je 0x517161
lea ecx, [ebp - 0x14]
call fcn.00456a80
test al, al
jne 0x517161
xor bl, bl
jmp 0x5171ff
lea esi, [edi + 4]
xor ecx, ecx
mov edx, esi
call fcn.0043c210
test al, al
jne 0x517185
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x517180
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x1c]
mov ecx, 0x1a
mov edx, esi
call fcn.0043c210
test al, al
jne 0x5171ac
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x5171a7
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x34]
mov ecx, 2
mov edx, esi
call fcn.0043c210
test al, al
jne 0x5171d3
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x5171ce
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x4c]
mov ecx, 0xb
mov edx, esi
call fcn.0043c210
test al, al
jne 0x5171fa
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x5171f5
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov byte [edi], 1
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00456210
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bed3
mov esp, ebp
pop ebp
ret
Function at 0x5172d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58db91
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x608514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edx, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], 0
cmp dword [esi + 0x14], 8
jb 0x517314
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x51732e
mov eax, edx
nop dword [eax]
cmp word [eax], 0x25
je 0x517363
add eax, 2
sub ecx, 1
jne 0x517320
push esi
mov ecx, edi
call fcn.0040d690
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bed3
mov esp, ebp
pop ebp
ret 8
test eax, eax
je 0x51732e
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x51732e
push esi
lea ecx, [ebp - 0x28]
call fcn.0040d690
mov dword [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x51738a
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x5173b9
push esi
mov ecx, edi
call fcn.0040d690
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004046e0
jmp 0x517344
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054cb4f
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x14], 8
jb 0x5173e0
mov esi, dword [esi]
mov ecx, dword [ebp - 0x34]
inc ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x51741d
cmp eax, dword [ebp - 0x34]
ja 0x51741d
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x517404
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004047a0
push esi
call fcn.0054cb33
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
add esp, 4
movups xmmword [edi], xmm0
mov word [ebp - 0x28], ax
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], al
lea ecx, [ebp - 0x28]
call fcn.004046e0
jmp 0x517344
Function at 0x5181d0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x228
push 0xffffffffffffffff
push 0x58de4f
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x608514]
xor eax, ebp
mov dword [ebp + 0x224], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x230]
lea eax, [ebp + 0x1c]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, str.MacromedFlashFlashHelperService.exe
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x518260
sub ecx, edx
sar ecx, 1
push ecx
push str.MacromedFlashFlashHelperService.exe
lea ecx, [ebp - 0x3c]
call fcn.004047a0
mov dword [ebp - 4], 0
xor eax, eax
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5182b0
sub ecx, edx
lea eax, [ebp + 0x1c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.004047a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x24]
lea ecx, [ebp]
call fcn.00433480
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.004046e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
call fcn.004046e0
lea ecx, [ebp]
call fcn.00432270
test al, al
je 0x518399
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp + 0x18], 0
call fcn.0054bee4
add esp, 4
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 5
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 4
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 6
lea eax, [ebp]
push 0x80
push 4
push 1
push SysReAllocString
push eax
lea ecx, [ebp + 0x18]
call fcn.004556c0
test al, al
jne 0x51839d
mov byte [ebp - 4], 4
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x518399
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x518387
test eax, eax
je 0x518387
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.0054bf14
add esp, 8
mov dword [ebp + 0x18], 0
xor bl, bl
jmp 0x5183dd
push esi
lea ecx, [ebp + 0x18]
call fcn.00455890
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x5183dd
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x5183cb
test eax, eax
je 0x5183cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.0054bf14
add esp, 8
mov dword [ebp + 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004046e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.0054bed3
lea esp, [ebp + 0x228]
pop ebp
ret 4
Function at 0x51cd70
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e80c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x608514]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
lea ecx, [esi + 0x48]
call fcn.004046e0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.004046e0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
call fcn.004046e0
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.004046e0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.004046e0
push 0x88
push ebx
call fcn.0054bf14
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5431b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59159e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.0054a1a0
lea esi, [edi + 4]
mov dword [edi], vtable.Poco::JSON::ParseHandler.0
push 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0054bee4
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 2
call fcn.0051f450
mov al, byte [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov byte [edi + 0x34], al
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x54da6c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
add eax, 0xffff0000
push esi
push edi
push eax
call fcn.0054db93
mov esi, eax
pop ecx
cmp esi, dword [ebp + 8]
jbe 0x54dafb
mov edi, 0x10000
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x54daa3
mov esi, 0x4fff0000
jmp 0x54daf6
push 0x1c
lea eax, [ebp - 0x1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x54dafb
cmp dword [ebp - 0xc], edi
jne 0x54dae5
cmp dword [ebp - 0x10], edi
jb 0x54dae5
push 0x40
push 0x3000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x54dafd
sub esi, edi
jmp 0x54daf6
mov eax, dword [ebp - 0x18]
add eax, 0xffff0000
push eax
call fcn.0054db93
pop ecx
mov esi, eax
cmp esi, dword [ebp + 8]
ja 0x54da8f
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x54db03
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push dword [ebp + 8]
call fcn.0054dba4
mov esi, eax
pop ecx
cmp esi, dword [ebp + 0xc]
jae 0x54db8b
mov edi, 0x10000
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x54db34
mov esi, 0x80010000
jmp 0x54db86
push 0x1c
lea eax, [ebp - 0x1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x54db8b
mov ecx, dword [ebp - 0x10]
cmp dword [ebp - 0xc], edi
jne 0x54db78
cmp ecx, edi
jb 0x54db78
push 0x40
push 0x3000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x54db8d
add esi, edi
jmp 0x54db86
mov eax, dword [ebp - 0x1c]
add eax, ecx
push eax
call fcn.0054dba4
pop ecx
mov esi, eax
cmp esi, dword [ebp + 0xc]
jb 0x54db20
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret