joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e22b0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xc8
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xd0]
sub eax, 0
push ebx
push esi
push edi
mov edi, dword [esp + 0xd8]
mov esi, ecx
je 0x4e245a
sub eax, 1
je 0x4e23fa
sub eax, 1
jne 0x4e2340
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, 0x40
lea ecx, [esp + 0x2c]
push eax
mov edx, ecx
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
push 0x1008
push eax
mov dword [esp + 0x34], ecx
call ebx
test eax, eax
jne 0x4e23a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4e2369
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x4e2340
push eax
call fcn.00486210
add esp, 4
mov dword [edi + 8], connect
mov dword [edi], 0
mov ecx, dword [esp + 0xd0]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fdb4a
add esp, 0xc8
ret 8
mov ecx, 0xff
cmp dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x1c]
jg 0x4e2380
lea eax, [esp + 0x18]
mov edx, dword [eax]
push edx
push ecx
lea ecx, [esp + 0x24]
call fcn.004c5950
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 4]
push eax
push ecx
push 0x1008
push edx
call ebx
test eax, eax
je 0x4e232b
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00482aa0
add esp, 0xc
push eax
mov ecx, edi
call fcn.00491c50
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4e23dc
mov eax, dword [esp + 0x14]
push eax
call fcn.0047fb60
add esp, 4
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x4e234d
push eax
call fcn.00486210
add esp, 4
jmp 0x4e234d
mov eax, dword [esi + 4]
push 0xd
lea edx, [esp + 0xb8]
push edx
push 0x14
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4e2340
push 0xffffffffffffffff
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00482aa0
add esp, 0xc
push eax
mov ecx, edi
call fcn.00491c50
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4e234d
mov edx, dword [esp + 0x10]
push edx
call fcn.0047fb60
add esp, 4
jmp 0x4e234d
mov ecx, dword [esi + 4]
push 9
lea eax, [esp + 0xb8]
push eax
push 0x15
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4e2340
push 0xffffffffffffffff
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00482aa0
add esp, 0xc
push eax
mov ecx, edi
call fcn.00491c50
mov ecx, dword [esp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4e234d
mov eax, dword [esp + 0xc]
push eax
call fcn.0047fb60
add esp, 4
jmp 0x4e234d
Function at 0x4e9210
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push edi
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov ebx, dword [edi + 0xc]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x10], ebx
jl 0x4e93c6
mov ebp, dword [esp + 0x24]
jg 0x4e923b
cmp ebp, eax
jb 0x4e93c6
cmp ebp, ebp
jne 0x4e93c6
cmp ecx, eax
jne 0x4e93c6
push esi
xor esi, esi
mov dword [esp + 0x1c], eax
cmp dword [edi + 0x58], eax
je 0x4e9308
mov byte [esp + 0x13], 1
mov eax, dword [edi + 0x58]
mov edx, dword [esp + 0x24]
push eax
mov ecx, ebp
sub ecx, esi
push ecx
lea eax, [esi + edx]
push 1
push eax
call fcn.0050158a
mov ecx, dword [edi + 0x58]
push ecx
mov ebx, eax
call fcn.005012b6
add esp, 0x14
test eax, eax
setne al
cmp byte [esp + 0x13], 0
mov byte [esp + 0x12], al
je 0x4e92c3
test al, al
je 0x4e92c3
test ebx, ebx
jne 0x4e92c3
mov edx, dword [edi + 0x58]
push ebx
push edx
call fcn.00504311
add esp, 4
push edx
push eax
mov eax, dword [edi + 0x58]
push eax
call fcn.00505e0f
mov al, byte [esp + 0x22]
add esp, 0x10
mov byte [esp + 0x13], bl
jmp 0x4e92ca
add esi, ebx
adc dword [esp + 0x1c], 0
test al, al
jne 0x4e93b6
test ebx, ebx
jne 0x4e92ef
call fcn.00502971
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x4e9260
jmp 0x4e9363
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x2c]
jg 0x4e9367
jl 0x4e9260
cmp esi, ebp
jae 0x4e9367
jmp 0x4e9260
cmp dword [edi + 0x70], 0xffffffff
je 0x4e9377
mov edi, edi
mov ecx, dword [esp + 0x24]
mov eax, ebp
sub eax, esi
push eax
mov eax, dword [edi + 0x70]
lea edx, [esi + ecx]
push edx
push eax
call fcn.00505c76
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x4e933c
call fcn.00502971
cmp dword [eax], 4
je 0x4e9310
jmp 0x4e935b
test ebx, ebx
jle 0x4e935b
mov eax, ebx
cdq
add esi, eax
mov eax, dword [esp + 0x1c]
adc eax, edx
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jl 0x4e9310
jg 0x4e935b
cmp esi, ebp
jb 0x4e9310
cmp ebx, 0xffffffff
setne byte [esp + 0x12]
mov al, byte [esp + 0x12]
test al, al
jne 0x4e93b6
mov ecx, esi
or ecx, dword [esp + 0x1c]
jne 0x4e93b6
mov ebx, dword [esp + 0x14]
or esi, 0xffffffff
mov dword [esp + 0x1c], esi
call fcn.00502971
mov edx, dword [eax]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00478c90
add esp, 8
push eax
push 1
mov ecx, ebx
call fcn.004ec2a0
mov ecx, dword [esp + 0x24]
or edx, esi
lock xadd dword [ecx], edx
jne 0x4e93b6
mov eax, dword [esp + 0x24]
push eax
call fcn.0047fb60
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
lea ecx, [esp + 0x20]
push 0x16
push ecx
call fcn.00478c90
add esp, 8
push eax
push 1
mov ecx, ebx
call fcn.004ec2a0
mov edx, dword [esp + 0x20]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4e93f9
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0047fb60
add esp, 4
pop edi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
add esp, 0x10
ret 0xc
Function at 0x4e9540
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0xc], esi
test ecx, ecx
jl 0x4e967b
mov edi, dword [esp + 0x18]
jg 0x4e9567
test edi, edi
jb 0x4e967b
xor eax, eax
cmp edi, edi
jne 0x4e967b
cmp ecx, eax
jne 0x4e967b
push ebx
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 0x58], eax
je 0x4e95ca
mov eax, dword [ebp + 0x58]
mov edx, dword [esp + 0x18]
push eax
mov ecx, edi
sub ecx, esi
push ecx
lea eax, [esi + edx]
push 1
push eax
call fcn.00501141
add esp, 0x10
add esi, eax
adc ebx, 0
test eax, eax
jne 0x4e95bc
call fcn.00502971
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x4e9583
jmp 0x4e960f
cmp ebx, dword [esp + 0x20]
jg 0x4e960f
jl 0x4e9583
cmp esi, edi
jae 0x4e960f
jmp 0x4e9583
cmp dword [ebp + 0x70], 0xffffffff
je 0x4e960f
mov eax, dword [esp + 0x18]
mov edx, edi
sub edx, esi
push edx
mov edx, dword [ebp + 0x70]
lea ecx, [esi + eax]
push ecx
push edx
call fcn.005066d9
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4e95fa
call fcn.00502971
cmp dword [eax], 4
je 0x4e95d0
jmp 0x4e960f
test eax, eax
jle 0x4e960f
cdq
add esi, eax
adc ebx, edx
cmp ebx, dword [esp + 0x20]
jl 0x4e95d0
jg 0x4e960f
cmp esi, edi
jb 0x4e95d0
or edi, dword [esp + 0x20]
je 0x4e966f
mov eax, esi
or eax, ebx
jne 0x4e966f
or esi, 0xffffffff
or ebx, esi
call fcn.00502971
mov edi, eax
call fcn.00502971
mov ecx, dword [edi]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebp, eax
call fcn.00478c90
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
xor eax, eax
cmp dword [ebp], 0x1c
sete al
lea eax, [eax + eax + 2]
push eax
call fcn.004ec2a0
mov ecx, dword [esp + 0x18]
or edx, esi
lock xadd dword [ecx], edx
jne 0x4e966f
mov eax, dword [esp + 0x18]
push eax
call fcn.0047fb60
add esp, 4
mov edx, ebx
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 0xc
lea ecx, [esp + 0x14]
push 0x16
push ecx
call fcn.00478c90
add esp, 8
push eax
push 2
mov ecx, esi
call fcn.004ec2a0
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4e96ae
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0047fb60
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebp
pop ecx
ret 0xc
Function at 0x4ea2f0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push ebx
push esi
mov esi, ecx
push edi
mov byte [esp + 0xf], 0
mov dword [esp + 0x14], eax
mov ecx, 1
lock xadd dword [eax], ecx
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea edx, [esp + 0x1c]
push edx
push 0x61aa44
push 1
push 0
push 0x61aa54
xor bl, bl
call edi
cmp eax, 0x800401f0
jne 0x4ea353
push 0
mov bl, 1
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x1c]
push eax
push 0x61aa44
push 1
push 0
push 0x61aa54
call edi
test eax, eax
jl 0x4ea48a
push 1
push ecx
mov eax, esp
mov ecx, 0x5c
push ecx
mov word [eax], cx
mov eax, esp
mov edx, 0x2f
mov word [eax], dx
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
push 3
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004833c0
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx]
mov ecx, eax
call fcn.004818a0
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edi + 0x50]
push edx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ea3be
mov eax, dword [esp + 0x10]
push eax
call fcn.0047fb60
add esp, 4
test edi, edi
jl 0x4ea477
push 1
push ecx
mov eax, esp
mov ecx, 0x5c
push ecx
mov word [eax], cx
mov eax, esp
mov edx, 0x2f
mov word [eax], dx
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
push 4
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004833c0
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx]
mov ecx, eax
call fcn.004818a0
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edi + 0x24]
push edx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ea429
mov eax, dword [esp + 0x10]
push eax
call fcn.0047fb60
add esp, 4
test edi, edi
jl 0x4ea477
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x61aa64
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x4ea477
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx]
push 1
lea ecx, [esp + 0x18]
call fcn.004818a0
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edi + 0x18]
push edx
call eax
test eax, eax
jl 0x4ea46b
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp byte [esp + 0xf], 0
jne 0x4ea4bd
lea eax, [esp + 0x10]
push 0xffffffffffffffff
push eax
call fcn.00478c90
add esp, 8
push eax
push 0xa
mov ecx, esi
call fcn.004ec2a0
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ea4bd
mov eax, dword [esp + 0x10]
push eax
call fcn.0047fb60
add esp, 4
test bl, bl
je 0x4ea4c7
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ea4e1
mov eax, dword [esp + 0x14]
push eax
call fcn.0047fb60
add esp, 4
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x4ea640
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0xc]
mov dword [esp + 0x10], esi
test eax, eax
jne 0x4ea71f
or edx, 0xffffffff
cmp dword [edi + 0x70], edx
jne 0x4ea71b
cmp dword [edi + 0x5c], edx
jne 0x4ea674
pop edi
mov eax, edx
pop esi
add esp, 0xc
ret 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x24]
xor esi, esi
mov dword [esp + 0x10], ebp
xor ebx, ebx
lea eax, [esp + 0x10]
cmp ebp, 0x2000000
jb 0x4ea693
mov eax, 0x6040c0
mov eax, dword [eax]
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi + 0x5c]
push eax
lea eax, [esi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ea6e2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4ea6d4
add esi, eax
adc ebx, 0
sub ebp, eax
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x10], ebp
jg 0x4ea6d4
jl 0x4ea682
cmp esi, dword [esp + 0x24]
jb 0x4ea682
pop ebp
mov edx, ebx
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret 0xc
mov edx, esi
or edx, ebx
jne 0x4ea6d4
lea eax, [esp + 0x20]
push 0xffffffffffffffff
push eax
call fcn.00478c90
mov ecx, dword [esp + 0x20]
add esp, 8
push eax
push 1
call fcn.004ec2a0
lea ecx, [esp + 0x20]
call fcn.00497990
pop ebp
pop ebx
or eax, 0xffffffff
pop edi
or edx, eax
pop esi
add esp, 0xc
ret 0xc
test eax, eax
je 0x4ea77e
call fcn.004ea2a0
test al, al
je 0x4ea77e
mov ecx, dword [edi + 0x58]
push ecx
call fcn.005012b6
add esp, 4
test eax, eax
je 0x4ea77e
call fcn.00502971
mov edx, dword [eax]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00478c90
add esp, 8
push eax
push 1
mov ecx, esi
call fcn.004ec2a0
mov ecx, dword [esp + 0x18]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ea771
mov eax, dword [esp + 0x18]
push eax
call fcn.0047fb60
add esp, 4
or eax, 0xffffffff
pop edi
or edx, eax
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
mov ecx, edi
call fcn.004e9210
pop edi
pop esi
add esp, 0xc
ret 0xc
Function at 0x4ea7a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x58], edi
jne 0x4ea87e
or eax, 0xffffffff
cmp dword [ebp + 0x70], eax
jne 0x4ea87e
cmp dword [ebp + 0x5c], eax
jne 0x4ea7d4
pop edi
mov edx, eax
pop ebp
add esp, 0x14
ret 0xc
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov dword [esp + 0x20], edi
xor esi, esi
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
cmp ebx, 0x2000000
jb 0x4ea7f5
mov eax, 0x6040c0
mov eax, dword [eax]
mov edx, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 0x5c]
push eax
lea eax, [esi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ea845
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4ea837
xor eax, eax
add esi, ecx
adc edi, eax
sub ebx, ecx
sbb dword [esp + 0x20], eax
cmp edi, dword [esp + 0x30]
jg 0x4ea837
jl 0x4ea7e0
cmp esi, dword [esp + 0x2c]
jb 0x4ea7e0
mov eax, esi
pop esi
pop ebx
mov edx, edi
pop edi
pop ebp
add esp, 0x14
ret 0xc
mov edx, esi
or edx, edi
jne 0x4ea837
lea eax, [esp + 0x28]
push 0xffffffffffffffff
push eax
call fcn.00478c90
mov ecx, dword [esp + 0x20]
add esp, 8
push eax
push 2
call fcn.004ec2a0
lea ecx, [esp + 0x28]
call fcn.00497990
pop esi
pop ebx
or eax, 0xffffffff
pop edi
or edx, eax
pop ebp
add esp, 0x14
ret 0xc
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.004e9540
pop edi
pop ebp
add esp, 0x14
ret 0xc
Function at 0x4eafb0
Capabilities:
Clear file content

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x5c]
push edi
cmp ecx, 0xffffffff
jne 0x4eb097
cmp dword [eax + 0x70], ecx
jne 0x4eb097
cmp dword [eax + 0x58], 0
jne 0x4eb097
lea edi, [eax + 0x10]
mov ecx, edi
call fcn.004ed110
test al, al
jne 0x4eb13f
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.004ecbf0
push eax
lea ecx, [esp + 0x18]
call fcn.004ccb90
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4eb01d
mov eax, dword [esp + 0x10]
push eax
call fcn.0047fb60
add esp, 4
push ecx
mov eax, esp
lea ecx, [esp + 0x18]
mov dword [eax], 3
call fcn.004cc260
test al, al
je 0x4eb082
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004ccf60
mov bl, al
test bl, bl
jne 0x4eb06d
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.004c58a0
push eax
push 0xc
mov ecx, esi
call fcn.004ec2a0
lea ecx, [esp + 0x20]
call fcn.00497990
lea ecx, [esp + 0x14]
call fcn.004ccf40
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
lea ecx, [esp + 0x14]
call fcn.004ccf40
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov edi, ecx
cmp edi, 0xffffffff
jne 0x4eb0c9
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x4eb0b6
push ecx
call fcn.00506caa
push eax
call fcn.005068bc
add esp, 8
jmp 0x4eb0c2
mov ecx, dword [eax + 0x70]
push ecx
call fcn.005068bc
add esp, 4
mov edi, eax
cmp edi, 0xffffffff
je 0x4eb13f
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x20]
mov ebp, eax
mov eax, dword [esp + 0x24]
mov ebx, edx
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
call edx
test al, al
je 0x4eb134
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4eb134
cmp ebx, dword [esp + 0x24]
jg 0x4eb114
jl 0x4eb10e
cmp ebp, dword [esp + 0x20]
jae 0x4eb114
lea eax, [esp + 0x14]
jmp 0x4eb118
lea eax, [esp + 0x20]
mov ecx, dword [eax + 4]
mov edx, dword [esi]
mov eax, dword [eax]
mov edx, dword [edx + 0x18]
push ecx
push eax
mov ecx, esi
call edx
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push ebx
push ebp
mov ecx, esi
call edx
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
Function at 0x4ed640
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push 0
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004ea500
add esp, 8
mov ecx, eax
call fcn.004818a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [esp + 4]
test eax, eax
setne bl
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4ed67f
mov ecx, dword [esp + 4]
push ecx
call fcn.0047fb60
add esp, 4
mov al, bl
pop ebx
pop ecx
ret

Function at 0x4ed690
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x25c
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x258], eax
mov eax, dword [esp + 0x260]
mov eax, dword [eax]
push ebx
mov dword [esp + 4], eax
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esp + 4]
cmp dword [eax + 8], 2
jne 0x4ed6e3
mov edx, dword [eax + 0xc]
cmp word [edx + 2], 0x3a
jne 0x4ed6e3
push ecx
mov eax, esp
mov ecx, 0x5c
mov word [eax], cx
lea ecx, [esp + 8]
call fcn.004826f0
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004ea500
add esp, 8
mov ecx, eax
call fcn.004818a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 8]
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ed71f
mov eax, dword [esp + 8]
push eax
call fcn.0047fb60
add esp, 4
cmp ebx, 0xffffffff
jne 0x4ed75a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4ed734
cmp eax, 0x20
jne 0x4ed75a
lea ecx, [esp + 0xc]
push ecx
push ecx
mov edx, esp
lea eax, [esp + 0xc]
push eax
push edx
call fcn.004ea500
add esp, 8
call fcn.004ed570
add esp, 8
test al, al
je 0x4ed75a
mov ebx, dword [esp + 0xc]
test esi, esi
je 0x4ed766
cmp ebx, 0xffffffff
setne cl
mov byte [esi], cl
mov edx, dword [esp + 4]
or eax, 0xffffffff
cmp ebx, eax
jne 0x4ed79c
lock xadd dword [edx], eax
jne 0x4ed784
mov ecx, dword [esp + 4]
push ecx
call fcn.0047fb60
add esp, 4
xor al, al
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004fdb4a
add esp, 0x25c
ret
shr ebx, 4
and bl, 1
lock xadd dword [edx], eax
jne 0x4ed7b5
mov ecx, dword [esp + 4]
push ecx
call fcn.0047fb60
add esp, 4
mov ecx, dword [esp + 0x25c]
mov al, bl
pop ebx
xor ecx, esp
call fcn.004fdb4a
add esp, 0x25c
ret
Function at 0x4edd20
Capabilities:
Copy file

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebx
push 1
lea eax, [esp + 0xc]
push eax
call fcn.004ed130
mov ecx, eax
call fcn.004818a0
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004ed130
mov ecx, eax
call fcn.004818a0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [esp + 4]
test eax, eax
setne bl
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4edd77
mov ecx, dword [esp + 4]
push ecx
call fcn.0047fb60
add esp, 4
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4edd91
mov ecx, dword [esp + 8]
push ecx
call fcn.0047fb60
add esp, 4
test bl, bl
jne 0x4edda9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
mov ecx, 2
mov dword [edx], eax
mov dword [edx + 4], ecx
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x4eddb0
Capabilities:
Move file

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebx
lea eax, [esp + 8]
push eax
call fcn.004ed130
mov ecx, eax
call fcn.004818a0
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004ed130
mov ecx, eax
call fcn.004818a0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [esp + 4]
test eax, eax
setne bl
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4ede05
mov ecx, dword [esp + 4]
push ecx
call fcn.0047fb60
add esp, 4
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4ede1f
mov ecx, dword [esp + 8]
push ecx
call fcn.0047fb60
add esp, 4
test bl, bl
jne 0x4ede37
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
mov ecx, 2
mov dword [edx], eax
mov dword [edx + 4], ecx
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x4ede40
Capabilities:
Delete file

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
lea eax, [esp + 4]
push eax
call fcn.004ed130
mov ecx, eax
call fcn.004818a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 4]
test eax, eax
setne bl
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ede7d
mov eax, dword [esp + 4]
push eax
call fcn.0047fb60
add esp, 4
test bl, bl
jne 0x4ede95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
mov ecx, 2
mov dword [edx], eax
mov dword [edx + 4], ecx
mov al, bl
pop ebx
pop ecx
ret
Function at 0x4ee2e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
push esi
mov dword [esp + 0x10], 0x6510b4
mov eax, 0x6510b4
mov ecx, 1
lock xadd dword [eax], ecx
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [esp + 0x20]
push edx
push 0x200
call ebp
mov esi, eax
test esi, esi
je 0x4ee3d6
cmp esi, 0x200
jbe 0x4ee39f
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.004fd2d4
add esp, 4
mov edi, eax
push edi
push 0x200
call ebp
test eax, eax
je 0x4ee393
push esi
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00482aa0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
call fcn.0047fb70
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ee393
mov eax, dword [esp + 0x10]
push eax
call fcn.0047fb60
add esp, 4
push edi
call fcn.004fe853
add esp, 4
pop edi
jmp 0x4ee3d6
push esi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00482aa0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.0047fb70
mov eax, dword [esp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4ee3d6
mov edx, dword [esp + 0xc]
push edx
call fcn.0047fb60
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 2
jl 0x4ee42b
cmp eax, 1
jle 0x4ee3f0
mov eax, dword [ecx + 0xc]
movzx eax, word [eax + 2]
jmp 0x4ee3f2
xor eax, eax
cmp ax, 0x3a
jne 0x4ee42b
mov ecx, dword [ecx + 0xc]
mov dx, word [ecx]
lea ecx, [esp + 0xc]
lea eax, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1a]
mov word [esp + 0x1a], dx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
call fcn.0047f280
push eax
lea ecx, [esp + 0x1c]
call fcn.004843a0
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.004ec9f0
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ee45b
mov eax, dword [esp + 0x10]
push eax
call fcn.0047fb60
add esp, 4
mov ecx, dword [esp + 0x420]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004fdb4a
add esp, 0x418
ret