joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e410
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x54ebb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x2c]
test edi, edi
mov dword [esp + 8], 0
jne 0x41e46e
call fcn.0053abfb
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
push esi
mov ecx, eax
call fcn.0053b8f4
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
call fcn.0051fbb3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x1000
or eax, ecx
mov dword [esp + 0x14], 0
jge 0x41e4b1
push 0x1000
lea ecx, [esp + 0x30]
call fcn.00401470
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push edi
push 0x1000
push esi
push eax
push ecx
push edx
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
test esi, esi
jne 0x41e4d5
xor eax, eax
jmp 0x41e4eb
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e4e0
sub eax, edx
js 0x41e568
cmp eax, dword [esi - 8]
jg 0x41e568
push 0x55f38c
mov dword [esi - 0xc], eax
push 0x55f388
lea ecx, [esp + 0x34]
mov byte [eax + esi], 0
call fcn.004154f0
push 0x55f384
push 0x55f380
lea ecx, [esp + 0x34]
call fcn.004154f0
mov esi, dword [esp + 0x2c]
add esi, 0xfffffff0
push esi
call fcn.004014c0
mov edi, dword [esp + 0x20]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x14], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41e555
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.00401120
int3
Function at 0x43faa0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 8
cmp eax, 3
jne 0x43faed
mov eax, dword [esp + 0x18]
test eax, eax
mov ecx, dword [esp + 0xc]
jle 0x43fadb
movzx edx, word [ecx + 0x118]
cmp eax, edx
jg 0x43fadb
push eax
mov eax, dword [esp + 0x14]
push eax
push str.tRNS
push ecx
call fcn.0043ecb0
add esp, 0x10
add esp, 8
ret
push str.Invalid_number_of_transparent_colors_specified
push ecx
call fcn.00431d80
add esp, 8
add esp, 8
ret
test eax, eax
push esi
jne 0x43fb49
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + 8]
mov edx, dword [esp + 0x10]
mov cl, byte [edx + 0x127]
mov esi, 1
shl esi, cl
cmp eax, esi
jl 0x43fb22
push str.Ignoring_attempt_to_write_tRNS_chunk_out_of_range_for_bit_depth
push edx
call fcn.00431d80
add esp, 8
pop esi
add esp, 8
ret
mov ecx, eax
mov byte [esp + 5], al
push 2
lea eax, [esp + 8]
push eax
shr ecx, 8
push str.tRNS
push edx
mov byte [esp + 0x14], cl
call fcn.0043ecb0
add esp, 0x10
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x43fbc9
mov esi, dword [esp + 0x18]
movzx eax, word [esi + 2]
mov ecx, eax
mov byte [esp + 5], al
movzx eax, word [esi + 4]
push ebx
movzx ebx, word [esi + 6]
mov esi, dword [esp + 0x14]
mov edx, eax
mov byte [esp + 0xb], al
mov eax, ebx
mov byte [esp + 0xd], bl
mov bl, byte [esi + 0x127]
shr ecx, 8
shr edx, 8
shr eax, 8
cmp bl, 8
mov byte [esp + 8], cl
mov byte [esp + 0xa], dl
mov byte [esp + 0xc], al
pop ebx
jne 0x43fbaf
or al, dl
or al, cl
je 0x43fbaf
push str.Ignoring_attempt_to_write_16_bit_tRNS_chunk_when_bit_depth_is_8
push esi
call fcn.00431d80
add esp, 8
pop esi
add esp, 8
ret
push 6
lea ecx, [esp + 8]
push ecx
push str.tRNS
push esi
call fcn.0043ecb0
add esp, 0x10
pop esi
add esp, 8
ret
mov edx, dword [esp + 0x10]
push 0x562a20
push edx
call fcn.00431d80
add esp, 8
pop esi
add esp, 8
ret
Function at 0x43fbe0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
push ebx
push esi
jne 0x43fc49
mov eax, dword [esp + 0x14]
mov cx, word [eax + 0x118]
test cx, cx
mov edx, dword [esp + 0x18]
jne 0x43fc0b
test byte [eax + 0x230], 1
jne 0x43fc28
movzx si, byte [edx]
cmp si, cx
jbe 0x43fc28
push str.Invalid_background_palette_index
push eax
call fcn.00431d80
add esp, 8
pop esi
pop ebx
add esp, 8
ret
mov cl, byte [edx]
push 1
lea edx, [esp + 0xc]
push edx
push str.bKGD
push eax
mov byte [esp + 0x18], cl
call fcn.0043ecb0
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
test al, 2
je 0x43fcc8
mov esi, dword [esp + 0x18]
movzx eax, word [esi + 2]
movzx ebx, word [esi + 6]
mov ecx, eax
mov byte [esp + 9], al
movzx eax, word [esi + 4]
mov esi, dword [esp + 0x14]
mov edx, eax
mov byte [esp + 0xb], al
mov eax, ebx
mov byte [esp + 0xd], bl
mov bl, byte [esi + 0x127]
shr ecx, 8
shr edx, 8
shr eax, 8
cmp bl, 8
mov byte [esp + 8], cl
mov byte [esp + 0xa], dl
mov byte [esp + 0xc], al
jne 0x43fcad
or al, dl
or al, cl
je 0x43fcad
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push esi
call fcn.00431d80
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push 6
lea eax, [esp + 0xc]
push eax
push str.bKGD
push esi
call fcn.0043ecb0
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + 8]
mov edx, dword [esp + 0x14]
mov cl, byte [edx + 0x127]
mov esi, 1
shl esi, cl
cmp eax, esi
jl 0x43fcf9
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push edx
call fcn.00431d80
add esp, 8
pop esi
pop ebx
add esp, 8
ret
mov ecx, eax
mov byte [esp + 9], al
push 2
lea eax, [esp + 0xc]
push eax
shr ecx, 8
push str.bKGD
push edx
mov byte [esp + 0x18], cl
call fcn.0043ecb0
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret

Function at 0x443460
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x443490
push esi
call fcn.00443bb0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x443489
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x443507
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4434f7
mov eax, dword [esi + 8]
test eax, eax
je 0x4434b4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4434f3
cmp eax, 2
je 0x4434f7
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4434a7
cmp eax, 3
je 0x4434da
cmp eax, 1
jne 0x4434a7
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x4434a7
mov ecx, dword [esi + 0x11c]
add dword [eax + 8], ecx
jmp 0x4434a7
xor al, al
pop esi
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.004432f0
pop esi
ret
cmp eax, 0xcc
je 0x443527
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
push esi
call dword [eax]
add esp, 4
call fcn.004432f0
pop esi
ret
Function at 0x457130
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x54f1b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x30], edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
push 0
mov dword [esi + 0x34], edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x34]
push 0
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x38], edx
mov edx, dword [esp + 0x4c]
push ecx
push eax
mov dword [esp + 0x20], 0
mov dword [esi], 0x564a3c
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x3c], edx
call fcn.00455c70
push 1
push eax
call fcn.00455cf0
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x18], eax
add esp, 0x18
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x30

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

Disassembly:
push 0xffffffffffffffff
push 0x54f2e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
mov cx, word [esp + 0x28]
mov al, byte [esp + 0x24]
mov dx, word [esp + 0x2c]
mov byte [ebx + 6], al
mov eax, dword [esp + 0x30]
mov word [ebx + 8], cx
mov cl, byte [esp + 0x3c]
mov dword [esp + 0x1c], 0
mov dword [ebx], 0x564a94
mov word [ebx + 0xa], dx
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x10], cl
call fcn.004567c0
mov cl, byte [ebx + 6]
mov word [ebx + 4], ax
mov al, byte [ebx + 0x10]
xor edx, edx
test al, al
setne dl
mov eax, 1
shl eax, cl
movzx ecx, word [ebx + 8]
imul eax, ecx
add edx, 3
imul edx, dword [ebx + 0xc]
mov edi, edx
movzx edx, word [ebx + 0xa]
imul eax, edx
add eax, 7
cdq
and edx, 7
add eax, edx
mov esi, eax
sar esi, 3
lea ebp, [esi + edi]
push ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x40], esi
call fcn.005253dd
add esp, 4
test edi, edi
mov dword [esp + 0x28], eax
je 0x45807f
mov esi, dword [esp + 0x34]
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x3c]
mov edi, edx
add edi, eax
mov ecx, esi
mov esi, dword [esp + 0x38]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x51eb851f
mul ebp
and ecx, 3
shr edx, 5
rep movsb byte es:[edi], byte [esi]
lea eax, [edx + ebp + 0xc]
lea esi, [ebx + 0x14]
push eax
mov dword [esi], eax
call fcn.005253dd
mov edi, dword [esp + 0x2c]
push 9
push ebp
push edi
push esi
push eax
mov dword [ebx + 0x18], eax
call fcn.004214a0
push edi
call fcn.005253e2
mov ecx, dword [esp + 0x30]
add esp, 0x1c
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x458940
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x45894b
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x458a43
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x564b08]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x564b08]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x564b08]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x564b08]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x564b08]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x564b08]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x564b08]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x564b08]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x458966
test edi, edi
je 0x458a62
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x564b08]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x458a47
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret
Function at 0x45d78c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x45d7df
call fcn.0053abfb
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, ebx
je 0x45d7df
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x45d7d5
xor eax, eax
jmp 0x45d8f8
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x45d80f
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x45d80f
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x45d8f5
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x45d83c
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00491fa0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x45d8f5
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x45d885
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x45d885
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x45d87f
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00491fa0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x45d8e5
and dword [ebp + 0xc], 0
jmp 0x45d8e5
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x45d8e5
push 0xc
call fcn.005253b2
mov esi, eax
test esi, esi
pop ecx
je 0x45d8c7
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.user32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x45d8c9
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x45d8e0
push dword [ebp - 8]
call fcn.0051ed5d
jmp 0x45d8e5
call fcn.0051ecf7
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x45d84a
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x46690c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00466b00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x4669a7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x5a72fc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4669a7
cmp eax, 1
je 0x4669c8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x4669a7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x466974
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4669a3
xor eax, eax
inc eax
jmp 0x4669e7
cmp edi, eax
jae 0x4669ab
xor eax, eax
jmp 0x4669e7
cmp eax, esi
jae 0x4669b2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x5a72fc]
jmp 0x4669cb
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x466eaa
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x56b368
call fcn.0046995c
mov edi, 0x94
mov eax, edi
call fcn.00466b00
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x5a72fc], ecx
mov eax, dword [esi + 4]
mov dword [0x5a7308], eax
mov edx, dword [esi + 8]
mov dword [0x5a730c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x5a7300], esi
cmp ecx, 2
je 0x466f0a
or esi, 0x8000
mov dword [0x5a7300], esi
shl eax, 8
add eax, edx
mov dword [0x5a7304], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x466f45
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x466f45
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x466f5d
cmp eax, 0x20b
je 0x466f4a
mov dword [ebp - 0x1c], esi
jmp 0x466f71
cmp dword [ecx + 0x84], 0xe
jbe 0x466f45
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x466f6b
cmp dword [ecx + 0x74], 0xe
jbe 0x466f45
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0046c0ce
pop ecx
test eax, eax
jne 0x466f85
push 0x1c
call fcn.00466e86
pop ecx
call fcn.0046af7a
test eax, eax
jne 0x466f96
push 0x10
call fcn.00466e86
pop ecx
call fcn.0046fc30
mov dword [ebp - 4], esi
call fcn.0046fa32
test eax, eax
jge 0x466faf
push 0x1b
call fcn.00466e61
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x5aa304], eax
call fcn.0046f910
mov dword [0x5a72c0], eax
call fcn.0046f86e
test eax, eax
jge 0x466fd5
push 8
call fcn.00466e61
pop ecx
call fcn.0046f63b
test eax, eax
jge 0x466fe6
push 9
call fcn.00466e61
pop ecx
push 1
call fcn.00468662
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x466ffc
push eax
call fcn.00466e61
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.0046f5de
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x46701d
movzx eax, word [ebp - 0x40]
jmp 0x467020
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0051b870
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x46703e
push edi
call fcn.0046878f
call fcn.004687b1
jmp 0x467070
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00469997
ret
Function at 0x4686cc
Capabilities:
Terminate process

