joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d70
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x36c
lea edi, [esp + 0x18]
mov dword [esp], 0x104
mov dword [esp + 4], edi
call sub.KERNEL32.dll_GetTempPathA
sub esp, 8
mov ebx, eax
cmp byte [esp + eax + 0x17], 0x5c
je 0x403db0
mov dword [esp + 4], 0x40907c
mov dword [esp], edi
add ebx, 1
call sub.KERNEL32.dll_lstrcatA
sub esp, 8
mov dword [esp + 4], str..ocra_delete_me
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcatA
sub esp, 8
lea eax, [esp + 0x220]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.KERNEL32.dll_FindFirstFileA
sub esp, 8
cmp eax, 0xffffffff
mov ebp, eax
mov byte [esp + ebx + 0x18], 0
je 0x403e73
lea ebx, [esp + 0x11c]
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcpyA
sub esp, 8
lea eax, [esp + 0x24c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_lstrcatA
sub esp, 8
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenA
sub esp, 4
mov esi, eax
mov dword [esp], 0x40918b
call sub.KERNEL32.dll_lstrlenA
sub esp, 4
sub esi, eax
mov byte [esp + esi + 0x11c], 0
mov dword [esp], ebx
call fcn.00403d40
lea eax, [esp + 0x220]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.KERNEL32.dll_FindNextFileA
sub esp, 8
test eax, eax
jne 0x403df0
mov dword [esp], ebp
call sub.KERNEL32.dll_FindClose
sub esp, 4
add esp, 0x36c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404430
Capabilities:
Create process on windows

Disassembly:
push edi
push ebx
xor eax, eax
mov ecx, 0x11
sub esp, 0x494
lea edx, [esp + 0x4c]
mov ebx, dword [esp + 0x4a0]
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4a4]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x4c], 0x44
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x404510
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], 0x40c02c
mov dword [esp], eax
call sub.KERNEL32.dll_GetExitCodeProcess
sub esp, 8
test eax, eax
je 0x404570
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
add esp, 0x494
pop ebx
pop edi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0x90]
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.Failed_to_create_process___s_:__lu
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call sub.msvcrt.dll__snprintf
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], str.OCRA
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
add esp, 0x494
pop ebx
pop edi
ret
lea ebx, [esp + 0x90]
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], str.Failed_to_get_exit_status__error__lu_.
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call sub.msvcrt.dll__snprintf
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], str.OCRA
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
jmp 0x4044e2
Function at 0x405040
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40c05c
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40c054]
sub esp, 4
test ebx, ebx
je 0x40508b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x405084
test esi, esi
je 0x405084
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x405060
mov dword [esp], 0x40c05c
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x405270
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4052c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x405398
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4052fe
cmp eax, 4
jne 0x405320
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40530e
cmp edx, 4
je 0x40530e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00405270
Function at 0x4071f0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00404f30
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x407226
jmp 0x40725e
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x407223
cmp al, 9
je 0x407223
cmp al, 0x22
jne 0x407247
jmp 0x4072a6
cmp al, 9
je 0x407253
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x407240
jmp 0x407253
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x407250
cmp al, 9
je 0x407250
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40726d
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004045c0
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
test al, al
je 0x4072b2
mov edx, ebx
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x22
jne 0x4072a2
cmp al, 0x22
jne 0x407253
lea ebx, [edx + 2]
jmp 0x407253
Function at 0x4037c7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], eax
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], edi
lea edx, [edi - 1]
test edi, edi
je 0x40382f
mov eax, dword [ebp + 8]
movzx eax, word [eax]
mov dword [ebp - 4], eax
xor ebx, ebx
xor ecx, ecx
test ax, ax
je 0x403826
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
jge 0x403804
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
movzx eax, ax
cmp word [ebp - 0xc], ax
je 0x403834
inc ebx
movzx eax, word [edi + ebx*2]
test ax, ax
jne 0x40380b
mov edi, dword [ebp - 0x10]
test ecx, ecx
jne 0x443347
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret 4
or eax, 0xffffffff
jmp 0x403828
inc ecx
jmp 0x403811
add al, 0xb0
inc dword [eax]
jmp 0x403614

Function at 0x4050f5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x443d70
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042e8c4
add esp, 0x10
leave
ret 0x10
xor ebp, eax
ficom dword [ebx]
cld
invalid

Function at 0x40693c
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x406964
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x406956
pop edi
pop esi
pop ebp
ret 4

