joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402acc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov dword [ebp - 0x1c], 0xa1b2c3d4
mov dword [esp + 4], 0x406028
mov dword [esp], str.mstp_20090123091200.cap
mov word [ebp - 0x20], 2
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xffff
mov dword [ebp - 0xc], 0xa5
call sym._fopen
mov ebx, dword [dbg.__acrt_iob_func]
test eax, eax
mov dword [0x4052a8], eax
je 0x402c51
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sym._fwrite
mov eax, dword [0x4052a8]
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [0x4052a8]
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1e]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [0x4052a8]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x18]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [0x4052a8]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x14]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [0x4052a8]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [0x4052a8]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0xc]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [0x4052a8]
mov dword [esp], eax
call sym._fflush
mov dword [esp], 1
call ebx
mov dword [esp + 8], str.mstp_20090123091200.cap
mov dword [esp + 4], str.mstpcap:_saving_capture_to__s_n
mov dword [esp], eax
call sym._fprintf
jmp 0x402c88
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov dword [esp], 2
mov esi, eax
call ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.mstp_20090123091200.cap
mov dword [esp + 4], str.mstpcap_header_:_failed_to_open__s:__s_n
mov dword [esp], eax
call sym._fprintf
add esp, 0x30
pop ebx
pop esi
pop ebp
ret
Function at 0x402c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
cmp dword [0x4052a8], 0
je 0x402d7e
mov ebx, eax
lea eax, [ebp - 0x10]
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.gettimeofday
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4052a8]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [0x4052a8]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [0x4052a8]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x18]
mov dword [esp], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call sym._fwrite
mov eax, dword [0x4052a8]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x14]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [0x4052a8]
mov dword [esp + 4], ebx
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp], 0x404020
call sym._fwrite
jmp 0x402db9
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov dword [esp], 2
mov ebx, eax
call dword [0x404010]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.mstp_20090123091200.cap
mov dword [esp + 4], str.mstpcrc_packet_:_failed_to_open__s:__s_n
mov dword [esp], eax
call sym._fprintf
add esp, 0x34
pop ebx
pop ebp
ret

Function at 0x403104
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
Function at 0x402dc0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40589d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x409008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
je 0x402e47
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
mov dword [ebp - 0x10], edi
call fcn.00402ec0
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x18]
call fcn.00402ec0
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x40], eax
add dword [ebx + 4], 0x44
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
push edi
call fcn.00404340
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405341
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405380
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405380
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405380
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405380
cmp dword [ecx + 0x74], 0xe
jbe 0x405380
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401110
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]
test eax, eax
je 0x401180
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x401178
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4050a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x40113d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x401b50
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 dl
movzx edx, dl
inc edx
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x40f81c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x408008], 0x8088405
inc edx
mov dword [ebx + 0x408008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x5d8e3c
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5d8b64
add edx, 0xec8be66e
sub edi, 0xaa77026e
inc edi
call fcn.005d8e79
add edi, edx
add edi, 0xdcbeba7b
xor dword [ebx], eax
add edx, edi
mov edi, edi
add ebx, 2
inc edx
and edi, edx
cmp ebx, esi
jl fcn.005d8e3c
and edi, edx
or edx, edx
ret
Function at 0x412bdb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412a5a

Function at 0x416f3f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004168ad

Function at 0x416f4a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416ae8

Function at 0x404052
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00402f7f
xor ebx, ebx
cmp dword [0x40ea1c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x404127
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x404092
xor eax, eax
jmp 0x4041eb
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40408b
push eax
call fcn.00402f1c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40ea1c], eax
call esi
push eax
call fcn.00402f1c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40ea20], eax
call esi
push eax
call fcn.00402f1c
mov dword [0x40ea24], eax
lea eax, [ebp - 8]
push eax
call fcn.00402345
test eax, eax
pop ecx
pop ecx
je 0x4040f5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040393b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x404127
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402f1c
cmp eax, ebx
pop ecx
mov dword [0x40ea2c], eax
je 0x404127
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402f1c
pop ecx
mov dword [0x40ea28], eax
mov eax, dword [0x40ea28]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4041a0
cmp dword [0x40ea2c], esi
je 0x4041a0
push eax
call fcn.00402f88
pop ecx
call eax
cmp eax, ebx
je 0x40416d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40ea2c]
call fcn.00402f88
pop ecx
call eax
test eax, eax
je 0x40416d
test byte [ebp - 0x18], 1
jne 0x4041a0
lea eax, [ebp - 0xc]
push eax
call fcn.0040237c
test eax, eax
pop ecx
je 0x404188
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040393b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x404197
or dword [ebp + 0x10], 0x200000
jmp 0x4041d1
or dword [ebp + 0x10], 0x40000
jmp 0x4041d1
mov eax, dword [0x40ea20]
cmp eax, esi
je 0x4041d1
push eax
call fcn.00402f88
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4041d1
mov eax, dword [0x40ea24]
cmp eax, esi
je 0x4041d1
push dword [ebp - 4]
push eax
call fcn.00402f88
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40ea1c]
call fcn.00402f88
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405ebb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e098]
jne 0x405ec5
repz ret
jmp fcn.004074f5
Function at 0x401ca0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
sub ebp, 0x82
mov esi, eax
mov edx, dword [0x404080]
or dl, 1
imul edx, eax
mov eax, dword [0x404080]
sub eax, edx
mov ebx, esi
mov edx, eax
mov eax, 0x404084
call fcn.00401be9
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x4034ed
push eax
sub edi, fcn.00402c97
push edi
push fcn.00402c97
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x401d1c
mov eax, fcn.00402c97
mov ebx, esi
mov edx, edi
call fcn.00401be9
mov edx, 0x1c000
mov eax, 0x404084
mov ebx, esi
call section.AUTO
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 1
call fcn.0040189e
lea edx, [esi + 0x1c000]
add edx, esi
lea eax, [esi - 1]
lea ebx, [ebp - 2]
and eax, 0x404084
call fcn.00402c97
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401ae0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40406c], eax
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.mifedount
push str.Deltapo
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401b33
xor eax, eax
jmp 0x401b4e
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x406730
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41599b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404a14
call fcn.00407391
push 4
mov dword [esp + 0x18], 0
call fcn.004080c7
mov edi, eax
add esp, 4
test edi, edi
je 0x4067a4
push ebx
call fcn.00407269
mov dword [edi], eax
call fcn.00407028
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00407352
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406798
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040737a
pop ebx
jmp 0x4067a6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408b41
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419510]
jne 0x408b4b
repz ret
jmp fcn.0040cd4c
Function at 0x410e63
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419510]
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.0040af06
and dword [ebp - 0x14], 0
cmp dword [0x432010], 0
mov dword [ebp - 0x18], eax
jne 0x410f16
push 0x4038cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410fbe
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4038c0
push ebx
call edi
test eax, eax
je 0x410fbe
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4038b0
push ebx
mov dword [0x432010], eax
call edi
push eax
call esi
push 0x40389c
push ebx
mov dword [0x432014], eax
call edi
push eax
call esi
push 0x403880
push ebx
mov dword [0x432018], eax
call edi
push eax
call esi
mov dword [0x432020], eax
test eax, eax
je 0x410f16
push 0x403868
push ebx
call edi
push eax
call esi
mov dword [0x43201c], eax
mov eax, dword [0x43201c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x410f6f
cmp dword [0x432020], ecx
je 0x410f6f
push eax
call esi
push dword [0x432020]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x410f6f
test ebx, ebx
je 0x410f6f
call edi
test eax, eax
je 0x410f66
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x410f66
test byte [ebp - 8], 1
jne 0x410f6f
or dword [ebp + 0x10], 0x200000
jmp 0x410fa2
mov eax, dword [0x432014]
cmp eax, dword [ebp - 0x18]
je 0x410fa2
push eax
call esi
test eax, eax
je 0x410fa2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410fa2
mov eax, dword [0x432018]
cmp eax, dword [ebp - 0x18]
je 0x410fa2
push eax
call esi
test eax, eax
je 0x410fa2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x432010]
call esi
test eax, eax
je 0x410fbe
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x410fc0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408b41
leave
ret
Function at 0x4135e0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x100c
call fcn.004119d0
cmp dword [0x7b5dac], 0x37
jne 0x41367a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea eax, [esp + 0x810]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0x7b6da0]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x436dfc]
mov byte [ecx + esi], al
add esp, 0x100c
ret
Function at 0x413900
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b5dac]
sub esp, 0x974
push ebx
push ebp
push esi
mov esi, dword [0x436dfc]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x413aff
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x413936
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0x7b5dac], 0x1c
jne 0x41394d
lea eax, [esp + 0x38]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x42dc88]
mov ebx, dword [0x42dc90]
mov ebp, dword [0x42dc94]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x42dc8c]
mov dword [esp + 0x18], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0x20
jmp 0x413996
mov eax, dword [esp + 0x18]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x1c], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0x7b5d1c], edi
mov eax, dword [esp + 0x1c]
add dword [0x7b5d1c], eax
mov eax, dword [0x7b5d1c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
cmp dword [0x7b5dac], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x413a2d
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x2c]
cmp dword [0x7b5dac], 0x979
mov dword [0x7b5d20], 0xff6b3619
mov dword [0x7b5d24], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x413a77
push 0
lea ecx, [esp + 0x184]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
lea edx, [esp + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
mov eax, dword [0x7b5dac]
cmp eax, 0x93
je 0x413a9d
add esi, 0x61c88647
dec dword [esp + 0x28]
jne 0x413990
cmp eax, 0x8d4
jne 0x413ab4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
cmp dword [0x7b5dac], 0x17
jne 0x413aee
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x40]
push edx
push 0x404070
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x20], esi
jne 0x413930
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x974
ret