Disassembly:
push 8
push 0x56b4c8
call fcn.0046995c
push 8
call fcn.0046be0b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x5a733c], esi
jne 0x468700
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x5a7338], esi
mov al, byte [ebp + 0x10]
mov byte [0x5a7334], al
cmp dword [ebp + 0xc], edi
jne 0x46874a
cmp dword [0x5a92e8], edi
je 0x46873a
mov eax, dword [0x5a92e4]
sub eax, 4
mov dword [0x5a92e4], eax
cmp eax, dword [0x5a92e8]
jb 0x46873a
mov eax, dword [eax]
cmp eax, edi
je 0x46871b
call eax
jmp 0x46871b
push 0x59b35c
mov eax, 0x59b354
call fcn.0046864a
pop ecx
push 0x59b368
mov eax, 0x59b360
call fcn.0046864a
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x46877b
cmp dword [ebp + 0x10], edi
jne 0x468789
mov dword [0x5a733c], esi
push dword [ebp + 8]
call fcn.00468608
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x468788
push 8
call fcn.0046bd56
pop ecx
ret
call fcn.00469997
ret

Function at 0x46987a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x469897
call fcn.0046a1cb
mov dword [eax], 0x16
xor eax, eax
jmp 0x469901
push esi
push 0x8c
push 1
call fcn.0046707f
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4698ec
push esi
call fcn.0046ad80
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4698ca
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4697e5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
jne 0x469900
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004660a2
test ebx, ebx
pop ecx
je 0x4698fe
push ebx
call fcn.0046a1dd
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46eea2
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 0x46eed0
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 0x46eed7
cmp ebx, dword [eax + 4]
jae 0x46eed7
xor eax, eax
jmp 0x46f0c7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x46eee8
xor eax, eax
inc eax
jmp 0x46f0c6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x46eefe
cmp ecx, edx
jae 0x46f043
cmp dword [eax + 4], 0
je 0x46ef07
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x46eeef
cmp dword [ebp + 8], 0
je 0x46ef29
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x46f043
cmp eax, esi
jae 0x46f043
mov eax, dword [0x5a74c8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x46ef4e
cmp dword [esi*4 + 0x5a74d0], edi
je 0x46f047
inc esi
cmp esi, eax
jl 0x46ef3c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x46f0c3
cmp dword [ebp - 8], 0x1000000
jne 0x46f0c3
test byte [ebp - 0xc], 0xcc
je 0x46efcc
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x46f0c3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x46f0c3
cmp word [eax + 0x18], 0x10b
jne 0x46f0c3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x46f0c3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x46efcc
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x46efcc
test byte [ecx + 0x27], 0x80
jne 0x46f043
push 1
push 0x5a7510
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
jne 0x46eee0
mov ecx, dword [0x5a74c8]
test ecx, ecx
mov edx, ecx
jle 0x46f000
lea eax, [ecx*4 + 0x5a74cc]
cmp dword [eax], edi
je 0x46f000
dec edx
sub eax, 4
test edx, edx
jg 0x46eff4
test edx, edx
jne 0x46f031
push 0xf
pop ebx
cmp ecx, ebx
jg 0x46f00d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x46f025
lea eax, [edx*4 + 0x5a74d0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x46f013
cmp ecx, 0x10
jge 0x46f031
inc ecx
mov dword [0x5a74c8], ecx
push 0
push 0x5a7510
call dword [sym.imp.kernel32.dll_InterlockedExchange]
jmp 0x46eee0
xor eax, eax
jmp 0x46f0c6
test esi, esi
jle 0x46eee0
mov ebx, dword [sym.imp.kernel32.dll_InterlockedExchange]
push 1
push 0x5a7510
call ebx
test eax, eax
jne 0x46eee0
cmp dword [esi*4 + 0x5a74d0], edi
je 0x46f09d
mov eax, dword [0x5a74c8]
lea esi, [eax - 1]
test esi, esi
jl 0x46f08b
cmp dword [esi*4 + 0x5a74d0], edi
je 0x46f087
dec esi
jns 0x46f07b
test esi, esi
jge 0x46f09b
cmp eax, 0x10
jge 0x46f096
inc eax
mov dword [0x5a74c8], eax
lea esi, [eax - 1]
jmp 0x46f09d
je 0x46f0b5
xor ecx, ecx
test esi, esi
jl 0x46f0b5
lea eax, [ecx*4 + 0x5a74d0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x46f0a3
push 0
push 0x5a7510
call ebx
jmp 0x46eee0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret