joyce8/EMBER2024-capa huggingface dataset:
Function at 0x530f30
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ecx
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x531039
push esi
push edi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
mov dword [esp + 0xc], edi
je 0x53102c
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x53102c
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [ebp]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x530f8d
cmp ebx, dword [eax - 4]
jle 0x530ff6
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
je 0x530fbd
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x530fb4
mov eax, dword [ebp]
sub eax, 0xc
push eax
call fcn.00532222
add esp, 4
mov ecx, dword [0x547570]
mov dword [ebp], ecx
test ebx, ebx
jne 0x530fcc
mov edx, dword [0x547570]
mov dword [ebp], edx
jmp 0x530ff6
lea eax, [ebx + ebx + 0xe]
push eax
call fcn.00532695
add esp, 4
test eax, eax
je 0x53101f
mov dword [eax], 1
mov word [eax + ebx*2 + 0xc], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
add eax, 0xc
mov dword [ebp], eax
mov edi, dword [ebp]
lea eax, [ebx + ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov edi, dword [esp + 0x10]
mov dword [ecx - 8], ebx
mov edx, dword [ebp]
mov word [eax + edx], 0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, 1
pop ebp
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x531150
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov eax, dword [ebp]
mov esi, dword [eax - 8]
push esi
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push 0
push 0
push 0
push 0
push esi
push eax
mov eax, dword [esp + 0x4c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
je 0x531269
mov byte [esp + 0x2c], 0
jge 0x531193
xor eax, eax
push eax
call fcn.00532695
add esp, 4
mov edi, eax
test esi, esi
mov ebx, edi
jbe 0x5311c2
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x2c]
push ecx
push ebx
call fcn.00531410
mov eax, dword [esp + 0x18]
add esp, 8
inc ebx
dec eax
mov dword [esp + 0x10], eax
jne 0x5311a8
mov eax, dword [ebp]
lea edx, [edi + esi]
mov dword [esp + 0x20], edx
mov ebx, dword [eax - 8]
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push 0
push 0
push esi
push edi
push ebx
push eax
mov eax, dword [esp + 0x4c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x531260
mov ecx, dword [esp + 0x30]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x531236
push 0x10
push 0
push str.Failed_to_open_file.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call fcn.00532222
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
lea edx, [esp + 0x14]
push 0
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x531259
push 0x10
push eax
push str.Failed_to_write_to_file.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00532222
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x5314f0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
xor eax, eax
test edx, edx
setne al
lea ecx, [esp + 0xc]
push esi
add eax, 0x80000001
push ecx
push 0x543204
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x531550
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 8]
shl eax, 1
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret
Function at 0x531560
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
setne al
lea ecx, [esp + 8]
push esi
add eax, 0x80000001
push ecx
push 0x543204
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x5315ad
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret

Function at 0x5315e0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc1c
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [esp + 0x21c]
push 0x208
push ecx
push eax
call fcn.005315c0
mov edx, dword [0x554e0c]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], edx
push 0x549ab8
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
call fcn.00532eca
lea ecx, [esp + 0x230]
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.00532eca
lea eax, [esp + 0x30]
push str.___bg
push eax
call fcn.00532eca
mov ecx, dword [0x554e0c]
xor eax, eax
mov dword [esp + 0x448], ecx
mov ecx, 0x1ff
lea edi, [esp + 0x44c]
add esp, 0x24
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc2c]
lea edx, [esp + 8]
test ecx, ecx
setne al
add eax, 0x80000001
push edx
push 0x543204
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, dword [esp + 0xc28]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x424]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push esi
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x531719
lea ecx, [esp + 0x424]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.005322f9
add esp, 8
test eax, eax
je 0x53170b
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 8]
lea ecx, [esp + 0x14]
shl eax, 1
push eax
push ecx
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
mov eax, 1
pop esi
add esp, 0xc1c
ret
pop edi
xor eax, eax
pop esi
add esp, 0xc1c
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x394d7b7a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x6db46f12
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40258d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
push esi
push edi
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
xor edi, eax
mov dword [ebp - 0xc], eax
mov eax, edi
mov ecx, edi
and eax, 0xfffffffc
mov esi, edi
add eax, 4
and cl, 3
cmovne esi, eax
mov ecx, esi
call fcn.00402eb2
mov dword [ebp - 4], eax
test eax, eax
je 0x402607
shr esi, 2
lea edx, [ebx + 8]
xor ebx, ebx
and dword [ebp - 8], ebx
lea ecx, [edx + esi*4]
mov esi, ecx
sub esi, edx
add esi, 3
shr esi, 2
cmp edx, ecx
cmova esi, dword [ebp - 8]
test esi, esi
je 0x4025fb
mov ecx, eax
sub ecx, edx
mov eax, dword [edx]
xor eax, dword [ebp - 0xc]
inc ebx
mov dword [ecx + edx], eax
lea edx, [edx + 4]
cmp ebx, esi
jb 0x4025eb
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x402604
mov dword [eax], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402613
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
xor ebx, ecx
mov dword [ebp - 0xc], ecx
push edi
mov dword [ebp - 0x14], ebx
lea esi, [ebx + 1]
mov eax, esi
mov edx, esi
and eax, 0xfffffffc
add eax, 4
and dl, 3
cmovne esi, eax
lea ecx, [esi + esi]
call fcn.00402eb2
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4026be
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
add eax, 8
shr esi, 2
lea ecx, [eax + esi*4]
mov esi, edi
mov edx, ecx
sub edx, eax
add edx, 3
shr edx, 2
cmp eax, ecx
cmova edx, dword [ebp - 4]
test edx, edx
je 0x4026b8
mov ebx, eax
xor edi, edi
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
xor ecx, dword [ebp - 0xc]
movzx eax, cl
mov word [esi], ax
mov eax, ecx
shr eax, 8
lea esi, [esi + 8]
movzx eax, al
mov word [esi - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc edi
mov word [esi - 4], ax
movzx eax, cl
mov word [esi - 2], ax
cmp edi, edx
jb 0x40267c
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4026c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
xor eax, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
lea edi, [eax + 1]
mov eax, edi
mov edx, edi
and eax, 0xfffffffc
add eax, 4
and dl, 3
cmovne edi, eax
mov ecx, edi
call fcn.00402eb2
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x402759
and dword [ebp - 4], 0
add ebx, 8
shr edi, 2
xor eax, eax
mov edx, esi
lea ecx, [ebx + edi*4]
mov edi, ecx
sub edi, ebx
add edi, 3
shr edi, 2
cmp ebx, ecx
cmova edi, eax
test edi, edi
je 0x402752
mov esi, dword [ebp - 4]
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
xor ecx, dword [ebp - 8]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc esi
mov byte [edx - 1], cl
cmp esi, edi
jb 0x402729
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov byte [esi + eax], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402a74
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], 0x21b274bc
xor eax, eax
mov dword [ebp - 0x38], 0x1181f997
xor edx, edx
mov dword [ebp - 0x34], 0x1ac39113
mov dword [ebp - 0x30], 0xe5f99656
push ebx
push edi
mov ebx, ecx
lea edi, [ebp - 0x2c]
push 9
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0xda26
imul eax, dword [ebp - 8], 9
push 0x11
pop ecx
mov dword [ebp - 8], eax
xor dword [ebp - 8], 0x7ab56
mov dword [ebp - 4], 0x4322
xor dword [ebp - 4], 0x437ef029
mov eax, dword [ebp - 4]
div ecx
mov dword [ebp - 4], eax
xor dword [ebp - 4], 0x3f864e4
mov dword [ebp - 4], 0x41d3
add dword [ebp - 4], 0xe028
imul eax, dword [ebp - 4], 0x11
mov dword [ebp - 4], eax
imul eax, dword [ebp - 4], 0x53
mov dword [ebp - 4], eax
add dword [ebp - 4], 0x4465
xor dword [ebp - 4], 0x63e8ec6
cmp byte [ebx], 0
je 0x402b80
push esi
mov edi, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 4], 0x4322
xor dword [ebp - 4], 0x437ef029
mov eax, dword [ebp - 4]
div ecx
push 0x11
mov dword [ebp - 4], eax
xor dword [ebp - 4], 0x3f864e4
mov cl, byte [ebp - 4]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], 0x41d3
add dword [ebp - 4], 0xe028
imul eax, dword [ebp - 4], 0x11
shl esi, cl
mov dword [ebp - 4], eax
imul eax, dword [ebp - 4], 0x53
mov dword [ebp - 4], eax
add dword [ebp - 4], 0x4465
xor dword [ebp - 4], 0x63e8ec6
mov cl, byte [ebp - 4]
mov edx, dword [ebp - 8]
movsx eax, byte [ebx]
mov dword [ebp - 8], eax
add dword [ebp - 8], esi
shl edx, cl
add dword [ebp - 8], edx
sub dword [ebp - 8], edi
inc ebx
pop ecx
cmp byte [ebx], 0
jne 0x402b0b
pop esi
mov eax, dword [ebp - 8]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ca4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
push edi
xor esi, esi
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 0x14], eax
add ecx, ebx
mov eax, dword [edi + 0x24]
add eax, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, esi
cmp dword [edi + 0x18], esi
jbe 0x402d30
mov ecx, dword [ecx + eax*4]
add ecx, ebx
call fcn.00402a74
xor eax, 0xa46550c
cmp eax, dword [ebp - 8]
mov eax, dword [ebp - 4]
je 0x402d07
mov ecx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [edi + 0x18]
jb 0x402ce2
jmp 0x402d30
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
movzx eax, word [ecx + eax*2]
mov esi, dword [esi + eax*4]
add esi, ebx
cmp esi, edi
jb 0x402d30
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx + 0x7c]
add eax, edi
cmp esi, eax
jae 0x402d30
mov ecx, esi
call fcn.00402d70
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402d39
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
mov ebx, ecx
add edi, 0xc
mov esi, dword [edi]
jmp 0x402d61
mov ecx, dword [esi + 0x30]
call fcn.00402b89
xor eax, 0x1d0541c4
cmp eax, ebx
je 0x402d6b
mov esi, dword [esi]
cmp esi, edi
jne 0x402d4e
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x18]
jmp 0x402d67

