joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003555c
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x1005f489
call fcn.1004abca
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x1003557e
xor eax, eax
jmp 0x100356f1
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x100355ac
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x100355ac
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x100356f1
cmp dword [esi + 0x54], ebx
je 0x100356ec
mov ecx, esi
call fcn.10034ddb
cmp dword [esi + 0x44], ebx
jne 0x100355dc
push dword [esi + 0x54]
push edi
call fcn.10034ef0
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x100356f1
jmp 0x100356ec
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.100105b0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x10035699
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
xor ebx, ebx
inc ebx
test eax, eax
js 0x100356e1
cmp eax, ebx
jg 0x100356a1
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x1003564b
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x10035670
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x1003565e
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push ebx
push eax
call fcn.100484c9
add esp, 0x10
cmp edi, eax
jne 0x100356e1
lea eax, [ebp - 0x30]
mov byte [esi + 0x4a], bl
cmp dword [ebp - 0x38], eax
jne 0x100356d0
test edi, edi
jne 0x100355fd
cmp dword [ebp - 0x1c], 0x20
push edi
lea ecx, [ebp - 0x2c]
jae 0x100356e6
push 8
call fcn.10008080
jmp 0x100355fd
mov edx, dword [ebp - 0x2c]
jmp 0x1003560f
cmp eax, 3
jne 0x100356e1
push dword [esi + 0x54]
push dword [ebp - 0x30]
call fcn.10034ef0
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x100356c0
mov esi, 0xffff
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10003220
mov ax, si
jmp 0x100356f1
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10003220
mov ax, word [ebp + 8]
jmp 0x100356f1
push 0
lea ecx, [ebp - 0x2c]
push ebx
call fcn.10003220
mov eax, 0xffff
call fcn.1004ac14
ret 4

Function at 0x1004677e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1007a010]
jne 0x10046788
repz ret
jmp fcn.100500ab
Function at 0x1005a4bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007a010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10050323
and dword [ebp - 0x14], 0
cmp dword [0x1007dc08], 0
mov dword [ebp - 0x18], eax
jne 0x1005a56f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1005a617
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1005a617
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1007dc08], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1007dc0c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1007dc10], eax
call edi
push eax
call esi
mov dword [0x1007dc18], eax
test eax, eax
je 0x1005a56f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1007dc14], eax
mov eax, dword [0x1007dc14]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1005a5c8
cmp dword [0x1007dc18], ecx
je 0x1005a5c8
push eax
call esi
push dword [0x1007dc18]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1005a5c8
test ebx, ebx
je 0x1005a5c8
call edi
test eax, eax
je 0x1005a5bf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1005a5bf
test byte [ebp - 8], 1
jne 0x1005a5c8
or dword [ebp + 0x10], 0x200000
jmp 0x1005a5fb
mov eax, dword [0x1007dc0c]
cmp eax, dword [ebp - 0x18]
je 0x1005a5fb
push eax
call esi
test eax, eax
je 0x1005a5fb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1005a5fb
mov eax, dword [0x1007dc10]
cmp eax, dword [ebp - 0x18]
je 0x1005a5fb
push eax
call esi
test eax, eax
je 0x1005a5fb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1007dc08]
call esi
test eax, eax
je 0x1005a617
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1005a619
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004677e
leave
ret
Function at 0x401b90
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4f62a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x130], ecx
mov byte [ebp - 0xa0], 0
push 0x3f
push 0
lea eax, [ebp - 0x9f]
push eax
call fcn.0042efe0
add esp, 0xc
mov byte [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x3f], ecx
mov dword [ebp - 0x3b], ecx
mov dword [ebp - 0x37], ecx
mov dword [ebp - 0x33], ecx
mov dword [ebp - 0x2f], ecx
mov dword [ebp - 0x2b], ecx
mov dword [ebp - 0x27], ecx
mov word [ebp - 0x23], cx
mov byte [ebp - 0x21], cl
mov byte [ebp - 0x60], 0
xor edx, edx
mov dword [ebp - 0x5f], edx
mov dword [ebp - 0x5b], edx
mov dword [ebp - 0x57], edx
mov dword [ebp - 0x53], edx
mov dword [ebp - 0x4f], edx
mov dword [ebp - 0x4b], edx
mov dword [ebp - 0x47], edx
mov word [ebp - 0x43], dx
mov byte [ebp - 0x41], dl
mov byte [ebp - 0xe0], 0
push 0x3f
push 0
lea eax, [ebp - 0xdf]
push eax
call fcn.0042efe0
add esp, 0xc
mov byte [ebp - 0x120], 0
push 0x3f
push 0
lea ecx, [ebp - 0x11f]
push ecx
call fcn.0042efe0
add esp, 0xc
push 1
lea edx, [ebp - 0xa0]
push edx
sub esp, 0x1c
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.004029f0
mov ecx, dword [ebp - 0x130]
call fcn.00401f20
mov ecx, 8
lea esi, [ebp - 0xa0]
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x80]
mov ecx, 8
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x124], 0
jmp 0x401c97
mov ecx, dword [ebp - 0x124]
add ecx, 1
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x124], 0x10
jge 0x401cbc
mov edx, dword [ebp - 0x124]
push edx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x130]
call fcn.00401d90
jmp 0x401c88
mov ecx, 8
lea esi, [ebp - 0x60]
lea edi, [ebp - 0xe0]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0x40]
lea edi, [ebp - 0xc0]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x128], 0
jmp 0x401cf7
mov edx, dword [ebp - 0x128]
add edx, 1
mov dword [ebp - 0x128], edx
cmp dword [ebp - 0x128], 0x40
jge 0x401d23
mov eax, dword [ebp - 0x128]
movsx ecx, byte [eax + 0x4d36c0]
mov edx, dword [ebp - 0x128]
mov al, byte [ebp + ecx - 0xe1]
mov byte [ebp + edx - 0x120], al
jmp 0x401ce8
push 1
push 0x40
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x130]
call fcn.004017b0
mov ecx, eax
call fcn.00402bd0
mov ecx, dword [ebp - 0x130]
add ecx, 0x300
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x20]
call fcn.00402b30
lea ecx, [ebp + 8]
call fcn.00402b30
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425912
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4024d0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4f62a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0x28], 0
jmp 0x402519
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0x20
jge 0x402540
mov edx, dword [ebp - 0x28]
movsx eax, byte [edx + 0x4d36a0]
sub eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.00402bb0
mov ecx, dword [ebp - 0x28]
mov dl, byte [eax]
mov byte [ebp + ecx - 0x24], dl
jmp 0x402510
mov ecx, 8
lea esi, [ebp - 0x24]
mov edi, dword [ebp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 8]
call fcn.00402b30
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425912
mov esp, ebp
pop ebp
ret 0x20

Function at 0x403e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x403e79
xor ecx, ecx
jne 0x403e79
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403ec0
mov eax, dword [ebp - 0xc]
jmp 0x403f1d
cmp dword [ebp - 4], 1
je 0x403ed3
cmp dword [ebp - 4], 2
je 0x403ed3
mov eax, 0xd
jmp 0x403f1d
cmp dword [ebp + 0xc], 0
je 0x403f11
cmp dword [ebp - 8], 0
je 0x403f09
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x403f00
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x403f07
mov eax, 0xd
jmp 0x403f1d
jmp 0x403f11
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4042a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4f62a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x124], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jb 0x4042e7
mov eax, 1
jmp 0x4042e9
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00425912
mov esp, ebp
pop ebp
ret
Function at 0x4059e0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4f62a0]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x230], ecx
push 0
lea ecx, [ebp - 0xc]
call fcn.00403d00
push 0x2001f
push 0x4d29d0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xc]
call fcn.00403dd0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x405ad6
lea ecx, [ebp - 0x14]
call fcn.00405ce0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
push str.__s___s
lea ecx, [ebp - 0x14]
push ecx
call fcn.004068d0
add esp, 0x10
push 0x208
push 0
lea edx, [ebp - 0x220]
push edx
call fcn.0042efe0
add esp, 0xc
mov dword [ebp - 0x224], 0x104
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0xc]
call fcn.00403e70
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x14]
call fcn.00405dc0
test eax, eax
je 0x405ab4
push 1
lea ecx, [ebp - 0x14]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00403f30
mov dword [ebp - 0x228], 1
lea ecx, [ebp - 0x14]
call fcn.00405d40
lea ecx, [ebp - 0xc]
call fcn.00403d30
mov eax, dword [ebp - 0x228]
jmp 0x405aee
mov dword [ebp - 0x22c], 0
lea ecx, [ebp - 0xc]
call fcn.00403d30
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00425912
mov esp, ebp
pop ebp
ret 8

Function at 0x405b00
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
push 0
lea ecx, [ebp - 0xc]
call fcn.00403d00
push 0x2001f
push 0x4d2a40
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xc]
call fcn.00403dd0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x405b53
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.00403d50
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0xc]
call fcn.00403d30
mov eax, dword [ebp - 0x14]
jmp 0x405b65
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xc]
call fcn.00403d30
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 4
Function at 0x405b70
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4f62a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x230], ecx
push 0
lea ecx, [ebp - 0xc]
call fcn.00403d00
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xc]
call fcn.00403dd0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x405c1b
push 0x208
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.0042efe0
add esp, 0xc
mov dword [ebp - 0x224], 0x104
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.00403e70
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x405c1b
movzx ecx, word [ebp - 0x220]
test ecx, ecx
je 0x405c1b
mov dword [ebp - 0x228], 1
lea ecx, [ebp - 0xc]
call fcn.00403d30
mov eax, dword [ebp - 0x228]
jmp 0x405c33
mov dword [ebp - 0x22c], 0
lea ecx, [ebp - 0xc]
call fcn.00403d30
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00425912
mov esp, ebp
pop ebp
ret 4