Function at 0x40bec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x18], ecx
or ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov eax, dword [edi + 4]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
movsx eax, word [eax + 8]
sub eax, ecx
je 0x40bf27
sub eax, 1
je 0x450474
sub eax, 0x32
jne 0x4503eb
push edi
mov ecx, esi
call fcn.0040dfd0
lea ecx, [esp + 0x18]
call fcn.0040cfa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.0040dd50
test ebx, ebx
js 0x40bf15
jmp 0x45048e
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, dword [ebx + 4]
mov edi, ecx
sub esp, 0x10
mov dword [esp + 0x1c], edi
mov edx, dword [esi]
mov dword [esp + 0x3c], 3
mov eax, dword [eax + edx*4]
mov edx, esp
movsx ecx, word [eax + 0xa]
mov edi, 0x4c890a48
and al, 0x28
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
lea ecx, [edi + 0x13c]
mov dword [edx + 0xc], eax
inc dword [eax]
invalid
push ebx
Function at 0x40bf71
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x18], ecx
or ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov eax, dword [edi + 4]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
movsx eax, word [eax + 8]
sub eax, ecx
je 0x40bf27
sub eax, 1
je 0x450474
sub eax, 0x32
jne 0x4503eb
push edi
mov ecx, esi
call fcn.0040dfd0
lea ecx, [esp + 0x18]
call fcn.0040cfa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.0040dd50
test ebx, ebx
js 0x40bf15
jmp 0x45048e
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, dword [ebx + 4]
mov edi, ecx
sub esp, 0x10
mov dword [esp + 0x1c], edi
mov edx, dword [esi]
mov dword [esp + 0x3c], 3
mov eax, dword [eax + edx*4]
mov edx, esp
movsx ecx, word [eax + 0xa]
mov edi, 0x4c890a48
and al, 0x28
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
lea ecx, [edi + 0x13c]
mov dword [edx + 0xc], eax
inc dword [eax]
invalid
push ebx
Function at 0x41fe3c
Capabilities:
Enumerate pe sections

Disassembly:
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]

Function at 0x41fe45
Capabilities:
Enumerate pe sections

Disassembly:
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]

Function at 0x439409
Capabilities:
Encode data using xor

Disassembly:
dec ebp
or byte [eax - 0x9ffff07], cl
xor byte [esi], dl
or al, 0x8d
mov dword [edi], ebx
mov dword [ebx - 0x4e16c307], 0x1feafe
add byte [ecx + 0x33], bl
je 0x43949d
fisttp word [ebx + 0x10e800ff]
mov eax, dword [esi]
push es
push dword [eax]
mov eax, dword [esi + 0xc]
cmp ecx, 0x3c
jmp 0x202e92fc
cli
invalid

Function at 0x46256f
Capabilities:
Encode data using xor

Disassembly:
dec ebp
ror byte [ecx - 0x9770fa3], 1
js 0xf1d17b89
lea ecx, [ebp + 0x52dc5578]
mov dword [ebp - 4], esi
call fcn.00401c09
xor ebx, ebx
push ebx
push ebx
push 0x9eb01c4
add bh, bh
adc eax, 0x565318f4
mov edi, dword [ecx]
pop ebp
or byte [ebx + edx*2 + 0x39], bh
inc ebp
or byte [ebp + 0x4e], bh
push dword [esi]
mov ebx, 0xf4458bfe
lea ecx, [ebp + 0x52dc5578]
push ebx
call 0xff8ab384
add byte [edx], ch
push ecx
mov edx, dword [esi + 0x15]
jne 0x4625bf
push 0x7900040d
jns 0x4625bc
push dword [eax]
sub esp, 0x18
push ebx
push esi
xor byte [ebx + 0x565318ec], al
in al, dx
sbb byte [ebx + 0x56], dl
mov edx, dword [ebx - 0x73]
test dword [eax - 9], edi
jne 0x4625bb
call dword [esi - 0x73]
lea edi, [eax + 0x55]
fcom qword [edx - 0x18]
push eax
mov ss, word [0xc49c078]
lea eax, [ebp - 0xf8a0888]
invalid

Function at 0x469713
Capabilities:
Encode data using xor

Disassembly:
call fcn.00420e7a
add dword [ebx], esi
xor eax, eax
les eax, [eax]
mov dword [ebp + 8], eax
adc byte [esi - 0x77], ah
add al, 0x3e
test ecx, ecx
jle 0x469733
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x46972a
push esi
push edi
mov edi, edx
xor eax, dword [edi]
cmp edx, dword [esi + eax]
mov ebx, 0x58b80100
and byte [eax], al
add al, ch
popal
mov ch, bh
call dword [ebx - 0x75]
pop ebp
or byte [esi + 0x57], dl
lea eax, [ebp - 0x10]
mov ss, word [edi - 0x74c499ff]
cmp eax, 0x6015c1b8
push edi
test dword [edi + ebx*8 - 0x970001], ebp
pcmpgtd mm7, qword [ebx]
push eax
push dword [0x524d23f0]
je 0x4697ba
call edi
mov esi, dword [0x15ff6910]
push eax
invalid
call 0x164599fc
mov byte [ecx], 0xf8
call 0xf499a30
lea ecx, [ebp - 0x34]
mov esi, eax
call 0x8b9ba9bb
in al, dx
inc ebp
int3

Function at 0x46cbf2
Capabilities:
Encode data using xor

Disassembly:
in al, dx
sbb byte [ebx + 0x4933fa], cl
je 0x46cbf8
test bl, bl
jne 0x46cbeb
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x713750de
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..text_1
mov ebx, 0x42f314
nop
mov ecx, 0x184c57c3
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401426
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x401453
test cl, 7
je 0x401453
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x423460]
dec esi
inc ecx
jmp 0x401434
cmp esi, 8
jb 0x4014f6
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x423860]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x423460]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x423c60]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x424460]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x424860]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x424c60]
movzx edx, dl
xor edi, dword [edx*4 + 0x424060]
movzx eax, al
xor edi, dword [eax*4 + 0x425060]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x401465
pop ebx
jmp 0x4014f6
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x423460]
dec esi
inc ecx
test esi, esi
ja 0x4014e2
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x403511
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
jne 0x40352b
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40359c
mov ecx, esi
call fcn.0040349f
test al, al
je 0x403566
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x403566
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00403511
jmp 0x40359f
cmp dword [esi + 0xc], 1
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
jne 0x40357d
call ebx
cmp eax, 0x6d
jne 0x40357d
xor eax, eax
jmp 0x40359f
cmp dword [esi + 0xc], 0
jne 0x403597
mov edi, 0x8000
cmp dword [ebp + 0xc], edi
jbe 0x403597
call ebx
cmp eax, 0x21
jne 0x403597
push edi
jmp 0x40355a
or eax, 0xffffffff
jmp 0x40359f
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x403892
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040daf0
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push edi
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4038d6
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00406388
test al, al
je 0x4038d6
lea eax, [ebp - 0x1000]
push eax
call esi
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x4038de
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040daf0
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push dword [ebp + 8]
call esi
test eax, eax
setne bl
test bl, bl
jne 0x40392d
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00406388
test al, al
je 0x40392d
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
setne bl
pop esi
mov al, bl
pop ebx
leave
ret 8

Function at 0x403b1a
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040daf0
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004061b2
movzx eax, word [eax]
mov esi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
cmp ax, 0x2e
je 0x403b50
cmp ax, 0x20
je 0x403b50
push 0
push edi
call esi
test eax, eax
jne 0x403b7f
push edi
call fcn.00403af6
test al, al
jne 0x403b92
push 0x800
lea eax, [ebp - 0x1000]
push eax
push edi
call fcn.00406388
test al, al
je 0x403b92
push 0
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x403b92
cmp byte [ebp + 0xc], 0
je 0x403b8e
push dword [ebp + 0x10]
push edi
call fcn.004038de
xor eax, eax
jmp 0x403baa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x403ba7
cmp eax, 3
je 0x403ba7
xor eax, eax
inc eax
jmp 0x403baa
push 2
pop eax
pop edi
pop esi
leave
ret 0xc

Function at 0x403fdf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x44e13c]
call fcn.00401426
cmp byte [0x4377e1], 0
mov dword [0x44e13c], eax
jne 0x404013
cmp dword [ebp + 0xc], 0
jbe 0x404013
mov ecx, dword [0x44e238]
pop ebp
jmp fcn.00403306
pop ebp
ret 8
Function at 0x40481d
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.0040daf0
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x250]
mov edi, 0x800
push eax
jne 0x4048ac
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4048d9
push edi
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.00406388
test al, al
je 0x404885
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4048d9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x40489f
cmp eax, 3
je 0x40489f
cmp eax, 0x12
je 0x40489f
xor eax, eax
inc eax
jmp 0x4048a1
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x4049a4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4048cf
or dword [ebp + 8], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x12
setne al
mov byte [esi + 0x1044], al
cmp dword [ebp + 8], 0xffffffff
je 0x4049a4
push edi
push dword [ebp + 0xc]
push esi
call fcn.0040b513
push edi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.004066f1
push 1
push 0
push 0
push dword [ebp - 0x234]
call fcn.0040e170
mov ecx, dword [ebp - 0x230]
xor edi, edi
add eax, ecx
mov dword [esi + 0x1000], eax
mov eax, dword [ebp - 0x250]
mov dword [esi + 0x1008], eax
mov eax, dword [ebp - 0x24c]
mov dword [esi + 0x1028], eax
mov eax, dword [ebp - 0x248]
mov dword [esi + 0x102c], eax
mov eax, dword [ebp - 0x244]
mov dword [esi + 0x1030], eax
mov eax, dword [ebp - 0x240]
mov dword [esi + 0x1034], eax
mov eax, dword [ebp - 0x23c]
mov dword [esi + 0x1038], eax
mov eax, dword [ebp - 0x238]
mov dword [esi + 0x103c], eax
lea eax, [ebp - 0x23c]
adc edx, edi
push eax
lea ecx, [esi + 0x1010]
mov dword [esi + 0x1004], edx
call fcn.0040b880
lea eax, [ebp - 0x24c]
push eax
lea ecx, [esi + 0x1018]
call fcn.0040b880
lea eax, [ebp - 0x244]
push eax
lea ecx, [esi + 0x1020]
call fcn.0040b880
and dword [esi + 0x1040], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc