joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51c490
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [esi + 8]
push edi
or edi, 0xffffffff
xor eax, eax
mov dword [ebp - 4], edi
test edx, edx
jle 0x51c54e
push ebx
mov ebx, dword [esi + 4]
add ebx, 0x88
mov ecx, dword [ebx]
cmp dword [ebp - 4], ecx
jge 0x51c4be
mov dword [ebp - 4], ecx
mov edi, eax
inc eax
add ebx, 0x90
cmp eax, edx
jl 0x51c4b2
test edi, edi
js 0x51c54d
mov eax, dword [esi + 4]
lea edi, [edi + edi*8]
add edi, edi
cmp dword [eax + edi*8 + 0x88], 0
jl 0x51c525
mov ebx, dword [eax + edi*8 + 0x88]
lea eax, [eax + edi*8 + 0x88]
xor edx, edx
mov dword [eax], 0xffffffff
cmp dword [esi + 8], edx
jle 0x51c525
xor eax, eax
mov ecx, dword [esi + 4]
cmp dword [eax + ecx + 0x88], ebx
jle 0x51c51a
dec dword [eax + ecx + 0x88]
lea ecx, [eax + ecx + 0x88]
inc edx
add eax, 0x90
cmp edx, dword [esi + 8]
jl 0x51c500
mov edx, dword [esi + 4]
mov eax, dword [edx + edi*8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + edi*8 + 0x20]
push edx
call fcn.0040c6ec
mov eax, dword [esi + 4]
add esp, 4
mov dword [eax + edi*8 + 0x20], 0
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x51d970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576dc7
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x1c]
mov dword [edi + 0x88], eax
call fcn.0040e785
mov dword [ebp - 4], 0
movzx ecx, word [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040e555
call fcn.0040da38
mov eax, dword [eax + 4]
cmp word [eax + 0xc0], 0
jbe 0x51da5c
call fcn.0040c84f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x51d9f0
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp + 8]
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
call fcn.0040e809
call fcn.0040da38
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xc0]
push eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e5bd
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51da5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp word [esi], 1
jne 0x51da91
mov edx, 0xffff
cmp word [esi + 2], dx
jne 0x51da91
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x51da91
cmp dword [ecx + 0x20], 0
je 0x51da91
call fcn.0041aa78
or dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
push 0
push eax
push esi
mov ecx, edi
call fcn.00417b96
lea ecx, [ebp - 0x1c]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040e3be
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x51dad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576df2
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x20]
mov dword [esi + 0x78], ebx
call fcn.0040e785
push 0x67
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.0040e555
call fcn.0040da38
mov eax, dword [eax + 4]
cmp word [eax + 0xc0], bx
jbe 0x51dbaa
call fcn.0040c84f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x51db43
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
call fcn.0040e809
call fcn.0040da38
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xc0]
push eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e5bd
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51dbaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x51dbd4
mov edx, 0xffff
cmp word [eax + 2], dx
jne 0x51dbd4
cmp dword [0x5ddaf8], ebx
je 0x51dbd4
or dword [eax + 8], 0x400000
mov ecx, dword [esi + 0x88]
push ebx
push ecx
push eax
mov ecx, esi
call fcn.004171af
mov ecx, esi
call fcn.00417919
lea ecx, [ebp - 0x20]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040e3be
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51fab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576e1d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x18]
mov dword [esi + 0x88], edi
call fcn.0040e785
mov dword [ebp - 4], 0
movzx eax, word [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e555
call fcn.0040da38
mov eax, dword [eax + 4]
cmp word [eax + 0xc0], 0
jbe 0x51fb9c
call fcn.0040c84f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x51fb30
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp + 0xc]
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], 0
call fcn.0040e809
call fcn.0040da38
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xc0]
push eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e5bd
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51fb9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x51fbc7
mov edx, 0xffff
cmp word [eax + 2], dx
jne 0x51fbc7
cmp dword [0x5ddaf8], 0
je 0x51fbc7
or dword [eax + 8], 0x400000
push 0
push edi
push eax
mov ecx, esi
call fcn.00417b96
lea ecx, [ebp - 0x18]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040e3be
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x51fc00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576e48
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x20]
mov dword [esi + 0x78], ebx
call fcn.0040e785
push 0x66
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.0040e555
call fcn.0040da38
mov eax, dword [eax + 4]
cmp word [eax + 0xc0], bx
jbe 0x51fcda
call fcn.0040c84f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x51fc73
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
call fcn.0040e809
call fcn.0040da38
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xc0]
push eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e5bd
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51fcda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x51fd04
mov edx, 0xffff
cmp word [eax + 2], dx
jne 0x51fd04
cmp dword [0x5ddaf8], ebx
je 0x51fd04
or dword [eax + 8], 0x400000
mov ecx, dword [esi + 0x88]
push ebx
push ecx
push eax
mov ecx, esi
call fcn.004171af
mov ecx, esi
call fcn.00417919
lea ecx, [ebp - 0x20]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040e3be
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x522730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576e73
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x1c]
mov dword [edi + 0x88], eax
call fcn.0040e785
mov dword [ebp - 4], 0
movzx ecx, word [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040e555
call fcn.0040da38
mov eax, dword [eax + 4]
cmp word [eax + 0xc0], 0
jbe 0x52281c
call fcn.0040c84f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x5227b0
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp + 8]
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
call fcn.0040e809
call fcn.0040da38
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xc0]
push eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e5bd
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52281c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp word [esi], 1
jne 0x522851
mov edx, 0xffff
cmp word [esi + 2], dx
jne 0x522851
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x522851
cmp dword [ecx + 0x20], 0
je 0x522851
call fcn.0041aa78
or dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
push 0
push eax
push esi
mov ecx, edi
call fcn.00417b96
lea ecx, [ebp - 0x1c]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040e3be
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x525ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576e9e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x18]
mov dword [esi + 0x88], edi
call fcn.0040e785
mov dword [ebp - 4], 0
movzx eax, word [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e555
call fcn.0040da38
mov eax, dword [eax + 4]
cmp word [eax + 0xc0], 0
jbe 0x525bbc
call fcn.0040c84f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x525b50
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp + 0xc]
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], 0
call fcn.0040e809
call fcn.0040da38
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xc0]
push eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e5bd
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x525bbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x525be7
mov edx, 0xffff
cmp word [eax + 2], dx
jne 0x525be7
cmp dword [0x5ddaf8], 0
je 0x525be7
or dword [eax + 8], 0x400000
push 0
push edi
push eax
mov ecx, esi
call fcn.00417b96
lea ecx, [ebp - 0x18]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040e3be
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x525c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576ec9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x20]
mov dword [esi + 0x78], ebx
call fcn.0040e785
push 0x66
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.0040e555
call fcn.0040da38
mov eax, dword [eax + 4]
cmp word [eax + 0xc0], bx
jbe 0x525cfa
call fcn.0040c84f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x525c93
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
call fcn.0040e809
call fcn.0040da38
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xc0]
push eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e5bd
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x525cfa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x525d24
mov edx, 0xffff
cmp word [eax + 2], dx
jne 0x525d24
cmp dword [0x5ddaf8], ebx
je 0x525d24
or dword [eax + 8], 0x400000
mov ecx, dword [esi + 0x88]
push ebx
push ecx
push eax
mov ecx, esi
call fcn.004171af
mov ecx, esi
call fcn.00417919
lea ecx, [ebp - 0x20]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040e3be
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52a960
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [esp]
mov eax, dword [esp + 4]
mov dword [esp + 0x10], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x14], eax
fild qword [esp + 0x10]
and ecx, 0x80000000
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
fild qword [esp + 0x10]
fchs
faddp st(1)
fld qword [0x5ae0c0]
fmul st(1), st(0)
fmulp st(1)
fcomp qword [ebp + 0xc]
fnstsw ax
test ah, 5
jp 0x52a9e9
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x52a9f0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5d52e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0x5acbcc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x52aa2f
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff57c
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x52aa1f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004ff57c
mov esp, ebp
pop ebp
ret
Function at 0x52b790
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5d52e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx]
push edi
mov edi, dword [eax - 0xc]
test edi, edi
jne 0x52b7be
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff57c
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
test edi, edi
jle 0x52b7ec
test esi, esi
js 0x52b86e
mov eax, dword [ebx]
cmp esi, dword [eax - 0xc]
jg 0x52b86e
movzx eax, word [eax + esi*2]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetCharTypeW]
test al, 3
je 0x52b85c
inc esi
cmp esi, edi
jl 0x52b7c5
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00501e34
push str._99991332_0001.su
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00501e34
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x52b878
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff57c
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004010a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop edi
call fcn.004ff57c
mov esp, ebp
pop ebp
ret
Function at 0x52b8f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
call fcn.0040da38
movzx edx, word [ebp + 0xc]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0xbc]
push 0x5acc48
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x52b94b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x52b942
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x52b942
mov eax, dword [ebp + 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebx
je 0x52b942
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x52b9d3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
push ecx
push edx
push eax
call fcn.005062e0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push ebx
push edi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040b930
mov esi, eax
mov eax, dword [ebp + 0xc]
add esp, 4
cmp eax, ebx
je 0x52b9cc
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, ebx
je 0x52b942
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 4]
push ebx
push ecx
push edx
call dword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
cmp eax, ebx
je 0x52b9f8
mov dword [esi + 8], eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52bc20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push esi
push edi
xor esi, esi
push esi
push esi
push 0xd
push 0x400
call ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
lea esi, [ebp - 0x10]
mov edi, eax
call fcn.00408eb0
mov esi, dword [ebp - 0x10]
push edi
push esi
push 0xd
push 0x400
call ebx
push esi
call fcn.00501fcd
add esp, 4
cmp eax, 1
jne 0x52bc84
test esi, esi
je 0x52bc78
push esi
call fcn.0040c6ec
add esp, 4
mov eax, 0x1235
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x52bc91
push esi
call fcn.0040c6ec
add esp, 4
pop edi
pop esi
mov eax, 0x1236
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52bca0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push esi
push edi
xor esi, esi
push esi
push esi
push 5
push 0x400
call ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
lea esi, [esp + 0x10]
mov edi, eax
call fcn.00408eb0
mov esi, dword [esp + 0x10]
push edi
push esi
push 5
push 0x400
call ebx
push esi
call fcn.00501fcd
add esp, 4
test eax, eax
je 0x52bd2f
cmp eax, 1
je 0x52bd2f
cmp eax, 2
je 0x52bd2f
cmp eax, 0x37
je 0x52bd0b
cmp eax, 0x32
jl 0x52bd0b
cmp eax, 0x3c
jl 0x52bd2f
cmp eax, 0x1f4
jl 0x52bd19
cmp eax, 0x258
jl 0x52bd2f
test esi, esi
je 0x52bd26
push esi
call fcn.0040c6ec
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x52bd3c
push esi
call fcn.0040c6ec
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52c070
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577391
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0040c84f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x52c0ae
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x52c0e8
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004019b0
mov esi, dword [ebp - 0x10]
mov eax, dword [edi]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ff818
add esp, 8
test eax, eax
js 0x52c1df
cmp eax, dword [esi - 8]
jg 0x52c1df
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp + 8], ecx
je 0x52c166
cmp dword [esi - 4], 1
jle 0x52c138
mov edx, dword [esi - 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.00401af0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ff818
add esp, 8
test eax, eax
js 0x52c1df
cmp eax, dword [esi - 8]
jg 0x52c1df
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 4], 1
jle 0x52c17b
mov edx, dword [esi - 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.00401af0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ff818
add esp, 8
test eax, eax
js 0x52c1df
cmp eax, dword [esi - 8]
jg 0x52c1df
xor ecx, ecx
mov dword [esi - 0xc], eax
lea edx, [ebp - 0x10]
mov word [esi + eax*2], cx
push edx
mov ecx, edi
call fcn.004015b0
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52c1cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004010a0
int3