joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5207c0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x616738
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x6e377c]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [0x6db93c]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.00510780
push 1
push 0x640d00
push 0x640cfc
lea ecx, [esp + 0x10]
call fcn.00511040
push 1
push 0x687058
push 0x640cf8
lea ecx, [esp + 0x10]
call fcn.00511040
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 4]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x10], 0xffffffff
cmp eax, 0xffffffff
je 0x52085d
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52085d
call fcn.0050ec00
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x521a50
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x60fd72
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x6e377c]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e377c]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd4]
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [0x6db93c]
mov dword [esp + 0x18], ebp
mov dword [ebp], eax
push edi
push edi
mov dword [esp + 0xd4], edi
mov dword [esp + 0x1c], 1
mov esi, 0x640e78
call fcn.005c0985
add esp, 8
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x521ae2
test cl, cl
je 0x521ade
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x521ae2
add eax, 2
add esi, 2
test cl, cl
jne 0x521ac2
xor eax, eax
jmp 0x521ae7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x521c02
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push 0x51
lea ecx, [esp + 0x20]
push ecx
push 0x1f
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x521c02
xor esi, esi
lea ebx, [esp + 0x1c]
movzx eax, word [ebx]
cmp ax, di
jne 0x521b21
inc esi
add ebx, 2
jmp 0x521b13
movzx ecx, ax
add ecx, 0xffffffb3
cmp ecx, 0x2c
ja case.0x521b33.78
movzx edx, byte [ecx + 0x521c34]
jmp dword [edx*4 + 0x521c2c]
movzx edi, ax
mov esi, 1
jmp 0x521bf4
test esi, esi
je 0x521bce
movzx eax, di
cmp eax, 0x4d
je 0x521ba1
cmp eax, 0x64
je 0x521b7d
cmp eax, 0x79
jne case.default.0x521ba9
test esi, esi
jbe case.default.0x521ba9
cmp esi, 2
jbe 0x521b76
cmp esi, 4
jne case.default.0x521ba9
push 0x640e70
jmp 0x521bc3
push 0x640e68
jmp 0x521bc3
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x521ba9
jmp dword [eax*4 + 0x521c64]
push 0x640e60
jmp 0x521bc3
push 0x640dc0
jmp 0x521bc3
push 0x640db8
jmp 0x521bc3
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x521ba9
jmp dword [eax*4 + 0x521c74]
push 0x640e58
jmp 0x521bc3
push 0x640db0
jmp 0x521bc3
push 0x640da8
mov ecx, ebp
call fcn.00510890
xor edi, edi
xor esi, esi
movzx eax, word [ebx]
test ax, ax
je 0x521c02
cmp ax, 0x25
jne 0x521be7
push 0x25
push 1
mov ecx, ebp
call fcn.0050fd80
movzx eax, word [ebx]
push eax
push 1
mov ecx, ebp
call fcn.0050fd80
cmp word [ebx], 0
je 0x521c02
add ebx, 2
jmp 0x521b13
mov eax, ebp
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.005bae23
add esp, 0xbc
ret
Function at 0x522780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
mov ebx, ecx
test ebp, ebp
jne 0x5227a2
call fcn.00521470
mov ebp, eax
sub ebp, 7
neg ebp
sbb ebp, ebp
add ebp, 2
mov esi, dword [esp + 0x78]
push esi
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.00521780
mov ecx, dword [esp + 0x2c]
push 0
push ecx
call fcn.00522060
movzx eax, al
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x30]
lea ecx, [eax + edx*4]
mov dx, word [ecx*2 + 0x640d34]
add dx, word [esp + 0x2c]
add esp, 8
movzx eax, dx
push esi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
mov dword [esp + 0x7c], eax
call fcn.00521780
mov esi, eax
cmp word [esi + 0x18], 7
jne 0x522800
mov ecx, esi
call fcn.00520a30
movzx edi, word [esi + 0x18]
xor esi, esi
push esi
lea ecx, [esp + 0x14]
call fcn.00520d80
push esi
lea ecx, [esp + 0x7c]
call fcn.00520d80
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.00521780
mov eax, dword [eax + 0x10]
push esi
push esi
push esi
push esi
push eax
push esi
push 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.005222c0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x1c]
call fcn.00521780
mov esi, eax
cmp word [esi + 0x18], 7
jne 0x52286a
mov ecx, esi
call fcn.00520a30
movzx esi, word [esi + 0x18]
cmp ebp, 2
jne 0x5228a9
movzx ecx, word [esp + 0x74]
sub ecx, edi
add ecx, 7
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, 3
je 0x52289e
cmp esi, 4
jne 0x52299d
pop edi
pop esi
pop ebp
inc eax
pop ebx
add esp, 0x60
ret 8
test esi, esi
jne 0x5228b4
mov esi, 6
jmp 0x5228b5
dec esi
test edi, edi
jne 0x5228c0
mov edi, 6
jmp 0x5228c1
dec edi
cmp esi, 4
jge 0x52290c
movzx eax, word [esp + 0x74]
sub eax, edi
lea esi, [eax + esi + 6]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x35
jne 0x52299d
movzx ecx, word [esp + 0x24]
sub ecx, edi
cmp ecx, 0x1c
jle 0x52299d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret 8
cmp dword [esp + 0x28], 0
jne 0x52297f
movzx eax, word [esp + 0x24]
mov edx, 8
sub edx, esi
cmp eax, edx
jge 0x52297f
push 0
lea ecx, [esp + 0x7c]
call fcn.00520d80
push 0
lea ecx, [esp + 0x78]
call fcn.00520d80
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x58]
push edx
mov ecx, ebx
call fcn.00521780
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x78]
push ecx
push 1
push 0
push 0
push 0
push 0
dec eax
push eax
push 0xb
push 0x1f
lea ecx, [esp + 0x38]
call fcn.00522550
mov ecx, eax
call fcn.00522780
pop edi
pop esi
pop ebp
movzx eax, ax
pop ebx
add esp, 0x60
ret 8
movzx edx, word [esp + 0x74]
sub edx, edi
lea ecx, [edx + esi - 1]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8
Function at 0x5257a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6100b9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x6e377c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x10]
push edx
call eax
push 0x5c
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x28], 1
call fcn.00510390
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
push edx
push eax
push esi
mov byte [esp + 0x34], 2
call fcn.00510c40
add esp, 0x18
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 8], 1
mov byte [esp + 0x1c], 1
cmp eax, 0xffffffff
je 0x52582d
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52582d
call fcn.0050ec00
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x1c], 0
cmp eax, 0xffffffff
je 0x52584d
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52584d
call fcn.0050ec00
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret 0xc

Function at 0x52a040
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x6105c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6e377c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.wxBufferedInputStream.0
mov eax, dword [esi + 0x20]
mov edi, dword [eax + 8]
sub edi, dword [eax + 0xc]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
xor eax, eax
neg edi
adc eax, eax
push 1
neg eax
push eax
push edi
mov dword [esp + 0x24], 0
call edx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x52a0a5
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.005296d0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x52b670
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x52b69d
mov edi, edi
movzx ecx, cx
add eax, ecx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x52b680
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret

Function at 0x52b890
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x52b8fa
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x52b8fa
mov edx, dword [esp + 0xc]
push edx
push ecx
push eax
call fcn.005c1660
add esp, 0xc
cmp eax, 0xffffffff
jne 0x52b8fc
call fcn.00519760
test eax, eax
je 0x52b8e2
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.cant_read_from_file_descriptor__d
call eax
mov ecx, dword [esi]
push ecx
push eax
call fcn.00527960
add esp, 8
or eax, 0xffffffff
pop esi
ret 8
mov ecx, dword [esi]
mov eax, str.cant_read_from_file_descriptor__d
push ecx
push eax
call fcn.00527960
add esp, 8
or eax, 0xffffffff
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x52c400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x52c41c
test al, 0x10
jne 0x52c41c
mov eax, 1
ret
xor eax, eax
ret

Function at 0x52c560
Capabilities:
Copy file

Disassembly:
xor edx, edx
cmp byte [esp + 0xc], dl
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
sete dl
push edi
mov edi, dword [esp + 0xc]
mov ecx, dword [edi]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x52c5c6
mov esi, dword [esi]
mov edi, dword [edi]
call fcn.00519760
test eax, eax
je 0x52c5b1
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Failed_to_copy_the_file__s_to__s
call eax
push esi
push edi
push eax
call fcn.00527960
add esp, 0xc
pop edi
xor al, al
pop esi
ret
push esi
mov eax, str.Failed_to_copy_the_file__s_to__s
push edi
push eax
call fcn.00527960
add esp, 0xc
pop edi
xor al, al
pop esi
ret
pop edi
mov al, 1
pop esi
ret

Function at 0x52cb50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x611a88
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x6e377c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x52cb80
mov eax, 0x683698
mov ecx, dword [0x63dcd0]
push ecx
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.0050fcd0
mov esi, dword [esp + 0x20]
push esi
mov dword [esp + 0x1c], 0
call fcn.0052c6f0
add esp, 4
test al, al
je 0x52cbed
mov ebx, 0x3a
mov edi, dword [esi - 8]
cmp edi, 1
je 0x52cbed
cmp edi, 3
jne 0x52cbd1
lea ecx, [esp + 0x20]
call fcn.0050f090
mov esi, dword [esp + 0x20]
cmp word [esi + 2], bx
je 0x52cbed
dec edi
push edi
lea ecx, [esp + 0x24]
call fcn.00511280
mov esi, dword [esp + 0x20]
push esi
call fcn.0052c6f0
add esp, 4
test al, al
jne 0x52cbb1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x52cc01
test al, 0x10
je 0x52cc01
mov bl, 1
jmp 0x52cc03
xor bl, bl
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x18], 0xffffffff
cmp eax, 0xffffffff
je 0x52cc26
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52cc26
call fcn.0050ec00
mov al, bl
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x52d170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x610a39
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x6e377c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [0x6db93c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], 1
mov dword [esp + 8], eax
mov edx, dword [esp + 0x28]
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
mov byte [esp + 0x30], 2
call fcn.0051f730
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
mov esi, dword [esp + 0x38]
add esp, 0x14
test eax, eax
jne 0x52d1e9
mov eax, dword [0x6db93c]
mov dword [esi], eax
jmp 0x52d1f7
mov dword [esi], ecx
mov eax, dword [ecx - 0xc]
cmp eax, 0xffffffff
je 0x52d1f7
inc eax
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 8]
cmp dword [ecx - 8], 0
mov dword [esp + 0x10], 1
je 0x52d225
push 0x2e
push 1
mov ecx, esi
call fcn.0050fd80
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
push eax
push ecx
push eax
mov ecx, esi
call fcn.005101f0
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x1c], 1
cmp eax, 0xffffffff
je 0x52d245
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52d245
call fcn.0050ec00
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x1c], 0
cmp eax, 0xffffffff
je 0x52d265
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52d265
call fcn.0050ec00
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret

Function at 0x52d670
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x52d6ee
mov eax, dword [esi]
test eax, eax
je 0x52d6ee
push ebx
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
push 1
push ecx
call fcn.005b867a
mov ebx, eax
add esp, 0x10
cmp ebx, edi
jae 0x52d6e6
mov eax, dword [esi]
push eax
call fcn.005c25ee
add esp, 4
test eax, eax
je 0x52d6e6
mov esi, dword [esi + 4]
call fcn.00519760
test eax, eax
je 0x52d6d7
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Read_error_on_file__s
call eax
push esi
push eax
call fcn.00527960
add esp, 8
pop edi
mov eax, ebx
pop ebx
pop esi
ret 8
mov eax, str.Read_error_on_file__s
push esi
push eax
call fcn.00527960
add esp, 8
pop edi
mov eax, ebx
pop ebx
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x52d700
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x52d76f
mov eax, dword [edi]
test eax, eax
je 0x52d76f
push ebx
push esi
mov esi, dword [esp + 0x14]
push eax
push esi
push 1
push ecx
call fcn.005ba135
mov ebx, eax
add esp, 0x10
cmp ebx, esi
jae 0x52d767
mov edi, dword [edi + 4]
call fcn.00519760
test eax, eax
je 0x52d758
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Write_error_on_file__s
call eax
push edi
push eax
call fcn.00527960
add esp, 8
pop esi
mov eax, ebx
pop ebx
pop edi
ret 8
mov eax, str.Write_error_on_file__s
push edi
push eax
call fcn.00527960
add esp, 8
pop esi
mov eax, ebx
pop ebx
pop edi
ret 8
xor eax, eax
pop edi
ret 8
Function at 0x52da10
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x610ad0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x6e377c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esp + 0x28], 0
je 0x52dae4
cmp dword [esi], 0
je 0x52dae4
call fcn.0052d9a0
test edx, edx
jl 0x52dae4
jg 0x52da63
test eax, eax
jb 0x52dae4
mov ecx, esi
call fcn.0052d9a0
mov ecx, esi
mov edi, eax
mov dword [esp + 0x14], edx
call fcn.0052d9a0
xor ecx, ecx
cmp edi, eax
jne 0x52dae4
cmp ecx, edx
jne 0x52dae4
mov eax, dword [esi]
push eax
call fcn.005c26cf
add esp, 4
lea ecx, [edi + 1]
push ecx
lea ecx, [esp + 0x14]
call fcn.0050ecb0
mov edx, dword [esi]
push edx
push edi
mov edi, dword [esp + 0x18]
push 1
push edi
mov dword [esp + 0x30], 0
call fcn.005b867a
mov ebp, eax
mov eax, dword [esi]
push eax
call fcn.005c25ee
add esp, 0x14
test eax, eax
je 0x52dafb
mov esi, dword [esi + 4]
push esi
push 0
push str.Read_error_on_file__s
call fcn.00511bb0
add esp, 8
push eax
call fcn.00527960
push edi
call fcn.005b5a6b
add esp, 0xc
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 8
mov edx, dword [esp + 0x2c]
mov byte [edi + ebp], 0
mov ecx, dword [0x63dcd0]
push ecx
push edx
push edi
lea ecx, [esp + 0x38]
call fcn.00510f90
mov ecx, dword [esp + 0x28]
push eax
mov byte [esp + 0x24], 1
call fcn.0040a76f
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.00401017
push edi
call fcn.005b5a6b
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 8

Function at 0x52e2c0
Capabilities:
Delete file

Disassembly:
push ecx
call fcn.0052e1e0
test al, al
je 0x52e2fc
mov eax, dword [esp + 8]
push esi
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, dword [0x6dbcc4]
call fcn.005182d0
mov eax, dword [eax]
push eax
call fcn.005c2770
mov edx, dword [esp + 8]
push edx
mov esi, eax
call fcn.005b5a6b
add esp, 8
mov eax, esi
pop esi
pop ecx
ret
add esp, 4
jmp fcn.005c2740
Function at 0x52e740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x610cb9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x6e377c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x40]
push 0
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0050ee50
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push eax
push ecx
mov ebx, 1
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], 0
mov dword [esp + 0x18], ebx
call fcn.0052e6c0
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], ebx
call fcn.0052e4b0
test al, al
je 0x52e808
lea esp, [esp]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.0052e590
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x40], 2
call fcn.00510030
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x38], bl
cmp eax, 0xffffffff
je 0x52e7fb
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52e7fb
call fcn.0050ec00
lea ecx, [esp + 0x14]
call fcn.0052e4b0
test al, al
jne 0x52e7c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.00554f90
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x52e9c0
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x610d10
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x6e377c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x63dcd0]
push eax
push 0
push str.shell32
lea ecx, [esp + 0x1c]
call fcn.0050fcd0
push 2
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
call fcn.0052d3d0
cmp dword [esp + 8], 0
jne 0x52ea37
mov edx, dword [esp + 0x10]
push edx
push str.Failed_to_load__s.dll
push str.stdpaths
call fcn.0056c990
add esp, 0xc
mov al, byte [0x6dc094]
mov byte [esp + 6], al
mov byte [0x6dc094], 0
mov byte [esp + 7], al
mov eax, dword [0x63dcd0]
push eax
push 0
push str.SHGetFolderPath
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.0050fcd0
push 0x57
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x2c], 3
call fcn.00510390
add esp, 0xc
push 0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.0052d370
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff4
mov dword [0x6f57f8], eax
mov eax, dword [ecx]
mov byte [esp + 0x20], 3
cmp eax, 0xffffffff
je 0x52eab4
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52eab4
call fcn.0050ec00
cmp dword [0x6f57f8], 0
jne 0x52eb14
push str.SHGetSpecialFolderPath
lea ecx, [esp + 0x10]
call fcn.0050fe00
push 0x57
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00510390
add esp, 0xc
push 0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 5
call fcn.0052d370
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff4
mov dword [0x6f57fc], eax
mov eax, dword [ecx]
mov byte [esp + 0x20], 3
cmp eax, 0xffffffff
je 0x52eb14
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52eb14
call fcn.0050ec00
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff4
mov byte [0x6f5800], 1
mov eax, dword [ecx]
mov byte [esp + 0x20], 2
cmp eax, 0xffffffff
je 0x52eb3a
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52eb3a
call fcn.0050ec00
mov eax, dword [esp + 8]
mov dl, byte [esp + 6]
mov byte [0x6dc094], dl
mov byte [esp + 0x20], 0
test eax, eax
je 0x52eb62
push eax
call fcn.0052d520
add esp, 4
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0xffffffff
je 0x52eb85
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52eb85
call fcn.0050ec00
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
add esp, 0x20
ret
Function at 0x52eba0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x610d71
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e377c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebx
cmp byte [0x6f5800], bl
jne 0x52ebde
call fcn.0052e9c0
mov esi, dword [esp + 0x38]
mov eax, dword [0x6db93c]
mov dword [esi], eax
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], 1
mov edi, 0x80004005
cmp dword [0x6f57f8], ebx
je 0x52ec7f
push 0x104
mov ecx, esi
mov dword [esp + 0x24], esi
call fcn.0050f7e0
mov dword [esp + 0x24], eax
push eax
push ebx
push ebx
push ebp
push ebx
mov dword [esp + 0x44], 1
call dword [0x6f57f8]
mov ecx, esi
mov edi, eax
mov byte [esp + 0x30], bl
call fcn.0050fe50
cmp edi, 0x80004005
jne 0x52ec77
push 0x104
mov ecx, esi
mov dword [esp + 0x24], esi
call fcn.0050f7e0
mov dword [esp + 0x24], eax
push eax
push 1
push ebx
push ebp
push ebx
mov dword [esp + 0x44], 2
call dword [0x6f57f8]
mov ecx, esi
mov edi, eax
mov byte [esp + 0x30], bl
call fcn.0050fe50
cmp edi, ebx
jge 0x52ed4e
cmp dword [0x6f57fc], ebx
je 0x52ecba
push 0x104
mov ecx, esi
mov dword [esp + 0x24], esi
call fcn.0050f7e0
mov dword [esp + 0x24], eax
push ebx
push ebp
push eax
push ebx
mov dword [esp + 0x40], 3
call dword [0x6f57fc]
mov ecx, esi
mov edi, eax
mov byte [esp + 0x30], bl
call fcn.0050fe50
cmp edi, ebx
jge 0x52ed4e
lea ecx, [esp + 0x1c]
push ecx
push ebp
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x52ed4e
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 4
call fcn.0052e940
push eax
mov ecx, esi
mov byte [esp + 0x34], 5
call fcn.0050f610
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x30], 4
cmp eax, 0xffffffff
je 0x52ed1e
dec eax
mov dword [ecx], eax
cmp eax, ebx
jne 0x52ed1e
call fcn.0050ec00
mov byte [esp + 0x30], bl
cmp edi, ebx
je 0x52ed4e
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x52ed4e
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push edi
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret