joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4065e9
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.004060cf
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x40661e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a5a8], eax
jmp 0x4067c3
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x406639
test eax, eax
je 0x40676e
test cl, 2
je 0x40676e
push edi
push ebx
mov esi, 0x427080
push esi
call fcn.00405ab7
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40665c
push str..
push esi
call edi
jmp 0x406662
push ebx
call fcn.004060a2
cmp word [ebx], 0
jne 0x406672
cmp word [0x427080], 0x5c
jne 0x40667a
push 0x4082d0
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40675d
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.004057b4
xor edi, edi
cmp word [eax], di
je 0x4066c1
cmp word [ebp - 0x28], di
je 0x4066c1
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x4066db
movzx eax, word [esi + 2]
cmp ax, di
je 0x40673a
cmp eax, 0x2e
jne 0x4066db
cmp word [esi + 4], di
je 0x40673a
push esi
push dword [ebp - 4]
call fcn.00405ab7
test byte [ebp - 0x25c], 0x10
je 0x406702
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40673a
push dword [ebp + 0xc]
push ebx
call fcn.004065e9
jmp 0x40673a
push ebx
call fcn.004058de
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406732
test byte [ebp + 0xc], 4
je 0x40672a
push ebx
push 0xfffffffffffffff1
call fcn.00404a74
push edi
push ebx
call fcn.004065b6
jmp 0x40673a
inc dword [0x42a5a8]
jmp 0x40673a
push ebx
push 0xfffffffffffffff2
call fcn.00404a74
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4066a1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40675f
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x40676e
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4067c2
cmp dword [ebp - 0xc], esi
je 0x4067b2
push ebx
call fcn.00405b95
test eax, eax
je 0x4067c2
push ebx
call fcn.00406073
push ebx
call fcn.004058de
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4067ba
test byte [ebp + 0xc], 4
je 0x4067b2
push ebx
push 0xfffffffffffffff1
call fcn.00404a74
push esi
push ebx
call fcn.004065b6
jmp 0x4067c2
inc dword [0x42a5a8]
jmp 0x4067c2
push ebx
push 0xffffffffffffffe5
call fcn.00404a74
pop esi
pop ebx
leave
ret 8
Function at 0x406b61
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x428084], 0
jne 0x406b9f
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b75
mov dword [ecx*4 + 0x428080], eax
inc ecx
cmp ecx, 0x100
jl 0x406b70
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406bcc
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x428080]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406bad
not eax
pop ebp
ret 0xc
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e004]
jne 0x40100a
repz ret
jmp fcn.00401ac6

Function at 0x4068bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004026f6
and dword [ebp - 0x14], 0
cmp dword [0x420620], 0
mov dword [ebp - 0x18], eax
jne 0x40696e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406a16
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406a16
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x420620], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x420624], eax
call edi
push eax
call esi
push 0x41c858
push ebx
mov dword [0x420628], eax
call edi
push eax
call esi
mov dword [0x420630], eax
test eax, eax
je 0x40696e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42062c], eax
mov eax, dword [0x42062c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4069c7
cmp dword [0x420630], ecx
je 0x4069c7
push eax
call esi
push dword [0x420630]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4069c7
test ebx, ebx
je 0x4069c7
call edi
test eax, eax
je 0x4069be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4069be
test byte [ebp - 8], 1
jne 0x4069c7
or dword [ebp + 0x10], 0x200000
jmp 0x4069fa
mov eax, dword [0x420624]
cmp eax, dword [ebp - 0x18]
je 0x4069fa
push eax
call esi
test eax, eax
je 0x4069fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4069fa
mov eax, dword [0x420628]
cmp eax, dword [ebp - 0x18]
je 0x4069fa
push eax
call esi
test eax, eax
je 0x4069fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x420620]
call esi
test eax, eax
je 0x406a16
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406a18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x41a4a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc28], eax
cmp ebx, 0x182
jne 0x41a4d5
lea ecx, [ebp - 0xc20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x41a4f3
cmp ebx, 0x19f
jne 0x41a4f3
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x41a554
push esi
jmp 0x41a500
lea esi, [ebp - 0xc24]
mov dword [ebp - 0xc24], 0
call fcn.0041a490
mov dl, byte [ebp - 0xc24]
mov eax, dword [ebp - 0xc28]
xor byte [eax + edi], dl
cmp ebx, 0xf
jne 0x41a54e
lea eax, [ebp - 0xc2c]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
lea edx, [ebp - 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
inc edi
cmp edi, ebx
jl 0x41a500
pop esi
pop edi
cmp ebx, 0x2d
jne 0x41a56e
mov dword [0x422008], 0xa62e7790
mov dword [0x42200c], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x41a580
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x421ffc]
push ebx
push esi
mov esi, dword [0x421d1c]
mov ebx, eax
cmp eax, 0x5dd
jne 0x41a5a2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x41f1d0]
call fcn.0041a460
cmp dword [0x421ffc], 0x2f
jne 0x41a5bd
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
call fcn.0041a4a0
add esp, 4
cmp dword [0x421ffc], 0x568
pop esi
pop ebx
jne 0x41a5e8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x20b3212d
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x9c82f54
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 9], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0x22
jge 0x401056
mov eax, dword [ebp - 4]
add eax, 6
mov dword [ebp - 4], eax
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x91
jmp 0x40101f
cmp dword [ebp - 8], 0xffffffff
je 0x4010c7
mov dword [ebp - 0x1c], 0
jmp 0x40106e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0xc]
jae 0x4010bb
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x1c]
movsx edx, byte [ecx]
movsx eax, byte [ebp + 0x14]
xor edx, eax
mov byte [ebp - 0x15], dl
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
lea edx, [ebp - 0x10]
push edx
push 1
lea eax, [ebp - 0x15]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x1c]
sub edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x401065
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0xc]
jne 0x4010c7
mov byte [ebp - 9], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x401270
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x469128]
mov dword [ebp - 0xc], eax
push edi
mov byte [ebp - 0x50], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xd0], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0xcf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 8], 0x7f
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xd0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edx, [ebp - 0xd0]
push edx
movzx eax, byte [ebp + 8]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.00401140
add esp, 0xc
lea edx, [ebp - 0x50]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4012fa
jmp 0x401339
lea eax, [ebp - 0x50]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
je 0x40132e
cmp dword [ebp - 0xd4], 0xb7
je 0x401330
jmp 0x401332
jmp 0x401334
jmp 0x401339
jmp 0x401339
mov eax, dword [ebp - 4]
jmp 0x401345
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
call fcn.00401e61
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401c20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x469128]
mov dword [ebp - 8], eax
mov byte [ebp - 0x150], 0
xor eax, eax
mov dword [ebp - 0x14f], eax
mov dword [ebp - 0x14b], eax
mov dword [ebp - 0x147], eax
mov dword [ebp - 0x143], eax
mov dword [ebp - 0x13f], eax
mov dword [ebp - 0x13b], eax
mov dword [ebp - 0x137], eax
mov word [ebp - 0x133], ax
mov byte [ebp - 0x131], al
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
jne 0x401c90
xor al, al
jmp 0x401dd7
mov dword [ebp - 0x130], 0x128
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x154]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x401cc5
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x401dd7
mov dword [ebp - 0x158], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10c]
push ecx
call fcn.004010e0
add esp, 4
mov dword [ebp - 0x158], str.1__ufbrquw_dwd
mov edx, dword [ebp - 0x158]
movsx eax, byte [edx]
test eax, eax
je 0x401dad
mov ecx, dword [ebp - 0x158]
add ecx, 2
push ecx
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x15c], 0
jmp 0x401d32
mov eax, dword [ebp - 0x15c]
add eax, 1
mov dword [ebp - 0x15c], eax
lea ecx, [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 0x15c], eax
jge 0x401d67
mov edx, dword [ebp - 0x15c]
movsx eax, byte [ebp + edx - 0x150]
add eax, 1
mov ecx, dword [ebp - 0x15c]
mov byte [ebp + ecx - 0x150], al
jmp 0x401d23
lea edx, [ebp - 0x150]
push edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00405a28
add esp, 8
test eax, eax
jne 0x401d8b
mov ecx, dword [ebp - 0x158]
mov al, byte [ecx]
jmp 0x401dd7
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x158]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x158], edx
jmp 0x401cef
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x154]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401cd6
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 8]
call fcn.00401e61
mov esp, ebp
pop ebp
ret

Function at 0x401df0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x401e11
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
jne 0x401e15
xor eax, eax
jmp 0x401e1a
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401ff5
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x406170
call fcn.00402380
mov edi, 0x94
mov eax, edi
call fcn.00403090
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 [0x4693c0], ecx
mov eax, dword [esi + 4]
mov dword [0x4693cc], eax
mov edx, dword [esi + 8]
mov dword [0x4693d0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4693c4], esi
cmp ecx, 2
je 0x402055
or esi, 0x8000
mov dword [0x4693c4], esi
shl eax, 8
add eax, edx
mov dword [0x4693c8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x402090
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402090
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4020a8
cmp eax, 0x20b
je 0x402095
mov dword [ebp - 0x1c], esi
jmp 0x4020bc
cmp dword [ecx + 0x84], 0xe
jbe 0x402090
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4020b6
cmp dword [ecx + 0x74], 0xe
jbe 0x402090
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00403032
pop ecx
test eax, eax
jne 0x4020e8
cmp dword [0x4693ac], 1
jne 0x4020d5
call fcn.004027e7
push 0x1c
call fcn.00402670
push 0xff
call fcn.004024d5
pop ecx
pop ecx
call fcn.00402f90
mov dword [ebp - 4], esi
call fcn.00402de5
test eax, eax
jge 0x402101
push 0x1b
call fcn.00401fd0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x469934], eax
call fcn.00402cc3
mov dword [0x4693a4], eax
call fcn.00402c21
test eax, eax
jge 0x402127
push 8
call fcn.00401fd0
pop ecx
call fcn.004029ee
test eax, eax
jge 0x402138
push 9
call fcn.00401fd0
pop ecx
push 1
call fcn.00402505
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40214e
push eax
call fcn.00401fd0
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402991
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40216f
movzx eax, word [ebp - 0x40]
jmp 0x402172
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401360
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x402190
push edi
call fcn.00402630
call fcn.00402652
jmp 0x4021c2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004023bb
ret
Function at 0x40256f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x469400], esi
push edi
jne 0x40258f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4693fc], esi
mov byte [0x4693f8], al
jne 0x4025f5
mov ecx, dword [0x469928]
test ecx, ecx
je 0x4025d6
mov eax, dword [0x469924]
sub eax, 4
cmp eax, ecx
jmp 0x4025cf
mov eax, dword [eax]
test eax, eax
je 0x4025c1
call eax
mov eax, dword [0x469924]
sub eax, 4
cmp eax, dword [0x469928]
mov dword [0x469924], eax
jae 0x4025b9
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x4025f5
mov eax, dword [edi]
test eax, eax
je 0x4025ee
call eax
add edi, 4
cmp edi, esi
jb 0x4025e6
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x402614
mov eax, dword [edi]
test eax, eax
je 0x40260d
call eax
add edi, 4
cmp edi, esi
jb 0x402605
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40262e
push dword [ebp + 8]
mov dword [0x469400], 1
call fcn.004024d5
pop ebp
ret

Function at 0x402670
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x469128]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x469138]
je 0x4026a5
inc eax
cmp eax, 0x13
jb 0x402696
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x469138]
jne 0x4027cb
mov eax, dword [0x4693ac]
cmp eax, 1
je 0x4027a3
cmp eax, edx
jne 0x4026d5
cmp dword [0x469134], 1
je 0x4027a3
cmp ecx, 0xfc
je 0x4027cb
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40270b
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00401e70
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00403300
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40273f
mov eax, edi
push eax
call fcn.00403300
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4061b4
push edi
call fcn.004031d0
add esp, 0x10
push edi
call fcn.00403300
push dword [esi + 0x46913c]
mov ebx, eax
call fcn.00403300
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403090
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00401e70
push edi
push ebx
call fcn.00401e80
push 0x4061b0
push ebx
call fcn.00401e80
push dword [esi + 0x46913c]
push ebx
call fcn.00401e80
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004030cd
add esp, 0x2c
jmp 0x4027cb
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x46913c]
push dword [esi]
call fcn.00403300
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00401e61
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4030cd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x46951c], ebx
push esi
push edi
jne 0x40314d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403188
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x46951c], eax
je 0x403188
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x469520], eax
call esi
cmp dword [0x4693c0], 2
mov dword [0x469524], eax
jne 0x40314d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x46952c], eax
je 0x40314d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x469528], eax
mov eax, dword [0x469528]
test eax, eax
je 0x403192
call eax
test eax, eax
je 0x403179
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x46952c]
test eax, eax
je 0x403179
test byte [ebp - 8], 1
jne 0x403192
cmp dword [0x4693cc], 4
jb 0x40318c
or byte [ebp + 0x12], 0x20
jmp 0x4031b1
xor eax, eax
jmp 0x4031c1
or byte [ebp + 0x12], 4
jmp 0x4031b1
mov eax, dword [0x469520]
test eax, eax
je 0x4031b1
call eax
mov ebx, eax
test ebx, ebx
je 0x4031b1
mov eax, dword [0x469524]
test eax, eax
je 0x4031b1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x46951c]
pop edi
pop esi
pop ebx
leave
ret