joyce8/EMBER2024-capa huggingface dataset:
Function at 0x509550
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x6ea244]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [0x6e2908]
cmp eax, 0xffffffff
jne 0x5095c2
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.005a90b0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x5095b8
jne 0x5095b4
mov eax, dword [esp + 8]
test eax, eax
ja 0x5095b8
jne 0x5095b4
cmp word [esp + 0x114], 4
jae 0x5095b8
xor eax, eax
jmp 0x5095bd
mov eax, 1
mov dword [0x6e2908], eax
mov ecx, dword [esp + 0x11c]
xor edx, edx
cmp eax, 1
sete dl
xor ecx, esp
mov al, dl
call fcn.005acc10
add esp, 0x120
ret

Function at 0x512dc0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x6114f9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6ea244]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov esi, dword [esp + 0x1c]
mov eax, dword [0x6e2428]
mov dword [esi], eax
push str.TMPDIR
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 1
call fcn.005b06f3
add esp, 4
push eax
mov ecx, esi
call fcn.00501170
mov ecx, dword [esi]
cmp dword [ecx - 8], 0
jne 0x512e54
push 0x6454a8
call fcn.005b06f3
add esp, 4
push eax
mov ecx, esi
call fcn.00501170
mov edx, dword [esi]
cmp dword [edx - 8], 0
jne 0x512e54
push str.TEMP
call fcn.005b06f3
add esp, 4
push eax
mov ecx, esi
call fcn.00501170
mov eax, dword [esi]
cmp dword [eax - 8], 0
jne 0x512e8c
push 0x105
mov ecx, esi
call fcn.00500b50
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov ecx, esi
call fcn.005011c0
mov ecx, dword [esi]
cmp dword [ecx - 8], 0
jne 0x512e8c
push 0x2e
mov ecx, esi
call fcn.00501150
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x514750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6118e0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6ea244]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x6e2428]
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push edi
push 0
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push esi
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x34], 0
call fcn.005133a0
add esp, 0x1c
test esi, esi
je 0x5147f1
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x28]
push eax
mov edx, edi
call fcn.00513650
add esp, 8
push eax
mov ecx, esi
mov byte [esp + 0x1c], 1
call fcn.00505970
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x18], 0
cmp eax, 0xffffffff
je 0x5147f1
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5147f1
call fcn.004fff70
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x18], 0xffffffff
cmp eax, 0xffffffff
je 0x514814
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x514814
call fcn.004fff70
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x514830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x611908
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6ea244]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
push edi
mov eax, edx
call fcn.00512740
add esp, 4
test al, al
je 0x5148cd
mov eax, dword [0x6e2428]
mov ecx, dword [0x640cbc]
mov dword [esp + 0x30], eax
mov eax, dword [edx]
mov edx, dword [eax - 8]
dec edx
cmp edx, ecx
jae 0x514886
mov ecx, edx
push ecx
push 1
push eax
lea ecx, [esp + 0x3c]
call fcn.00501040
push edi
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.00513770
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x14], 0xffffffff
cmp eax, 0xffffffff
je 0x5148d6
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5148d6
call fcn.004fff70
jmp 0x5148d6
push edi
push edx
mov ecx, esi
call fcn.00513770
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00500980
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esi + 0x18]
call fcn.00500980
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esi + 0x14]
call fcn.00500980
mov dl, byte [esp + 0x2c]
mov byte [esi + 0x1d], dl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x18
Function at 0x514920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x611950
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x6ea244]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x6e2428]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x30]
push edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
mov byte [esp + 0x40], 3
call fcn.005133a0
mov eax, dword [esp + 0x4c]
add esp, 0x1c
push edi
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.00514830
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x24], 2
cmp eax, 0xffffffff
je 0x5149d5
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5149d5
call fcn.004fff70
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x24], 1
cmp eax, 0xffffffff
je 0x5149f5
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5149f5
call fcn.004fff70
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x24], 0
cmp eax, 0xffffffff
je 0x514a15
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x514a15
call fcn.004fff70
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x24], 0xffffffff
cmp eax, 0xffffffff
je 0x514a38
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x514a38
call fcn.004fff70
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 8
Function at 0x516820
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x611bb2
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x6ea244]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6ea244]
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 [0x6e2428]
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, 0x645728
call fcn.005b1ef8
add esp, 8
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x5168b2
test cl, cl
je 0x5168ae
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x5168b2
add eax, 2
add esi, 2
test cl, cl
jne 0x516892
xor eax, eax
jmp 0x5168b7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x5169d2
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 0x5169d2
xor esi, esi
lea ebx, [esp + 0x1c]
movzx eax, word [ebx]
cmp ax, di
jne 0x5168f1
inc esi
add ebx, 2
jmp 0x5168e3
movzx ecx, ax
add ecx, 0xffffffb3
cmp ecx, 0x2c
ja case.0x516903.78
movzx edx, byte [ecx + 0x516a04]
jmp dword [edx*4 + 0x5169fc]
movzx edi, ax
mov esi, 1
jmp 0x5169c4
test esi, esi
je 0x51699e
movzx eax, di
cmp eax, 0x4d
je 0x516971
cmp eax, 0x64
je 0x51694d
cmp eax, 0x79
jne case.default.0x516979
test esi, esi
jbe case.default.0x516979
cmp esi, 2
jbe 0x516946
cmp esi, 4
jne case.default.0x516979
push 0x645720
jmp 0x516993
push 0x645718
jmp 0x516993
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x516979
jmp dword [eax*4 + 0x516a34]
push 0x645710
jmp 0x516993
push 0x645670
jmp 0x516993
push 0x645668
jmp 0x516993
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x516979
jmp dword [eax*4 + 0x516a44]
push 0x645708
jmp 0x516993
push 0x645660
jmp 0x516993
push 0x645658
mov ecx, ebp
call fcn.00505920
xor edi, edi
xor esi, esi
movzx eax, word [ebx]
test ax, ax
je 0x5169d2
cmp ax, 0x25
jne 0x5169b7
push 0x25
push 1
mov ecx, ebp
call fcn.005010f0
movzx eax, word [ebx]
push eax
push 1
mov ecx, ebp
call fcn.005010f0
cmp word [ebx], 0
je 0x5169d2
add ebx, 2
jmp 0x5168e3
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.005acc10
add esp, 0xbc
ret
Function at 0x51b350
Capabilities:
Access peb ldr_data
Get kernel32 base address

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

Function at 0x51c980
Capabilities:
Encode data using xor

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

Function at 0x51cba0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x51cc0a
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x51cc0a
mov edx, dword [esp + 0xc]
push edx
push ecx
push eax
call fcn.005b2913
add esp, 0xc
cmp eax, 0xffffffff
jne 0x51cc0c
call fcn.0050aa80
test eax, eax
je 0x51cbf2
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.0050fe70
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.0050fe70
add esp, 8
or eax, 0xffffffff
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x51d710
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 0x51d72c
test al, 0x10
jne 0x51d72c
mov eax, 1
ret
xor eax, eax
ret

Function at 0x51d870
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 0x51d8d6
mov esi, dword [esi]
mov edi, dword [edi]
call fcn.0050aa80
test eax, eax
je 0x51d8c1
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.0050fe70
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.0050fe70
add esp, 0xc
pop edi
xor al, al
pop esi
ret
pop edi
mov al, 1
pop esi
ret
Function at 0x51de60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x612f48
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x6ea244]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x51de90
mov eax, 0x68c634
mov ecx, dword [0x640cbc]
push ecx
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.00501040
mov esi, dword [esp + 0x20]
push esi
mov dword [esp + 0x1c], 0
call fcn.0051da00
add esp, 4
test al, al
je 0x51defd
mov ebx, 0x3a
mov edi, dword [esi - 8]
cmp edi, 1
je 0x51defd
cmp edi, 3
jne 0x51dee1
lea ecx, [esp + 0x20]
call fcn.00500400
mov esi, dword [esp + 0x20]
cmp word [esi + 2], bx
je 0x51defd
dec edi
push edi
lea ecx, [esp + 0x24]
call fcn.005025a0
mov esi, dword [esp + 0x20]
push esi
call fcn.0051da00
add esp, 4
test al, al
jne 0x51dec1
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x51df11
test al, 0x10
je 0x51df11
mov bl, 1
jmp 0x51df13
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 0x51df36
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51df36
call fcn.004fff70
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 0x522d40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x612b39
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6ea244]
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.00521200
mov ecx, esi
call fcn.00522cf0
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x522d94
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 0x522db3
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x522db3
call fcn.004fff70
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx - 0xc]
sub ecx, 0xc
mov byte [esp + 0x14], 1
cmp eax, 0xffffffff
je 0x522dd2
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x522dd2
call fcn.004fff70
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx - 0xc]
sub ecx, 0xc
mov byte [esp + 0x14], 0
cmp eax, 0xffffffff
je 0x522df1
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x522df1
call fcn.004fff70
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.005106c0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x523520
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x52359e
mov eax, dword [esi]
test eax, eax
je 0x52359e
push ebx
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
push 1
push ecx
call fcn.005a97da
mov ebx, eax
add esp, 0x10
cmp ebx, edi
jae 0x523596
mov eax, dword [esi]
push eax
call fcn.005b38a1
add esp, 4
test eax, eax
je 0x523596
mov esi, dword [esi + 4]
call fcn.0050aa80
test eax, eax
je 0x523587
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.0050fe70
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.0050fe70
add esp, 8
pop edi
mov eax, ebx
pop ebx
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x5238c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x612c00
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x6ea244]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esp + 0x28], 0
je 0x523994
cmp dword [esi], 0
je 0x523994
call fcn.00523850
test edx, edx
jl 0x523994
jg 0x523913
test eax, eax
jb 0x523994
mov ecx, esi
call fcn.00523850
mov ecx, esi
mov edi, eax
mov dword [esp + 0x14], edx
call fcn.00523850
xor ecx, ecx
cmp edi, eax
jne 0x523994
cmp ecx, edx
jne 0x523994
mov eax, dword [esi]
push eax
call fcn.005b3982
add esp, 4
lea ecx, [edi + 1]
push ecx
lea ecx, [esp + 0x14]
call fcn.00500020
mov edx, dword [esi]
push edx
push edi
mov edi, dword [esp + 0x18]
push 1
push edi
mov dword [esp + 0x30], 0
call fcn.005a97da
mov ebp, eax
mov eax, dword [esi]
push eax
call fcn.005b38a1
add esp, 0x14
test eax, eax
je 0x5239ab
mov esi, dword [esi + 4]
push esi
push 0
push str.Read_error_on_file__s
call fcn.00502ba0
add esp, 8
push eax
call fcn.0050fe70
push edi
call fcn.005a6b81
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 [0x640cbc]
push ecx
push edx
push edi
lea ecx, [esp + 0x38]
call fcn.005022b0
mov ecx, dword [esp + 0x28]
push eax
mov byte [esp + 0x24], 1
call fcn.004065fd
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.00401017
push edi
call fcn.005a6b81
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 0x524140
Capabilities:
Delete file

