joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e4d0
Capabilities:
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub esp, 0x74
cmp dword [esp + 0x80], 0
je 0x41e4f2
mov eax, dword [esp + 0x7c]
push eax
call dword [0x44b2dc]
test eax, eax
je 0x41e4f2
xor eax, eax
add esp, 0x74
ret
push ebp
push 0xa00000
call fcn.00431a2e
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41e50b
pop ebp
add esp, 0x74
ret
push ebx
push esi
push edi
push 0x38
lea ecx, [esp + 0x50]
push 0
push ecx
call fcn.00431b70
mov esi, dword [esp + 0x94]
lea edx, [esp + 0x58]
push edx
push esi
call fcn.0043636d
mov edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
xor eax, eax
push eax
push 0x40
push 0x8000
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push esi
push eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ebx
call fcn.0043558d
add esp, 0x28
test eax, eax
jne 0x41e6f5
mov ecx, dword [esp + 0x18]
push 0x44b9fc
push ecx
call fcn.00434c0d
xor esi, esi
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, esi
je 0x41e6e8
mov edx, dword [esp + 0x8c]
push 0x44d37c
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], esi
call fcn.0043354d
add esp, 0xc
test eax, eax
jne 0x41e6dc
push esi
push 0xa00000
push ebx
push edi
call fcn.004367d0
mov edi, edx
mov dword [esp + 0x28], ebx
xor ebx, ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
test edi, edi
jl 0x41e64f
jg 0x41e5e3
test eax, eax
jbe 0x41e64f
push 1
call dword [0x44b0dc]
call fcn.00412900
mov ecx, dword [esp + 0x14]
push ecx
push 1
push 0xa00000
push ebp
call fcn.0043346a
imul eax, eax, 0xa00000
mov edx, dword [esp + 0x20]
add dword [esp + 0x2c], eax
push edx
push 1
adc dword [esp + 0x38], 0
push 0xa00000
push ebp
call fcn.0043418d
imul eax, eax, 0xa00000
add esp, 0x20
add ebx, eax
adc dword [esp + 0x30], 0
add dword [esp + 0x34], 1
adc esi, 0
cmp esi, edi
jl 0x41e5e3
jg 0x41e64b
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x34], eax
jb 0x41e5e3
mov ecx, dword [esp + 0x24]
mov edx, ecx
or edx, dword [esp + 0x28]
je 0x41e6a3
mov eax, dword [esp + 0x14]
push eax
push 1
push ecx
push ebp
call fcn.0043346a
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
add esp, 0x10
push edi
push esi
push 0
push eax
call fcn.004342c0
mov ecx, dword [esp + 0x10]
add dword [esp + 0x1c], eax
push ecx
push 1
adc dword [esp + 0x28], edx
push esi
push ebp
call fcn.0043418d
add esp, 0x10
push edi
push esi
push 0
push eax
call fcn.004342c0
add ebx, eax
adc dword [esp + 0x30], edx
cmp dword [esp + 0x1c], ebx
jne 0x41e6c7
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x20], eax
jne 0x41e6c7
cmp ebx, dword [esp + 0x3c]
jne 0x41e6c7
mov dword [esp + 0x1c], 1
cmp eax, dword [esp + 0x40]
je 0x41e6cf
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x10]
push edx
call fcn.0043314e
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call fcn.0043314e
jmp 0x41e6f2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00434b40
add esp, 4
push ebp
call fcn.00431a95
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x74
ret
Function at 0x421970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x448751
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x45ffac]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.00417630
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 1
call fcn.00418130
test eax, eax
jne 0x4219da
mov edx, dword [0x46147c]
mov eax, dword [edx + 0xc]
mov ecx, 0x46147c
call eax
mov esi, dword [esp + 0x38]
add eax, 0x10
mov dword [esi], eax
jmp 0x4219f7
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
push ecx
push edx
push 0x44e27c
push esi
lea ecx, [esp + 0x1c]
call fcn.00416280
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
call fcn.00417650
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x426a30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x449540
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x45ffac]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0
call fcn.00415440
push 0x44d3a4
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x28], 0
call fcn.004071d0
mov eax, dword [eax]
mov esi, dword [esp + 0x30]
push eax
push esi
mov byte [esp + 0x30], 1
call fcn.00426880
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x18
mov byte [esp + 0x18], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x426ab8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426ae0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4287d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x448168
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45ffac]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0xc]
call fcn.004052c0
push 0x20
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0041c970
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 8]
push ecx
push 0
push 0x44f220
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
call fcn.00402a70
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00417d70
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0x14], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42886d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x428d30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x448c68
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x45ffac]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
call fcn.0041d960
mov esi, eax
lea eax, [esp + 0xc]
push eax
call fcn.00426a30
lea ecx, [esp + 0x18]
push esi
push ecx
mov dword [esp + 0x2c], 0
call fcn.00414c80
mov esi, eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x30], 1
call fcn.004185e0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov esi, dword [esi]
mov edi, dword [esp + 0x1c]
mov eax, dword [eax]
push ecx
push edx
push edi
push esi
mov esi, dword [esp + 0x48]
push eax
push esi
mov byte [esp + 0x48], 2
call fcn.004288f0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x28
mov byte [esp + 0x20], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428dde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428e03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428e27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x42a2c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x448ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45ffac]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45ffac]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], eax
push eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x18]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
push edi
mov dword [eax + 0xc], ebx
call fcn.00428c70
add esp, 0x1c
test eax, eax
jge 0x42a416
call fcn.00410f80
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00413780
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call fcn.004052c0
mov eax, dword [eax]
push edi
push eax
lea edx, [esp + 0x28]
push str..htm
mov bl, 2
push edx
mov byte [esp + 0x50], bl
call fcn.004156d0
add esp, 0x10
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov eax, dword [edx]
mov ecx, esi
mov byte [esp + 0x44], 3
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x40], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a3c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x40], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a3ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x44b278]
mov eax, dword [esp + 0x14]
mov dword [ebp], 0
mov dword [esp + 0x40], 0xffffffff
test eax, eax
je 0x42a441
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x42a441
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
test eax, eax
je 0x42a42d
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], 0xffffffff
test eax, eax
je 0x42a441
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00431b61
add esp, 0x30
ret
Function at 0x42a470
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x448ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45ffac]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45ffac]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], eax
push eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x18]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
push edi
mov dword [eax + 0xc], ebx
call fcn.00428cd0
add esp, 0x1c
test eax, eax
jge 0x42a5c6
call fcn.00410f80
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00413780
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call fcn.004052c0
mov eax, dword [eax]
push edi
push eax
lea edx, [esp + 0x28]
push str..htm
mov bl, 2
push edx
mov byte [esp + 0x50], bl
call fcn.004156d0
add esp, 0x10
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov eax, dword [edx]
mov ecx, esi
mov byte [esp + 0x44], 3
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x40], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a575
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x40], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a59a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x44b278]
mov eax, dword [esp + 0x14]
mov dword [ebp], 0
mov dword [esp + 0x40], 0xffffffff
test eax, eax
je 0x42a5f1
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x42a5f1
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
test eax, eax
je 0x42a5dd
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], 0xffffffff
test eax, eax
je 0x42a5f1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00431b61
add esp, 0x30
ret
Function at 0x42ab60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x448ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x45ffac]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45ffac]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], 0
call fcn.00415440
push edi
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x48], 0
call fcn.004071d0
add esp, 0x10
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x38], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ac00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x28]
push eax
push esi
call fcn.0042a2c0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x18
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ac4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00431b61
add esp, 0x28
ret
Function at 0x42ac70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x448ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x45ffac]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45ffac]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], 0
call fcn.00415440
push edi
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x48], 0
call fcn.004071d0
add esp, 0x10
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x38], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ad10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x28]
push eax
push esi
call fcn.0042a470
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x18
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ad5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00431b61
add esp, 0x28
ret
Function at 0x42de20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x449540
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x45ffac]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.00426b00
mov esi, eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x20], 0
call fcn.00411fe0
mov edx, dword [esp + 0x2c]
mov esi, dword [esi]
mov ecx, dword [esp + 0x28]
mov eax, dword [eax]
push edx
push esi
push ecx
push eax
mov byte [esp + 0x30], 1
call fcn.0042dbb0
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x18
mov byte [esp + 0x18], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42dea6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42dece
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x42efb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x449790
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x45ffac]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45ffac]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x46147c]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x46147c
mov dword [esp + 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov ebp, dword [esp + 0x44]
xor ecx, ecx
cmp ebp, ecx
mov dword [esp + 0x38], ecx
jle 0x42f151
mov ax, word [esp + 0x40]
xor edx, edx
mov word [esp + 0x18], ax
mov word [esp + 0x1a], dx
lea esi, [ecx + 1]
cmp ax, cx
je 0x42f03f
lea esi, [esp + 0x18]
lea edx, [esi + 2]
mov edi, edi
mov ax, word [esi]
add esi, 2
cmp ax, cx
jne 0x42f030
sub esi, edx
sar esi, 1
mov dword [esp + 0x1c], ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
mov byte [esp + 0x38], 1
cmp edx, ecx
ja 0x42f05b
cmp eax, 0xffffffff
jbe 0x42f065
push 0x80070057
call fcn.004027a0
cmp eax, 0xa
jbe 0x42f076
push eax
lea ecx, [esp + 0x20]
call fcn.004193f0
jmp 0x42f07e
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
push 2
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esi + esi + 2]
push edx
push eax
call fcn.004323d2
push eax
call fcn.004049c0
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ebx, esi
imul ebx, ebp
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, ebx
add esp, 0x14
or ecx, edx
jge 0x42f0c0
push ebx
mov ecx, edi
call fcn.00402a20
mov edi, dword [edi]
cmp esi, 1
jne 0x42f0e9
mov eax, dword [esp + 0x1c]
movzx eax, word [eax]
test ebp, ebp
jle 0x42f118
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, ebp
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
jmp 0x42f118
mov ecx, edi
test ebp, ebp
jle 0x42f118
nop
xor eax, eax
test esi, esi
jle 0x42f113
jmp 0x42f100
mov edx, dword [esp + 0x1c]
mov dx, word [edx + eax*2]
mov word [ecx], dx
inc eax
add ecx, 2
cmp eax, esi
jl 0x42f100
sub ebp, 1
jne 0x42f0f0
test ebx, ebx
jl 0x42f05b
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
cmp ebx, dword [eax - 8]
jg 0x42f05b
mov dword [eax - 0xc], ebx
mov eax, dword [ecx]
xor ecx, ecx
lea edx, [esp + 0x20]
mov word [eax + ebx*2], cx
cmp dword [esp + 0x1c], edx
je 0x42f14d
lea ecx, [esp + 0x1c]
call fcn.0042e6c0
mov edi, dword [esp + 0x14]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00431b61
add esp, 0x28
ret 8
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10001b90
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
pop esi
leave
ret

Function at 0x10001b25
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [ebp + 0xc], 1
jne 0x10001b88
push esi
push edi
push 0x104
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x64
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Beep]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
push esi
push esi
push esi
push 0x100014ff
push esi
push esi
call edi
push esi
push esi
push esi
push 0x1000103c
push esi
push esi
call edi
xor eax, eax
pop edi
inc eax
pop esi
jmp 0x10001b8a
xor eax, eax
leave
ret 0xc

Function at 0x1000429a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000b204]
jne 0x100042a4
repz ret
jmp fcn.10006cdb
Function at 0x10007abd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10002d0b
and dword [ebp - 4], 0
cmp dword [0x1000c6cc], 0
mov ebx, eax
jne 0x10007b6e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10007c1f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10007c1f
push eax
call fcn.10002c99
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000c6cc], eax
call esi
push eax
call fcn.10002c99
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000c6d0], eax
call esi
push eax
call fcn.10002c99
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1000c6d4], eax
call esi
push eax
call fcn.10002c99
pop ecx
mov dword [0x1000c6dc], eax
test eax, eax
je 0x10007b6e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10002c99
pop ecx
mov dword [0x1000c6d8], eax
mov eax, dword [0x1000c6d8]
cmp eax, ebx
je 0x10007bc6
cmp dword [0x1000c6dc], ebx
je 0x10007bc6
push eax
call fcn.10002d14
push dword [0x1000c6dc]
mov esi, eax
call fcn.10002d14
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10007bc6
test edi, edi
je 0x10007bc6
call esi
test eax, eax
je 0x10007bbd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10007bbd
test byte [ebp - 0xc], 1
jne 0x10007bc6
or dword [ebp + 0x10], 0x200000
jmp 0x10007bff
mov eax, dword [0x1000c6d0]
cmp eax, ebx
je 0x10007bff
push eax
call fcn.10002d14
pop ecx
test eax, eax
je 0x10007bff
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10007bff
mov eax, dword [0x1000c6d4]
cmp eax, ebx
je 0x10007bff
push eax
call fcn.10002d14
pop ecx
test eax, eax
je 0x10007bff
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1000c6cc]
call fcn.10002d14
pop ecx
test eax, eax
je 0x10007c1f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10007c21
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret