joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51fe50
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 0x51fed7
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004c0e60
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004bb760
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x51fed7
mov ecx, dword [esp + 4]
push ecx
call fcn.004bdf50
add esp, 4
mov edx, dword [esp + 0x10]
cmp dword [edx + 8], 0
je 0x51ff52
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x14]
call fcn.004bf820
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.00522870
add esp, 0x10
cmp byte [esp + 0xf], 0
je 0x51ff38
mov edx, dword [esp + 0x14]
cmp byte [edx], 0
jne 0x51ff38
cmp eax, 0x814
jne 0x51ff38
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x649ef8
call fcn.004c0b30
mov ecx, dword [esp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x51ff52
mov eax, dword [esp + 4]
push eax
call fcn.004c45d0
add esp, 4
mov eax, dword [esp + 8]
cmp dword [eax + 8], 0
je 0x51ff9c
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 0x51ff81
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004bdf50
add esp, 4
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x52002a
mov ecx, dword [esp + 8]
push ecx
jmp 0x520022
push 0xff
lea edx, [esp + 0x20]
push edx
push 0x59
push edi
call ebx
test eax, eax
je 0x51ffe7
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004c0e60
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
call fcn.004bb760
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x51ffe7
mov ecx, dword [esp + 4]
push ecx
call fcn.004bdf50
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 0x520010
mov edx, dword [esp + 0x10]
push edx
call fcn.004bdf50
add esp, 4
mov eax, dword [esp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x52002a
mov edx, dword [esp + 8]
push edx
call fcn.004bdf50
add esp, 4
mov ecx, dword [esp + 0x21c]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.005796dc
add esp, 0x21c
ret
Function at 0x520400
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 0x520418
mov eax, 0x40
cmp eax, 0x40
mov ecx, eax
mov dword [esp + 0x14], ecx
jle 0x520438
add eax, eax
push eax
call fcn.004c45c0
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x10], ecx
jmp 0x520444
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 0x520482
mov esi, dword [esp + 0xac]
mov dword [esi], 0x6c30d4
mov edx, 0x6c30d4
mov eax, 1
lock xadd dword [edx], eax
jmp 0x520512
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x5204fb
mov edx, dword [ebx + 4]
push 0
push 0
push esi
push edx
call edi
test eax, eax
jne 0x5204c3
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 0x52051c
cmp eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
jl 0x5204d5
lea ecx, [esp + 0xc]
mov ecx, dword [ecx]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00503dc0
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 0x520462
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0xac]
push 0xffffffffffffffff
push edx
push esi
call fcn.004c0e60
add esp, 0xc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x520527
push eax
call fcn.004c45d0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret 0xc
Function at 0x5207b0
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 0x52095a
sub eax, 1
je 0x5208fa
sub eax, 1
jne 0x520840
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 0x5208a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x520869
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x520840
push eax
call fcn.004c45d0
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.005796dc
add esp, 0xc8
ret 8
mov ecx, 0xff
cmp dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x1c]
jg 0x520880
lea eax, [esp + 0x18]
mov edx, dword [eax]
push edx
push ecx
lea ecx, [esp + 0x24]
call fcn.00503dc0
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 0x52082b
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004c0e60
add esp, 0xc
push eax
mov ecx, edi
call fcn.004d00d0
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5208dc
mov eax, dword [esp + 0x14]
push eax
call fcn.004bdf50
add esp, 4
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x52084d
push eax
call fcn.004c45d0
add esp, 4
jmp 0x52084d
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 0x520840
push 0xffffffffffffffff
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004c0e60
add esp, 0xc
push eax
mov ecx, edi
call fcn.004d00d0
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x52084d
mov edx, dword [esp + 0x10]
push edx
call fcn.004bdf50
add esp, 4
jmp 0x52084d
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 0x520840
push 0xffffffffffffffff
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.004c0e60
add esp, 0xc
push eax
mov ecx, edi
call fcn.004d00d0
mov ecx, dword [esp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x52084d
mov eax, dword [esp + 0xc]
push eax
call fcn.004bdf50
add esp, 4
jmp 0x52084d
Function at 0x527730
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 0x5278e6
mov ebp, dword [esp + 0x24]
jg 0x52775b
cmp ebp, eax
jb 0x5278e6
cmp ebp, ebp
jne 0x5278e6
cmp ecx, eax
jne 0x5278e6
push esi
xor esi, esi
mov dword [esp + 0x1c], eax
cmp dword [edi + 0x58], eax
je 0x527828
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.0057db50
mov ecx, dword [edi + 0x58]
push ecx
mov ebx, eax
call fcn.0057d848
add esp, 0x14
test eax, eax
setne al
cmp byte [esp + 0x13], 0
mov byte [esp + 0x12], al
je 0x5277e3
test al, al
je 0x5277e3
test ebx, ebx
jne 0x5277e3
mov edx, dword [edi + 0x58]
push ebx
push edx
call fcn.00580901
add esp, 4
push edx
push eax
mov eax, dword [edi + 0x58]
push eax
call fcn.005823ff
mov al, byte [esp + 0x22]
add esp, 0x10
mov byte [esp + 0x13], bl
jmp 0x5277ea
add esi, ebx
adc dword [esp + 0x1c], 0
test al, al
jne 0x5278d6
test ebx, ebx
jne 0x52780f
call fcn.0057ef61
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x527780
jmp 0x527883
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x2c]
jg 0x527887
jl 0x527780
cmp esi, ebp
jae 0x527887
jmp 0x527780
cmp dword [edi + 0x70], 0xffffffff
je 0x527897
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.00582266
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x52785c
call fcn.0057ef61
cmp dword [eax], 4
je 0x527830
jmp 0x52787b
test ebx, ebx
jle 0x52787b
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 0x527830
jg 0x52787b
cmp esi, ebp
jb 0x527830
cmp ebx, 0xffffffff
setne byte [esp + 0x12]
mov al, byte [esp + 0x12]
test al, al
jne 0x5278d6
mov ecx, esi
or ecx, dword [esp + 0x1c]
jne 0x5278d6
mov ebx, dword [esp + 0x14]
or esi, 0xffffffff
mov dword [esp + 0x1c], esi
call fcn.0057ef61
mov edx, dword [eax]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004b71a0
add esp, 8
push eax
push 1
mov ecx, ebx
call fcn.0052a800
mov ecx, dword [esp + 0x24]
or edx, esi
lock xadd dword [ecx], edx
jne 0x5278d6
mov eax, dword [esp + 0x24]
push eax
call fcn.004bdf50
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.004b71a0
add esp, 8
push eax
push 1
mov ecx, ebx
call fcn.0052a800
mov edx, dword [esp + 0x20]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x527919
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004bdf50
add esp, 4
pop edi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
add esp, 0x10
ret 0xc
Function at 0x527a60
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 0x527b9b
mov edi, dword [esp + 0x18]
jg 0x527a87
test edi, edi
jb 0x527b9b
xor eax, eax
cmp edi, edi
jne 0x527b9b
cmp ecx, eax
jne 0x527b9b
push ebx
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 0x58], eax
je 0x527aea
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.0057d6d3
add esp, 0x10
add esi, eax
adc ebx, 0
test eax, eax
jne 0x527adc
call fcn.0057ef61
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x527aa3
jmp 0x527b2f
cmp ebx, dword [esp + 0x20]
jg 0x527b2f
jl 0x527aa3
cmp esi, edi
jae 0x527b2f
jmp 0x527aa3
cmp dword [ebp + 0x70], 0xffffffff
je 0x527b2f
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.00582cc9
add esp, 0xc
cmp eax, 0xffffffff
jne 0x527b1a
call fcn.0057ef61
cmp dword [eax], 4
je 0x527af0
jmp 0x527b2f
test eax, eax
jle 0x527b2f
cdq
add esi, eax
adc ebx, edx
cmp ebx, dword [esp + 0x20]
jl 0x527af0
jg 0x527b2f
cmp esi, edi
jb 0x527af0
or edi, dword [esp + 0x20]
je 0x527b8f
mov eax, esi
or eax, ebx
jne 0x527b8f
or esi, 0xffffffff
or ebx, esi
call fcn.0057ef61
mov edi, eax
call fcn.0057ef61
mov ecx, dword [edi]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebp, eax
call fcn.004b71a0
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.0052a800
mov ecx, dword [esp + 0x18]
or edx, esi
lock xadd dword [ecx], edx
jne 0x527b8f
mov eax, dword [esp + 0x18]
push eax
call fcn.004bdf50
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.004b71a0
add esp, 8
push eax
push 2
mov ecx, esi
call fcn.0052a800
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x527bce
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004bdf50
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebp
pop ecx
ret 0xc
Function at 0x528800
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 0x66b25c
push 1
push 0
push 0x66b26c
xor bl, bl
call edi
cmp eax, 0x800401f0
jne 0x528863
push 0
mov bl, 1
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x1c]
push eax
push 0x66b25c
push 1
push 0
push 0x66b26c
call edi
test eax, eax
jl 0x52899a
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.004c1780
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx]
mov ecx, eax
call fcn.004bfc60
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 0x5288ce
mov eax, dword [esp + 0x10]
push eax
call fcn.004bdf50
add esp, 4
test edi, edi
jl 0x528987
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.004c1780
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx]
mov ecx, eax
call fcn.004bfc60
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 0x528939
mov eax, dword [esp + 0x10]
push eax
call fcn.004bdf50
add esp, 4
test edi, edi
jl 0x528987
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x66b27c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x528987
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx]
push 1
lea ecx, [esp + 0x18]
call fcn.004bfc60
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edi + 0x18]
push edx
call eax
test eax, eax
jl 0x52897b
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 0x5289cd
lea eax, [esp + 0x10]
push 0xffffffffffffffff
push eax
call fcn.004b71a0
add esp, 8
push eax
push 0xa
mov ecx, esi
call fcn.0052a800
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5289cd
mov eax, dword [esp + 0x10]
push eax
call fcn.004bdf50
add esp, 4
test bl, bl
je 0x5289d7
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5289f1
mov eax, dword [esp + 0x14]
push eax
call fcn.004bdf50
add esp, 4
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x528b50
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 0x528c2f
or edx, 0xffffffff
cmp dword [edi + 0x70], edx
jne 0x528c2b
cmp dword [edi + 0x5c], edx
jne 0x528b84
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 0x528ba3
mov eax, 0x64d1d8
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 0x528bf2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x528be4
add esi, eax
adc ebx, 0
sub ebp, eax
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x10], ebp
jg 0x528be4
jl 0x528b92
cmp esi, dword [esp + 0x24]
jb 0x528b92
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 0x528be4
lea eax, [esp + 0x20]
push 0xffffffffffffffff
push eax
call fcn.004b71a0
mov ecx, dword [esp + 0x20]
add esp, 8
push eax
push 1
call fcn.0052a800
lea ecx, [esp + 0x20]
call fcn.004010b0
pop ebp
pop ebx
or eax, 0xffffffff
pop edi
or edx, eax
pop esi
add esp, 0xc
ret 0xc
test eax, eax
je 0x528c8e
call fcn.005287b0
test al, al
je 0x528c8e
mov ecx, dword [edi + 0x58]
push ecx
call fcn.0057d848
add esp, 4
test eax, eax
je 0x528c8e
call fcn.0057ef61
mov edx, dword [eax]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004b71a0
add esp, 8
push eax
push 1
mov ecx, esi
call fcn.0052a800
mov ecx, dword [esp + 0x18]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x528c81
mov eax, dword [esp + 0x18]
push eax
call fcn.004bdf50
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.00527730
pop edi
pop esi
add esp, 0xc
ret 0xc
Function at 0x528cb0
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 0x528d8e
or eax, 0xffffffff
cmp dword [ebp + 0x70], eax
jne 0x528d8e
cmp dword [ebp + 0x5c], eax
jne 0x528ce4
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 0x528d05
mov eax, 0x64d1d8
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 0x528d55
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x528d47
xor eax, eax
add esi, ecx
adc edi, eax
sub ebx, ecx
sbb dword [esp + 0x20], eax
cmp edi, dword [esp + 0x30]
jg 0x528d47
jl 0x528cf0
cmp esi, dword [esp + 0x2c]
jb 0x528cf0
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 0x528d47
lea eax, [esp + 0x28]
push 0xffffffffffffffff
push eax
call fcn.004b71a0
mov ecx, dword [esp + 0x20]
add esp, 8
push eax
push 2
call fcn.0052a800
lea ecx, [esp + 0x28]
call fcn.004010b0
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.00527a60
pop edi
pop ebp
add esp, 0x14
ret 0xc
Function at 0x5294c0
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 0x5295a7
cmp dword [eax + 0x70], ecx
jne 0x5295a7
cmp dword [eax + 0x58], 0
jne 0x5295a7
lea edi, [eax + 0x10]
mov ecx, edi
call fcn.0052b670
test al, al
jne 0x52964f
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.0052b150
push eax
lea ecx, [esp + 0x18]
call fcn.0050b090
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x52952d
mov eax, dword [esp + 0x10]
push eax
call fcn.004bdf50
add esp, 4
push ecx
mov eax, esp
lea ecx, [esp + 0x18]
mov dword [eax], 3
call fcn.0050a760
test al, al
je 0x529592
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0050b460
mov bl, al
test bl, bl
jne 0x52957d
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00503d10
push eax
push 0xc
mov ecx, esi
call fcn.0052a800
lea ecx, [esp + 0x20]
call fcn.004010b0
lea ecx, [esp + 0x14]
call fcn.0050b440
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
lea ecx, [esp + 0x14]
call fcn.0050b440
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov edi, ecx
cmp edi, 0xffffffff
jne 0x5295d9
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x5295c6
push ecx
call fcn.0058329a
push eax
call fcn.00582eac
add esp, 8
jmp 0x5295d2
mov ecx, dword [eax + 0x70]
push ecx
call fcn.00582eac
add esp, 4
mov edi, eax
cmp edi, 0xffffffff
je 0x52964f
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 0x529644
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x529644
cmp ebx, dword [esp + 0x24]
jg 0x529624
jl 0x52961e
cmp ebp, dword [esp + 0x20]
jae 0x529624
lea eax, [esp + 0x14]
jmp 0x529628
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 0x52bba0
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push 0
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00528a10
add esp, 8
mov ecx, eax
call fcn.004bfc60
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 0x52bbdf
mov ecx, dword [esp + 4]
push ecx
call fcn.004bdf50
add esp, 4
mov al, bl
pop ebx
pop ecx
ret

Function at 0x52bbf0
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 0x52bc43
mov edx, dword [eax + 0xc]
cmp word [edx + 2], 0x3a
jne 0x52bc43
push ecx
mov eax, esp
mov ecx, 0x5c
mov word [eax], cx
lea ecx, [esp + 8]
call fcn.004c0ab0
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.00528a10
add esp, 8
mov ecx, eax
call fcn.004bfc60
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 0x52bc7f
mov eax, dword [esp + 8]
push eax
call fcn.004bdf50
add esp, 4
cmp ebx, 0xffffffff
jne 0x52bcba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x52bc94
cmp eax, 0x20
jne 0x52bcba
lea ecx, [esp + 0xc]
push ecx
push ecx
mov edx, esp
lea eax, [esp + 0xc]
push eax
push edx
call fcn.00528a10
add esp, 8
call fcn.0052bad0
add esp, 8
test al, al
je 0x52bcba
mov ebx, dword [esp + 0xc]
test esi, esi
je 0x52bcc6
cmp ebx, 0xffffffff
setne cl
mov byte [esi], cl
mov edx, dword [esp + 4]
or eax, 0xffffffff
cmp ebx, eax
jne 0x52bcfc
lock xadd dword [edx], eax
jne 0x52bce4
mov ecx, dword [esp + 4]
push ecx
call fcn.004bdf50
add esp, 4
xor al, al
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.005796dc
add esp, 0x25c
ret
shr ebx, 4
and bl, 1
lock xadd dword [edx], eax
jne 0x52bd15
mov ecx, dword [esp + 4]
push ecx
call fcn.004bdf50
add esp, 4
mov ecx, dword [esp + 0x25c]
mov al, bl
pop ebx
xor ecx, esp
call fcn.005796dc
add esp, 0x25c
ret