joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401610
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [esp + 0x80]
mov edi, dword [esp + 0x84]
mov eax, dword [ebx]
test eax, eax
je 0x401790
mov esi, dword [ebx + 4]
mov eax, dword [edi + 4]
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp], eax
call ebp
sub esp, 4
add esi, eax
mov dword [esp + 4], esi
mov dword [esp + 8], 0
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [edi + 8]
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x4017d3
mov edx, dword [ebx]
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], edx
mov dword [esp], eax
call ebp
sub esp, 4
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0xc], edx
call sub.msvcrt.dll_fread
test eax, eax
je 0x4017c0
cmp byte [edi + 0x10], 1
je 0x4016d1
mov eax, dword [ebx]
test eax, eax
je 0x4016c7
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [ebx], 0
add esp, 0x6c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00405700
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40183a
mov eax, dword [edi + 8]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x28], esi
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call ebp
sub esp, 4
lea ebp, [esp + 0x28]
mov dword [esp + 8], 0x38
mov dword [esp + 4], 0x40c093
mov dword [esp + 0x38], eax
mov dword [esp], ebp
call fcn.00405bc0
test eax, eax
js 0x4017e6
mov dword [esp + 4], 4
mov dword [esp], ebp
call fcn.00405c60
test eax, eax
js 0x401820
mov dword [esp], ebp
call fcn.00407b30
mov dword [esp], esi
call sub.msvcrt.dll_free
mov esi, dword [esp + 0x1c]
jmp 0x4016b3
lea eax, [ebx + 0x68]
mov dword [esp + 4], 0x40c02c
mov dword [esp], eax
call fcn.00402e30
test eax, eax
mov dword [ebx], eax
jne 0x40162f
mov dword [esp], str.Cannot_open_archive_file_n
xor esi, esi
call fcn.00401e10
jmp 0x4016c7
mov dword [esp], str.Could_not_read_from_file_n
xor esi, esi
call fcn.00401e10
jmp 0x4016c7
mov dword [esp], str.Could_not_allocate_read_buffer_n
xor esi, esi
call fcn.00401e10
jmp 0x4016c7
mov edx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], str.Error__d_from_inflateInit:__s_n
mov dword [esp + 8], edx
call fcn.00401e10
mov dword [esp], esi
add edi, 0x12
xor esi, esi
call sub.msvcrt.dll_free
mov dword [esp + 4], edi
mov dword [esp], str.Error_decompressing__s_n
call fcn.00401e10
jmp 0x4016c7
mov edx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], str.Error__d_from_inflate:__s_n
mov dword [esp + 8], edx
call fcn.00401e10
jmp 0x4017fe
mov dword [esp], str.Error_allocating_decompression_buffer_n
call fcn.00401e10
jmp 0x4017fe
Function at 0x401850
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.00401610
mov dword [esp], ebx
mov edi, eax
call fcn.00404760
cmp eax, 0xffffffff
je 0x4018d9
lea ebp, [esi + 0x12]
add ebx, 0x2068
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.00404990
mov ebx, eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohl]
sub esp, 4
test ebx, ebx
mov esi, eax
je 0x4018f8
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_fwrite
cmp eax, 1
je 0x4018c7
test esi, esi
jne 0x4018e1
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.msvcrt.dll_free
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebp
mov dword [esp], str.Failed_to_write_all_bytes_for__s_n
call fcn.00401e10
mov eax, 0xffffffff
jmp 0x4018d9
mov dword [esp + 4], ebp
mov dword [esp], str._s_could_not_be_extracted__n
call fcn.00401e10
mov eax, 0xffffffff
jmp 0x4018d9
Function at 0x4044f0
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x18
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
mov dword [esp], ebx
call sub.msvcrt.dll_remove
add esp, 0x18
pop ebx
ret

Function at 0x404520
Capabilities:
Query environment variable

Disassembly:
push ebx
mov eax, 0x4018
call fcn.0040a550
sub esp, eax
mov eax, dword [esp + 0x4020]
lea ebx, [esp + 0x10]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004051c0
mov dword [esp + 8], 0x2000
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub esp, 0xc
test eax, eax
jne 0x404580
add esp, 0x4018
xor eax, eax
pop ebx
ret
lea eax, [esp + 0x2010]
mov dword [esp + 8], 0x2000
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00405020
test eax, eax
je 0x40456c
cmp byte [eax], 0
je 0x40456c
mov dword [esp], eax
call sub.msvcrt.dll__strdup
add esp, 0x4018
pop ebx
ret

Function at 0x4045d0
Capabilities:
Set environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004051c0
mov esi, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004051c0
mov dword [esp], esi
mov ebx, eax
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
mov edi, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x10
mov eax, edi
pop ebx
pop esi
pop edi
ret

Function at 0x404640
Capabilities:
Set environment variable

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004051c0
mov dword [esp + 4], 0
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
mov esi, eax
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
Function at 0x404690
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
push edi
mov eax, 0x202c
push esi
push ebx
call fcn.0040a550
sub esp, eax
lea ebx, [esp + 0x20]
mov esi, dword [esp + 0x2040]
mov dword [esp], 0x1000
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
sub esp, 8
lea edi, [esp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x1000
mov dword [esp], esi
mov ebx, 5
call fcn.00405020
call sub.msvcrt.dll__getpid
mov dword [esp + 4], str._MEI_d
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__tempnam]
mov dword [esp], eax
mov ebp, eax
call sub.msvcrt.dll__mkdir
test eax, eax
je 0x404730
mov dword [esp], ebp
call sub.msvcrt.dll_free
sub ebx, 1
jne 0x4046f5
add esp, 0x202c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebp
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
mov dword [esp], ebp
call sub.msvcrt.dll_free
add esp, 0x202c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4047c0
Capabilities:
Delete directory

Disassembly:
push ebp
push edi
mov eax, 0x125c
push esi
push ebx
call fcn.0040a550
sub esp, eax
mov eax, dword [esp + 0x1270]
lea ebp, [esp + 0x24f]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], ebp
call sub.msvcrt.dll_strlen
mov edx, eax
mov dword [esp + 0x12c], eax
movzx edx, byte [esp + edx + 0x24e]
cmp dl, 0x5c
je 0x404811
cmp dl, 0x2f
jne 0x4048c0
lea ebx, [esp + 0x134]
mov edx, 0x2a
mov word [ebp + eax], dx
mov dword [esp], ebp
mov dword [esp + 4], ebx
call dword [sym.imp.msvcrt.dll__findfirst]
cmp eax, 0xffffffff
mov dword [esp + 0x128], eax
je 0x4048a1
mov edi, esp
mov esi, ebx
mov ecx, 0x46
rep movsd dword es:[edi], dword [esi]
mov eax, ebp
mov edx, dword [esp + 0x12c]
call fcn.004048f0
jmp 0x404879
mov edi, esp
mov esi, ebx
mov ecx, 0x46
rep movsd dword es:[edi], dword [esi]
mov eax, ebp
mov edx, dword [esp + 0x12c]
call fcn.004048f0
mov eax, dword [esp + 0x128]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__findnext]
test eax, eax
je 0x404860
mov eax, dword [esp + 0x128]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__findclose]
mov eax, dword [esp + 0x1270]
mov dword [esp], eax
call sub.msvcrt.dll__rmdir
add esp, 0x125c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 0x5c
mov word [ebp + eax], cx
add eax, 1
mov dword [esp], ebp
mov dword [esp + 0x12c], eax
call sub.msvcrt.dll_strlen
jmp 0x404811
Function at 0x4048f0
Capabilities:
Delete file

Disassembly:
push ebp
push edi
mov ecx, 2
push esi
push ebx
mov edi, 0x40d318
mov ebp, eax
sub esp, 0x1c
lea ebx, [esp + 0x44]
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta cl
mov esi, ecx
setb cl
mov eax, esi
cmp al, cl
je 0x404929
mov edi, 0x40d31a
mov ecx, 3
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x404931
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ebp + edx], 0
mov dword [esp + 4], ebx
mov dword [esp], ebp
call sub.msvcrt.dll_strcat
test byte [esp + 0x30], 0x10
mov dword [esp], ebp
jne 0x404960
call sub.msvcrt.dll_remove
test eax, eax
je 0x404929
mov eax, ebp
call fcn.004044f0
jmp 0x404929
call fcn.004047c0
jmp 0x404929

Function at 0x404990
Capabilities:
Create directory

Disassembly:
push edi
push esi
mov eax, 0x2040
push ebx
call fcn.0040a550
sub esp, eax
mov eax, dword [esp + 0x2050]
lea edi, [esp + 0x40]
lea ebx, [esp + 0x1040]
lea esi, [esp + 0x1c]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [esp + 0x2054]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], ebx
mov dword [esp + 4], 0x40d31d
call sub.msvcrt.dll_strtok
test eax, eax
mov ebx, eax
je 0x404a70
nop
mov ecx, edi
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x4049f2
mov eax, edx
shr eax, 0x10
test edx, 0x8080
cmove edx, eax
lea eax, [ecx + 2]
cmove ecx, eax
add dl, dl
sbb ecx, 3
sub ecx, edi
lea eax, [edi + ecx + 1]
mov byte [edi + ecx], 0x5c
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], 0x40d31d
mov dword [esp], 0
call sub.msvcrt.dll_strtok
test eax, eax
mov ebx, eax
je 0x404a70
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0040a590
test eax, eax
jns 0x4049f0
mov dword [esp], edi
call sub.msvcrt.dll__mkdir
jmp 0x4049f0
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0040a590
test eax, eax
je 0x404aa0
mov dword [esp], edi
mov dword [esp + 4], 0x40d351
call fcn.00402e30
add esp, 0x2040
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], edi
mov dword [esp], str.WARNING:_file_already_exists_but_should_not:__s_n
call fcn.00401e10
jmp 0x404a80
Function at 0x404ac0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push edi
push esi
mov eax, 0x1010
push ebx
call fcn.0040a550
sub esp, eax
mov eax, dword [esp + 0x1020]
mov dword [esp + 4], 0x40d354
mov dword [esp], eax
call fcn.00402e30
mov ebx, eax
mov eax, dword [esp + 0x1028]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1024]
mov dword [esp], eax
call fcn.00404990
test eax, eax
mov edi, eax
je 0x404bc5
test ebx, ebx
je 0x404bc5
lea esi, [esp + 0x10]
nop
lea esi, [esi]
mov dword [esp], ebx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x404bc1
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1000
mov dword [esp], esi
call sub.msvcrt.dll_fread
cmp eax, 0xffffffff
je 0x404ba2
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1000
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
mov dword [esp], edi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x404b20
mov dword [esp], edi
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, esi
add esp, 0x1010
pop ebx
pop esi
pop edi
ret
mov dword [esp], ebx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x404b20
mov dword [esp], ebx
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x404b86
xor esi, esi
jmp 0x404b86
mov eax, 0xffffffff
jmp 0x404b98
Function at 0x404c40
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push edi
push esi
mov eax, 0x20a0
push ebx
call fcn.0040a550
sub esp, eax
mov eax, dword [esp + 0x20b0]
lea esi, [esp + 0xa0]
mov dword [esp + 8], 0x1000
mov dword [esp + 0x3c], 0
lea edi, [esp + 0x5c]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.004051c0
mov dword [esp + 4], 1
mov dword [esp], 0x16
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 0xf
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 0x15
call sub.msvcrt.dll_signal
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
sub esp, 4
mov word [esp + 0x8c], ax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x88], 0x101
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov ebx, dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [esp], eax
call ebx
mov dword [esp + 0x94], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov dword [esp], eax
call ebx
mov dword [esp + 0x98], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov dword [esp], eax
call ebx
mov dword [esp + 0x9c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x4c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], edx
lea edx, [esp + 0x40]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x404df0
mov dword [esp], str.Error_creating_child_process__n
call fcn.00401e10
add esp, 0x20a0
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
sub esp, 8
mov eax, dword [esp + 0x3c]
add esp, 0x20a0
pop ebx
pop esi
pop edi
ret
Function at 0x409990
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.004099f0

Function at 0x4099f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x41d2f0]
test eax, eax
jle 0x409af3
mov edx, dword [0x41d2f4]
xor ebx, ebx
mov ecx, dword [edx + 4]
cmp ecx, esi
ja 0x409a21
mov edi, dword [edx + 8]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x409a96
add ebx, 1
add edx, 0xc
cmp ebx, eax
jne 0x409a10
mov dword [esp], esi
call fcn.0040a330
test eax, eax
mov edi, eax
je 0x409b1a
lea esi, [ebx + ebx*2]
mov ebx, dword [0x41d2f4]
shl esi, 2
add ebx, esi
mov dword [ebx + 8], eax
mov dword [ebx], 0
call fcn.0040a420
add eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x41d2f4]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x409afa
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x409aa0
add dword [0x41d2f0], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x409a8f
cmp eax, 0x80
je 0x409a8f
cmp eax, 8
je 0x409a8f
mov eax, dword [ebp - 0x28]
add esi, dword [0x41d2f4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x409a8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00409990
xor ebx, ebx
jmp 0x409a2b
mov eax, dword [0x41d2f4]
mov eax, dword [eax + esi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00409990
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00409990
lea esi, [esi]

Function at 0x40a250
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40a288
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x40a27e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x40a28a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40a270
xor eax, eax
pop ebx
pop esi
ret
Function at 0x1000e5e3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000e5f2
pop dword [ebp - 0xc]
mov eax, 0xd5583f8f
add eax, 0x3aa8a663
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x2c647253
add dword [ebp - 0x1c], 0x21edd2f8
mov dword [ebp - 0x18], 0x781c5cfd
add dword [ebp - 0x18], 0xba16ef48
mov dword [ebp - 0x14], 0x4ffdc6f9
add dword [ebp - 0x14], 0xfc4e7d35
mov dword [ebp - 0x10], 0x27ec96e9
sub dword [ebp - 0x10], 0x27ec96e9
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x3f3b1029
sub eax, 0x2f39e049
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xa8740ce6
add dword [ebp - 0x1c], 0xcbfe5c70
mov dword [ebp - 0x18], 0x68b231ee
sub dword [ebp - 0x18], 0x2745d079
mov dword [ebp - 0x14], 0x49808ae8
add dword [ebp - 0x14], 0x19eee184
mov dword [ebp - 0x10], 0x54404231
sub dword [ebp - 0x10], 0x54404231
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x3966f2e9
add eax, 0xd69a3cff
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x35bd8
push 0
call eax
mov ecx, 0xe68f2ff6
add ecx, 0x197114bf
mov edi, eax
mov esi, 0xeb8e4526
add esi, 0x247344da
add esi, dword [ebp - 0xc]
mov ebx, 0xfa5b25e
sub ebx, 0x43c846bb
mov edx, dword [esi]
xor dword [ebp - 8], 0xbe0ab357
sub edx, ebx
sub dword [ebp - 4], eax
mov dword [edi], edx
xor dword [ebp - 4], 0x3310b2c8
add edi, 4
add esi, 4
loop 0x1000e714
add eax, 0xe970a812
sub eax, 0xe96fa26b
xor ebx, ebx
add ebx, eax
add eax, 0xa77618d7
sub eax, 0xa77618d2
mov ecx, 0xfdc801e4
sub ecx, 0xedc801e4
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401901
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4134cd
call fcn.00408d30
sub esp, 0x2b8
mov ecx, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
push ebx
push 0x414294
call fcn.00401353
cmp eax, 0xffffffff
jne 0x401a7e
mov ecx, dword [ebp + 8]
push ebx
push 0x414290
call fcn.00401353
cmp eax, 0xffffffff
jne 0x401a7e
push 0x40
xor eax, eax
pop ecx
mov byte [ebp - 0x2c4], bl
lea edi, [ebp - 0x2c3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x1c0], bl
lea edi, [ebp - 0x1bf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2c4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40198c
xor al, al
jmp 0x401a80
push esi
mov esi, 0x41428c
lea edi, [ebp - 0x30]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
push 7
xor eax, eax
cmp dword [esi + 0x18], 0x10
pop ecx
lea edi, [ebp - 0x2d]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
jb 0x4019b1
mov eax, dword [esi + 4]
jmp 0x4019b4
lea eax, [esi + 4]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c0]
push eax
call fcn.00408d89
add esp, 0x10
push str..log
lea ecx, [ebp - 0x68]
call fcn.0040188d
mov edi, eax
lea eax, [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 4
call fcn.0040188d
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 5
call fcn.0040188d
push dword [ebp - 0x10]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004018af
push edi
push eax
lea eax, [ebp - 0xa0]
push eax
mov byte [ebp - 4], 7
call fcn.004018af
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.0040174c
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0xa0]
call fcn.004011e9
push ebx
push esi
lea ecx, [ebp - 0x84]
call fcn.004011e9
push ebx
push esi
lea ecx, [ebp - 0xbc]
call fcn.004011e9
push ebx
push esi
lea ecx, [ebp - 0x4c]
call fcn.004011e9
push ebx
push esi
lea ecx, [ebp - 0x68]
call fcn.004011e9
pop esi
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402e6c
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x4135a5
call fcn.00408d30
sub esp, 0x280
push ebx
push esi
push edi
push 0x4f
pop ecx
xor ebx, ebx
xor eax, eax
push 0x41
mov dword [ebp - 0x28c], ebx
lea edi, [ebp - 0x288]
rep stosd dword es:[edi], eax
pop ecx
mov word [ebp - 0x14c], bx
lea edi, [ebp - 0x14a]
rep stosd dword es:[edi], eax
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
call fcn.0040104d
push dword [ebp + 0x14]
lea eax, [ebp - 0x14c]
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0040a08d
add esp, 0x14
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402f35
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040188d
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.00402e27
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.004011e9
lea eax, [ebp - 0x28c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402eef
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004011e9
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov dword fs:[0], ecx
leave
ret