joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4848b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x484a7e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00404814
mov eax, dword [ebp - 4]
call fcn.00404ad4
mov dword [ebp - 0x14], eax
mov byte [ebp - 0xd], 1
mov edi, 1
cmp edi, dword [ebp - 0x14]
jg 0x484a05
mov eax, dword [ebp - 4]
mov al, byte [eax + edi - 1]
mov dl, byte [ebp - 0xd]
dec dl
je 0x484922
dec dl
je 0x48496f
dec dl
je 0x4849b5
jmp 0x4849f8
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x18], dl
and al, 3
shl eax, 4
mov byte [ebp - 0x17], al
cmp edi, dword [ebp - 0x14]
jne 0x4849f8
mov bl, 2
lea esi, [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
xor edx, edx
mov dl, byte [esi]
inc edx
mov ecx, 1
mov eax, dword [0x4ab1a0]
call fcn.00404d34
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404adc
inc esi
dec bl
jne 0x484942
jmp 0x4849f8
xor edx, edx
mov dl, al
shr edx, 4
or byte [ebp - 0x17], dl
and al, 0xf
shl eax, 2
mov byte [ebp - 0x16], al
cmp edi, dword [ebp - 0x14]
jne 0x4849f8
mov bl, 3
lea esi, [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
xor edx, edx
mov dl, byte [esi]
inc edx
mov ecx, 1
mov eax, dword [0x4ab1a0]
call fcn.00404d34
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.00404adc
inc esi
dec bl
jne 0x48498b
jmp 0x4849f8
xor edx, edx
mov dl, al
shr edx, 6
or byte [ebp - 0x16], dl
and al, 0x3f
mov byte [ebp - 0x15], al
mov bl, 4
lea esi, [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
xor edx, edx
mov dl, byte [esi]
inc edx
mov ecx, 1
mov eax, dword [0x4ab1a0]
call fcn.00404d34
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.00404adc
mov byte [esi], 0
inc esi
dec bl
jne 0x4849c9
mov byte [ebp - 0xd], 0
inc edi
inc byte [ebp - 0xd]
cmp edi, dword [ebp - 0x14]
jle 0x484903
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00404868
mov eax, dword [ebp - 0xc]
call fcn.00404ad4
and eax, 0x80000003
jns 0x484a24
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x484a5b
mov eax, dword [ebp - 0xc]
call fcn.00404ad4
and eax, 0x80000003
jns 0x484a3c
dec eax
or eax, 0xfffffffc
inc eax
mov edx, 4
sub edx, eax
lea ecx, [ebp - 0x28]
mov al, 0x3d
call fcn.00404ec4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.00404adc
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484a85
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00404838
lea eax, [ebp - 0xc]
call fcn.00404814
ret
Function at 0x48864c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
xor edx, edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cc4
lea eax, [ebp - 0x15c]
mov edx, dword [0x407d5c]
call fcn.004051f4
xor eax, eax
push ebp
push 0x4887ef
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x160]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ad4
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 4]
call fcn.00404d34
mov eax, dword [ebp - 0x160]
mov edx, 0x488804
call fcn.00404c20
jne 0x4886e0
mov eax, dword [ebp - 4]
call fcn.00404ad4
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00404d74
lea eax, [ebp - 0x164]
mov ecx, 0x488810
mov edx, dword [ebp - 4]
call fcn.00404b20
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x15c]
mov edx, 0x3f
call fcn.00409608
test eax, eax
setne al
jmp 0x4887a5
mov eax, dword [ebp - 0x150]
mov edx, 0x488820
call fcn.00404c20
je 0x488795
mov eax, dword [ebp - 0x150]
mov edx, 0x48882c
call fcn.00404c20
je 0x488795
test dword [ebp - 0x154], 0x10
jg 0x488795
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x168]
mov ecx, dword [ebp - 0x150]
call fcn.00404b20
mov eax, dword [ebp - 0x168]
call fcn.00404cd4
push eax
push dword [ebp - 4]
push 0x488804
push dword [ebp - 0x150]
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00404b94
mov eax, dword [ebp - 0x16c]
call fcn.00404cd4
push eax
call sub.kernel32.dll_MoveFileA
lea eax, [ebp - 0x15c]
call fcn.00409658
test eax, eax
setne al
test al, al
je 0x488713
lea eax, [ebp - 0x15c]
call fcn.0040967c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4887f6
lea eax, [ebp - 0x16c]
mov edx, 4
call fcn.00404838
lea eax, [ebp - 0x15c]
mov edx, dword [0x407d5c]
call fcn.004052c4
lea eax, [ebp - 4]
call fcn.00404814
ret
Function at 0x493840
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x49385a
add esp, 0xfffffff0
call fcn.00403d64
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x49393d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x54], 0
mov byte [ebx + 0x40], 1
lea eax, [ebx + 0x48]
mov edx, 0x493970
call fcn.00404868
mov byte [ebx + 0x31], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov byte [ebx + 0x30], 0
mov al, byte [0x493974]
mov byte [ebx + 0x24], al
mov dword [ebx + 8], esi
mov eax, dword [esi + 8]
mov dword [ebx + 0xc], eax
mov esi, dword [ebp + 8]
mov dword [ebx + 4], esi
lea eax, [ebx + 0x44]
mov edx, dword [esi + 0x60]
call fcn.00404868
lea eax, [ebx + 0x2c]
mov edx, dword [ebx + 4]
mov edx, dword [edx + 0x5c]
call fcn.00404868
lea eax, [ebx + 0x28]
mov edx, dword [ebx + 4]
mov edx, dword [edx + 0x58]
call fcn.00404868
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 4]
mov eax, dword [esi + 0x10]
push eax
mov eax, esi
call fcn.004822f4
push eax
push 1
lea ecx, [ebp - 8]
mov eax, dword [0x4ab4ac]
mov eax, dword [eax]
mov edx, dword [esi + 0x10]
call fcn.004825bc
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edi + 0x50]
mov dl, 1
mov eax, dword [0x486f94]
call fcn.004871ac
mov dword [ebx + 0x14], eax
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4812bc]
call fcn.00481594
mov dword [ebx + 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493944
lea eax, [ebp - 8]
call fcn.00404814
ret

Function at 0x495848
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x495876
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x30], 1
mov eax, dword [ebx + 0xc]
call fcn.004819f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49587d
ret
Function at 0x498d00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x498f60
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x498d63
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00498818
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d4c8
cmp al, 1
jne 0x498d63
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00498ae0
test al, al
je 0x498eef
cmp dword [ebp - 8], 0
jge 0x498d81
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00498818
mov eax, dword [ebp - 0x210]
call fcn.00404ad4
cmp ebx, eax
jge 0x498dcb
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00498818
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4ab798]
and eax, 0xff
bt dword [edx], eax
jae 0x498dcb
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x498ddf
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00498cdc
cmp ebx, dword [ebp - 8]
je 0x498ee1
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x498e0b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bfc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ab1ec]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x498ece
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bfc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ab1ec]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004655ac
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bfc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ab1ec]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004655ac
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498ed5
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x498f42
cmp dword [ebp - 8], 0
jge 0x498efa
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00498818
mov eax, dword [ebp - 0x218]
call fcn.00404ad4
cmp eax, dword [ebp - 8]
jg 0x498f34
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00498818
mov eax, dword [ebp - 0x21c]
call fcn.00404ad4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00498cdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498f67
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404838
ret
Function at 0x49e948
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x49e9b9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4ab220]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x49e9a3
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0049e938
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x49d11c]
call fcn.0049f808
mov dword [0x4ab288], eax
mov eax, dword [ebp - 4]
call fcn.0049e7c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e9c0
lea eax, [ebp - 8]
call fcn.00406308
ret

Function at 0x49ea58
Capabilities:
Get file system object information

Disassembly:
push esi
add esp, 0xfffffea0
mov esi, 0x4008
test cl, cl
je 0x49ea6b
or esi, 2
test dl, dl
je 0x49ea74
or esi, 0
jmp 0x49ea77
or esi, 1
push esi
push 0x160
lea edx, [esp + 8]
push edx
push 0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
pop esi
ret
Function at 0x49f694
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404cc4
xor eax, eax
push ebp
push 0x49f7ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
mov edx, dword [ebx]
mov eax, dword [0x49cf04]
call fcn.00415d64
test eax, eax
jl 0x49f6fb
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.0049ea3c
and eax, 0x7f
mov eax, dword [eax*4 + 0x4ab220]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov esi, eax
jmp 0x49f75e
mov eax, dword [ebx]
call fcn.00404ad4
test eax, eax
jle 0x49f75e
mov eax, dword [ebx]
call fcn.00404ad4
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x3a
jne 0x49f722
mov eax, ebx
mov edx, 0x49f804
call fcn.00404adc
mov eax, dword [ebx]
call fcn.00404ad4
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
call fcn.0040578c
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0
push 0
lea eax, [ebp - 0x18]
call fcn.0049e938
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x49f7a9
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [0x4ab2fc]
call fcn.004067cc
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
pop eax
call fcn.0040a0f8
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404868
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x407d7c]
call fcn.0040cac4
call fcn.004041cc
mov eax, dword [ebp - 8]
call fcn.0049f60c
mov ebx, eax
test edi, edi
je 0x49f7be
mov eax, edi
call fcn.00403a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f7f3
lea eax, [ebp - 0x1c]
call fcn.00404814
lea eax, [ebp - 0x18]
call fcn.00406308
lea eax, [ebp - 0x14]
call fcn.00404814
lea eax, [ebp - 4]
call fcn.00404814
ret

Function at 0x4a03d0
Capabilities:
Create process on windows

Disassembly:
push ebx
add esp, 0xffffffc4
mov ebx, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x3c
call fcn.004030a8
mov dword [esp], 0x3c
mov eax, dword [0x4ab5d4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xc
mov eax, dword [ebx + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 5
push esp
call sub.shell32.dll_ShellExecuteExA
add esp, 0x3c
pop ebx
ret
Function at 0x4a0eec
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a1056
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4ab784]
mov eax, dword [eax]
mov ax, word [eax + 0x44]
mov word [ebp - 0x16], ax
mov eax, dword [0x4ab784]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0047d78c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.00442040
xor edx, edx
push ebp
push 0x4a1039
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4a0fa9
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
call fcn.00406308
push eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x344]
call fcn.0049f054
push eax
mov eax, dword [0x4ab5d4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
je 0x4a0f9f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404278
jmp 0x4a1040
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a0fe5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00441c20
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004a0d7c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4a0fc1
push 0
mov edx, 0x4a0d14
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.004417d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1040
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.0044208c
mov eax, dword [0x4ab784]
mov eax, dword [eax]
mov dx, word [ebp - 0x16]
call fcn.0047d78c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a105d
lea eax, [ebp - 0x10]
call fcn.00406308
ret
Function at 0x406da0
Capabilities:
Create process on windows

Disassembly:
mov edx, ecx
sub esp, 0x454
mov eax, dword [edx + 0x27c]
test eax, eax
jne 0x406dbb
xor al, al
add esp, 0x454
ret
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], 0
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 0x288]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test ecx, ecx
jne 0x406de2
mov ecx, eax
mov edx, dword [edx + 0x278]
test edx, edx
je 0x406dee
mov eax, edx
push ecx
push eax
lea eax, [esp + 0x60]
push str.VXLauncher.exe__i_s__k_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x18], ecx
lea edi, [esp + 0x28]
mov dword [esp + 0x1c], ecx
add esp, 0x10
mov dword [esp + 0x10], ecx
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x40]
lea edx, [esp + 4]
or al, 1
push edx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x20
push 0
push 0
lea ecx, [esp + 0x74]
push 0
push ecx
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], 0x44
mov word [esp + 0x6c], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x406e7c
push eax
push eax
push 0x473ac4
call sub.MFC42.DLL_AfxMessageBox
xor al, al
add esp, 0x454
ret
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x406e8e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x406e90
xor eax, eax
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov al, 1
add esp, 0x454
ret

