joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10062d90
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
mov eax, 1
ret
Function at 0x100646a0
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0x367cd507
mov dword [eax + 8], 0x3070dd17
mov dword [eax + 0xc], 0xf70e5939
mov dword [eax + 0x10], 0xffc00b31
mov dword [eax + 0x14], 0x68581511
mov dword [eax + 0x18], 0x64f98fa7
mov dword [eax + 0x1c], 0xbefa4fa4
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], 0x1c
mov eax, 1
ret

Function at 0x10064700
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], 0x20
mov eax, 1
ret
Function at 0x10065e40
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x44], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
mov eax, 1
ret

Function at 0x10065ee0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x44], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
mov eax, 1
ret
Function at 0x10069d20
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
mov eax, 1
ret
Function at 0x1006fb40
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x1006fba1
mov al, byte [edi]
test al, al
je 0x1006fba1
push ebx
push ebp
mov ebx, pe_nt_image_headers32
movsx eax, al
or eax, ebx
mov ebp, esi
mov edx, eax
mov ecx, eax
shr edx, 2
and edx, 0xf
and ecx, 0xf
xor edx, ecx
mov ecx, 0x20
sub ecx, edx
add ebx, 0x100
shr ebp, cl
mov ecx, edx
mov edx, eax
imul edx, eax
shl esi, cl
mov al, byte [edi + 1]
or ebp, esi
xor ebp, edx
inc edi
test al, al
mov esi, ebp
jne 0x1006fb59
mov eax, esi
pop ebp
shr eax, 0x10
pop ebx
xor eax, esi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x4011e0
Capabilities:
Terminate process

Disassembly:
push ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x40122e
push 0x4031c0
push eax
push 0x401160
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.CoInitializeEx_failed:
call fcn.00402f80
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x40128f
push 0x4031c0
push eax
push 0x401160
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.CoInitializeSecurity_failed:
call fcn.00402f80
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop ecx
ret
Function at 0x402b08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40a010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ba0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b80
xor eax, eax
push ebp
push 0x402b79
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 0x402bbc
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 0x402b80
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40a010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40a010], ax
mov esp, ebp
pop ebp
ret

Function at 0x403208
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40b038], 0
je 0x403269
cmp word [0x40b20c], 0xd7b2
jne 0x403231
cmp dword [0x40b214], 0
jbe 0x403231
mov eax, 0x40b208
call dword [0x40b224]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40a058
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 0x403290
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40a01c], 0
jne 0x403285
push 0
push 0x40a050
push 0x40a058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403da8
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 0x403e0e
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.004035c4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040299c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403df8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403e15
lea eax, [ebp - 0x10]
call fcn.004033ac
ret
Function at 0x405424
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40552e
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x405477
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.0040349c
jmp 0x405515
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.004053d8
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.004053f8
mov ebx, eax
test esi, esi
je 0x40549f
dec esi
test esi, esi
jl 0x40549f
cmp edi, ebx
jne 0x40547e
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403594
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403850
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004035f0
cmp eax, 2
jl 0x405515
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x405515
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004035f0
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x405515
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004035f0
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403850
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405535
lea eax, [ebp - 0x110]
call fcn.004033ac
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004037f0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4055b1
test al, 0x10
je 0x4055b5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x401214
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
call fcn.00401334
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
add esp, 0xfffffff4
lea eax, [ebp - 0x50]
push eax
call sub.KERNEL32.dll_GetStartupInfoA
add esp, 0xc
test ebx, ebx
je 0x40127f
jmp 0x40123d
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x40123c
cmp al, 9
je 0x40123c
mov al, byte [ebx]
cmp al, 0x22
jne 0x401263
lea esi, [esi]
inc ebx
mov al, byte [ebx]
cmp al, 0x22
je 0x401274
test al, al
jne 0x401250
jmp 0x401275
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x401274
cmp al, 9
je 0x401275
test al, al
jne 0x401260
jmp 0x401275
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x401274
cmp al, 9
je 0x401274
mov eax, 0xa
test byte [ebp - 0x24], 1
je 0x40128e
movzx eax, word [ebp - 0x20]
push eax
push ebx
push 0
add esp, 0xfffffff4
push 0
call sub.KERNEL32.dll_GetModuleHandleA
add esp, 0xc
push eax
call fcn.004014b8
mov ebx, dword [ebp - 0x68]
mov esp, ebp
pop ebp
ret
Function at 0x403208
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.00417744
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 0x403244
jne 0x403373
test ebx, ebx
jbe 0x403373
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 0x403270
jne 0x40326b
cmp eax, 0x2000
jb 0x403270
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 0x403292
mov edx, dword [ebp - 0x2004]
test edx, edx
jne 0x4032c4
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 0x4031d2
call fcn.00408684
mov eax, 1
jmp 0x403375
cmp byte [ebp + 0x18], 0
je 0x4032dd
xor eax, eax
cmp eax, edx
jae 0x4032dd
xor byte [eax + edi], 0x88
inc eax
cmp eax, dword [ebp - 0x2004]
jb 0x4032d0
xor edi, edi
cmp edi, dword [ebp - 0x2004]
jae 0x403346
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 0x403338
add esp, 0xfffffffc
call sub.KERNEL32.dll_GetLastError
push eax
mov eax, dword [ebp - 0x2004]
sub eax, edi
push eax
push 0x4031ee
call fcn.00408684
mov eax, 2
jmp 0x403375
add edi, dword [ebp - 0x2008]
cmp edi, dword [ebp - 0x2004]
jb 0x4032e8
mov eax, dword [ebp - 0x2004]
add dword [ebp - 0x2010], eax
adc dword [ebp - 0x200c], 0
cmp esi, dword [ebp - 0x200c]
jg 0x403244
jne 0x403373
cmp ebx, dword [ebp - 0x2010]
ja 0x403244
xor eax, eax
lea esp, [ebp - 0x2028]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40340c
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.00417744
push edi
push esi
push ebx
mov bl, byte [ebp + 8]
add esp, 0xfffffff4
push 0x403380
call fcn.004086f0
add esp, 0xfffffff4
push 0x7d2
call fcn.004019cc
mov dword [ebp - 0x4004], eax
add esp, 0x20
add esp, 0xfffffff8
push eax
push 0x403391
call fcn.004086f0
add esp, 0x10
cmp dword [ebp - 0x4004], 0
jne 0x4034a4
test bl, bl
je 0x403625
mov byte [0x42e198], 0
jmp 0x403625
add esp, 0xfffffff8
push ebx
push 0x4033e0
call fcn.00408684
add esp, 0xfffffff4
push 0x42e198
call fcn.00403ea8
add esp, 0x20
add esp, 0xfffffff4
push 0x42e198
call sub.KERNEL32.dll_RemoveDirectoryA
mov eax, esi
jmp 0x403627
test bl, bl
je 0x4034ad
call fcn.0040a97c
call fcn.00401ba8
mov dword [ebp - 0x4008], eax
push 0
push 0
push dword [0x424030]
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 0x4033a4
push ebx
call sub.msvcrt.dll_strtok
mov esi, eax
add esp, 0x20
jmp 0x4035ce
push esi
push 0x42e198
push 0x4033a6
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 0x403586
mov edi, 0x42e198
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 0x4033ac
call fcn.004086f0
add esp, 0xfffffff8
push 0
push ebx
call sub.KERNEL32.dll_CreateDirectoryA
add esp, 0x18
test eax, eax
jne 0x403586
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x403586
add esp, 0xfffffff8
push ebx
push 0x4033c2
call fcn.00408684
add esp, 0x10
push esi
push 0x42e198
push 0x4033a6
push ebx
call sub.msvcrt.dll_sprintf
add esp, 0xfffffff8
push ebx
mov eax, dword [ebp - 0x4008]
push eax
call fcn.00403134
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x403470
inc dword [ebp - 0x400c]
add esp, 0xfffffff8
push 0x4033a4
push 0
call sub.msvcrt.dll_strtok
mov esi, eax
add esp, 0x10
mov eax, dword [ebp - 0x4004]
cmp dword [ebp - 0x400c], eax
jge 0x4035f5
test esi, esi
je 0x4035f5
mov edi, esi
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
cmp ecx, 0xfffffffe
jne 0x403504
push 1
push 0
push 0
mov eax, dword [ebp - 0x4008]
push eax
call sub.KERNEL32.dll_SetFilePointer
mov dword [0x424034], eax
add esp, 0xfffffff4
mov eax, dword [ebp - 0x4008]
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x4033f5
call fcn.004086f0
xor eax, eax
lea esp, [ebp - 0x4028]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x403bcc
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 0x403bf4
xor eax, eax
jmp 0x403db3
push 0
lea edi, [ebp - 0x110]
push edi
push 0x104
push ebx
call sub.KERNEL32.dll_GetFullPathNameA
mov ebx, eax
test ebx, ebx
je 0x403db1
cmp ebx, 0x103
jbe 0x403c2c
add esp, 0xfffffff4
push 0x6f
call sub.KERNEL32.dll_SetLastError
xor ebx, ebx
jmp 0x403db1
add esp, 0xfffffff4
lea eax, [ebp - 0x324]
push eax
call sub.SHELL32.DLL_SHGetDesktopFolder
mov edx, eax
add esp, 0xc
test edx, edx
jl 0x403db1
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 0x403c98
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x403da0
add esp, 0xfffffff4
push 0x6f
call sub.KERNEL32.dll_SetLastError
jmp 0x403d9d
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 0x403cf4
sar eax, 0x10
and eax, 0x1fff
cmp eax, 7
jne 0x403ce0
add esp, 0xfffffff4
movzx edx, dx
push edx
jmp 0x403ce5
add esp, 0xfffffff4
push 0xd
call sub.KERNEL32.dll_SetLastError
add esp, 0xc
xor ebx, ebx
jmp 0x403da0
add esp, 0xfffffff8
push edi
push dword [ebp - 0x328]
call sub.SHELL32.DLL_SHGetPathFromIDListA
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x403d24
cmp byte [ebp - 0x110], 0
je 0x403d24
add esp, 0xfffffff4
push 0xd
call sub.KERNEL32.dll_SetLastError
add esp, 0xc
jmp 0x403d5f
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 0x403d4c
add esp, 0xfffffff4
push 0x7a
call sub.KERNEL32.dll_SetLastError
mov ebx, esi
add esp, 0xc
jmp 0x403d5f
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 0x403da0
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 0x403ea8
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x415c
call fcn.00417744
push edi
push esi
push ebx
add esp, 0xfffffffc
push 1
push 0x403e61
mov eax, dword [ebp + 8]
push eax
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
je 0x40407e
mov edi, dword [ebp + 8]
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
cmp ecx, 0xfffffffe
je 0x40407e
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
push eax
push 0x403e63
call fcn.004086f0
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 0x40407e
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 0x403f52
add esp, 0xfffffff8
push 0x403e6f
push ebx
call sub.msvcrt.dll_strcat
add esp, 0x10
add esp, 0xfffffff8
push 0x403e71
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 0x40407e
lea eax, [ebp - 0x114]
mov dword [ebp - 0x414c], eax
mov esi, eax
mov edi, 0x403e61
mov ecx, 2
cld
test al, 0
repe cmpsb byte [esi], byte es:[edi]
je 0x40404e
mov esi, eax
mov edi, 0x403e75
mov ecx, 3
cld
test al, 0
repe cmpsb byte [esi], byte es:[edi]
je 0x40404e
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 0x403ffe
add esp, 0xfffffff8
push 0x403e6f
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 0x404034
add esp, 0xfffffff8
push ebx
push 0x403e78
call fcn.004086f0
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x40404b
add esp, 0xfffffff8
push ebx
push 0x403e90
call fcn.004086f0
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 0x403f88
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 0x404218
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 0x404242
cmp dword [ebp - 4], 7
ja 0x404262
add esp, 0xfffffff8
call sub.KERNEL32.dll_GetLastError
push eax
push 0x4041f4
call fcn.004086f0
add esp, 0xfffffff4
push 0x4041fe
call fcn.00403aec
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
leave
ret