Disassembly:
push ecx
call fcn.00524060
test al, al
je 0x52417c
mov eax, dword [esp + 8]
push esi
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, dword [0x6e27b4]
call fcn.00509610
mov eax, dword [eax]
push eax
call fcn.005b3a23
mov edx, dword [esp + 8]
push edx
mov esi, eax
call fcn.005a6b81
add esp, 8
mov eax, esi
pop esi
pop ecx
ret
add esp, 4
jmp fcn.005b39f3
Function at 0x525cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6130a8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6ea244]
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 0x525cf5
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x525d04
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x525d13
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.005043a0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x52a740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61360e
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6ea244]
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.wxTaskBarIcon.0
cmp byte [esi + 0x2c], 0
mov dword [esp + 0x14], 2
je 0x52a781
call fcn.0052a3b0
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x52a78f
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx - 0xc]
sub ecx, 0xc
mov byte [esp + 0x14], 1
cmp eax, 0xffffffff
je 0x52a7ae
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52a7ae
call fcn.004fff70
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0
call fcn.00535e30
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.005043a0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x52e4d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x613940
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x6ea244]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x6e3bf0]
cmp eax, 0xffffffff
jne 0x52e69e
mov al, byte [0x6e2a38]
xor ebx, ebx
mov dword [0x6e3bf0], ebx
mov byte [esp + 0xe], al
mov byte [0x6e2a38], bl
mov byte [esp + 0xf], al
mov eax, dword [0x640cbc]
push eax
push ebx
push str.comctl32.dll
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], ebx
call fcn.00501040
push 0x68
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 1
mov dword [esp + 0x18], ebx
call fcn.00523280
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x38], 3
cmp eax, 0xffffffff
je 0x52e570
dec eax
mov dword [ecx], eax
cmp eax, ebx
jne 0x52e570
call fcn.004fff70
cmp dword [esp + 0x10], ebx
jne 0x52e583
mov dword [0x6e3bf0], ebx
xor eax, eax
jmp 0x52e694
mov eax, dword [0x640cbc]
push eax
push ebx
push str.DllGetVersion
lea ecx, [esp + 0x24]
call fcn.00501040
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 4
call fcn.00523220
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff4
mov esi, eax
mov eax, dword [ecx]
mov byte [esp + 0x38], 3
cmp eax, 0xffffffff
je 0x52e5cd
dec eax
mov dword [ecx], eax
cmp eax, ebx
jne 0x52e5cd
call fcn.004fff70
cmp esi, ebx
je 0x52e5f6
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0x14
call esi
cmp eax, ebx
jl 0x52e5f6
mov eax, dword [esp + 0x20]
imul eax, eax, 0x64
add eax, dword [esp + 0x24]
mov dword [0x6e3bf0], eax
jmp 0x52e5fb
mov eax, dword [0x6e3bf0]
cmp eax, ebx
jne 0x52e694
push str.InitCommonControlsEx
lea ecx, [esp + 0x1c]
call fcn.00401327
push ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 5
call fcn.00523220
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff4
mov esi, eax
mov eax, dword [ecx]
mov byte [esp + 0x38], 3
cmp eax, 0xffffffff
je 0x52e646
dec eax
mov dword [ecx], eax
cmp eax, ebx
jne 0x52e646
call fcn.004fff70
cmp esi, ebx
jne 0x52e651
mov eax, 0x190
jmp 0x52e68f
push str.InitializeFlatSB
lea ecx, [esp + 0x1c]
call fcn.00401327
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 6
call fcn.00523220
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x38], 3
call fcn.00401017
xor eax, eax
cmp esi, ebx
setne al
add eax, 0x1d6
mov dword [0x6e3bf0], eax
mov dl, byte [esp + 0xe]
mov byte [0x6e2a38], dl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x52ea20
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x6139f8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x6ea244]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
call fcn.0052e890
test al, al
jne 0x52ea63
or eax, 0xffffffff
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x40
ret
mov eax, dword [esp + 0x50]
push eax
call fcn.0050feb0
mov ecx, dword [esp + 0x60]
add esp, 4
mov dword [0x6e3b60], ecx
push 0
lea ecx, [esp + 0x14]
call fcn.005001c0
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x52eac2
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00505790
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call fcn.00502210
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 0
call fcn.00500e70
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
xor ecx, ecx
inc eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005a51fc
mov edi, eax
mov eax, dword [esp + 0x10]
add esp, 4
xor esi, esi
test eax, eax
jle 0x52eb0c
mov eax, dword [esp + 0x18]
mov eax, dword [eax + esi*4]
push eax
call fcn.005af312
mov dword [edi + esi*4], eax
mov eax, dword [esp + 0x10]
inc esi
add esp, 4
cmp esi, eax
jl 0x52eaf0
mov dword [edi + eax*4], 0
mov ecx, dword [esp + 0xc]
push edi
push ecx
lea edx, [esp + 0x38]
push 0x52e910
push edx
call fcn.0052e9f0
lea eax, [esp + 0x1c]
push edi
push eax
mov byte [esp + 0x60], 2
call fcn.0050ffa0
lea ecx, [esp + 0x48]
push ecx
mov esi, eax
mov byte [esp + 0x64], 0
call fcn.0052e940
add esp, 0x1c
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], 0xffffffff
call fcn.00500e70
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x40
ret