joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b7f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cebd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ecx + 4]
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 8]
je 0x47b87a
mov edi, dword [ebx + 0x20]
nop
inc dword [edi + 8]
mov dword [ebp - 0x10], edi
mov ecx, dword [ebx + 0x30]
xor esi, esi
mov dword [ebp - 4], 0
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
test eax, eax
jle 0x47b873
mov eax, dword [ecx + 8]
add eax, esi
mov ecx, dword [ecx + eax*4 + 0x10]
test ecx, ecx
je 0x47b865
push dword [ebp + 0x10]
mov eax, dword [ecx]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x47b890
mov ecx, dword [ebx + 0x30]
inc esi
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
cmp esi, eax
jl 0x47b844
mov eax, dword [edi + 8]
dec eax
mov dword [edi + 8], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
dec dword [edi + 8]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47d070
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d123
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [0x72f838], 0xffffffff
jne 0x47d0d1
mov esi, 0x737994
mov ecx, esi
call fcn.0047a990
and esi, 0xfffffffe
cmp dword [0x72f838], 0xffffffff
jne 0x47d0c7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x72f838], eax
and esi, 0xfffffffe
mov ecx, esi
call fcn.0047ae40
push dword [0x72f838]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x47d174
cmp byte [ebp + 8], al
je 0x47d174
push 0x44
call fcn.00553354
add esp, 4
mov dword [ebp - 0x1c], eax
push 1
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0047bee0
mov ebx, eax
push ebx
push dword [0x72f838]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 8
mov dword [ebp - 4], 1
call fcn.00553354
add esp, 4
mov dword [ebp - 0x1c], eax
push ebx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0047bdc0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
nop
nop
mov ecx, ebx
mov dword [ebx + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0047c490
mov byte [ebx + 0x42], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x28], eax
mov eax, dword [0x734190]
nop
test eax, eax
jne 0x47d188
mov eax, dword [ebx + 0x24]
nop
mov dword [0x734190], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x14], 0xffffffff
call esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call esi
push 2
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x24]
nop
push eax
push dword [ebp - 0x14]
call fcn.0047d8c0
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47d3c0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x47def0
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
lea eax, [esi + 0x30]
mov dword [esp + 8], eax
test eax, eax
je 0x47df0f
mov ecx, eax
call fcn.0047a990
or dword [esp + 8], 1
cmp byte [esi + 0x38], 0
je 0x47df37
cmp byte [esi + 0x58], 0
jne 0x47df21
mov byte [esi + 0x59], 1
jmp 0x47df37
push 0
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push edi
call fcn.0047d260
add esp, 8
mov ecx, dword [esp + 8]
pop edi
pop esi
test cl, 1
je 0x47df4d
and ecx, 0xfffffffe
add esp, 4
jmp fcn.0047ae40
pop ecx
ret
Function at 0x48a250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e1e5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x60]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x20], esi
test eax, eax
jne 0x48a379
cmp dword [ebx + 0x78], 0xffffffff
jne 0x48a3ed
cmp dword [ebx + 0x64], 0xffffffff
je 0x48a3d4
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
movlpd qword [ebp - 0x1c], xmm0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
nop dword [eax]
test eax, eax
jg 0x48a2d2
jl 0x48a2ce
cmp edi, 0x2000000
jae 0x48a2d2
mov eax, edi
jmp 0x48a2d7
mov eax, 0x2000000
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [ebx + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x48a332
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48a31a
add esi, eax
adc ecx, 0
sub edi, eax
mov eax, dword [ebp - 0x14]
sbb eax, 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp ecx, dword [ebp + 0x10]
jg 0x48a31a
jl 0x48a2c0
cmp esi, dword [ebp + 0xc]
jb 0x48a2c0
mov eax, esi
mov edx, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
or eax, ecx
jne 0x48a31a
lea eax, [ebp + 8]
push 0xffffffffffffffff
push eax
call fcn.004b98b0
add esp, 8
mov ecx, dword [ebp - 0x20]
push eax
push 1
mov dword [ebp - 4], 1
call fcn.004b6de0
lea ecx, [ebp + 8]
call fcn.00406190
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
call fcn.0055f319
push eax
call fcn.0055fb76
add esp, 8
cmp eax, 0xffffffff
je 0x48a3ed
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x48a39e
cmp eax, 3
jne 0x48a3ed
push dword [ebx + 0x60]
call fcn.0055f2ed
add esp, 4
test eax, eax
je 0x48a3ed
lea eax, [ebp + 0x10]
push 0xffffffffffffffff
push eax
call fcn.004b9a80
add esp, 8
push eax
push 1
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004b6de0
lea ecx, [ebp + 0x10]
call fcn.00406190
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b7e70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48a670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e24d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x60], 0
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x20], eax
jne 0x48a791
cmp dword [ebx + 0x78], 0xffffffff
jne 0x48a791
cmp dword [ebx + 0x64], 0xffffffff
je 0x48a778
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
movlpd qword [ebp - 0x1c], xmm0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
test eax, eax
jg 0x48a6ea
jl 0x48a6e6
cmp edi, 0x2000000
jae 0x48a6ea
mov eax, edi
jmp 0x48a6ef
mov eax, 0x2000000
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [ebx + 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x48a74a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48a732
add esi, eax
adc ecx, 0
sub edi, eax
mov eax, dword [ebp - 0x14]
sbb eax, 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp ecx, dword [ebp + 0x10]
jg 0x48a732
jl 0x48a6d8
cmp esi, dword [ebp + 0xc]
jb 0x48a6d8
mov eax, esi
mov edx, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
or eax, ecx
jne 0x48a732
lea eax, [ebp + 8]
push 0xffffffffffffffff
push eax
call fcn.004b98b0
add esp, 8
mov ecx, dword [ebp - 0x20]
push eax
push 2
mov dword [ebp - 4], 0
call fcn.004b6de0
lea ecx, [ebp + 8]
call fcn.00406190
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b8930
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48aa40
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e2dd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
mov ebx, dword [eax + 0x64]
cmp ebx, 0xffffffff
jne 0x48ab6a
cmp dword [eax + 0x78], ebx
jne 0x48ab3c
cmp dword [eax + 0x60], 0
jne 0x48ab3c
lea ecx, [eax + 0x10]
mov eax, dword [ecx]
cmp dword [eax + 4], 0
jne 0x48aaa4
mov eax, dword [ecx + 4]
cmp dword [eax + 4], 0
je 0x48abff
lea eax, [ebp - 0x14]
push eax
call fcn.00480600
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.00452130
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00406190
push ecx
mov eax, esp
lea ecx, [ebp - 0x1c]
mov dword [eax], 3
call fcn.00452630
lea ecx, [ebp - 0x1c]
test al, al
je 0x48ab32
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004529c0
mov bl, al
test bl, bl
jne 0x48ab14
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044fae0
push eax
push 0xc
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004b6de0
lea ecx, [ebp + 0xc]
call fcn.00406190
lea ecx, [ebp - 0x1c]
call fcn.00452290
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00452290
jmp 0x48abff
cmp ebx, 0xffffffff
jne 0x48ab6a
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x48ab53
push ecx
call fcn.0055f319
add esp, 4
jmp 0x48ab56
mov eax, dword [eax + 0x78]
push eax
call fcn.0055fb76
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x48abff
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [edi]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
mov esi, dword [ecx + 0x1c]
mov ecx, edi
mov dword [ebp - 0x14], edx
call esi
test al, al
je 0x48abf1
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x48abf1
mov eax, dword [edi]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
mov ebx, dword [eax + 0x1c]
cmp ecx, esi
jg 0x48abce
mov eax, dword [ebp - 0x10]
jl 0x48abd5
mov edx, dword [ebp + 8]
cmp eax, edx
jae 0x48abd1
push ecx
push eax
mov ecx, edi
call ebx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
mov eax, edx
mov ecx, esi
push ecx
push eax
mov ecx, edi
call ebx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi]
push ecx
push dword [ebp - 0x10]
mov ecx, edi
call dword [eax + 0x1c]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48d0d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e735
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.00480ad0
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0042f930
mov ecx, dword [ebp + 8]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.00480ad0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0042f930
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x10]
mov edi, eax
test edi, edi
setne bl
or esi, 0xffffffff
mov ecx, dword [ecx]
test ecx, ecx
je 0x48d15d
cmp ecx, esi
je 0x48d16c
mov eax, dword [ebp - 0x10]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x48d16c
push 4
push 2
push dword [ebp - 0x10]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x48d189
cmp eax, 0xffffffff
je 0x48d198
mov eax, dword [ebp - 0x14]
lock xadd dword [eax], esi
dec esi
setne al
test al, al
jne 0x48d198
push 4
push 2
push dword [ebp - 0x14]
call fcn.00425140
add esp, 0xc
test edi, edi
jne 0x48d1ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], 2
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48d1d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e77d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00480600
mov eax, dword [ebp - 0x10]
or esi, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax + 4], 0
jne 0x48d21e
push str.Empty_filename_passed_to_function
jmp 0x48d23c
xor eax, eax
lea ecx, [ebp - 0x10]
push 1
push eax
mov word [ebp - 0x18], ax
push dword [ebp - 0x18]
call fcn.0042ab60
cmp eax, 0xffffffff
je 0x48d26c
push str.Broken_filename_passed_to_function
movaps xmm0, xmmword [0x58bee0]
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x58bebc
call fcn.00457020
add esp, 8
call fcn.0055eb76
xor bl, bl
mov dword [eax], 0x16
jmp 0x48d386
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00438140
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.00439eb0
mov edx, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x48d2b3
cmp eax, 0xffffffff
je 0x48d2c2
mov eax, dword [ebp - 0x14]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x48d2c2
push 4
push 2
push dword [ebp - 0x14]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x48d2e5
cmp eax, 0xffffffff
je 0x48d2f4
mov eax, dword [ebp - 0x18]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x48d2f4
push 4
push 2
push dword [ebp - 0x18]
call fcn.00425140
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00489a40
add esp, 8
push 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0042f930
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ecx]
test ecx, ecx
je 0x48d346
cmp ecx, 0xffffffff
je 0x48d355
mov eax, dword [ebp - 0x14]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x48d355
push 4
push 2
push dword [ebp - 0x14]
call fcn.00425140
add esp, 0xc
test ebx, ebx
je 0x48d35d
mov bl, 1
jmp 0x48d386
cmp byte [ebp + 0xc], 0
jne 0x48d367
xor bl, bl
jmp 0x48d386
lea eax, [ebp - 0x10]
push 0
push eax
cmp edi, 0xb7
jne 0x48d37c
call fcn.0048f830
jmp 0x48d381
call fcn.0048d3d0
mov bl, al
add esp, 8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
test eax, eax
je 0x48d3a3
cmp eax, 0xffffffff
je 0x48d3b2
mov eax, dword [ebp - 0x10]
lock xadd dword [eax], esi
dec esi
setne al
test al, al
jne 0x48d3b2
push 4
push 2
push dword [ebp - 0x10]
call fcn.00425140
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48d3d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e7b5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
push 1
push 0x58c1fc
push 2
call fcn.0042e460
test al, al
je 0x48d431
lea eax, [ebp - 0xe]
push eax
call fcn.00439cf0
add esp, 4
mov ecx, esi
movzx eax, word [eax]
push 1
push eax
call fcn.00429ab0
cmp eax, 3
jle 0x48d57e
mov ecx, dword [esi]
cmp dword [ecx + 4], 2
jne 0x48d448
mov eax, dword [ecx + 0xc]
cmp word [eax + ecx + 2], 0x3a
je 0x48d57e
cmp byte [ebp + 0xc], 0
je 0x48d4c3
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00489a40
add esp, 8
push 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0042f930
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x10]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx]
test ecx, ecx
je 0x48d49c
cmp ecx, 0xffffffff
je 0x48d4ab
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x48d4ab
push 4
push 2
push dword [ebp - 0x10]
call fcn.00425140
add esp, 0xc
test edi, edi
je 0x48d4c3
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x12]
push eax
call fcn.00439cf0
add esp, 4
mov ecx, esi
movzx eax, word [eax]
push 1
push 0xffffffffffffffff
push eax
call fcn.0042b070
cmp eax, 1
jl 0x48d57e
push eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0042b110
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push 1
push eax
call fcn.0048d3d0
add esp, 8
test al, al
jne 0x48d52a
lea ecx, [ebp - 0x18]
xor bl, bl
call fcn.00406190
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call fcn.0048fa20
add esp, 8
test al, al
je 0x48d557
lea ecx, [ebp - 0x18]
mov bl, 1
call fcn.00406190
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0xd]
call fcn.0048c960
lea ecx, [ebp - 0x18]
mov bl, al
call fcn.00406190
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48f830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x57ebb5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x732480]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x25c]
mov esi, dword [ebp + 0x260]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x48f887
cmp ecx, 0xffffffff
je 0x48f887
lock inc dword [eax]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0
cmp dword [eax + 4], 2
jne 0x48f8ff
mov ecx, dword [eax + 0xc]
cmp word [ecx + eax + 2], 0x3a
jne 0x48f8ff
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
cmp ecx, 1
je 0x48f8b0
test ecx, ecx
jne 0x48f8c3
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
and edx, 0x7fffffff
add ecx, 2
cmp ecx, edx
jbe 0x48f8d7
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x10]
push 1
add eax, 2
push eax
call fcn.0042c850
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov edx, 0x5c
add ecx, eax
mov eax, dword [eax + 4]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x10]
inc dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
add ecx, eax
mov eax, dword [eax + 4]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00489a40
add esp, 8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0042f930
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x48f961
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x48f939
cmp eax, 0x20
jne 0x48f961
lea eax, [ebp]
push eax
push ecx
mov ecx, dword [ebp - 0x14]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ecx]
test eax, eax
je 0x48f953
cmp eax, 0xffffffff
je 0x48f953
lock inc dword [ecx]
call fcn.0048e990
add esp, 8
test al, al
cmovne ebx, dword [ebp]
test esi, esi
je 0x48f96d
cmp ebx, 0xffffffff
setne al
mov byte [esi], al
cmp ebx, 0xffffffff
jne 0x48f976
xor bl, bl
jmp 0x48f97c
shr ebx, 4
and bl, 1
mov eax, dword [ebp - 0x14]
or esi, 0xffffffff
mov eax, dword [eax]
test eax, eax
je 0x48f99d
cmp eax, esi
je 0x48f9ac
mov eax, dword [ebp - 0x14]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x48f9ac
push 4
push 2
push dword [ebp - 0x14]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x48f9c9
cmp eax, 0xffffffff
je 0x48f9d8
mov eax, dword [ebp - 0x10]
lock xadd dword [eax], esi
dec esi
setne al
test al, al
jne 0x48f9d8
push 4
push 2
push dword [ebp - 0x10]
call fcn.00425140
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.00553392
lea esp, [ebp + 0x254]
pop ebp
ret
Function at 0x48fa20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ebed
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x48fa52
mov dword [esi], 0
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00489a40
add esp, 8
push 0
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.0042f930
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test esi, esi
je 0x48fa8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x48faaa
cmp eax, 0xffffffff
je 0x48fab9
mov ecx, dword [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
setne cl
test cl, cl
jne 0x48fab9
push 4
push 2
push dword [ebp + 0xc]
call fcn.00425140
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret