joyce8/EMBER2024-capa huggingface dataset:
Function at 0x523920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60d789
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x6e163c]
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.0050e450
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
push edx
push eax
push esi
mov byte [esp + 0x34], 2
call fcn.0050ecb0
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 0x5239ad
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5239ad
call fcn.0050ccc0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x1c], 0
cmp eax, 0xffffffff
je 0x5239cd
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5239cd
call fcn.0050ccc0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret 0xc

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

Disassembly:
push 0xffffffffffffffff
push 0x60dce8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6e163c]
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 0x5281e5
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00527810
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x5297c0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x5297ed
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 0x5297d0
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret

Function at 0x5299e0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x529a4a
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x529a4a
mov edx, dword [esp + 0xc]
push edx
push ecx
push eax
call fcn.005be7cb
add esp, 0xc
cmp eax, 0xffffffff
jne 0x529a4c
call fcn.00517840
test eax, eax
je 0x529a32
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.00525ae0
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.00525ae0
add esp, 8
or eax, 0xffffffff
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x52a550
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 0x52a56c
test al, 0x10
jne 0x52a56c
mov eax, 1
ret
xor eax, eax
ret

Function at 0x52a6b0
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 0x52a716
mov esi, dword [esi]
mov edi, dword [edi]
call fcn.00517840
test eax, eax
je 0x52a701
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push 0x642fe0
call eax
push esi
push edi
push eax
call fcn.00525ae0
add esp, 0xc
pop edi
xor al, al
pop esi
ret
push esi
mov eax, 0x642fe0
push edi
push eax
call fcn.00525ae0
add esp, 0xc
pop edi
xor al, al
pop esi
ret
pop edi
mov al, 1
pop esi
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x60c218
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x52acd0
mov eax, 0x6874ac
mov ecx, dword [0x63bb88]
push ecx
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.0050dd90
mov esi, dword [esp + 0x20]
push esi
mov dword [esp + 0x1c], 0
call fcn.0052a840
add esp, 4
test al, al
je 0x52ad3d
mov ebx, 0x3a
mov edi, dword [esi - 8]
cmp edi, 1
je 0x52ad3d
cmp edi, 3
jne 0x52ad21
lea ecx, [esp + 0x20]
call fcn.0050d150
mov esi, dword [esp + 0x20]
cmp word [esi + 2], bx
je 0x52ad3d
dec edi
push edi
lea ecx, [esp + 0x24]
call fcn.0050f2f0
mov esi, dword [esp + 0x20]
push esi
call fcn.0052a840
add esp, 4
test al, al
jne 0x52ad01
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x52ad51
test al, 0x10
je 0x52ad51
mov bl, 1
jmp 0x52ad53
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 0x52ad76
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52ad76
call fcn.0050ccc0
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 0x52b2c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60e149
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [0x6d983c]
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.0051d8c0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
mov esi, dword [esp + 0x38]
add esp, 0x14
test eax, eax
jne 0x52b339
mov eax, dword [0x6d983c]
mov dword [esi], eax
jmp 0x52b347
mov dword [esi], ecx
mov eax, dword [ecx - 0xc]
cmp eax, 0xffffffff
je 0x52b347
inc eax
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 8]
cmp dword [ecx - 8], 0
mov dword [esp + 0x10], 1
je 0x52b375
push 0x2e
push 1
mov ecx, esi
call fcn.0050de40
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
push eax
push ecx
push eax
mov ecx, esi
call fcn.0050e2b0
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x1c], 1
cmp eax, 0xffffffff
je 0x52b395
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52b395
call fcn.0050ccc0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x1c], 0
cmp eax, 0xffffffff
je 0x52b3b5
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52b3b5
call fcn.0050ccc0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret

Function at 0x52b7c0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x52b83e
mov eax, dword [esi]
test eax, eax
je 0x52b83e
push ebx
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
push 1
push ecx
call fcn.005b632a
mov ebx, eax
add esp, 0x10
cmp ebx, edi
jae 0x52b836
mov eax, dword [esi]
push eax
call fcn.005bf75b
add esp, 4
test eax, eax
je 0x52b836
mov esi, dword [esi + 4]
call fcn.00517840
test eax, eax
je 0x52b827
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.00525ae0
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.00525ae0
add esp, 8
pop edi
mov eax, ebx
pop ebx
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x52b850
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x52b8bf
mov eax, dword [edi]
test eax, eax
je 0x52b8bf
push ebx
push esi
mov esi, dword [esp + 0x14]
push eax
push esi
push 1
push ecx
call fcn.005b7cae
mov ebx, eax
add esp, 0x10
cmp ebx, esi
jae 0x52b8b7
mov edi, dword [edi + 4]
call fcn.00517840
test eax, eax
je 0x52b8a8
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.00525ae0
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.00525ae0
add esp, 8
pop esi
mov eax, ebx
pop ebx
pop edi
ret 8
xor eax, eax
pop edi
ret 8
Function at 0x52bb60
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x60e1b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esp + 0x28], 0
je 0x52bc34
cmp dword [esi], 0
je 0x52bc34
call fcn.0052baf0
test edx, edx
jl 0x52bc34
jg 0x52bbb3
test eax, eax
jb 0x52bc34
mov ecx, esi
call fcn.0052baf0
mov ecx, esi
mov edi, eax
mov dword [esp + 0x14], edx
call fcn.0052baf0
xor ecx, ecx
cmp edi, eax
jne 0x52bc34
cmp ecx, edx
jne 0x52bc34
mov eax, dword [esi]
push eax
call fcn.005bf83c
add esp, 4
lea ecx, [edi + 1]
push ecx
lea ecx, [esp + 0x14]
call fcn.0050cd70
mov edx, dword [esi]
push edx
push edi
mov edi, dword [esp + 0x18]
push 1
push edi
mov dword [esp + 0x30], 0
call fcn.005b632a
mov ebp, eax
mov eax, dword [esi]
push eax
call fcn.005bf75b
add esp, 0x14
test eax, eax
je 0x52bc4b
mov esi, dword [esi + 4]
push esi
push 0
push str.Read_error_on_file__s
call fcn.0050fc20
add esp, 8
push eax
call fcn.00525ae0
push edi
call fcn.005b3848
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 [0x63bb88]
push ecx
push edx
push edi
lea ecx, [esp + 0x38]
call fcn.0050f000
mov ecx, dword [esp + 0x28]
push eax
mov byte [esp + 0x24], 1
call fcn.0040abdb
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.00401017
push edi
call fcn.005b3848
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 0x52c400
Capabilities:
Delete file

Disassembly:
push ecx
call fcn.0052c320
test al, al
je 0x52c43c
mov eax, dword [esp + 8]
push esi
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, dword [0x6d9bc4]
call fcn.005163d0
mov eax, dword [eax]
push eax
call fcn.005bf8dd
mov edx, dword [esp + 8]
push edx
mov esi, eax
call fcn.005b3848
add esp, 8
mov eax, esi
pop esi
pop ecx
ret
add esp, 4
jmp fcn.005bf8ad
Function at 0x52c880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60e399
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x6e163c]
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.0050cf10
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.0052c800
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], ebx
call fcn.0052c5f0
test al, al
je 0x52c948
lea esp, [esp]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.0052c6d0
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x40], 2
call fcn.0050e0f0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x38], bl
cmp eax, 0xffffffff
je 0x52c93b
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52c93b
call fcn.0050ccc0
lea ecx, [esp + 0x14]
call fcn.0052c5f0
test al, al
jne 0x52c900
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.00517890
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 0x52cb00
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x60e430
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x63bb88]
push eax
push 0
push str.shell32
lea ecx, [esp + 0x1c]
call fcn.0050dd90
push 2
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
call fcn.0052b520
cmp dword [esp + 8], 0
jne 0x52cb77
mov edx, dword [esp + 0x10]
push edx
push str.Failed_to_load__s.dll
push str.stdpaths
call fcn.0055bfb0
add esp, 0xc
mov al, byte [0x6d9f94]
mov byte [esp + 6], al
mov byte [0x6d9f94], 0
mov byte [esp + 7], al
mov eax, dword [0x63bb88]
push eax
push 0
push str.SHGetFolderPath
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.0050dd90
push 0x57
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x2c], 3
call fcn.0050e450
add esp, 0xc
push 0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.0052b4c0
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff4
mov dword [0x6f36a8], eax
mov eax, dword [ecx]
mov byte [esp + 0x20], 3
cmp eax, 0xffffffff
je 0x52cbf4
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52cbf4
call fcn.0050ccc0
cmp dword [0x6f36a8], 0
jne 0x52cc54
push str.SHGetSpecialFolderPath
lea ecx, [esp + 0x10]
call fcn.0050dec0
push 0x57
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0050e450
add esp, 0xc
push 0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 5
call fcn.0052b4c0
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff4
mov dword [0x6f36ac], eax
mov eax, dword [ecx]
mov byte [esp + 0x20], 3
cmp eax, 0xffffffff
je 0x52cc54
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52cc54
call fcn.0050ccc0
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff4
mov byte [0x6f36b0], 1
mov eax, dword [ecx]
mov byte [esp + 0x20], 2
cmp eax, 0xffffffff
je 0x52cc7a
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52cc7a
call fcn.0050ccc0
mov eax, dword [esp + 8]
mov dl, byte [esp + 6]
mov byte [0x6d9f94], dl
mov byte [esp + 0x20], 0
test eax, eax
je 0x52cca2
push eax
call fcn.0052b670
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 0x52ccc5
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52ccc5
call fcn.0050ccc0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
add esp, 0x20
ret
Function at 0x52cce0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x60e491
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e163c]
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 [0x6f36b0], bl
jne 0x52cd1e
call fcn.0052cb00
mov esi, dword [esp + 0x38]
mov eax, dword [0x6d983c]
mov dword [esi], eax
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], 1
mov edi, 0x80004005
cmp dword [0x6f36a8], ebx
je 0x52cdbf
push 0x104
mov ecx, esi
mov dword [esp + 0x24], esi
call fcn.0050d8a0
mov dword [esp + 0x24], eax
push eax
push ebx
push ebx
push ebp
push ebx
mov dword [esp + 0x44], 1
call dword [0x6f36a8]
mov ecx, esi
mov edi, eax
mov byte [esp + 0x30], bl
call fcn.0050df10
cmp edi, 0x80004005
jne 0x52cdb7
push 0x104
mov ecx, esi
mov dword [esp + 0x24], esi
call fcn.0050d8a0
mov dword [esp + 0x24], eax
push eax
push 1
push ebx
push ebp
push ebx
mov dword [esp + 0x44], 2
call dword [0x6f36a8]
mov ecx, esi
mov edi, eax
mov byte [esp + 0x30], bl
call fcn.0050df10
cmp edi, ebx
jge 0x52ce8e
cmp dword [0x6f36ac], ebx
je 0x52cdfa
push 0x104
mov ecx, esi
mov dword [esp + 0x24], esi
call fcn.0050d8a0
mov dword [esp + 0x24], eax
push ebx
push ebp
push eax
push ebx
mov dword [esp + 0x40], 3
call dword [0x6f36ac]
mov ecx, esi
mov edi, eax
mov byte [esp + 0x30], bl
call fcn.0050df10
cmp edi, ebx
jge 0x52ce8e
lea ecx, [esp + 0x1c]
push ecx
push ebp
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x52ce8e
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.0052ca80
push eax
mov ecx, esi
mov byte [esp + 0x34], 5
call fcn.0050d6d0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x30], 4
cmp eax, 0xffffffff
je 0x52ce5e
dec eax
mov dword [ecx], eax
cmp eax, ebx
jne 0x52ce5e
call fcn.0050ccc0
mov byte [esp + 0x30], bl
cmp edi, ebx
je 0x52ce8e
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x52ce8e
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
Function at 0x52ceb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60e4d9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], 0
call fcn.005295d0
add esp, 4
push 0
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 1
call fcn.0050fc50
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x38], 3
cmp eax, 0xffffffff
je 0x52cf1d
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52cf1d
call fcn.0050ccc0
mov esi, dword [esp + 0x40]
push 0
push 1
push esi
lea ecx, [esp + 0x1c]
call fcn.0051cdf0
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
mov byte [esp + 0x38], 0
call fcn.0050fcd0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret

Function at 0x52dae0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x60e552
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x6e163c]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x22c]
xor eax, eax
mov dword [esp + 8], eax
mov ecx, dword [0x6d983c]
mov dword [esp + 0xc], esi
mov dword [esi], ecx
push 0x104
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x22c], eax
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0050dec0
push 0x5c
push 1
mov ecx, esi
call fcn.0050de40
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.005b8641
add esp, 0x220
ret

Function at 0x530b10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x60ea89
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.wxFileConfig.0
push 0
mov dword [esp + 0x18], 3
call fcn.0052efd0
mov ecx, esi
call fcn.00530ac0
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x530b64
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
push 1
call edx
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx - 0xc]
sub ecx, 0xc
mov byte [esp + 0x14], 2
cmp eax, 0xffffffff
je 0x530b83
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x530b83
call fcn.0050ccc0
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx - 0xc]
sub ecx, 0xc
mov byte [esp + 0x14], 1
cmp eax, 0xffffffff
je 0x530ba2
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x530ba2
call fcn.0050ccc0
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx - 0xc]
sub ecx, 0xc
mov byte [esp + 0x14], 0
cmp eax, 0xffffffff
je 0x530bc1
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x530bc1
call fcn.0050ccc0
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.00523ed0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x531a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60ec88
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.wxProcess.0
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x14], 0
test ecx, ecx
je 0x531a55
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x531a64
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x531a73
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.00513a80
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x532470
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x60ed18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, ecx
push 0
call fcn.00532360
mov esi, dword [esp + 0x34]
test al, al
je 0x5325cc
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
test esi, esi
je 0x5324ca
cmp word [esi], 0
je 0x5324ca
xor eax, eax
jmp 0x5324cf
mov eax, 1
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
xor ecx, ecx
test al, al
setne cl
push 0
lea edx, [esp + 0x20]
push edx
mov edx, dword [ebx]
push 0
dec ecx
and ecx, esi
push ecx
push edx
call ebp
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x5325cc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x532515
mov ecx, dword [esp + 0x38]
push eax
call fcn.0050f2f0
jmp 0x5325c2
mov edi, dword [esp + 0x38]
push eax
mov ecx, edi
call fcn.0050d8a0
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
push 0
mov ecx, esi
call fcn.00531d00
push eax
mov eax, dword [ebx]
push eax
call ebp
mov ecx, edi
mov dword [ebx + 0x10], eax
call fcn.0050df10
cmp dword [esp + 0x18], 2
jne 0x5325c2
cmp byte [esp + 0x3c], 0
jne 0x5325c2
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push eax
call esi
mov ebp, eax
test ebp, ebp
setne al
test al, al
je 0x5325be
mov ecx, dword [0x6d983c]
mov dword [esp + 0x3c], ecx
push ebp
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], 0
call fcn.0050dd00
mov eax, dword [eax + 4]
mov ecx, dword [edi]
push ebp
push eax
push ecx
call esi
mov ecx, dword [esp + 0x1c]
call fcn.0050df10
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call fcn.0050d6d0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00401017
mov esi, dword [esp + 0x34]
cmp dword [ebx + 0x10], 0
jne 0x5325cc
mov al, 1
jmp 0x532604
call fcn.00517840
test eax, eax
je 0x5325e9
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Cant_read_value_of__s
call eax
mov edi, eax
jmp 0x5325ee
mov edi, str.Cant_read_value_of__s
push ebx
call fcn.005321a0
mov ecx, dword [ebx + 0x10]
push eax
push edi
push ecx
call fcn.00525aa0
add esp, 0x10
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc