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

Disassembly:
sub esp, 0x21c
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, 0x6c30d4
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 0x528107
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004c9050
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004c3960
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x528107
mov ecx, dword [esp + 4]
push ecx
call fcn.004c6150
add esp, 4
mov edx, dword [esp + 0x10]
cmp dword [edx + 8], 0
je 0x528182
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x14]
call fcn.004c7a70
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.0052aaa0
add esp, 0x10
cmp byte [esp + 0xf], 0
je 0x528168
mov edx, dword [esp + 0x14]
cmp byte [edx], 0
jne 0x528168
cmp eax, 0x814
jne 0x528168
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x652ff8
call fcn.004c8d20
mov ecx, dword [esp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x528182
mov eax, dword [esp + 4]
push eax
call fcn.004cc7c0
add esp, 4
mov eax, dword [esp + 8]
cmp dword [eax + 8], 0
je 0x5281cc
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 0x5281b1
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004c6150
add esp, 4
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x52825a
mov ecx, dword [esp + 8]
push ecx
jmp 0x528252
push 0xff
lea edx, [esp + 0x20]
push edx
push 0x59
push edi
call ebx
test eax, eax
je 0x528217
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004c9050
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
call fcn.004c3960
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x528217
mov ecx, dword [esp + 4]
push ecx
call fcn.004c6150
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 0x528240
mov edx, dword [esp + 0x10]
push edx
call fcn.004c6150
add esp, 4
mov eax, dword [esp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x52825a
mov edx, dword [esp + 8]
push edx
call fcn.004c6150
add esp, 4
mov ecx, dword [esp + 0x21c]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.00581268
add esp, 0x21c
ret
Function at 0x528630
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 0x528648
mov eax, 0x40
cmp eax, 0x40
mov ecx, eax
mov dword [esp + 0x14], ecx
jle 0x528668
add eax, eax
push eax
call fcn.004cc7b0
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x10], ecx
jmp 0x528674
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 0x5286b2
mov esi, dword [esp + 0xac]
mov dword [esi], 0x6c30d4
mov edx, 0x6c30d4
mov eax, 1
lock xadd dword [edx], eax
jmp 0x528742
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x52872b
mov edx, dword [ebx + 4]
push 0
push 0
push esi
push edx
call edi
test eax, eax
jne 0x5286f3
mov esi, dword [esp + 0xac]
mov dword [esi], 0x6c30d4
mov eax, 0x6c30d4
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
cmp eax, edx
jmp 0x52874c
cmp eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
jl 0x528705
lea ecx, [esp + 0xc]
mov ecx, dword [ecx]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00527d60
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 0x528692
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0xac]
push 0xffffffffffffffff
push edx
push esi
call fcn.004c9050
add esp, 0xc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x528757
push eax
call fcn.004cc7c0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret 0xc
Function at 0x5289e0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xc8
mov eax, dword [0x6c56f8]
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 0x528b8a
sub eax, 1
je 0x528b2a
sub eax, 1
jne 0x528a70
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 0x528ad6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x528a99
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x528a70
push eax
call fcn.004cc7c0
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.00581268
add esp, 0xc8
ret 8
mov ecx, 0xff
cmp dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x1c]
jg 0x528ab0
lea eax, [esp + 0x18]
mov edx, dword [eax]
push edx
push ecx
lea ecx, [esp + 0x24]
call fcn.00527d60
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 0x528a5b
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004c9050
add esp, 0xc
push eax
mov ecx, edi
call fcn.004d8290
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x528b0c
mov eax, dword [esp + 0x14]
push eax
call fcn.004c6150
add esp, 4
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x528a7d
push eax
call fcn.004cc7c0
add esp, 4
jmp 0x528a7d
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 0x528a70
push 0xffffffffffffffff
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004c9050
add esp, 0xc
push eax
mov ecx, edi
call fcn.004d8290
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x528a7d
mov edx, dword [esp + 0x10]
push edx
call fcn.004c6150
add esp, 4
jmp 0x528a7d
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 0x528a70
push 0xffffffffffffffff
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.004c9050
add esp, 0xc
push eax
mov ecx, edi
call fcn.004d8290
mov ecx, dword [esp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x528a7d
mov eax, dword [esp + 0xc]
push eax
call fcn.004c6150
add esp, 4
jmp 0x528a7d
Function at 0x52f950
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 0x52fb06
mov ebp, dword [esp + 0x24]
jg 0x52f97b
cmp ebp, eax
jb 0x52fb06
cmp ebp, ebp
jne 0x52fb06
cmp ecx, eax
jne 0x52fb06
push esi
xor esi, esi
mov dword [esp + 0x1c], eax
cmp dword [edi + 0x58], eax
je 0x52fa48
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.00585d0c
mov ecx, dword [edi + 0x58]
push ecx
mov ebx, eax
call fcn.00585a04
add esp, 0x14
test eax, eax
setne al
cmp byte [esp + 0x13], 0
mov byte [esp + 0x12], al
je 0x52fa03
test al, al
je 0x52fa03
test ebx, ebx
jne 0x52fa03
mov edx, dword [edi + 0x58]
push ebx
push edx
call fcn.00588911
add esp, 4
push edx
push eax
mov eax, dword [edi + 0x58]
push eax
call fcn.0058a40f
mov al, byte [esp + 0x22]
add esp, 0x10
mov byte [esp + 0x13], bl
jmp 0x52fa0a
add esi, ebx
adc dword [esp + 0x1c], 0
test al, al
jne 0x52faf6
test ebx, ebx
jne 0x52fa2f
call fcn.00586f71
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x52f9a0
jmp 0x52faa3
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x2c]
jg 0x52faa7
jl 0x52f9a0
cmp esi, ebp
jae 0x52faa7
jmp 0x52f9a0
cmp dword [edi + 0x70], 0xffffffff
je 0x52fab7
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.0058a276
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x52fa7c
call fcn.00586f71
cmp dword [eax], 4
je 0x52fa50
jmp 0x52fa9b
test ebx, ebx
jle 0x52fa9b
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 0x52fa50
jg 0x52fa9b
cmp esi, ebp
jb 0x52fa50
cmp ebx, 0xffffffff
setne byte [esp + 0x12]
mov al, byte [esp + 0x12]
test al, al
jne 0x52faf6
mov ecx, esi
or ecx, dword [esp + 0x1c]
jne 0x52faf6
mov ebx, dword [esp + 0x14]
or esi, 0xffffffff
mov dword [esp + 0x1c], esi
call fcn.00586f71
mov edx, dword [eax]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004bf2d0
add esp, 8
push eax
push 1
mov ecx, ebx
call fcn.005329d0
mov ecx, dword [esp + 0x24]
or edx, esi
lock xadd dword [ecx], edx
jne 0x52faf6
mov eax, dword [esp + 0x24]
push eax
call fcn.004c6150
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.004bf2d0
add esp, 8
push eax
push 1
mov ecx, ebx
call fcn.005329d0
mov edx, dword [esp + 0x20]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x52fb39
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004c6150
add esp, 4
pop edi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
add esp, 0x10
ret 0xc
Function at 0x52fc80
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 0x52fdbb
mov edi, dword [esp + 0x18]
jg 0x52fca7
test edi, edi
jb 0x52fdbb
xor eax, eax
cmp edi, edi
jne 0x52fdbb
cmp ecx, eax
jne 0x52fdbb
push ebx
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 0x58], eax
je 0x52fd0a
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.00585982
add esp, 0x10
add esi, eax
adc ebx, 0
test eax, eax
jne 0x52fcfc
call fcn.00586f71
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x52fcc3
jmp 0x52fd4f
cmp ebx, dword [esp + 0x20]
jg 0x52fd4f
jl 0x52fcc3
cmp esi, edi
jae 0x52fd4f
jmp 0x52fcc3
cmp dword [ebp + 0x70], 0xffffffff
je 0x52fd4f
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.0058ab91
add esp, 0xc
cmp eax, 0xffffffff
jne 0x52fd3a
call fcn.00586f71
cmp dword [eax], 4
je 0x52fd10
jmp 0x52fd4f
test eax, eax
jle 0x52fd4f
cdq
add esi, eax
adc ebx, edx
cmp ebx, dword [esp + 0x20]
jl 0x52fd10
jg 0x52fd4f
cmp esi, edi
jb 0x52fd10
or edi, dword [esp + 0x20]
je 0x52fdaf
mov eax, esi
or eax, ebx
jne 0x52fdaf
or esi, 0xffffffff
or ebx, esi
call fcn.00586f71
mov edi, eax
call fcn.00586f71
mov ecx, dword [edi]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebp, eax
call fcn.004bf2d0
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.005329d0
mov ecx, dword [esp + 0x18]
or edx, esi
lock xadd dword [ecx], edx
jne 0x52fdaf
mov eax, dword [esp + 0x18]
push eax
call fcn.004c6150
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.004bf2d0
add esp, 8
push eax
push 2
mov ecx, esi
call fcn.005329d0
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x52fdee
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004c6150
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebp
pop ecx
ret 0xc
Function at 0x530a30
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 0x674344
push 1
push 0
push 0x674354
xor bl, bl
call edi
cmp eax, 0x800401f0
jne 0x530a93
push 0
mov bl, 1
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x1c]
push eax
push 0x674344
push 1
push 0
push 0x674354
call edi
test eax, eax
jl 0x530bca
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.004c9970
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx]
mov ecx, eax
call fcn.004c7eb0
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 0x530afe
mov eax, dword [esp + 0x10]
push eax
call fcn.004c6150
add esp, 4
test edi, edi
jl 0x530bb7
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.004c9970
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx]
mov ecx, eax
call fcn.004c7eb0
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 0x530b69
mov eax, dword [esp + 0x10]
push eax
call fcn.004c6150
add esp, 4
test edi, edi
jl 0x530bb7
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x674364
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x530bb7
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx]
push 1
lea ecx, [esp + 0x18]
call fcn.004c7eb0
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edi + 0x18]
push edx
call eax
test eax, eax
jl 0x530bab
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 0x530bfd
lea eax, [esp + 0x10]
push 0xffffffffffffffff
push eax
call fcn.004bf2d0
add esp, 8
push eax
push 0xa
mov ecx, esi
call fcn.005329d0
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x530bfd
mov eax, dword [esp + 0x10]
push eax
call fcn.004c6150
add esp, 4
test bl, bl
je 0x530c07
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x530c21
mov eax, dword [esp + 0x14]
push eax
call fcn.004c6150
add esp, 4
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x530d70
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 0x530e4f
or edx, 0xffffffff
cmp dword [edi + 0x70], edx
jne 0x530e4b
cmp dword [edi + 0x5c], edx
jne 0x530da4
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 0x530dc3
mov eax, 0x6562d8
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 0x530e12
mov eax, dword [esp + 0x14]
test eax, eax
je 0x530e04
add esi, eax
adc ebx, 0
sub ebp, eax
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x10], ebp
jg 0x530e04
jl 0x530db2
cmp esi, dword [esp + 0x24]
jb 0x530db2
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 0x530e04
lea eax, [esp + 0x20]
push 0xffffffffffffffff
push eax
call fcn.004bf2d0
mov ecx, dword [esp + 0x20]
add esp, 8
push eax
push 1
call fcn.005329d0
lea ecx, [esp + 0x20]
call fcn.004010b1
pop ebp
pop ebx
or eax, 0xffffffff
pop edi
or edx, eax
pop esi
add esp, 0xc
ret 0xc
test eax, eax
je 0x530eae
call fcn.005309e0
test al, al
je 0x530eae
mov ecx, dword [edi + 0x58]
push ecx
call fcn.00585a04
add esp, 4
test eax, eax
je 0x530eae
call fcn.00586f71
mov edx, dword [eax]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004bf2d0
add esp, 8
push eax
push 1
mov ecx, esi
call fcn.005329d0
mov ecx, dword [esp + 0x18]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x530ea1
mov eax, dword [esp + 0x18]
push eax
call fcn.004c6150
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.0052f950
pop edi
pop esi
add esp, 0xc
ret 0xc
Function at 0x530ed0
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 0x530fae
or eax, 0xffffffff
cmp dword [ebp + 0x70], eax
jne 0x530fae
cmp dword [ebp + 0x5c], eax
jne 0x530f04
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 0x530f25
mov eax, 0x6562d8
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 0x530f75
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x530f67
xor eax, eax
add esi, ecx
adc edi, eax
sub ebx, ecx
sbb dword [esp + 0x20], eax
cmp edi, dword [esp + 0x30]
jg 0x530f67
jl 0x530f10
cmp esi, dword [esp + 0x2c]
jb 0x530f10
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 0x530f67
lea eax, [esp + 0x28]
push 0xffffffffffffffff
push eax
call fcn.004bf2d0
mov ecx, dword [esp + 0x20]
add esp, 8
push eax
push 2
call fcn.005329d0
lea ecx, [esp + 0x28]
call fcn.004010b1
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.0052fc80
pop edi
pop ebp
add esp, 0x14
ret 0xc
Function at 0x5316e0
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 0x5317c7
cmp dword [eax + 0x70], ecx
jne 0x5317c7
cmp dword [eax + 0x58], 0
jne 0x5317c7
lea edi, [eax + 0x10]
mov ecx, edi
call fcn.00533840
test al, al
jne 0x53186f
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00533320
push eax
lea ecx, [esp + 0x18]
call fcn.005132c0
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x53174d
mov eax, dword [esp + 0x10]
push eax
call fcn.004c6150
add esp, 4
push ecx
mov eax, esp
lea ecx, [esp + 0x18]
mov dword [eax], 3
call fcn.00512990
test al, al
je 0x5317b2
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00513690
mov bl, al
test bl, bl
jne 0x53179d
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.0050c000
push eax
push 0xc
mov ecx, esi
call fcn.005329d0
lea ecx, [esp + 0x20]
call fcn.004010b1
lea ecx, [esp + 0x14]
call fcn.00513670
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
lea ecx, [esp + 0x14]
call fcn.00513670
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov edi, ecx
cmp edi, 0xffffffff
jne 0x5317f9
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x5317e6
push ecx
call fcn.0058b162
push eax
call fcn.0058ad74
add esp, 8
jmp 0x5317f2
mov ecx, dword [eax + 0x70]
push ecx
call fcn.0058ad74
add esp, 4
mov edi, eax
cmp edi, 0xffffffff
je 0x53186f
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 0x531864
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x531864
cmp ebx, dword [esp + 0x24]
jg 0x531844
jl 0x53183e
cmp ebp, dword [esp + 0x20]
jae 0x531844
lea eax, [esp + 0x14]
jmp 0x531848
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 0x533d70
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push 0
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00530c30
add esp, 8
mov ecx, eax
call fcn.004c7eb0
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 0x533daf
mov ecx, dword [esp + 4]
push ecx
call fcn.004c6150
add esp, 4
mov al, bl
pop ebx
pop ecx
ret

Function at 0x533dc0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x25c
mov eax, dword [0x6c56f8]
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 0x533e13
mov edx, dword [eax + 0xc]
cmp word [edx + 2], 0x3a
jne 0x533e13
push ecx
mov eax, esp
mov ecx, 0x5c
mov word [eax], cx
lea ecx, [esp + 8]
call fcn.004c7520
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.00530c30
add esp, 8
mov ecx, eax
call fcn.004c7eb0
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 0x533e4f
mov eax, dword [esp + 8]
push eax
call fcn.004c6150
add esp, 4
cmp ebx, 0xffffffff
jne 0x533e8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x533e64
cmp eax, 0x20
jne 0x533e8a
lea ecx, [esp + 0xc]
push ecx
push ecx
mov edx, esp
lea eax, [esp + 0xc]
push eax
push edx
call fcn.00530c30
add esp, 8
call fcn.00533ca0
add esp, 8
test al, al
je 0x533e8a
mov ebx, dword [esp + 0xc]
test esi, esi
je 0x533e96
cmp ebx, 0xffffffff
setne cl
mov byte [esi], cl
mov edx, dword [esp + 4]
or eax, 0xffffffff
cmp ebx, eax
jne 0x533ecc
lock xadd dword [edx], eax
jne 0x533eb4
mov ecx, dword [esp + 4]
push ecx
call fcn.004c6150
add esp, 4
xor al, al
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00581268
add esp, 0x25c
ret
shr ebx, 4
and bl, 1
lock xadd dword [edx], eax
jne 0x533ee5
mov ecx, dword [esp + 4]
push ecx
call fcn.004c6150
add esp, 4
mov ecx, dword [esp + 0x25c]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00581268
add esp, 0x25c
ret