joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ea629
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [0x5195ac]
mov edx, dword [eax + 0xc]
mov ebp, dword [esp + 0x30]
mov ecx, 0x5195ac
call edx
add eax, 0x10
mov dword [ebp + 4], eax
mov dword [ebp + 8], 0xffffffff
mov dword [ebp + 0xc], ebx
mov dword [ebp], ebx
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x28], ebx
add edi, 0x2c
mov esi, str.text
mov dword [esp + 0x18], 1
call fcn.00474270
cmp eax, ebx
je 0x455d10
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x455d12
xor eax, eax
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00466b70
add esp, 8
mov dword [esp + 0x28], 1
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00406bd0
mov byte [esp + 0x28], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x455d5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
push str.block
push ecx
lea edx, [edi + 0x80]
push edx
mov ecx, str.img_src
call fcn.00451eb0
push 0x5c
mov dword [esp + 0x40], eax
call fcn.004c99ad
add esp, 4
cmp eax, ebx
je 0x455d97
mov esi, eax
call fcn.00456ec0
mov esi, eax
jmp 0x455d99
xor esi, esi
mov ecx, dword [edi + 0x20]
mov edi, dword [esp + 0x38]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 4], 0xb
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push ebx
push ebx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push ebx
push ebx
mov ecx, esi
call edx
mov eax, dword [esp + 0x3c]
call fcn.00456d90
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [ebp], edi
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x455e2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14
Function at 0x455e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e4719
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebp
mov eax, dword [0x5195ac]
mov edx, dword [eax + 0xc]
mov esi, dword [esp + 0x28]
mov ecx, 0x5195ac
call edx
add eax, 0x10
mov dword [esi + 4], eax
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], ebp
mov dword [esi], ebp
mov dword [esp + 0x20], ebp
push 0xc
mov dword [esp + 0x18], 1
call fcn.004c99ad
add esp, 4
cmp eax, ebp
je 0x455ed0
lea ecx, [eax + 8]
mov dword [ecx], ebp
mov dword [eax + 4], ecx
mov dword [eax], vtable.CSMHotkeyCtrl.0
mov edi, eax
jmp 0x455ed2
xor edi, edi
mov ebx, dword [esp + 0x30]
push ecx
mov eax, esp
mov dword [esp + 0x2c], esp
push ecx
mov dword [eax], ebx
mov eax, esp
mov dword [eax], ebp
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x30], esp
push eax
lea ecx, [edi + 8]
push ecx
call fcn.00456610
mov dword [esi], ebx
mov dword [esi + 8], 1
mov dword [esi + 0xc], edi
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
Function at 0x4562d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e4719
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
mov eax, dword [0x5195ac]
mov edx, dword [eax + 0xc]
mov ebx, dword [esp + 0x28]
mov ecx, 0x5195ac
call edx
add eax, 0x10
mov dword [ebx + 4], eax
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 0xc], edi
mov dword [ebx], edi
mov dword [esp + 0x20], edi
push 0x30
mov dword [esp + 0x18], 1
call fcn.004c99ad
add esp, 4
cmp eax, edi
je 0x45636b
xor ecx, ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], edi
mov dword [eax], vtable.CSomImageWnd.0
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], edi
mov esi, eax
jmp 0x45636d
xor esi, esi
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x20]
mov ebp, dword [esp + 0x30]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 4], 3
mov dword [esi + 8], ebp
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov edx, dword [ecx]
mov eax, dword [edx]
push esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
push edi
push edi
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
push edi
push edi
mov ecx, esi
call eax
mov dword [ebx], ebp
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], esi
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14

Function at 0x456a90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e7a2b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor eax, eax
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi], vtable.CSomCheckBox.0
mov edx, dword [0x5195ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5195ac
call eax
add eax, 0x10
mov dword [esi + 0x48], eax
push edi
mov dword [esp + 0x18], edi
push edi
push edi
push 2
xor ecx, ecx
xor edx, edx
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x4c], edi
call fcn.004224b0
mov dword [esi + 0x2c], eax
add esp, 0x10
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x457e80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e4a80
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x512054]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x5195ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5195ac
mov dword [esp + 0x10], ebx
call edx
add eax, 0x10
mov dword [ebx], eax
xor eax, eax
mov dword [esp + 0x30], 0
mov word [esp + 0xc], di
mov word [esp + 0xe], ax
lea esi, [eax + 1]
test di, di
je 0x457eff
lea esi, [esp + 0xc]
lea ecx, [esi + 2]
lea ebx, [ebx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x457ef0
sub esi, ecx
sar esi, 1
mov dword [esp + 0x14], 0
lea eax, [esi + 1]
mov ecx, 2
mul ecx
mov byte [esp + 0x30], 1
test edx, edx
ja 0x457f1f
cmp eax, 0xffffffff
jbe 0x457f29
push 0x80070057
call fcn.00406e60
cmp eax, 0xa
jbe 0x457f3a
lea edx, [esp + 0x14]
push edx
call fcn.0040bda0
jmp 0x457f42
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
push 2
lea ecx, [esp + 0x10]
push ecx
lea edx, [esi + esi + 2]
push edx
push eax
call fcn.004c981b
push eax
call fcn.00406920
mov eax, dword [ebx]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, esi
add esp, 0x14
or ecx, edx
jge 0x457f80
mov ecx, esi
mov eax, ebx
call fcn.00406d30
mov ecx, dword [ebx]
cmp esi, 1
jne 0x457f93
mov eax, dword [esp + 0x14]
movzx eax, word [eax]
mov word [ecx], ax
jmp 0x457fbb
xor eax, eax
test esi, esi
jle 0x457fb5
lea esp, [esp]
mov edx, dword [esp + 0x14]
mov dx, word [edx + eax*2]
mov word [ecx], dx
inc eax
add ecx, 2
cmp eax, esi
jl 0x457fa0
test esi, esi
jl 0x457f1f
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x457f1f
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
lea edx, [esp + 0x18]
mov word [eax + esi*2], cx
cmp dword [esp + 0x14], edx
je 0x457fe4
lea eax, [esp + 0x14]
call fcn.00459030
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004c961b
add esp, 0x2c
ret
Function at 0x45bd00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4e87d8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
sub esp, 0x18
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x2c]
add eax, 0xa0
call fcn.0045fcf0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45bd8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 0x24
Function at 0x461c20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e79b1
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
xor eax, eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], vtable.CSomStatic.0
mov eax, dword [0x5195ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5195ac
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
mov dword [esp + 0x14], ebx
mov eax, dword [0x5195ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5195ac
call edx
add eax, 0x10
mov dword [esi + 0x30], eax
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
push ebx
mov byte [esp + 0x18], 2
push ebx
push ebx
push 2
xor ecx, ecx
xor edx, edx
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x3c], 0x14
mov byte [esi + 0x2a], bl
mov byte [esi + 0x29], bl
mov byte [esi + 0x28], bl
call fcn.004224b0
mov dword [esi + 0x34], eax
add esp, 0x10
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x4624b0
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x10]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
push 0
sub ecx, edi
push ecx
sub eax, edx
push eax
mov eax, dword [esi + 0x48]
push edi
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x48]
push 1
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 8

Function at 0x466980
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov dword [ebx], 0
push eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4669fc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
test eax, eax
je 0x4669ed
add eax, 8
push eax
call fcn.004c94d1
mov dword [ebx], eax
mov ecx, dword [edi]
add ecx, 8
push ecx
push 0
push eax
call fcn.004cc620
mov eax, dword [edi]
mov ecx, dword [ebx]
add esp, 0x10
push 0
lea edx, [esp + 8]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x466a70
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
push edi
test eax, eax
je 0x466a91
cmp dword [esi + 4], 0
je 0x466a8a
push eax
call fcn.004ca4c7
add esp, 4
mov dword [esi + 0x10], 0
mov eax, dword [esp + 0xc]
push 0x4f6118
push eax
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
call fcn.004caf96
mov edi, eax
add esp, 8
test edi, edi
jne 0x466abc
pop edi
pop esi
ret 4
push ebx
push 2
push 0
push edi
call fcn.004cac40
push edi
call fcn.004cae62
push 0
push 0
push edi
mov ebx, eax
call fcn.004cac40
add esp, 0x1c
test ebx, ebx
jle 0x466af9
call fcn.00466b10
mov eax, dword [esi + 0x10]
test eax, eax
je 0x466af9
push edi
push 1
push ebx
push eax
call fcn.004cab99
add esp, 0x10
push edi
call fcn.004ca87d
add esp, 4
xor eax, eax
cmp dword [esi + 0x10], eax
pop ebx
pop edi
setne al
pop esi
ret 4

Function at 0x4679d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push edi
mov edi, eax
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00467fe0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 8], eax
test edi, edi
je 0x467a60
push 0x4f6118
push edi
call fcn.004caf96
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
je 0x467a60
mov edx, dword [edi + 0x10]
push edx
call fcn.004cbed0
add esp, 4
push edi
push 1
mov ebx, eax
lea eax, [esp + 0x28]
push 8
push eax
call fcn.004cab99
add esp, 0x10
cmp dword [esp + 0x20], 0x78646972
mov byte [esp + 0x13], 0
jne 0x467ae8
cmp dword [esp + 0x24], 0x8000
jb 0x467a69
push edi
call fcn.004ca87d
add esp, 4
xor al, al
pop edi
pop ebp
pop ebx
add esp, 0x20
ret
lea ebp, [ebx - 8]
push ebp
call fcn.004ca640
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x467ae8
push edi
push 1
push ebp
push ebx
call fcn.004cab99
lea ecx, [ebx + ebp]
xor ebp, ebp
add esp, 0x10
cmp dword [esp + 0x24], ebp
mov eax, ebx
mov dword [esp + 0x1c], ecx
jle 0x467ad6
lea ecx, [ecx]
mov ecx, dword [eax + 0xc]
add ecx, 0x12
lea edi, [ecx + eax]
cmp edi, dword [esp + 0x1c]
ja 0x467ad2
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
add eax, 0x10
push eax
mov ebx, esi
call fcn.00467720
mov ebx, dword [esp + 0x14]
inc ebp
cmp ebp, dword [esp + 0x24]
mov eax, edi
jl 0x467aa0
mov edi, dword [esp + 0x18]
push ebx
call fcn.004ca4c7
add esp, 4
cmp ebp, dword [esp + 0x24]
sete byte [esp + 0x13]
push edi
call fcn.004ca87d
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x468c30
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x420
mov eax, dword [0x512054]
xor eax, esp
mov dword [esp + 0x418], eax
push edi
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004cc620
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
push ecx
lea edx, [esp + 0xc]
push edx
call edi
push str.config.ini
lea eax, [esp + 0xc]
push eax
call edi
push 0x208
lea ecx, [esp + 0x214]
push 0
push ecx
call fcn.004cc620
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x104
lea eax, [esp + 0x218]
push eax
push 0x4f05c4
push 0x4fb92c
push 0x4f65c0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x468cdf
push esi
lea edx, [esp + 0xc]
lea ecx, [esp + 0x214]
call fcn.00468920
pop edi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.004c961b
add esp, 0x420
ret
mov ecx, dword [esp + 0x41c]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004c961b
add esp, 0x420
ret

Function at 0x469bb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x506cc8
push 0x4cc7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x512054]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], dx
jne 0x469c52
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x469c52
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x469c52
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x469c52
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x469cf0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x51b378]
test esi, esi
je 0x469d1a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x469d03
pop edi
pop esi
pop ecx
ret
Function at 0x46a100
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x51b384], eax
je 0x46a116
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x51b394]
xor ebp, ebp
push edi
cmp esi, ebp
je 0x46a191
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [esp]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
cmp dword [esi + 4], ebp
jne 0x46a180
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x46a180
mov edx, eax
and edx, 0xffff0000
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 0x18], ecx
mov dword [edx + 8], eax
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.004c9610
add esp, 4
mov esi, edi
cmp edi, ebp
jne 0x46a130
mov dword [0x51b394], ebp
call fcn.00469d20
mov esi, dword [0x51b390]
cmp esi, ebp
je 0x46a1c7
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call fcn.004c9610
add esp, 4
mov esi, edi
cmp edi, ebp
jne 0x46a1b0
pop edi
pop esi
mov dword [0x51b390], ebp
mov dword [0x51b384], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x46a4f0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x51b388]
test eax, eax
jne 0x46a56c
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x46a50e
xor eax, eax
pop edi
ret 4
push esi
push 8
call fcn.004c99ad
mov esi, eax
add esp, 4
test esi, esi
jne 0x46a524
lea edi, [eax + 8]
jmp 0x46a541
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x46a558
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.004c9610
add esp, 4
pop esi
mov dword [0x51b388], edi
mov eax, edi
mov dword [0x51b38c], 0
pop edi
ret 4
mov eax, dword [0x51b390]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x51b390], esi
pop esi
xor eax, eax
pop edi
ret 4
Function at 0x46a580
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x10
push ebx
push edi
xor edi, edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x51b384], eax
je 0x46a5a4
pop edi
mov eax, 0x10dd
pop ebx
add esp, 0x10
ret 8
mov eax, dword [0x51b388]
cmp eax, edi
jne 0x46a7c5
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x46a5c6
pop edi
mov eax, 6
pop ebx
add esp, 0x10
ret 8
push esi
mov esi, dword [eax]
cmp esi, edi
jne 0x46a5ea
pop esi
pop edi
mov dword [0x51b38c], eax
mov dword [0x51b388], 6
mov eax, 6
pop ebx
add esp, 0x10
ret 8
push ebp
mov dword [esp + 0x10], edi
call fcn.0046a060
mov esi, dword [esp + 0x28]
mov ebp, eax
call fcn.0046a060
mov dword [esp + 0x28], eax
cmp eax, ebp
jne 0x46a618
cmp dword [0x51b380], ebx
jne 0x46a75b
jmp 0x46a739
push 0x18
call fcn.004c99ad
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x46a632
lea ebx, [eax + 8]
jmp 0x46a739
mov eax, ebp
call fcn.00469d50
mov edi, eax
test edi, edi
jne 0x46a647
lea ebx, [eax + 8]
jmp 0x46a739
mov esi, ebp
xor ebx, ebx
jmp 0x46a650
lea eax, [esp + 0x14]
push eax
lea ecx, [ebx + edi]
push ecx
xor edx, edx
mov ecx, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], 0
call fcn.0046a8e0
cmp dword [esp + 0x14], 0
mov esi, eax
jne 0x46a69c
mov ecx, dword [esp + 0x1c]
mov ebx, esi
sub ebx, ebp
call fcn.00469ca0
test eax, eax
jne 0x46a69c
cmp ebx, 5
jl 0x46a650
cmp ebx, 0x12
jbe 0x46a6b8
mov ebx, 6
jmp 0x46a739
cmp ebx, 5
jge 0x46a68d
cmp dword [0x51b380], 0
mov ebx, 9
jne 0x46a73f
jmp 0x46a739
mov eax, dword [esp + 0x28]
mov dword [edi + 0x1c], eax
lea ecx, [ebx + edi]
lea edx, [ebx + ebp]
mov dword [edi + 0x18], edx
lea eax, [edi + 0x17]
lea esi, [ecx + 5]
mov byte [eax], bl
mov byte [ecx], 0xe9
inc ecx
sub edx, esi
mov dword [ecx], edx
add ecx, 4
call fcn.00469c70
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push ebx
push ebp
mov dword [esp + 0x28], 0
call esi
test eax, eax
je 0x46a731
mov ecx, ebp
call fcn.00469fb0
mov ebx, eax
test ebx, ebx
je 0x46a795
mov edx, 0x6544
cmp word [ebx + 0x1c], dx
je 0x46a795
lea eax, [esp + 0x28]
push eax
push 0x40
push 0x40
push ebx
mov dword [esp + 0x38], 0
call esi
test eax, eax
jne 0x46a771
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x51b388], ebx
test edi, edi
je 0x46a74a
mov eax, edi
call fcn.00469f80
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46a75b
push eax
call fcn.004c9610
add esp, 4
mov ecx, dword [esp + 0x24]
pop ebp
pop esi
pop edi
mov eax, ebx
mov dword [0x51b38c], ecx
pop ebx
add esp, 0x10
ret 8
mov edx, 0x6544
mov word [ebx + 0x1c], dx
mov eax, 0x6f74
mov ecx, 0x7275
mov edx, 0x2173
mov word [ebx + 0x1e], ax
mov word [ebx + 0x20], cx
mov word [ebx + 0x22], dx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [0x51b394]
mov dword [eax + 0xc], ebp
mov dword [eax + 4], 0
mov dword [eax + 0x10], edi
mov edx, dword [esp + 0x18]
pop ebp
mov dword [eax + 0x14], edx
mov dword [eax], ecx
mov dword [0x51b394], eax
xor eax, eax
pop esi
pop edi
pop ebx
add esp, 0x10
ret 8