joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410cb0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
mov esi, ebp
push ebx
sub esp, 0x8c
lea edi, [esp + 0x28]
mov dword [esp + 8], edx
lea ebx, [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
call fcn.00410b30
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.00410c20
movzx eax, byte [ebx]
add ebx, 1
mov dword [esp], esi
add esi, 2
mov dword [esp + 4], str._02x
mov dword [esp + 8], eax
call fcn.00410ad0
cmp ebx, edi
jne 0x410d12
mov byte [ebp + 0x20], 0
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x410e60
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
test edx, edx
je 0x410e7b
cmp dword [ebx + 0xc], 0x10
je 0x410e83
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x410f8a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp], eax
call fcn.00409600
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0xc]
sub esp, 4
mov dword [esp + 4], 0x2d
mov dword [ebp - 0x34], eax
neg dword [ebp - 0x34]
and dword [ebp - 0x34], 7
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.00408fa0
mov eax, dword [ebx + 4]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebx + 0xc]
sub esp, 8
mov eax, dword [eax + 4]
add esi, eax
cmp eax, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], esi
je 0x410f64
lea esi, [esi]
mov eax, dword [ebp - 0x28]
xor ebx, ebx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], esi
mov esi, dword [eax + 8]
mov dword [ebp - 0x24], esi
mov esi, dword [eax + 0xc]
mov eax, edx
mov edi, edx
shl eax, 4
sub ebx, 0x61c88647
add eax, dword [ebp - 0x1c]
shr edi, 5
add edi, dword [ebp - 0x20]
xor eax, edi
lea edi, [edx + ebx]
xor eax, edi
add ecx, eax
mov eax, ecx
mov edi, ecx
shl eax, 4
add eax, dword [ebp - 0x24]
shr edi, 5
add edi, esi
xor eax, edi
lea edi, [ecx + ebx]
xor eax, edi
add edx, eax
cmp ebx, 0xe3779b90
jne 0x410f11
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x28], 8
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x30]
jne 0x410ef0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 8]
mov dword [esp], 1
mov dword [esp + 4], eax
call fcn.00408fa0
mov eax, 1
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 8]
call fcn.00408dd0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x410fa0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
test esi, esi
je 0x410fbb
cmp dword [ebx + 0xc], 0x10
je 0x410fc3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x411114
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp], eax
call fcn.00409600
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0xc]
sub esp, 4
mov eax, esi
sub eax, 1
js 0x4110f7
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
movzx edx, byte [edx + esi - 1]
mov dword [esp], eax
mov dword [esp + 4], 0
mov byte [ebp - 0x35], dl
call fcn.00408ff0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
sub esp, 8
test al, 7
mov dword [ebp - 0x34], eax
jne 0x4110e5
mov eax, dword [ebx + 4]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add esi, eax
cmp eax, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], esi
je 0x4110b1
mov eax, dword [ebp - 0x28]
mov ebx, 0xe3779b90
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], esi
mov esi, dword [eax + 8]
mov dword [ebp - 0x24], esi
mov esi, dword [eax + 0xc]
mov eax, ecx
mov edi, ecx
shl eax, 4
add eax, dword [ebp - 0x24]
shr edi, 5
add edi, esi
xor eax, edi
lea edi, [ebx + ecx]
xor eax, edi
sub edx, eax
mov eax, edx
mov edi, edx
shl eax, 4
shr edi, 5
add eax, dword [ebp - 0x1c]
add edi, dword [ebp - 0x20]
xor eax, edi
lea edi, [edx + ebx]
xor eax, edi
sub ecx, eax
add ebx, 0x61c88647
jne 0x411064
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x28], 8
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x30]
jne 0x411040
movsx eax, byte [ebp - 0x35]
cmp dword [ebp - 0x34], eax
jl 0x4110e5
cmp byte [ebp - 0x35], 0
js 0x4110e5
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp + 8]
mov dword [esp + 4], 0
sub esi, eax
mov dword [esp], esi
call fcn.00408ff0
mov eax, 1
sub esp, 8
jmp 0x410fbb
mov ecx, dword [ebp + 8]
call fcn.00408dd0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.00409b20
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
sub eax, 1
jmp 0x410ff3
mov ecx, dword [ebp + 8]
call fcn.00408dd0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x414650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
je 0x414686
mov esi, dword [ebp + 8]
test esi, esi
je 0x414686
mov ecx, dword [ebp + 0xc]
test ecx, ecx
js 0x414686
mov eax, dword [ebx + 4]
mov ecx, ebx
mov edi, dword [eax + 0x1c]
mov esi, dword [eax + 0x18]
mov eax, dword [ebx]
call dword [eax + 0x28]
cmp edi, edx
jle 0x414694
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 8
jl 0x41469a
cmp esi, eax
ja 0x414686
mov eax, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004143b0
sub esp, 8
test al, al
mov esi, eax
je 0x414686
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x18]
sub dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edx
mov edx, dword [ecx + 0x1c]
sbb dword [ebp - 0x2c], edx
mov edi, dword [ebp - 0x30]
cdq
mov eax, dword [ebp - 0x2c]
cmp eax, edx
jl 0x4146ee
jg 0x4146eb
cmp edi, dword [ebp + 0xc]
jbe 0x4146ee
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.00408ff0
sub esp, 8
test edi, edi
je 0x414688
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
mov edi, dword [eax + 0xc]
test edi, edi
jle 0x41477b
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x414686
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00408ff0
mov ecx, dword [ebx + 4]
xor edx, edx
mov eax, dword [ebp - 0x1c]
sub esp, 8
add dword [ecx + 0x18], eax
adc dword [ecx + 0x1c], edx
jmp 0x414688
mov dword [esp + 4], edi
mov dword [esp], 0
call fcn.00409b20
jmp 0x414719

Function at 0x414bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
add ecx, 4
mov ebp, esp
leave
jmp fcn.00414430

Function at 0x421e20
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4524c4], eax
je 0x421e37
add esp, 0xc
ret
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x4222e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x47b2d0], 1
je 0x4222f7
call fcn.00422260
mov eax, dword [0x4524c4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x422318
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004221b0
mov edi, dword [entry3]
test edi, edi
mov esi, eax
je 0x42230e
test eax, eax
je 0x42230e
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x38], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x60], 0
mov dword [esi + 0x14], 0
sub esp, 0x10
mov dword [esi + 0x18], eax
call ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call ebx
mov edx, dword [ebp - 0x1c]
lea ecx, [esi + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x422419
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x4524c4]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x422419
mov ebx, esi
jmp 0x42230e
call sub.msvcrt.dll_abort
nop
Function at 0x422570
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
cmp dword [ebp + 0xc], 3
je 0x422590
lea esp, [ebp - 8]
mov eax, 1
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, dword [0x4524c4]
cmp eax, 0xffffffff
je 0x42257e
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x42257e
test byte [eax + 0x20], 0x30
je 0x422640
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x4226d7
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4225f6
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x4225e8
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.00421a90
mov eax, dword [ebx + 0xac]
mov dword [ebx + 0x34], 0xffffffff
test eax, eax
je 0x4226e5
mov eax, dword [0x4524c4]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, dword [eax + 0x64]
test eax, eax
mov eax, dword [ebx + 0x18]
jne 0x4226a0
test eax, eax
je 0x42265a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x64], 1
test eax, eax
jne 0x4226d0
test byte [ebx + 0x24], 4
je 0x4226b7
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4225ef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x4225ef
test eax, eax
je 0x4226b0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.00421a90
mov dword [ebx + 0x34], 0xffffffff
jmp 0x42257e
call fcn.00422460
jmp 0x422672
call fcn.00422460
lea esi, [esi]
jmp 0x4225c4
mov eax, ebx
call fcn.00422020
lea esi, [esi]
jmp 0x422616
Function at 0x423010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
call fcn.004222e0
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x423094
test byte [ebx + 0x20], 0x30
jne 0x423048
add ebx, 0x6c
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_longjmp
mov eax, dword [0x4524c4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
mov ebx, eax
push edx
je 0x42308b
cmp dword [eax + 0x14], 0
je 0x4230d8
mov esi, dword [eax + 4]
mov dword [eax + 0x64], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x42307e
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x42309b
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call fcn.00422460
jmp 0x42302f
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
cmp dword [ebx + 0xac], 0
mov dword [ebx + 0x14], 0
je 0x423102
mov eax, dword [0x4524c4]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ecx
push ecx
jmp 0x42308b
mov dword [eax], 0xdeadbeef
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4230ef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
cmp dword [ebx + 0xac], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jne 0x4230be
mov eax, ebx
call fcn.00422020
jmp 0x4230be
Function at 0x431610
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.00431670
Function at 0x432010
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 0x432048
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x43203e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x43204a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x432030
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401d7b
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1008
call fcn.00411bc0
push ebx
mov ebx, dword [esp + 0x1014]
xor edx, edx
push ebp
push edi
mov edi, ecx
mov dword [edi + 0x1020], edx
cmp byte [edi + 0x1c], dl
jne 0x401da5
mov cl, dl
test bl, 4
je 0x401da7
mov cl, 1
mov eax, ebx
shr eax, 1
push esi
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test bl, 1
je 0x401dcc
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x401ddb
or ebx, 2
xor eax, eax
cmp byte [edi + 0x15], al
push edx
setne al
dec eax
and eax, 0x8000000
push eax
push 3
push edx
push ebx
push esi
push dword [esp + 0x1034]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401e6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x1024]
call fcn.00403283
test al, al
je 0x401e59
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401e54
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x401e6a
cmp dword [esp + 0x10], 2
jne 0x401e6a
mov dword [edi + 0x1020], 1
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x12], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
pop esi
cmp ebp, 0xffffffff
je 0x401e99
push 0x800
push dword [esp + 0x101c]
lea ecx, [edi + 0x1e]
mov dword [edi + 4], ebp
push ecx
call fcn.00405c1f
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1008
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411bc0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402443
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00403283
test al, al
je 0x402443
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411bc0
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00403592
movzx eax, word [eax]
cmp eax, 0x2e
je 0x4024b1
cmp eax, 0x20
je 0x4024b1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4024e4
push esi
call fcn.004023ea
test al, al
jne 0x4024f7
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.00403283
test al, al
je 0x4024f7
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4024f7
cmp byte [ebp + 0xc], 0
je 0x4024f3
push dword [ebp + 0x10]
push esi
call fcn.004026bd
xor eax, eax
jmp 0x40250f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40250c
cmp eax, 3
je 0x40250c
xor eax, eax
inc eax
jmp 0x40250f
push 2
pop eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4026bd
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411bc0
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x40270d
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00403283
test al, al
je 0x40270d
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40286d
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1250
call fcn.00411bc0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1260]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x126c]
or ebp, 0xffffffff
push eax
cmp esi, ebp
jne 0x402907
push dword [esp + 0x126c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov esi, eax
cmp esi, ebp
jne 0x40292e
push 0x800
lea eax, [esp + 0x264]
push eax
push dword [esp + 0x1270]
call fcn.00403283
test al, al
je 0x4028e0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call ebx
mov esi, eax
cmp esi, ebp
jne 0x40292e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4028fa
cmp eax, 3
je 0x4028fa
cmp eax, 0x12
je 0x4028fa
xor eax, eax
inc eax
jmp 0x4028fc
xor eax, eax
mov byte [edi + 0x1044], al
jmp 0x4029dc
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402926
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [edi + 0x1044], al
cmp esi, ebp
je 0x4029dc
mov ebx, 0x800
push ebx
push dword [esp + 0x126c]
push edi
call fcn.00405c1f
push ebx
lea eax, [esp + 0x40]
push eax
push edi
call fcn.00403669
mov ecx, dword [esp + 0x2c]
xor eax, eax
add eax, dword [esp + 0x30]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0x10]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x102c], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1034], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1038], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x103c], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x1004], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.00406664
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.00406664
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.00406664
and dword [edi + 0x1040], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1250
ret 0xc
Function at 0x403283
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411bc0
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x4032a1
xor al, al
jmp 0x40340b
push ebx
push edi
push esi
call fcn.00403412
push esi
call fcn.00416e03
pop ecx
push esi
mov edi, eax
call fcn.0040343e
test al, al
je 0x403333
push esi
call fcn.00403412
test al, al
je 0x4032ea
lea eax, [edi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x403407
push dword [ebp + 0x10]
push 0x4252fc
push dword [ebp + 0xc]
call fcn.00405c1f
push dword [ebp + 0x10]
jmp 0x4033fa
push 0x5c
pop eax
cmp word [esi], ax
jne 0x403407
lea ebx, [esi + 2]
cmp word [ebx], ax
jne 0x403407
mov esi, dword [ebp + 0x10]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x403407
push esi
push 0x4252fc
push dword [ebp + 0xc]
call fcn.00405c1f
push esi
push 0x425308
push dword [ebp + 0xc]
call fcn.00405bf7
push esi
push ebx
jmp 0x4033fb
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x403407
cmp eax, ebx
ja 0x403407
movzx eax, word [esi]
push eax
call fcn.00403474
test al, al
je 0x40339a
lea eax, [edi + 6]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jbe 0x403407
push edi
push 0x4252fc
push dword [ebp + 0xc]
call fcn.00405c1f
xor eax, eax
mov word [ebp - 0xffc], ax
lea eax, [ebp - 0x1000]
push edi
push eax
push dword [ebp + 0xc]
call fcn.00405bf7
jmp 0x4033f9
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00402e95
lea eax, [ebp - 0x1000]
push eax
call fcn.00416e03
add edi, 4
add eax, edi
mov edi, dword [ebp + 0x10]
pop ecx
cmp edi, eax
jbe 0x403407
push edi
push 0x4252fc
push dword [ebp + 0xc]
call fcn.00405c1f
push edi
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0xc]
call fcn.00405bf7
cmp word [esi], 0x2e
jne 0x4033f9
movzx eax, word [esi + 2]
push eax
call fcn.00403474
test al, al
je 0x4033f9
add esi, 4
push edi
push esi
push dword [ebp + 0xc]
call fcn.00405bf7
mov al, 1
jmp 0x403409
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc