joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c630
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x498e08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x4bb98c]
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0x2c], eax
push edi
mov esi, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x3c], ebx
mov ebp, 0xf
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
cmp byte [esi + 4], bl
push 0xffffffffffffffff
mov byte [esp + 0x40], 2
push ebx
jne 0x43c6a2
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x6c]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00403ae0
mov edi, 0x10
jmp 0x43c74a
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00403ae0
mov eax, dword [esp + 0x60]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], pe_nt_image_headers32
jae 0x43c6cd
lea eax, [esp + 0x4c]
lea edx, [esp + 0x10]
push edx
push 0x4beb10
push ebx
push ebx
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
je 0x43c70e
call fcn.00441c90
cmp dword [esp + 0x60], edi
mov ecx, dword [esp + 0x4c]
jae 0x43c6fc
lea ecx, [esp + 0x4c]
mov edx, dword [eax]
push esi
push ecx
push str.Unable_to_query_string_registry_value:__s__Error:__d__n
push eax
call dword [edx + 0x68]
add esp, 0x10
jmp 0x43c72e
mov eax, 0x4beb10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43c716
sub eax, edx
push eax
push 0x4beb10
lea ecx, [esp + 0x1c]
call fcn.00403bd0
mov esi, dword [esp + 0x44]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1c]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00403ae0
cmp dword [esp + 0x2c], edi
jb 0x43c75d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00461bad
add esp, 4
cmp dword [esp + 0x60], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x43c77c
mov edx, dword [esp + 0x4c]
push edx
call fcn.00461bad
add esp, 4
cmp dword [esp + 0x7c], edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x43c79b
mov eax, dword [esp + 0x68]
push eax
call fcn.00461bad
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24]
pop ebx
call fcn.00461d91
add esp, 0x30
ret 0x3c
Function at 0x43f870
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x499131
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0043f080
push 0x3f800000
push 0x3f800000
lea ecx, [esi + 8]
call fcn.0043f080
push edi
push edi
push edi
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 0x3f800000
call fcn.00444ec0
push edi
push edi
push edi
lea ecx, [esi + 0x24]
mov dword [esp + 0x20], edi
call fcn.00444ec0
mov dword [esi + 0x30], edi
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4998c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x4bb98c]
push ebx
xor ebx, ebx
mov dword [esp + 0x30], eax
push esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x40], 1
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x48], 3
call fcn.004469f0
mov eax, dword [eax]
mov esi, dword [esi + 4]
cmp eax, esi
je 0x4470cb
push 0xffffffffffffffff
add eax, 0x28
push ebx
push eax
lea ecx, [esp + 0x24]
call fcn.00403ae0
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x4470a3
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x54]
push edx
push 0x4a6bd0
push eax
call fcn.00461ed1
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
add esp, 0x10
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esi], edx
mov dword [esi + 4], eax
lea ecx, [esp + 8]
mov dword [esp + 0x10], 1
mov byte [esp + 0x40], 2
call fcn.00444ee0
cmp dword [esp + 0x30], 0x10
jb 0x447106
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00461bad
add esp, 4
lea ecx, [esp + 0x54]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x40], bl
call fcn.00444ee0
mov ecx, dword [esp + 0x38]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x30]
pop ebx
call fcn.00461d91
add esp, 0x3c
ret 0x14
Function at 0x44a2b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x499c1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
push esi
xor ebx, ebx
cmp eax, ebx
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
je 0x44a2ec
mov dword [esi + 4], 0x4a4548
mov dword [esi + 0x150], 0x4a16b8
push ebx
mov ecx, esi
call fcn.00445a30
mov dword [esi + 0x138], 0x4a16b8
mov eax, dword [esi + 4]
mov dword [esi], 0x4a76b8
mov dword [esi + 0x138], 0x4a76a8
mov ecx, dword [eax + 4]
mov dword [ecx + esi + 4], 0x4a4430
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
lea ecx, [eax - 0x14c]
mov dword [eax + esi], ecx
lea edi, [esi + 0x13c]
mov ecx, edi
mov dword [esp + 0x34], ebx
call fcn.0041dc40
mov dword [edi + 4], eax
mov cl, 1
mov byte [eax + 0x2d], cl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov byte [esp + 0x34], cl
push 4
mov ecx, esi
mov dword [esi + 0x148], ebx
mov byte [esi + 0x69], bl
call fcn.0043e0e0
push 0xc
push 0x4a7698
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00403bd0
lea edx, [esp + 0x10]
push edx
mov ecx, esi
mov byte [esp + 0x38], 2
call fcn.0043e6e0
cmp dword [esp + 0x28], 0x10
jb 0x44a3b3
mov eax, dword [esp + 0x14]
push eax
call fcn.00461bad
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4

Function at 0x44ba20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x499d6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
push esi
xor ebx, ebx
cmp eax, ebx
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
je 0x44ba5c
mov dword [esi + 4], 0x4a7300
mov dword [esi + 0x13c], 0x4a16b8
push ebx
mov ecx, esi
call fcn.004082a0
mov eax, dword [esi + 4]
mov dword [esi], 0x4a77c0
mov ecx, dword [eax + 4]
mov dword [ecx + esi + 4], 0x4a3aa8
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
lea ecx, [eax - 0x138]
mov dword [eax + esi], ecx
lea edi, [esi + 0x11c]
mov ecx, edi
mov dword [esp + 0x34], ebx
call fcn.0041dc40
mov dword [edi + 4], eax
mov byte [eax + 0x2d], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x130], ebx
mov dword [esi + 0x134], ebx
push 0xc
push str.SplatFactory
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 2
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00403bd0
lea edx, [esp + 0x10]
push edx
mov ecx, esi
mov byte [esp + 0x38], 3
call fcn.0043e6e0
cmp dword [esp + 0x28], 0x10
jb 0x44bb0f
mov eax, dword [esp + 0x14]
push eax
call fcn.00461bad
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x44c3f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x499dba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
push esi
xor ebx, ebx
cmp eax, ebx
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
je 0x44c42c
mov dword [esi + 4], 0x4a73e4
mov dword [esi + 0x138], 0x4a16b8
push ebx
mov ecx, esi
call fcn.004082a0
lea edi, [esi + 0x120]
mov ecx, edi
mov dword [esp + 0x34], ebx
mov dword [esi + 0x11c], 0x4a4a44
call fcn.004260f0
mov dword [edi + 4], eax
mov byte [eax + 0x11], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov eax, dword [esi + 4]
mov dword [esi], 0x4a78f8
mov dword [esi + 0x11c], 0x4a78f0
mov ecx, dword [eax + 4]
mov dword [ecx + esi + 4], 0x4a78e4
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
lea ecx, [eax - 0x134]
mov dword [eax + esi], ecx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x130], ebx
push 5
push str.Scene
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 3
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00403bd0
lea edx, [esp + 0x10]
push edx
mov ecx, esi
mov byte [esp + 0x38], 4
call fcn.0043e6e0
cmp dword [esp + 0x28], 0x10
jb 0x44c4ed
mov eax, dword [esp + 0x14]
push eax
call fcn.00461bad
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4

Function at 0x457010
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x49aefd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.0043f050
lea ecx, [esi + 8]
call fcn.0043f050
lea ecx, [esi + 0x10]
call fcn.0043f050
lea ecx, [esi + 0x18]
call fcn.0043f050
lea ecx, [esi + 0x20]
call fcn.0043f050
lea ecx, [esi + 0x30]
call fcn.0043f050
lea ecx, [esi + 0x38]
call fcn.0043f050
lea ecx, [esi + 0x48]
call fcn.0043f050
xor ebx, ebx
lea ecx, [esi + 0x50]
mov dword [esp + 0x14], ebx
call fcn.0043f050
lea ecx, [esi + 0x58]
call fcn.0043f050
lea ecx, [esi + 0x60]
call fcn.0043f050
lea ecx, [esi + 0x68]
call fcn.0043f050
lea ecx, [esi + 0x70]
call fcn.00444e90
mov eax, 0xf
mov dword [esi + 0x94], eax
mov dword [esi + 0x90], ebx
mov byte [esi + 0x80], bl
mov dword [esi + 0xb0], eax
mov dword [esi + 0xac], ebx
mov byte [esi + 0x9c], bl
mov dword [esi + 0xcc], eax
mov dword [esi + 0xc8], ebx
mov byte [esi + 0xb8], bl
lea ecx, [esi + 0xd0]
mov byte [esp + 0x14], 4
call fcn.0043f050
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x457027
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x49aefd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.0043f050
lea ecx, [esi + 8]
call fcn.0043f050
lea ecx, [esi + 0x10]
call fcn.0043f050
lea ecx, [esi + 0x18]
call fcn.0043f050
lea ecx, [esi + 0x20]
call fcn.0043f050
lea ecx, [esi + 0x30]
call fcn.0043f050
lea ecx, [esi + 0x38]
call fcn.0043f050
lea ecx, [esi + 0x48]
call fcn.0043f050
xor ebx, ebx
lea ecx, [esi + 0x50]
mov dword [esp + 0x14], ebx
call fcn.0043f050
lea ecx, [esi + 0x58]
call fcn.0043f050
lea ecx, [esi + 0x60]
call fcn.0043f050
lea ecx, [esi + 0x68]
call fcn.0043f050
lea ecx, [esi + 0x70]
call fcn.00444e90
mov eax, 0xf
mov dword [esi + 0x94], eax
mov dword [esi + 0x90], ebx
mov byte [esi + 0x80], bl
mov dword [esi + 0xb0], eax
mov dword [esi + 0xac], ebx
mov byte [esi + 0x9c], bl
mov dword [esi + 0xcc], eax
mov dword [esi + 0xc8], ebx
mov byte [esi + 0xb8], bl
lea ecx, [esi + 0xd0]
mov byte [esp + 0x14], 4
call fcn.0043f050
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x45da50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49b738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x4bb98c]
mov edx, dword [esp + 0x30]
push esi
mov dword [esp + 0x20], eax
mov eax, edx
push edi
mov esi, ecx
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45da93
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x10]
call fcn.00403bd0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esi + 0x124]
mov dword [esp + 0x38], 0
call fcn.00442150
mov eax, dword [eax]
cmp eax, dword [esi + 0x128]
jne 0x45dae6
cmp dword [esp + 0x20], 0x10
jb 0x45dae2
mov edx, dword [esp + 0xc]
push edx
call fcn.00461bad
add esp, 4
xor eax, eax
jmp 0x45daff
mov esi, dword [eax + 0x28]
cmp dword [esp + 0x20], 0x10
jb 0x45dafd
mov eax, dword [esp + 0xc]
push eax
call fcn.00461bad
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x20]
pop esi
call fcn.00461d91
add esp, 0x2c
ret 4
Function at 0x464a19
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4cb9c0], esi
push edi
jne 0x464a39
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4cb9bc], esi
mov byte [0x4cb9b8], al
jne 0x464a9f
mov ecx, dword [0x4cd3a8]
test ecx, ecx
je 0x464a80
mov eax, dword [0x4cd3a4]
sub eax, 4
cmp eax, ecx
jmp 0x464a79
mov eax, dword [eax]
test eax, eax
je 0x464a6b
call eax
mov eax, dword [0x4cd3a4]
sub eax, 4
cmp eax, dword [0x4cd3a8]
mov dword [0x4cd3a4], eax
jae 0x464a63
mov eax, 0x4bb200
mov esi, 0x4bb208
cmp eax, esi
mov edi, eax
jae 0x464a9f
mov eax, dword [edi]
test eax, eax
je 0x464a98
call eax
add edi, 4
cmp edi, esi
jb 0x464a90
mov eax, 0x4bb20c
mov esi, 0x4bb214
cmp eax, esi
mov edi, eax
jae 0x464abe
mov eax, dword [edi]
test eax, eax
je 0x464ab7
call eax
add edi, 4
cmp edi, esi
jb 0x464aaf
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x464ad8
push dword [ebp + 8]
mov dword [0x4cb9c0], 1
call fcn.0046497f
pop ebp
ret

Function at 0x465a01
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4bb98c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4bb9f0]
je 0x465a36
inc eax
cmp eax, 0x13
jb 0x465a27
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4bb9f0]
jne 0x465b5c
mov eax, dword [0x4cb940]
cmp eax, 1
je 0x465b34
cmp eax, edx
jne 0x465a66
cmp dword [0x4bb9a4], 1
je 0x465b34
cmp ecx, 0xfc
je 0x465b5c
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x465a9c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004639f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00462820
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x465ad0
mov eax, edi
push eax
call fcn.00462820
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4a94dc
push edi
call fcn.00461f40
add esp, 0x10
push edi
call fcn.00462820
push dword [esi + 0x4bb9f4]
mov ebx, eax
call fcn.00462820
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00466420
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004639f0
push edi
push ebx
call fcn.00463a00
push 0x4a94d8
push ebx
call fcn.00463a00
push dword [esi + 0x4bb9f4]
push ebx
call fcn.00463a00
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00468595
add esp, 0x2c
jmp 0x465b5c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4bb9f4]
push dword [esi]
call fcn.00462820
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00461d91
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x468185
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x4cd290]
mov eax, dword [0x4bb98c]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x46834b
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4cd2a0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x46834b
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x4681ef
xor eax, eax
jmp 0x46835f
test al, 0x20
je 0x468200
push 2
push edi
push edi
push ecx
call fcn.0046a8df
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4682d5
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x46831c
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x468262
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x468253
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x468235
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4682a2
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4682ae
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x468229
jmp 0x4682b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x468346
cmp dword [ebp + 0x3a4], edi
je 0x46831c
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x46830e
mov dword [0x4cb978], eax
jmp 0x468352
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x468300
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x4682b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x4682b0
push dword [ebp + 0x3a4]
call fcn.0046a6b6
pop ecx
jmp 0x46835c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x468334
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4681e8
mov dword [0x4cb974], 0x1c
mov dword [0x4cb978], edi
jmp 0x46835c
sub eax, dword [ebp - 0x7c]
jmp 0x46835f
and dword [0x4cb978], 0
mov dword [0x4cb974], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00461d91
add ebp, 0x39c
leave
ret
Function at 0x468595
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4cbb50], ebx
push esi
push edi
jne 0x468615
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x468650
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4aa104
push edi
call esi
test eax, eax
mov dword [0x4cbb50], eax
je 0x468650
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4cbb54], eax
call esi
cmp dword [0x4cb980], 2
mov dword [0x4cbb58], eax
jne 0x468615
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4cbb60], eax
je 0x468615
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4cbb5c], eax
mov eax, dword [0x4cbb5c]
test eax, eax
je 0x46865a
call eax
test eax, eax
je 0x468641
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4cbb60]
test eax, eax
je 0x468641
test byte [ebp - 8], 1
jne 0x46865a
cmp dword [0x4cb98c], 4
jb 0x468654
or byte [ebp + 0x12], 0x20
jmp 0x468679
xor eax, eax
jmp 0x468689
or byte [ebp + 0x12], 4
jmp 0x468679
mov eax, dword [0x4cbb54]
test eax, eax
je 0x468679
call eax
mov ebx, eax
test ebx, ebx
je 0x468679
mov eax, dword [0x4cbb58]
test eax, eax
je 0x468679
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4cbb50]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46868e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4686bc
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4686c3
cmp ebx, dword [eax + 4]
jae 0x4686c3
xor eax, eax
jmp 0x4688b3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4686d4
xor eax, eax
inc eax
jmp 0x4688b2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4686ea
cmp ecx, edx
jae 0x46882f
cmp dword [eax + 4], 0
je 0x4686f3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4686db
cmp dword [ebp + 8], 0
je 0x468715
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x46882f
cmp eax, esi
jae 0x46882f
mov eax, dword [0x4cbb68]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x46873a
cmp dword [esi*4 + 0x4cbb70], edi
je 0x468833
inc esi
cmp esi, eax
jl 0x468728
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4688af
cmp dword [ebp - 8], 0x1000000
jne 0x4688af
test byte [ebp - 0xc], 0xcc
je 0x4687b8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4688af
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4688af
cmp word [eax + 0x18], 0x10b
jne 0x4688af
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4688af
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4687b8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4687b8
test byte [ecx + 0x27], 0x80
jne 0x46882f
push 1
push 0x4cbbb0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4686cc
mov ecx, dword [0x4cbb68]
test ecx, ecx
mov edx, ecx
jle 0x4687ec
lea eax, [ecx*4 + 0x4cbb6c]
cmp dword [eax], edi
je 0x4687ec
dec edx
sub eax, 4
test edx, edx
jg 0x4687e0
test edx, edx
jne 0x46881d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4687f9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x468811
lea eax, [edx*4 + 0x4cbb70]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4687ff
cmp ecx, 0x10
jge 0x46881d
inc ecx
mov dword [0x4cbb68], ecx
push 0
push 0x4cbbb0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4686cc
xor eax, eax
jmp 0x4688b2
test esi, esi
jle 0x4686cc
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4cbbb0
call ebx
test eax, eax
jne 0x4686cc
cmp dword [esi*4 + 0x4cbb70], edi
je 0x468889
mov eax, dword [0x4cbb68]
lea esi, [eax - 1]
test esi, esi
jl 0x468877
cmp dword [esi*4 + 0x4cbb70], edi
je 0x468873
dec esi
jns 0x468867
test esi, esi
jge 0x468887
cmp eax, 0x10
jge 0x468882
inc eax
mov dword [0x4cbb68], eax
lea esi, [eax - 1]
jmp 0x468889
je 0x4688a1
xor ecx, ecx
test esi, esi
jl 0x4688a1
lea eax, [ecx*4 + 0x4cbb70]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x46888f
push 0
push 0x4cbbb0
call ebx
jmp 0x4686cc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret