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

Disassembly:
sub esp, 0x21c
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, 0x70f0d4
push ebx
mov dword [esp + 8], eax
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
mov dword [esp + 0x10], eax
mov ecx, 1
lock xadd dword [eax], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0xff
lea edx, [esp + 0x20]
push edx
push 1
push edi
call ebx
test eax, eax
je 0x561257
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00502070
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004fc970
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x561257
mov ecx, dword [esp + 4]
push ecx
call fcn.004ff160
add esp, 4
mov edx, dword [esp + 0x10]
cmp dword [edx + 8], 0
je 0x5612d2
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x14]
call fcn.00500a80
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0xc]
lea edx, [esp + 0xf]
push edx
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00563be0
add esp, 0x10
cmp byte [esp + 0xf], 0
je 0x5612b8
mov edx, dword [esp + 0x14]
cmp byte [edx], 0
jne 0x5612b8
cmp eax, 0x814
jne 0x5612b8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x69bf50
call fcn.00501d30
mov ecx, dword [esp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5612d2
mov eax, dword [esp + 4]
push eax
call fcn.005057e0
add esp, 4
mov eax, dword [esp + 8]
cmp dword [eax + 8], 0
je 0x56131c
mov dword [esi], eax
mov ecx, 1
lock xadd dword [eax], ecx
mov edx, dword [esp + 0x10]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x561301
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004ff160
add esp, 4
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x5613aa
mov ecx, dword [esp + 8]
push ecx
jmp 0x5613a2
push 0xff
lea edx, [esp + 0x20]
push edx
push 0x59
push edi
call ebx
test eax, eax
je 0x561367
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00502070
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
call fcn.004fc970
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x561367
mov ecx, dword [esp + 4]
push ecx
call fcn.004ff160
add esp, 4
mov eax, dword [esp + 8]
mov dword [esi], eax
mov edx, 1
lock xadd dword [eax], edx
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x561390
mov edx, dword [esp + 0x10]
push edx
call fcn.004ff160
add esp, 4
mov eax, dword [esp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5613aa
mov edx, dword [esp + 8]
push edx
call fcn.004ff160
add esp, 4
mov ecx, dword [esp + 0x21c]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.005c397a
add esp, 0x21c
ret
Function at 0x561780
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x9c
push ebx
push esi
push edi
mov ebx, ecx
test eax, eax
jne 0x561798
mov eax, 0x40
cmp eax, 0x40
mov ecx, eax
mov dword [esp + 0x14], ecx
jle 0x5617b8
add eax, eax
push eax
call fcn.005057d0
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x10], ecx
jmp 0x5617c4
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0x40
mov esi, dword [esp + 0xb0]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ecx
mov ecx, dword [ebx + 4]
push eax
push esi
push ecx
mov dword [esp + 0x28], eax
call edi
test eax, eax
jne 0x561802
mov esi, dword [esp + 0xac]
mov dword [esi], 0x70f0d4
mov edx, 0x70f0d4
mov eax, 1
lock xadd dword [edx], eax
jmp 0x561892
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x56187b
mov edx, dword [ebx + 4]
push 0
push 0
push esi
push edx
call edi
test eax, eax
jne 0x561843
mov esi, dword [esp + 0xac]
mov dword [esi], 0x70f0d4
mov eax, 0x70f0d4
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
cmp eax, edx
jmp 0x56189c
cmp eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
jl 0x561855
lea ecx, [esp + 0xc]
mov ecx, dword [ecx]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.005451d0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
push edx
push eax
push esi
push ecx
call edi
test eax, eax
je 0x5617e2
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0xac]
push 0xffffffffffffffff
push edx
push esi
call fcn.00502070
add esp, 0xc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x5618a7
push eax
call fcn.005057e0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret 0xc
Function at 0x561b30
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xc8
mov eax, dword [0x711ab8]
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 0x561cda
sub eax, 1
je 0x561c7a
sub eax, 1
jne 0x561bc0
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 0x561c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x561be9
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x561bc0
push eax
call fcn.005057e0
add esp, 4
mov dword [edi + 8], closesocket
mov dword [edi], 0
mov ecx, dword [esp + 0xd0]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005c397a
add esp, 0xc8
ret 8
mov ecx, 0xff
cmp dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x1c]
jg 0x561c00
lea eax, [esp + 0x18]
mov edx, dword [eax]
push edx
push ecx
lea ecx, [esp + 0x24]
call fcn.005451d0
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 0x561bab
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00502070
add esp, 0xc
push eax
mov ecx, edi
call fcn.00511230
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x561c5c
mov eax, dword [esp + 0x14]
push eax
call fcn.004ff160
add esp, 4
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x561bcd
push eax
call fcn.005057e0
add esp, 4
jmp 0x561bcd
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 0x561bc0
push 0xffffffffffffffff
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00502070
add esp, 0xc
push eax
mov ecx, edi
call fcn.00511230
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x561bcd
mov edx, dword [esp + 0x10]
push edx
call fcn.004ff160
add esp, 4
jmp 0x561bcd
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 0x561bc0
push 0xffffffffffffffff
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00502070
add esp, 0xc
push eax
mov ecx, edi
call fcn.00511230
mov ecx, dword [esp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x561bcd
mov eax, dword [esp + 0xc]
push eax
call fcn.004ff160
add esp, 4
jmp 0x561bcd
Function at 0x568a90
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 0x568c46
mov ebp, dword [esp + 0x24]
jg 0x568abb
cmp ebp, eax
jb 0x568c46
cmp ebp, ebp
jne 0x568c46
cmp ecx, eax
jne 0x568c46
push esi
xor esi, esi
mov dword [esp + 0x1c], eax
cmp dword [edi + 0x58], eax
je 0x568b88
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.005c8528
mov ecx, dword [edi + 0x58]
push ecx
mov ebx, eax
call fcn.005c8254
add esp, 0x14
test eax, eax
setne al
cmp byte [esp + 0x13], 0
mov byte [esp + 0x12], al
je 0x568b43
test al, al
je 0x568b43
test ebx, ebx
jne 0x568b43
mov edx, dword [edi + 0x58]
push ebx
push edx
call fcn.005cb131
add esp, 4
push edx
push eax
mov eax, dword [edi + 0x58]
push eax
call fcn.005ccc2f
mov al, byte [esp + 0x22]
add esp, 0x10
mov byte [esp + 0x13], bl
jmp 0x568b4a
add esi, ebx
adc dword [esp + 0x1c], 0
test al, al
jne 0x568c36
test ebx, ebx
jne 0x568b6f
call fcn.005c9791
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x568ae0
jmp 0x568be3
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x2c]
jg 0x568be7
jl 0x568ae0
cmp esi, ebp
jae 0x568be7
jmp 0x568ae0
cmp dword [edi + 0x70], 0xffffffff
je 0x568bf7
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.005cca96
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x568bbc
call fcn.005c9791
cmp dword [eax], 4
je 0x568b90
jmp 0x568bdb
test ebx, ebx
jle 0x568bdb
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 0x568b90
jg 0x568bdb
cmp esi, ebp
jb 0x568b90
cmp ebx, 0xffffffff
setne byte [esp + 0x12]
mov al, byte [esp + 0x12]
test al, al
jne 0x568c36
mov ecx, esi
or ecx, dword [esp + 0x1c]
jne 0x568c36
mov ebx, dword [esp + 0x14]
or esi, 0xffffffff
mov dword [esp + 0x1c], esi
call fcn.005c9791
mov edx, dword [eax]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004f8380
add esp, 8
push eax
push 1
mov ecx, ebx
call fcn.0056bae0
mov ecx, dword [esp + 0x24]
or edx, esi
lock xadd dword [ecx], edx
jne 0x568c36
mov eax, dword [esp + 0x24]
push eax
call fcn.004ff160
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.004f8380
add esp, 8
push eax
push 1
mov ecx, ebx
call fcn.0056bae0
mov edx, dword [esp + 0x20]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x568c79
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004ff160
add esp, 4
pop edi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
add esp, 0x10
ret 0xc
Function at 0x568dc0
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 0x568efb
mov edi, dword [esp + 0x18]
jg 0x568de7
test edi, edi
jb 0x568efb
xor eax, eax
cmp edi, edi
jne 0x568efb
cmp ecx, eax
jne 0x568efb
push ebx
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 0x58], eax
je 0x568e4a
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.005c81d2
add esp, 0x10
add esi, eax
adc ebx, 0
test eax, eax
jne 0x568e3c
call fcn.005c9791
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x568e03
jmp 0x568e8f
cmp ebx, dword [esp + 0x20]
jg 0x568e8f
jl 0x568e03
cmp esi, edi
jae 0x568e8f
jmp 0x568e03
cmp dword [ebp + 0x70], 0xffffffff
je 0x568e8f
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.005cd3b1
add esp, 0xc
cmp eax, 0xffffffff
jne 0x568e7a
call fcn.005c9791
cmp dword [eax], 4
je 0x568e50
jmp 0x568e8f
test eax, eax
jle 0x568e8f
cdq
add esi, eax
adc ebx, edx
cmp ebx, dword [esp + 0x20]
jl 0x568e50
jg 0x568e8f
cmp esi, edi
jb 0x568e50
or edi, dword [esp + 0x20]
je 0x568eef
mov eax, esi
or eax, ebx
jne 0x568eef
or esi, 0xffffffff
or ebx, esi
call fcn.005c9791
mov edi, eax
call fcn.005c9791
mov ecx, dword [edi]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebp, eax
call fcn.004f8380
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.0056bae0
mov ecx, dword [esp + 0x18]
or edx, esi
lock xadd dword [ecx], edx
jne 0x568eef
mov eax, dword [esp + 0x18]
push eax
call fcn.004ff160
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.004f8380
add esp, 8
push eax
push 2
mov ecx, esi
call fcn.0056bae0
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x568f2e
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004ff160
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebp
pop ecx
ret 0xc
Function at 0x569b70
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 0x6bd3ac
push 1
push 0
push 0x6bd3bc
xor bl, bl
call edi
cmp eax, 0x800401f0
jne 0x569bd3
push 0
mov bl, 1
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x1c]
push eax
push 0x6bd3ac
push 1
push 0
push 0x6bd3bc
call edi
test eax, eax
jl 0x569d0a
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.00502990
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx]
mov ecx, eax
call fcn.00500ec0
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 0x569c3e
mov eax, dword [esp + 0x10]
push eax
call fcn.004ff160
add esp, 4
test edi, edi
jl 0x569cf7
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.00502990
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx]
mov ecx, eax
call fcn.00500ec0
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 0x569ca9
mov eax, dword [esp + 0x10]
push eax
call fcn.004ff160
add esp, 4
test edi, edi
jl 0x569cf7
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x6bd3cc
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x569cf7
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx]
push 1
lea ecx, [esp + 0x18]
call fcn.00500ec0
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edi + 0x18]
push edx
call eax
test eax, eax
jl 0x569ceb
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 0x569d3d
lea eax, [esp + 0x10]
push 0xffffffffffffffff
push eax
call fcn.004f8380
add esp, 8
push eax
push 0xa
mov ecx, esi
call fcn.0056bae0
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x569d3d
mov eax, dword [esp + 0x10]
push eax
call fcn.004ff160
add esp, 4
test bl, bl
je 0x569d47
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x569d61
mov eax, dword [esp + 0x14]
push eax
call fcn.004ff160
add esp, 4
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x569eb0
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 0x569f8f
or edx, 0xffffffff
cmp dword [edi + 0x70], edx
jne 0x569f8b
cmp dword [edi + 0x5c], edx
jne 0x569ee4
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 0x569f03
mov eax, 0x69f230
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 0x569f52
mov eax, dword [esp + 0x14]
test eax, eax
je 0x569f44
add esi, eax
adc ebx, 0
sub ebp, eax
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x10], ebp
jg 0x569f44
jl 0x569ef2
cmp esi, dword [esp + 0x24]
jb 0x569ef2
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 0x569f44
lea eax, [esp + 0x20]
push 0xffffffffffffffff
push eax
call fcn.004f8380
mov ecx, dword [esp + 0x20]
add esp, 8
push eax
push 1
call fcn.0056bae0
lea ecx, [esp + 0x20]
call fcn.00401110
pop ebp
pop ebx
or eax, 0xffffffff
pop edi
or edx, eax
pop esi
add esp, 0xc
ret 0xc
test eax, eax
je 0x569fee
call fcn.00569b20
test al, al
je 0x569fee
mov ecx, dword [edi + 0x58]
push ecx
call fcn.005c8254
add esp, 4
test eax, eax
je 0x569fee
call fcn.005c9791
mov edx, dword [eax]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004f8380
add esp, 8
push eax
push 1
mov ecx, esi
call fcn.0056bae0
mov ecx, dword [esp + 0x18]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x569fe1
mov eax, dword [esp + 0x18]
push eax
call fcn.004ff160
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.00568a90
pop edi
pop esi
add esp, 0xc
ret 0xc
Function at 0x56a010
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 0x56a0ee
or eax, 0xffffffff
cmp dword [ebp + 0x70], eax
jne 0x56a0ee
cmp dword [ebp + 0x5c], eax
jne 0x56a044
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 0x56a065
mov eax, 0x69f230
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 0x56a0b5
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x56a0a7
xor eax, eax
add esi, ecx
adc edi, eax
sub ebx, ecx
sbb dword [esp + 0x20], eax
cmp edi, dword [esp + 0x30]
jg 0x56a0a7
jl 0x56a050
cmp esi, dword [esp + 0x2c]
jb 0x56a050
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 0x56a0a7
lea eax, [esp + 0x28]
push 0xffffffffffffffff
push eax
call fcn.004f8380
mov ecx, dword [esp + 0x20]
add esp, 8
push eax
push 2
call fcn.0056bae0
lea ecx, [esp + 0x28]
call fcn.00401110
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.00568dc0
pop edi
pop ebp
add esp, 0x14
ret 0xc
Function at 0x56a800
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 0x56a8e7
cmp dword [eax + 0x70], ecx
jne 0x56a8e7
cmp dword [eax + 0x58], 0
jne 0x56a8e7
lea edi, [eax + 0x10]
mov ecx, edi
call fcn.0056c950
test al, al
jne 0x56a98f
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.0056c430
push eax
lea ecx, [esp + 0x18]
call fcn.0054c3e0
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x56a86d
mov eax, dword [esp + 0x10]
push eax
call fcn.004ff160
add esp, 4
push ecx
mov eax, esp
lea ecx, [esp + 0x18]
mov dword [eax], 3
call fcn.0054bab0
test al, al
je 0x56a8d2
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0054c7b0
mov bl, al
test bl, bl
jne 0x56a8bd
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00545120
push eax
push 0xc
mov ecx, esi
call fcn.0056bae0
lea ecx, [esp + 0x20]
call fcn.00401110
lea ecx, [esp + 0x14]
call fcn.0054c790
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
lea ecx, [esp + 0x14]
call fcn.0054c790
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov edi, ecx
cmp edi, 0xffffffff
jne 0x56a919
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x56a906
push ecx
call fcn.005cd982
push eax
call fcn.005cd594
add esp, 8
jmp 0x56a912
mov ecx, dword [eax + 0x70]
push ecx
call fcn.005cd594
add esp, 4
mov edi, eax
cmp edi, 0xffffffff
je 0x56a98f
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 0x56a984
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x56a984
cmp ebx, dword [esp + 0x24]
jg 0x56a964
jl 0x56a95e
cmp ebp, dword [esp + 0x20]
jae 0x56a964
lea eax, [esp + 0x14]
jmp 0x56a968
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 0x56ce80
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push 0
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00569d70
add esp, 8
mov ecx, eax
call fcn.00500ec0
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 0x56cebf
mov ecx, dword [esp + 4]
push ecx
call fcn.004ff160
add esp, 4
mov al, bl
pop ebx
pop ecx
ret

Function at 0x56ced0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x25c
mov eax, dword [0x711ab8]
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 0x56cf23
mov edx, dword [eax + 0xc]
cmp word [edx + 2], 0x3a
jne 0x56cf23
push ecx
mov eax, esp
mov ecx, 0x5c
mov word [eax], cx
lea ecx, [esp + 8]
call fcn.00500530
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.00569d70
add esp, 8
mov ecx, eax
call fcn.00500ec0
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 0x56cf5f
mov eax, dword [esp + 8]
push eax
call fcn.004ff160
add esp, 4
cmp ebx, 0xffffffff
jne 0x56cf9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x56cf74
cmp eax, 0x20
jne 0x56cf9a
lea ecx, [esp + 0xc]
push ecx
push ecx
mov edx, esp
lea eax, [esp + 0xc]
push eax
push edx
call fcn.00569d70
add esp, 8
call fcn.0056cdb0
add esp, 8
test al, al
je 0x56cf9a
mov ebx, dword [esp + 0xc]
test esi, esi
je 0x56cfa6
cmp ebx, 0xffffffff
setne cl
mov byte [esi], cl
mov edx, dword [esp + 4]
or eax, 0xffffffff
cmp ebx, eax
jne 0x56cfdc
lock xadd dword [edx], eax
jne 0x56cfc4
mov ecx, dword [esp + 4]
push ecx
call fcn.004ff160
add esp, 4
xor al, al
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.005c397a
add esp, 0x25c
ret
shr ebx, 4
and bl, 1
lock xadd dword [edx], eax
jne 0x56cff5
mov ecx, dword [esp + 4]
push ecx
call fcn.004ff160
add esp, 4
mov ecx, dword [esp + 0x25c]
mov al, bl
pop ebx
xor ecx, esp
call fcn.005c397a
add esp, 0x25c
ret