Function at 0x407560
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, ecx
push ebp
push esi
mov esi, dword [ebx + 4]
cmp eax, esi
jle 0x4075db
test esi, esi
jne 0x407579
mov esi, 1
cmp esi, eax
jge 0x407583
add esi, esi
cmp esi, eax
jl 0x40757d
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x407599
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, esi
push edi
mov edx, ecx
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx]
xor eax, eax
test ecx, ecx
mov dword [ebx + 4], esi
pop edi
jle 0x4075cc
mov ecx, dword [ebx + 8]
inc eax
mov dl, byte [eax + ecx - 1]
mov byte [eax + ebp - 1], dl
mov ecx, dword [ebx]
cmp eax, ecx
jl 0x4075ba
mov eax, dword [ebx + 8]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebx + 8], ebp
pop esi
pop ebp
pop ebx
ret 4
Function at 0x409150
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x459a58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
xor ebp, ebp
push 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call fcn.00407560
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], ebp
cmp esi, 0x2000
jge 0x409211
cmp esi, ebp
jne 0x40919f
mov esi, 1
jmp 0x4091a7
cmp esi, 0x2000
jge 0x4091b1
add esi, esi
cmp esi, 0x2000
jl 0x4091a7
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x4091c7
push ebp
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, esi
push edi
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, ebp
mov dword [esp + 0x14], esi
pop edi
jle 0x409200
mov ecx, dword [esp + 0x14]
inc eax
mov dl, byte [ecx + eax - 1]
mov byte [eax + ebx - 1], dl
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jl 0x4091eb
mov eax, dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x14], ebx
push 0x2000
lea ecx, [esp + 0x10]
call fcn.004075f0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.004090b0
mov bl, al
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, ebp
je 0x409259
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x18]
pop esi
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x409290
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x459ae9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x28]
push edi
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
mov ecx, esi
mov dword [esp + 0x20], esi
call fcn.0040ecb0
xor ebx, ebx
lea ecx, [esi + 0xf0]
mov dword [esp + 0x1c], ebx
call fcn.004141a0
lea ecx, [esi + 0x112]
mov byte [esp + 0x1c], 1
call fcn.004141a0
mov cl, byte [esp + 0x30]
mov dword [esi + 0x150], ebx
mov byte [esi + 0x14c], cl
mov dword [esi + 0x154], ebx
mov dword [esi + 0x158], ebx
lea ecx, [esi + 0x15c]
push 4
mov byte [esp + 0x20], 3
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.00407560
push ebx
push ebx
lea ecx, [esi + 0x168]
mov byte [esp + 0x24], 4
call fcn.004144e0
mov byte [esp + 0x1c], 5
mov dword [esi + 0x17c], ebx
mov dword [esi + 0x180], ebx
mov dword [esi + 0x184], ebx
mov ebp, 1
add ebp, ebp
cmp ebp, 4
jl 0x409350
lea edi, [ebp*4]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 4
cmp edx, ebx
mov dword [esp + 0x30], edx
jne 0x409378
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x17c]
xor eax, eax
cmp ecx, ebx
mov dword [esi + 0x180], ebp
jle 0x4093bb
mov ecx, dword [esi + 0x184]
inc eax
mov edx, dword [ecx + eax*4 - 4]
mov ecx, dword [esp + 0x30]
mov dword [ecx + eax*4 - 4], edx
mov ecx, dword [esi + 0x17c]
cmp eax, ecx
jl 0x40939e
mov eax, dword [esi + 0x184]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x34]
add esp, 4
mov dword [esi + 0x184], edx
mov al, byte [esp + 0x30]
mov dword [esi + 0x190], ebx
mov byte [esi + 0x18c], al
mov dword [esi + 0x194], ebx
mov dword [esi + 0x198], ebx
mov dword [esi + 0x1a0], ebx
mov dword [esi + 0x1c4], ebx
mov dword [esi + 0x19c], 0x45bee8
mov ecx, esi
mov byte [esp + 0x1c], 8
mov dword [esi], 0x45c074
call fcn.00409960
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10