joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412132
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x4121bf
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x41217f
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4121a1
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x41227d
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x4121e7
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x4121f2
xor eax, eax
jmp 0x41223e
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x41220f
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.004131d2
jmp 0x41221f
cmp ecx, 2
jne 0x412228
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00413640
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x412269
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x41227d
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x41213d
pop edi
pop ebx
leave
ret
Function at 0x415290
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1010
call fcn.00416d80
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x816]
mov word [esp + 0x814], 0
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x16]
push 0x800
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x14]
push 0x800
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor edx, edx
xor eax, eax
mov word [esp + 4], 0
mov dword [esp + 6], edx
mov dword [esp + 4], eax
mov dword [esp + 0xa], edx
mov dword [esp + 8], eax
mov dword [esp + 0xe], edx
mov dword [esp + 0xc], eax
lea ecx, [esp + 4]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov word [esp + 0x24], ax
call dword [sym.imp.MSVCRT.dll__wsplitpath]
lea eax, [esp + 0x18]
push 0x4261b8
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea ecx, [esp + 0x830]
push 1
push ecx
call fcn.00417300
add esp, 0x24
test al, al
pop edi
jne 0x415381
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00417300
add esp, 8
test al, al
jne 0x415381
lea eax, [esp]
push 0
push eax
call fcn.00417300
add esp, 8
test al, al
jne 0x415381
mov al, 1
add esp, 0x1010
ret
xor al, al
add esp, 0x1010
ret

Function at 0x415390
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x224
lea eax, [esp + 0x94]
push edi
push eax
push 0x101
xor edi, edi
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x4154c6
mov ax, word [esp + 0x98]
cmp al, 1
jne 0x4154c6
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x4154c6
push esi
lea ecx, [esp + 0x80]
call fcn.00415da0
lea ecx, [esp + 0x50]
call fcn.004154d0
lea ecx, [esp + 0x58]
call fcn.004154d0
lea ecx, [esp + 0x60]
call fcn.004154d0
lea ecx, [esp + 0x68]
call fcn.004154d0
mov eax, dword [str.1.pool.ntp.org]
test eax, eax
je 0x4154bb
mov eax, 0x427794
mov esi, eax
mov eax, dword [eax]
lea edx, [esp + 0x48]
push 0x7b
push edx
push eax
lea ecx, [esp + 0x8c]
call fcn.00415db0
test eax, eax
je 0x415491
lea ecx, [esp + 0x78]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
call fcn.00415ae0
add esp, 4
mov ecx, eax
call fcn.004158b0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004159b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x30]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0x1c], edx
call fcn.00417540
add esp, 8
test eax, eax
jne 0x4154ac
mov ecx, dword [esi + 4]
add esi, 4
test ecx, ecx
mov eax, esi
jne 0x415415
mov eax, edi
pop esi
pop edi
add esp, 0x224
ret
lea edx, [esp + 0x30]
push edx
call fcn.004174d0
add esp, 4
mov edi, eax
mov eax, edi
pop esi
pop edi
add esp, 0x224
ret
xor eax, eax
pop edi
add esp, 0x224
ret

Function at 0x415bc0
Capabilities:
Create udp socket

Disassembly:
push esi
push 0
push 2
mov esi, ecx
push 2
call sub.WSOCK32.dll_socket
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov eax, ecx
pop esi
ret
Function at 0x415be0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov dword [ebp - 4], ecx
jne 0x415bf7
xor esi, esi
jmp 0x415c26
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00416d80
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x14], eax
push ecx
mov dword [ebp - 0x10], eax
mov word [ebp - 0x14], 2
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call sub.WSOCK32.dll_htons
push esi
mov word [ebp - 0x12], ax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x415c69
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x415c83
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x14]
push 0x10
push edx
call fcn.00415ca0
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea esp, [ebp - 0x20]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x415ca0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WSOCK32.dll_connect
neg eax
sbb eax, eax
inc eax
ret 8

Function at 0x415d20
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x118]
mov eax, 0x10624dd3
mov dword [esp + 0xc], 1
mul esi
shr edx, 6
mov dword [esp + 4], edx
mov eax, esi
xor edx, edx
mov esi, 0x3e8
div esi
mov eax, dword [ecx]
lea ecx, [esp + 4]
push ecx
push 0
push 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
lea edx, [esp + 0x18]
push edx
push 0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
pop esi
jne 0x415d7f
xor eax, eax
add esp, 0x10c
ret 8
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 8
Function at 0x418940
Capabilities:
Get disk information

Disassembly:
mov eax, 0x100c
call fcn.00416d80
push esi
push edi
call fcn.00418760
mov esi, eax
xor edx, edx
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x816]
mov word [esp + 0x814], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
push 0x400
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x828]
push 0x400
push ecx
push 0x428e30
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edx, dword [esp + 0x1018]
mov eax, dword [esp + 8]
push edx
push esi
push eax
call fcn.004188e0
add esp, 0xc
mov al, 1
pop edi
pop esi
add esp, 0x100c
ret
Function at 0x4189f0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
push esi
push 0x43a
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
mov dword [ebp + 8], edi
jne 0x418a46
lea ecx, [ebp - 0x18]
push 0x421ff0
push ecx
mov dword [ebp - 0x18], esi
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 4
push 0x1000
lea ebx, [eax + eax]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
mov dword [ebp - 0x14], esi
jne 0x418a7e
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 0x421ff0
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp + 0xc]
push 0
push ebx
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x418aa2
lea edx, [ebp - 0x20]
push 0x421ff0
push edx
mov dword [ebp - 0x20], eax
call sub.MSVCRT.dll__CxxThrowException
push str.LoadLibraryW
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
cmp eax, ebx
jne 0x418ad0
lea eax, [ebp - 0x24]
push 0x421ff0
push eax
mov dword [ebp - 0x24], ebx
call sub.MSVCRT.dll__CxxThrowException
push ebx
push ebx
push esi
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, ebx
jne 0x418b21
lea ecx, [ebp - 0x28]
push 0x421ff0
push ecx
mov dword [ebp - 0x28], ebx
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x418b0d
mov esi, dword [ebp + 8]
push 0x8000
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x418b10
mov esi, dword [ebp + 8]
test esi, esi
je 0x418b1b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x418b42
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10966
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x10920
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x22
lea ecx, [ebp - 0x24]
push ecx
push 0x14
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x109af
mov eax, dword [ebp - 0x18]
jmp 0x10a24
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
or ecx, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
mov dword [ecx + 8], eax
push 0x10948
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x10]
mov dword [edx + 0x10], ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x10a22
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 0x18]
jmp 0x10a24
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x402e68
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.004170c4
push edi
push esi
push ebx
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x2010], 0
mov dword [ebp - 0x200c], 0
test esi, esi
jg 0x402ea4
jne 0x402fd3
test ebx, ebx
jbe 0x402fd3
add esp, 0xfffffff4
push 0
lea eax, [ebp - 0x2004]
push eax
mov eax, ebx
mov edx, esi
sub eax, dword [ebp - 0x2010]
sbb edx, dword [ebp - 0x200c]
js 0x402ed0
jne 0x402ecb
cmp eax, 0x2000
jb 0x402ed0
mov eax, 0x2000
push eax
lea edi, [ebp - 0x2000]
push edi
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x402ef2
mov edx, dword [ebp - 0x2004]
test edx, edx
jne 0x402f24
add esp, 0xfffffff4
mov eax, dword [ebp - 0x2010]
mov edx, dword [ebp - 0x200c]
push edx
push eax
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp - 0x2004]
push 0x402e32
call fcn.00408024
mov eax, 1
jmp 0x402fd5
cmp byte [ebp + 0x18], 0
je 0x402f3d
xor eax, eax
cmp eax, edx
jae 0x402f3d
xor byte [eax + edi], 0x88
inc eax
cmp eax, dword [ebp - 0x2004]
jb 0x402f30
xor edi, edi
cmp edi, dword [ebp - 0x2004]
jae 0x402fa6
nop
add esp, 0xfffffff4
push 0
lea eax, [ebp - 0x2008]
push eax
mov eax, dword [ebp - 0x2004]
sub eax, edi
push eax
lea eax, [edi + ebp - 0x2000]
push eax
mov edx, dword [ebp + 0xc]
push edx
call sub.KERNEL32.dll_WriteFile
add esp, 0xc
test eax, eax
jne 0x402f98
add esp, 0xfffffffc
call sub.KERNEL32.dll_GetLastError
push eax
mov eax, dword [ebp - 0x2004]
sub eax, edi
push eax
push 0x402e4e
call fcn.00408024
mov eax, 2
jmp 0x402fd5
add edi, dword [ebp - 0x2008]
cmp edi, dword [ebp - 0x2004]
jb 0x402f48
mov eax, dword [ebp - 0x2004]
add dword [ebp - 0x2010], eax
adc dword [ebp - 0x200c], 0
cmp esi, dword [ebp - 0x200c]
jg 0x402ea4
jne 0x402fd3
cmp ebx, dword [ebp - 0x2010]
ja 0x402ea4
xor eax, eax
lea esp, [ebp - 0x2028]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40306c
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.004170c4
push edi
push esi
push ebx
mov bl, byte [ebp + 8]
add esp, 0xfffffff4
push 0x402fe0
call fcn.00408090
add esp, 0xfffffff4
push 0x7d2
call fcn.004019cc
mov dword [ebp - 0x4004], eax
add esp, 0x20
add esp, 0xfffffff8
push eax
push 0x402ff1
call fcn.00408090
add esp, 0x10
cmp dword [ebp - 0x4004], 0
jne 0x403104
test bl, bl
je 0x403285
mov byte [0x42e190], 0
jmp 0x403285
add esp, 0xfffffff8
push ebx
push 0x403040
call fcn.00408024
add esp, 0xfffffff4
push 0x42e190
call fcn.00403b08
add esp, 0x20
add esp, 0xfffffff4
push 0x42e190
call sub.KERNEL32.dll_RemoveDirectoryA
mov eax, esi
jmp 0x403287
test bl, bl
je 0x40310d
call fcn.0040a2fc
call fcn.00401ba8
mov dword [ebp - 0x4008], eax
push 0
push 0
push dword [0x424028]
push eax
call sub.KERNEL32.dll_SetFilePointer
add esp, 0xfffffffc
push 0x2000
lea ebx, [ebp - 0x2000]
push ebx
push 0x7d3
call fcn.00401aa8
mov dword [ebp - 0x400c], 0
add esp, 0xfffffff8
push 0x403004
push ebx
call sub.msvcrt.dll_strtok
mov esi, eax
add esp, 0x20
jmp 0x40322e
push esi
push 0x42e190
push 0x403006
lea ebx, [ebp - 0x4000]
push ebx
call sub.msvcrt.dll_sprintf
add esp, 0xfffffff8
push 0x5c
push esi
call sub.msvcrt.dll_strchr
mov edx, eax
add esp, 0x20
test edx, edx
je 0x4031e6
mov edi, 0x42e190
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edx, esi
lea eax, [ecx + edx]
mov byte [eax + ebx], 0
add esp, 0xfffffff8
push ebx
push 0x40300c
call fcn.00408090
add esp, 0xfffffff8
push 0
push ebx
call sub.KERNEL32.dll_CreateDirectoryA
add esp, 0x18
test eax, eax
jne 0x4031e6
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x4031e6
add esp, 0xfffffff8
push ebx
push 0x403022
call fcn.00408024
add esp, 0x10
push esi
push 0x42e190
push 0x403006
push ebx
call sub.msvcrt.dll_sprintf
add esp, 0xfffffff8
push ebx
mov eax, dword [ebp - 0x4008]
push eax
call fcn.00402d94
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4030d0
inc dword [ebp - 0x400c]
add esp, 0xfffffff8
push 0x403004
push 0
call sub.msvcrt.dll_strtok
mov esi, eax
add esp, 0x10
mov eax, dword [ebp - 0x4004]
cmp dword [ebp - 0x400c], eax
jge 0x403255
test esi, esi
je 0x403255
mov edi, esi
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
cmp ecx, 0xfffffffe
jne 0x403164
push 1
push 0
push 0
mov eax, dword [ebp - 0x4008]
push eax
call sub.KERNEL32.dll_SetFilePointer
mov dword [0x42402c], eax
add esp, 0xfffffff4
mov eax, dword [ebp - 0x4008]
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x403055
call fcn.00408090
xor eax, eax
lea esp, [ebp - 0x4028]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40382c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push edi
push esi
push ebx
mov ebx, dword [ebp + 8]
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
jne 0x403854
xor eax, eax
jmp 0x403a13
push 0
lea edi, [ebp - 0x110]
push edi
push 0x104
push ebx
call sub.KERNEL32.dll_GetFullPathNameA
mov ebx, eax
test ebx, ebx
je 0x403a11
cmp ebx, 0x103
jbe 0x40388c
add esp, 0xfffffff4
push 0x6f
call sub.KERNEL32.dll_SetLastError
xor ebx, ebx
jmp 0x403a11
add esp, 0xfffffff4
lea eax, [ebp - 0x324]
push eax
call sub.SHELL32.DLL_SHGetDesktopFolder
mov edx, eax
add esp, 0xc
test edx, edx
jl 0x403a11
add esp, 0xfffffff8
push 0x104
lea esi, [ebp - 0x320]
push esi
push 0xffffffffffffffff
push edi
push 0
call sub.KERNEL32.dll_AreFileApisANSI
test eax, eax
sete al
movzx eax, al
push eax
call sub.KERNEL32.dll_MultiByteToWideChar
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4038f8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x403a00
add esp, 0xfffffff4
push 0x6f
call sub.KERNEL32.dll_SetLastError
jmp 0x4039fd
add esp, 0xfffffffc
mov edx, dword [ebp - 0x324]
mov ecx, dword [edx]
push 0
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x32c]
push eax
push esi
push 0
push 0
push edx
mov eax, dword [ecx + 0xc]
call eax
mov edx, eax
add esp, 4
test edx, edx
jge 0x403954
sar eax, 0x10
and eax, 0x1fff
cmp eax, 7
jne 0x403940
add esp, 0xfffffff4
movzx edx, dx
push edx
jmp 0x403945
add esp, 0xfffffff4
push 0xd
call sub.KERNEL32.dll_SetLastError
add esp, 0xc
xor ebx, ebx
jmp 0x403a00
add esp, 0xfffffff8
push edi
push dword [ebp - 0x328]
call sub.SHELL32.DLL_SHGetPathFromIDListA
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x403984
cmp byte [ebp - 0x110], 0
je 0x403984
add esp, 0xfffffff4
push 0xd
call sub.KERNEL32.dll_SetLastError
add esp, 0xc
jmp 0x4039bf
add esp, 0xfffffff4
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea esi, [ebx + 1]
add esp, 0xc
cmp esi, dword [ebp + 0x10]
jbe 0x4039ac
add esp, 0xfffffff4
push 0x7a
call sub.KERNEL32.dll_SetLastError
mov ebx, esi
add esp, 0xc
jmp 0x4039bf
add esp, 0xfffffffc
mov eax, dword [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
call sub.KERNEL32.dll_lstrcpynA
add esp, 4
add esp, 0xfffffff4
lea eax, [ebp - 0x330]
push eax
call sub.SHELL32.DLL_SHGetMalloc
add esp, 0xc
test eax, eax
jl 0x403a00
add esp, 0xfffffff8
mov eax, dword [ebp - 0x330]
mov edx, dword [eax]
push dword [ebp - 0x328]
push eax
mov eax, dword [edx + 0x14]
call eax
add esp, 0xfffffffc
mov eax, dword [ebp - 0x330]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
add esp, 0xc
add esp, 0xfffffff4
mov eax, dword [ebp - 0x324]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, ebx
lea esp, [ebp - 0x348]
pop ebx
pop esi
pop edi
leave
ret 0xc
Function at 0x403b08
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x415c
call fcn.004170c4
push edi
push esi
push ebx
add esp, 0xfffffffc
push 1
push 0x403ac1
mov eax, dword [ebp + 8]
push eax
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
je 0x403cde
mov edi, dword [ebp + 8]
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
cmp ecx, 0xfffffffe
je 0x403cde
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
push eax
push 0x403ac3
call fcn.00408090
mov edi, dword [ebp + 8]
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
add esp, 0x10
cmp ecx, 0xfffffffe
je 0x403cde
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
push eax
lea ebx, [ebp - 0x2140]
push ebx
call sub.msvcrt.dll_strcpy
mov edi, ebx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add esp, 0x10
cmp byte [ebx + ecx - 1], 0x5c
je 0x403bb2
add esp, 0xfffffff8
push 0x403acf
push ebx
call sub.msvcrt.dll_strcat
add esp, 0x10
add esp, 0xfffffff8
push 0x403ad1
push ebx
call sub.msvcrt.dll_strcat
add esp, 0xfffffff8
lea eax, [ebp - 0x140]
mov dword [ebp - 0x4148], eax
push eax
push ebx
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 0x4144], eax
add esp, 0x18
cmp eax, 0xffffffff
je 0x403cde
lea eax, [ebp - 0x114]
mov dword [ebp - 0x414c], eax
mov esi, eax
mov edi, 0x403ac1
mov ecx, 2
cld
test al, 0
repe cmpsb byte [esi], byte es:[edi]
je 0x403cae
mov esi, eax
mov edi, 0x403ad5
mov ecx, 3
cld
test al, 0
repe cmpsb byte [esi], byte es:[edi]
je 0x403cae
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
push eax
lea ebx, [ebp - 0x4140]
push ebx
call sub.msvcrt.dll_strcpy
mov edi, ebx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add esp, 0x10
cmp byte [ebx + ecx - 1], 0x5c
je 0x403c5e
add esp, 0xfffffff8
push 0x403acf
push ebx
call sub.msvcrt.dll_strcat
add esp, 0x10
add esp, 0xfffffff8
mov eax, dword [ebp - 0x414c]
push eax
push ebx
call sub.msvcrt.dll_strcat
add esp, 0x10
test byte [ebp - 0x140], 0x10
je 0x403c94
add esp, 0xfffffff8
push ebx
push 0x403ad8
call fcn.00408090
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x403cab
add esp, 0xfffffff8
push ebx
push 0x403af0
call fcn.00408090
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_DeleteFileA
add esp, 0x1c
add esp, 0xfffffff8
mov eax, dword [ebp - 0x4148]
push eax
mov eax, dword [ebp - 0x4144]
push eax
call sub.KERNEL32.dll_FindNextFileA
add esp, 8
test eax, eax
jne 0x403be8
add esp, 0xfffffff4
mov eax, dword [ebp - 0x4144]
push eax
call sub.KERNEL32.dll_FindClose
lea esp, [ebp - 0x4168]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x403e78
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
add esp, 0xfffffff4
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x403ea2
cmp dword [ebp - 4], 7
ja 0x403ec2
add esp, 0xfffffff8
call sub.KERNEL32.dll_GetLastError
push eax
push 0x403e54
call fcn.00408090
add esp, 0xfffffff4
push 0x403e5e
call fcn.0040374c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
leave
ret