Function at 0x405c90
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
movzx eax, word [0x4faf88]
test eax, eax
jne 0x405cbc
mov dword [ebp - 4], 0x100
lea ecx, [ebp - 4]
push ecx
push 0x4faf88
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
push 0x4faf88
mov ecx, dword [ebp + 8]
call fcn.00405d00
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x40bfd0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 0xc]
call fcn.004063a0
test eax, eax
jne 0x40bff7
push 0x4cfd7c
mov ecx, dword [ebp + 8]
call fcn.00405d00
mov eax, dword [ebp + 8]
jmp 0x40c0cc
mov dword [ebp - 0x14], 0x400
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push 1
mov ecx, dword [ebp + 0xc]
call fcn.004063a0
push eax
mov ecx, dword [ebp + 0xc]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00424d7a
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.0042efe0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 1
mov ecx, dword [ebp + 0xc]
call fcn.004063a0
push eax
mov ecx, dword [ebp + 0xc]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
call fcn.00405d00
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004262e5
add esp, 4
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407b70
lea ecx, [ebp - 4]
call fcn.00405d40
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x40cf40
Capabilities:
Check if file exists
Delete file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
push str.softwareGamePP
lea eax, [ebp - 4]
push eax
call fcn.0040bd10
mov ecx, eax
call fcn.00416470
lea ecx, [ebp - 4]
call fcn.00407c50
movzx ecx, al
test ecx, ecx
je 0x40cf93
push str.softwarePUBGTools
lea edx, [ebp - 0x14]
push edx
call fcn.0040bd10
mov ecx, eax
call fcn.00416470
push eax
lea ecx, [ebp - 4]
call fcn.00407b90
lea ecx, [ebp - 0x14]
call fcn.00405d40
lea ecx, [ebp - 8]
call fcn.00405ce0
mov eax, dword [ebp - 4]
push eax
push str._sUninstall.exe
lea ecx, [ebp - 8]
push ecx
call fcn.004068d0
add esp, 0xc
lea ecx, [ebp - 8]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d083
mov dword [ebp - 0xc], 0xffffffff
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx + 0x478]
test eax, eax
je 0x40d000
push 2
push 2
push 1
push str.Now_uninstall_the_old_version_
push str.Found_that_there_is_an_old_version_of_GamePP_
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
push edx
call fcn.004187e0
add esp, 0x18
mov dword [ebp - 0xc], eax
jmp 0x40d022
push 1
push 2
push 1
push 0x4d039c
push 0x4d03a0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call fcn.004187e0
add esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x40d083
push 0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 8]
call fcn.0040fc20
push eax
call fcn.0040bd10
mov ecx, eax
call fcn.00412ec0
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0040fc60
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 8]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 5
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 8]
call fcn.00405d40
lea ecx, [ebp - 4]
call fcn.00405d40
mov esp, ebp
pop ebp
ret
Function at 0x40d920
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], ecx
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.0042efe0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], str.open
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 5
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esp, ebp
pop ebp
ret 4
Function at 0x40e8b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
je 0x40e8d4
cmp dword [ebp - 8], 0xa3
je 0x40e8d0
jmp 0x40e8e7
xor eax, eax
jmp 0x40e8fb
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
jmp 0x40e8fb
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call sym.Setup.exe_public_virtual:_long_int___thiscall_DuiLib::WindowImplBase::HandleMessage_unsigned_int__unsigned_int__long_int_
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40ef50
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 0xc]
call fcn.004063a0
shl eax, 1
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xc]
call fcn.00405ce0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov eax, dword [ebp - 8]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00424d7a
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40efe7
mov ecx, dword [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00405d60
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004262e5
add esp, 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407b70
lea ecx, [ebp - 0xc]
call fcn.00405d40
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x40f020
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4f62a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
push 0x208
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.0042efe0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push str._appdata_GamePPGamePPConfig.ini
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x214]
call fcn.00405ce0
movzx edx, byte [ebp + 8]
test edx, edx
je 0x40f0ae
push 0x4d0a7c
lea ecx, [ebp - 0x214]
call fcn.00405d60
mov ecx, dword [ebp - 0x21c]
call fcn.0040fa60
mov ecx, dword [ebp - 0x21c]
call fcn.0040f140
mov eax, dword [ebp - 0x21c]
mov byte [eax + 0x478], 1
jmp 0x40f0e1
push 0x4d0a84
lea ecx, [ebp - 0x214]
call fcn.00405d60
mov ecx, dword [ebp - 0x21c]
call fcn.0040fb40
mov ecx, dword [ebp - 0x21c]
call fcn.0040f5d0
mov ecx, dword [ebp - 0x21c]
mov byte [ecx + 0x478], 0
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.0040ef50
add esp, 8
mov ecx, eax
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
push str.CurrentType
push str.LANGUAGE
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x218]
call fcn.00405d40
lea ecx, [ebp - 0x214]
call fcn.00405d40
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425912
mov esp, ebp
pop ebp
ret 4