Function at 0x402f0d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov dword [ebp - 4], eax
push edi
cmp edx, 0x40
jb 0x403004
call fcn.0040300b
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x403004
push esi
push 0x40
push 0x3000
push dword [edi + 0x50]
mov edx, 0x3397f346
mov ecx, 0x927ba7b6
push 0
push 0x3e
call fcn.00402dfc
pop ecx
call eax
mov esi, eax
test esi, esi
je 0x402fff
movzx ecx, word [edi + 0x14]
lea eax, [edi + 0x18]
mov edx, dword [ebp - 4]
add eax, ecx
movzx ecx, word [edi + 6]
push ebx
push dword [edi + 0x54]
imul ebx, ecx, 0x28
mov ecx, esi
mov dword [ebp - 8], eax
add ebx, eax
call fcn.00402e8e
pop ecx
mov ecx, dword [ebp - 8]
cmp ecx, ebx
jae 0x402fcb
sub ebx, ecx
mov edi, dword [ebp - 4]
lea eax, [ecx + 0x10]
xor edx, edx
mov dword [ebp - 0xc], eax
push 0x28
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0xc]
pop ecx
div ecx
inc eax
mov dword [ebp - 8], eax
mov ecx, dword [ebx]
cmp dword [ebx - 8], ecx
mov edx, dword [ebx + 4]
cmovb ecx, dword [ebx - 8]
add edx, edi
push ecx
mov ecx, dword [ebx - 4]
add ecx, esi
call fcn.00402e8e
dec dword [ebp - 8]
lea ebx, [ebx + 0x28]
pop ecx
jne 0x402fa6
mov edi, dword [ebp - 0x10]
mov edx, edi
mov ecx, esi
call fcn.004030e9
mov edx, edi
mov ecx, esi
call fcn.00403034
pop ebx
test eax, eax
jne 0x402fff
push 0x8000
push eax
push esi
push 0x5d
mov edx, 0xf0b48a5b
mov ecx, 0x927ba7b6
call fcn.00402dfc
pop ecx
call eax
xor esi, esi
mov eax, esi
pop esi
jmp 0x403006
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40300b
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x403018
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403015
mov edx, 0x10b
xor ecx, ecx
cmp word [eax + 0x18], dx
cmovne eax, ecx
ret
Function at 0x401ac0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401b0b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b04
test esi, esi
je 0x401b04
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ae0
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401cf0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401d40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e14
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401d7e
cmp eax, 4
jne 0x401da0
test esi, esi
je 0x401d92
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401d84
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401ddf
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401dd1
cmp ecx, 0x40
je 0x401d92
cmp ecx, 4
je 0x401d92
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401cf0
lea esi, [esi]
Function at 0x410018
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4211f8]
je 0x410033
inc edi
cmp edi, 0x17
jb 0x410024
cmp edi, 0x17
jae 0x4101b3
push ebp
push 3
call fcn.00416eba
cmp eax, 1
pop ecx
je 0x41017f
push 3
call fcn.00416eba
test eax, eax
pop ecx
jne 0x410067
cmp dword [0x42062c], 1
je 0x41017f
cmp ebx, 0xfc
je 0x4101b2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x421d48
push ebp
call fcn.0040c06b
add esp, 0xc
test eax, eax
je 0x41009d
push esi
push esi
push esi
push esi
push esi
call fcn.00407516
add esp, 0x14
push 0x104
mov esi, 0x421d61
push esi
push 0
mov byte [0x421e65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4100e1
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040c06b
add esp, 0xc
test eax, eax
je 0x4100e1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00407516
add esp, 0x14
push esi
call fcn.00409b50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x410126
push esi
call fcn.00409b50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42205c
push 0x41c61c
sub ecx, eax
push ecx
push eax
call fcn.00412056
add esp, 0x14
test eax, eax
je 0x410126
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00407516
add esp, 0x14
jmp 0x410128
xor esi, esi
push 0x41c618
push ebx
push ebp
call fcn.00411f95
add esp, 0xc
test eax, eax
je 0x410148
push esi
push esi
push esi
push esi
push esi
call fcn.00407516
add esp, 0x14
push dword [edi*8 + 0x4211fc]
push ebx
push ebp
call fcn.00411f95
add esp, 0xc
test eax, eax
je 0x41016a
push esi
push esi
push esi
push esi
push esi
call fcn.00407516
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00416cfd
add esp, 0xc
jmp 0x4101b2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4101b2
cmp ebp, 0xffffffff
je 0x4101b2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4211fc]
push dword [esi]
call fcn.00409b50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4019f6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
xor ebx, ebx
push esi
push ebx
push 2
mov dword [ebp - 0x128], 0x128
call fcn.00405a70
mov esi, eax
cmp esi, 0xffffffff
je 0x401a2d
lea eax, [ebp - 0x128]
push eax
push esi
call fcn.00405a6a
test eax, eax
jne 0x401a31
mov al, 1
jmp 0x401a71
push edi
xor edi, edi
lea eax, [ebp - 0x128]
push eax
push esi
call fcn.00405a64
test eax, eax
je 0x401a65
lea eax, [ebp - 0x104]
push 0x40a08c
push eax
call dword [0x4073b4]
pop ecx
test eax, eax
pop ecx
jne 0x401a34
inc edi
cmp edi, 2
jle 0x401a34
jmp 0x401a67
mov bl, 1
push esi
call dword [0x4070a0]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4026b1
Capabilities:
Delete file

Disassembly:
mov eax, 0x405d18
call fcn.004057f0
sub esp, 0x418
cmp byte [ebp + 0xc], 0
push ebx
mov dword [ebp - 0x20], ecx
jne 0x4026d5
call fcn.0040269f
jmp 0x40287d
push 0x40a40c
push dword [ebp + 0x10]
call dword [0x4073e0]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
mov dword [ebp - 0x18], ebx
je 0x40287d
and dword [0x40a3b8], 0
test byte [ebx + 0xc], 0x10
jne 0x40283f
push esi
mov esi, dword [0x4073d0]
push edi
mov edi, 0x40a408
push ebx
lea eax, [ebp - 0x424]
push 0x400
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
lea eax, [ebp - 0x424]
push edi
push eax
call esi
push edi
push 0
mov dword [ebp + 0x10], eax
call esi
push edi
push 0
mov dword [ebp - 0x1c], eax
call esi
add esp, 0x24
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], eax
je 0x402833
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x40a7cc
push eax
call sub.MFC42.DLL_operator
xor eax, eax
cmp dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], eax
je 0x402778
push dword [ebp - 0x24]
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov dword [ebp + 0xc], eax
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_atoi]
cmp dword [ebp + 0xc], 0
pop ecx
mov ebx, eax
jge 0x402797
push dword [ebp - 0x10]
call fcn.00405172
test al, al
pop ecx
je 0x4027ac
cmp ebx, dword [0x40a784]
jle 0x402824
push dword [ebp - 0x10]
call dword [0x40708c]
cmp dword [0x40a3bc], ebx
jge 0x4027ba
mov dword [0x40a3bc], ebx
cmp dword [ebp + 0xc], 0
jge 0x4027e1
inc dword [0x40a3b8]
push 0x40a400
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x4027e1
mov dword [ebp + 0xc], 0xfffe7961
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov ecx, 0x40a868
push eax
call fcn.004036c3
mov ecx, eax
call sub.MFC42.DLL_CString::operator_1
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x14]
mov ecx, 0x40a850
push eax
mov byte [ebp - 4], 1
call fcn.00401cb3
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov dword [eax], ebx
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ebx, dword [ebp - 0x18]
test byte [ebx + 0xc], 0x10
je 0x402710
pop edi
pop esi
push ebx
call dword [0x4073c8]
mov eax, dword [0x40a3bc]
pop ecx
cmp eax, 0xffffffff
je 0x40285c
push eax
mov ecx, 0x40a6b8
call fcn.004018a1
mov ecx, dword [ebp - 0x20]
push 0x40a3f4
call fcn.00402654
mov eax, dword [0x40a86c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [0x40a860], eax
call fcn.00402a05
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc