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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x412950]
je 0x4080ea
inc edi
cmp edi, 0x17
jb 0x4080db
cmp edi, 0x17
jae 0x40826a
push ebp
push 3
call fcn.0040bc11
cmp eax, 1
pop ecx
je 0x408236
push 3
call fcn.0040bc11
test eax, eax
pop ecx
jne 0x40811e
cmp dword [0x4121a0], 1
je 0x408236
cmp ebx, 0xfc
je 0x408269
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x415268
push ebp
call fcn.00409ae9
add esp, 0xc
test eax, eax
je 0x408154
push esi
push esi
push esi
push esi
push esi
call fcn.004078ec
add esp, 0x14
push 0x104
mov esi, 0x415281
push esi
push 0
mov byte [0x415385], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408198
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00409ae9
add esp, 0xc
test eax, eax
je 0x408198
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004078ec
add esp, 0x14
push esi
call fcn.004061e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4081dd
push esi
call fcn.004061e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41557c
push 0x40fae4
sub ecx, eax
push ecx
push eax
call fcn.00409a36
add esp, 0x14
test eax, eax
je 0x4081dd
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004078ec
add esp, 0x14
jmp 0x4081df
xor esi, esi
push 0x40fae0
push ebx
push ebp
call fcn.0040626b
add esp, 0xc
test eax, eax
je 0x4081ff
push esi
push esi
push esi
push esi
push esi
call fcn.004078ec
add esp, 0x14
push dword [edi*8 + 0x412954]
push ebx
push ebp
call fcn.0040626b
add esp, 0xc
test eax, eax
je 0x408221
push esi
push esi
push esi
push esi
push esi
call fcn.004078ec
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040ba54
add esp, 0xc
jmp 0x408269
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x408269
cmp ebp, 0xffffffff
je 0x408269
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x412954]
push dword [esi]
call fcn.004061e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40ba54
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00407177
xor ebx, ebx
cmp dword [0x415828], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40bb2a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40bc0a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41055c
push edi
call esi
cmp eax, ebx
je 0x40bc0a
push eax
call fcn.00407109
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x415828], eax
call esi
push eax
call fcn.00407109
mov dword [esp], 0x410538
push edi
mov dword [0x41582c], eax
call esi
push eax
call fcn.00407109
mov dword [0x415830], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00407e5c
test eax, eax
pop ecx
pop ecx
je 0x40baf8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004078ec
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40bb2a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00407109
cmp eax, ebx
pop ecx
mov dword [0x415838], eax
je 0x40bb2a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407109
pop ecx
mov dword [0x415834], eax
mov eax, dword [0x415834]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40bbaf
cmp dword [0x415838], ecx
je 0x40bbaf
push eax
call fcn.00407180
push dword [0x415838]
mov esi, eax
call fcn.00407180
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40bbaf
cmp edi, ebx
je 0x40bbaf
call esi
cmp eax, ebx
je 0x40bb7c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bb7c
test byte [ebp - 0x18], 1
jne 0x40bbaf
lea eax, [ebp - 0x10]
push eax
call fcn.00407e93
test eax, eax
pop ecx
je 0x40bb97
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004078ec
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40bba6
or dword [ebp + 0x10], 0x200000
jmp 0x40bbea
or dword [ebp + 0x10], 0x40000
jmp 0x40bbea
mov eax, dword [0x41582c]
cmp eax, dword [ebp - 8]
je 0x40bbea
push eax
call fcn.00407180
cmp eax, ebx
pop ecx
je 0x40bbea
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40bbea
mov eax, dword [0x415830]
cmp eax, dword [ebp - 8]
je 0x40bbea
push eax
call fcn.00407180
cmp eax, ebx
pop ecx
je 0x40bbea
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x415828]
call fcn.00407180
cmp eax, ebx
pop ecx
je 0x40bc0a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bc0c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10039a45
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.10039ac4
jae 0x10039a51
xor ecx, ecx
call fcn.10039ac4
jae 0x10039a7b
xor eax, eax
call fcn.10039ac4
jae 0x10039a8c
mov al, 0x10
call fcn.10039ac4
adc al, al
jae 0x10039a6d
jne 0x10039ab9
stosb byte es:[edi], al
jmp 0x10039a52
call fcn.10039ad0
dec ecx
loop 0x10039a98
mov eax, ebp
call fcn.10039ace
jmp 0x10039aba
lodsb al, byte [esi]
shr eax, 1
je 0x10039ae0
adc ecx, 2
mov ebp, eax
jmp 0x10039aba
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.10039ace
cmp eax, 0x7d00
jae 0x10039ab8
cmp eax, 0x500
jae 0x10039ab9
cmp eax, 0x7f
ja 0x10039aba
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10039a52
pop ebp
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x5dc415ef
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x2eed15b8
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x345b7476
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x50cc6b7f
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40272c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040372c
test esi, esi
jne 0x402762
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040381c
jmp 0x402780
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402640
mov edi, eax
test esi, esi
je 0x402780
cmp dword [ebx], 0
je 0x402780
dec esi
jmp 0x402769
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402bf8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x415008], 0x8088405
inc edx
mov dword [ebx + 0x415008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402e44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x415018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402edc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ebc
xor eax, eax
push ebp
push 0x402eb5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ef8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ebc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x415018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x415018], ax
mov esp, ebp
pop ebp
ret

Function at 0x403534
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x416034], 0
je 0x403595
cmp word [0x416208], 0xd7b2
jne 0x40355d
cmp dword [0x416210], 0
jbe 0x40355d
mov eax, 0x416204
call dword [0x416220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x415084
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4035bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x415024], 0
jne 0x4035b1
push 0
push 0x41507c
push 0x415084
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4036e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004024d0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x416035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4036b0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4043c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404426
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040388c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404410
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40442d
lea eax, [ebp - 0x10]
call fcn.0040372c
ret

Function at 0x404a28
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xffffff54
cmp byte [0x4150dc], 0
jne 0x404afa
mov byte [0x4150dc], 1
xor eax, eax
mov dword [0x4150d4], eax
mov dword [esp + 0x18], 0x94
lea eax, [esp + 0x18]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x1c], 3
ja 0x404a70
cmp dword [esp + 0x1c], 3
jne 0x404ad0
cmp dword [esp + 0x20], 0x33
jbe 0x404ad0
mov dword [esp + 4], 9
push esp
push 0x20019
push 0
push 0x404b04
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x404afa
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x404b34
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x404afa
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp byte [esp + 8], 0x31
jne 0x404afa
cmp byte [esp + 9], 0
jne 0x404afa
jmp 0x404ae5
push 0
push 0x404b34
push 0x404b3c
call sub.kernel32.dll_GetProfileIntA
test eax, eax
je 0x404afa
mov eax, dword [0x4150d0]
call fcn.00403aa4
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4150d4], eax
add esp, 0xac
ret

Function at 0x404d84
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
and eax, 0xff
bt dword [0x4150e0], eax
jae 0x404dbd
xor eax, eax
mov al, byte [ebp - 2]
add eax, 1
jno 0x404dae
call fcn.00402f1c
cmp eax, 0xff
jbe 0x404dba
call fcn.00402f14
mov byte [ebp - 2], al
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
push 0
xor eax, eax
mov al, byte [ebp - 1]
push eax
call sub.user32.dll_MapVirtualKeyA
cmp eax, 0xff
jbe 0x404dde
call fcn.00402f14
push eax
mov al, byte [ebp - 1]
push eax
call sub.user32.dll_keybd_event
pop ecx
pop ebp
ret

Function at 0x405764
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x40586f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040372c
push 0
push 0x80
push 3
push 0
push 1
invalid
add byte [eax], al
Function at 0x405894
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x405962
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.kernel32.dll_OpenFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x405944
lea eax, [ebp - 0x10]
mov edx, 0x186a0
call fcn.00403bd4
push 0
lea eax, [ebp - 0x14]
push eax
push 0x186a0
lea eax, [ebp - 0x10]
call fcn.00403afc
mov edx, 1
dec edx
test eax, eax
je 0x40590e
cmp edx, dword [eax - 4]
jb 0x405913
call fcn.00402f14
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x405944
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 0x10]
mov eax, 0x405978
call fcn.00403b8c
test eax, eax
jle 0x405944
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405969
lea eax, [ebp - 0x10]
call fcn.0040372c
lea eax, [ebp - 4]
call fcn.0040372c
ret

Function at 0x405990
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
dec dword [ebx - 0x1a1707bb]
loopne 0x4059ad
push dword [ebx]
rcl byte [ebp + 0x68], 0x2a
pop edx
inc eax
add byte [edi + edi*8 + 0x30], ah
mov dword fs:[eax], esp
mov al, byte [ebp - 9]
xor al, 1
neg al
sbb eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.00403aa4
push eax
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
and al, byte [ebp + 0x10]
je 0x405a0f
mov ecx, dword [ebp + 8]
test ecx, ecx
jns 0x4059fb
call fcn.00402f14
mov edx, dword [ebp + 0xc]
test edx, edx
jns 0x405a07
call fcn.00402f14
mov eax, dword [ebp - 8]
call fcn.00405f64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a31
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403750
ret
Function at 0x405ab4
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
xor edx, edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x405c6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004038a4
cmp eax, 2
jl 0x405c3b
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x154]
mov ecx, 0x405c84
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, dword [ebp - 0x154]
call fcn.00403aa4
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x405c02
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.0040388c
mov ecx, dword [ebp - 0x158]
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004038f0
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.0040388c
test byte [ebp - 0x150], 0x10
je 0x405bba
mov eax, dword [ebp - 0x10]
mov edx, 0x405c90
call fcn.004039f0
je 0x405bea
mov eax, dword [ebp - 0x10]
mov edx, 0x405c9c
call fcn.004039f0
je 0x405bea
lea eax, [ebp - 0x15c]
mov ecx, 0x405ca8
mov edx, dword [ebp - 0xc]
call fcn.004038f0
mov eax, dword [ebp - 0x15c]
call fcn.00405ab4
jmp 0x405bea
mov eax, dword [ebp - 0xc]
call fcn.00403aa4
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x405bea
push 0x20
mov eax, dword [ebp - 0xc]
call fcn.00403aa4
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0xc]
call fcn.00403aa4
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x405b39
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.kernel32.dll_RemoveDirectoryA
test eax, eax
jne 0x405c3b
push 0x20
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c75
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00403750
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00403750
lea eax, [ebp - 4]
call fcn.0040372c
ret

Function at 0x405cac
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x405cf8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405cff
lea eax, [ebp - 4]
call fcn.0040372c
ret
Function at 0x405e08
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
xor edx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x405f34
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 4]
call fcn.004054e4
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 4]
call fcn.004037c4
xor edx, edx
mov eax, 2
call fcn.00405214
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x134], 0x128
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0xc]
call fcn.00405234
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
jmp 0x405eff
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.0040388c
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.004054e4
mov eax, dword [ebp - 0x13c]
mov edx, dword [ebp - 4]
call fcn.004039f0
jne 0x405ee8
push 0
mov eax, dword [ebp - 0x12c]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0xc]
call fcn.00405254
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
cmp byte [ebp - 6], 0
jne 0x405e90
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f3b
lea eax, [ebp - 0x140]
mov edx, 3
call fcn.00403750
lea eax, [ebp - 4]
call fcn.0040372c
ret
Function at 0x405f64
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x4062e2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x406001
push 0
push 0x4062f4
push 0x406300
push dword [ebp - 4]
push 0x406318
lea edx, [ebp - 0x44]
xor eax, eax
call fcn.00406684
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x40]
call fcn.00403aa4
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x4062b1
mov eax, 0x7ffffffe
call fcn.00402bf8
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
call fcn.004027b4
add eax, 0x200800
adc edx, 0
jno 0x406025
call fcn.00402f1c
push edx
push eax
mov eax, 0x38b14001
call fcn.00402bf8
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
call fcn.004027b4
add eax, dword [esp]
adc edx, dword [esp + 4]
jno 0x40604a
call fcn.00402f1c
add esp, 8
test edx, edx
je 0x406056
call fcn.00402f14
mov dword [ebp - 0x1c], eax
mov eax, 0x47a7c
call fcn.00402bf8
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
call fcn.004027b4
add eax, 0x1bf53d2
adc edx, 0
jno 0x40607d
call fcn.00402f1c
test edx, edx
je 0x406086
call fcn.00402f14
mov dword [ebp - 0x18], eax
mov eax, 0x7ffffffe
call fcn.00402bf8
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
invalid

Function at 0x406530
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x4065c4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x19c]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetLastError_1
test eax, eax
jne 0x4065a1
cmp dword [ebp - 0xc], 0
je 0x4065a1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0040385c
jmp 0x4065a9
mov eax, dword [ebp - 8]
invalid
invalid