joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ba00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x56c260]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x46a18b
je 0x46a1de
cmp ebx, 0x20
jbe 0x46a1e4
cmp ebx, 0x40
jbe 0x46a22a
jmp 0x46a2cb
test ebx, ebx
je 0x46a1d4
add eax, 0x10
test ax, 0xff0
je 0x46a1c0
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x4d4e00]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x4d4f00]
jmp 0x46a1a8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x46a1a8
pxor xmm1, xmmword [0x56c270]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x56c270]
pxor xmm2, xmmword [0x56c280]
pxor xmm3, xmmword [0x56c290]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x56c270]
pxor xmm2, xmmword [0x56c280]
pxor xmm3, xmmword [0x56c290]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x46a32a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x56bf28], 0
je 0x46ba1a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x46a150
jmp fcn.00408840
Function at 0x46ba20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword [0x56c044]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40367c
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00408840
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
add esp, 0x10
ret
call fcn.0046a750
jmp 0x403640
cmp byte [0x56bf28], 0
je 0x46ba3b
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp 0x46a150
jmp 0x403640

Function at 0x46c880
Capabilities:
Allocate thread local storage

Disassembly:
mov ebp, esp
mov eax, dword [sym.imp.kernel32.dll_TlsAlloc]
call eax
mov esp, ebp
mov ecx, eax
cmp ecx, 0x40
jb 0x46c89a
mov ecx, 0x14
jmp 0x46c8a3
shl ecx, 2
add ecx, 0xe10
mov dword [0x56c044], ecx
ret
Function at 0x484c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0x56c044]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x484d5a
sub esp, 0x20
mov ecx, dword [esp + 0x24]
test byte [ecx], al
mov edx, dword [esp + 0x28]
mov ebx, edx
and edx, 0x7f
shl edx, 5
add ecx, edx
mov dword [esp + 0x1c], ecx
xor eax, eax
jmp 0x484ca0
mov ebp, dword [esp + 0x14]
inc ebp
mov ecx, dword [esp + 0x1c]
mov ebx, eax
mov eax, ebp
cmp eax, 4
jge 0x484cd9
mov dword [esp + 0x14], eax
lea edx, [ecx + eax*8]
mov dword [esp], edx
call fcn.0046ff40
mov eax, dword [esp + 0x28]
cmp dword [esp + 4], eax
sete cl
mov edx, dword [esp + 0x2c]
cmp dword [esp + 8], edx
sete bl
and ebx, ecx
test bl, bl
je 0x484c93
mov byte [esp + 0x30], 1
add esp, 0x20
ret
xor eax, eax
mov edx, 0x84222325
jmp 0x484ce3
inc eax
cmp eax, 4
jge 0x484cf9
mov dword [esp + 0x18], eax
lea ebp, [ecx + eax*8]
mov esi, dword [ebp]
mov ebp, dword [ebp + 4]
xor edi, edi
jmp 0x484d53
and edx, 3
lea eax, [ecx + edx*8]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
call fcn.0046ff80
mov byte [esp + 0x30], 0
add esp, 0x20
ret
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
and esi, 0xff
xor edx, esi
mov esi, dword [esp + 0xc]
shr esi, 8
shl ebp, 0x18
mov eax, edx
mov ebx, 0x1b3
mul ebx
inc edi
or esi, ebp
mov ebp, dword [esp + 0x10]
shr ebp, 8
mov ebx, dword [esp + 0x28]
mov edx, eax
mov eax, dword [esp + 0x18]
cmp edi, 8
jl 0x484d1c
jmp 0x484ce2
call fcn.0046a750
jmp fcn.00484c60
Function at 0x40ba24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40bb5c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40bb46
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40ba81
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40bb46
cmp dword [ebp - 0x14], 0
jne 0x40ba98
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404c98
mov bl, 1
jmp 0x40bb46
cmp dword [ebp - 0x14], 0x70000000
jb 0x40baa6
call fcn.00409734
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00404dd4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.004054ac
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x40ba4a
test eax, eax
jne 0x40bb46
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40baf4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40bb46
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x40bafc
dec esi
test esi, esi
je 0x40bb0b
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x40bafb
cmp dword [ebp - 0x10], 7
jne 0x40bb16
test esi, esi
je 0x40bb16
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00404f00
cmp dword [ebp - 0x10], 7
jne 0x40bb39
test esi, esi
je 0x40bb39
lea eax, [ebp - 4]
call fcn.004054ac
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404c98
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb63
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40c5a0
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x415d98
mov eax, esi
mov edx, 8
test al, 1
je 0x40c5bc
shr eax, 1
xor eax, 0xedb88320
jmp 0x40c5be
shr eax, 1
dec edx
jne 0x40c5af
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40c5a8
pop esi
ret

Function at 0x40c5d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x415d94], 0
jne 0x40c5f7
call fcn.0040c5a0
push 1
push 0x415d94
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40c622
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x415d98]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40c5fd
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40e050
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040e004
test al, al
jne 0x40e071
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40e0bd
xor eax, eax
push ebp
push 0x40e0ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404d24
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e0b4
lea eax, [ebp - 0xc]
call fcn.0040e040
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e2fc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40e304
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40e3f1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040b8ec
mov edx, dword [ebp - 8]
mov ecx, 0x40e40c
xor eax, eax
call fcn.0040e1e0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x40e3bf
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40e31e
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x35
call fcn.0040de08
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00407e04
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040be74
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x67
call fcn.0040ddd8
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406c78]
call fcn.00409740
call fcn.00403f88
jmp 0x40e31e
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3f8
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404c90
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c90
ret

Function at 0x40e420
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x410c78]
cmp dword [eax], 2
jne 0x40e488
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40e443
xor eax, eax
jmp 0x40e497
lea eax, [esp + 8]
push eax
push 0x40e49c
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x40e488
xor eax, eax
jmp 0x40e497
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x40e9e0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40eab5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40ead0
push ebx
push 0x40eae0
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40ea60
mov al, 0x69
call fcn.0040e658
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040e9b4
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40ea69
call fcn.0040e9b4
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eabc
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ebd0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ec9b
jmp 0x40ec8f
cmp dword [esi + 0x10], 0x1000
jne 0x40ec7b
test byte [esi + 0x15], 1
jne 0x40ec7b
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40ec2c
cmp ebp, 2
je 0x40ec2c
cmp ebp, 0x10
je 0x40ec2c
cmp ebp, 0x20
jne 0x40ec48
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40ec48
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ec59
mov eax, dword [esi]
add eax, ebx
call fcn.0040ebc8
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40ec4c
cmp byte [esp + 4], 0
je 0x40ec7b
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ec9b
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ec01
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4071da
Capabilities:
Initialize winsock library

Disassembly:
push 0xbc
mov eax, 0x5275fe
call fcn.004f4139
push 0x190
mov esi, ecx
push 0
push esi
call fcn.004e9070
add esp, 0xc
push esi
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, eax
test edi, edi
je 0x407251
lea eax, [ebp - 0xc8]
push eax
call fcn.004036d7
mov esi, eax
and dword [ebp - 4], 0
push str.WSAStartup_failed_with
push esi
call fcn.00406897
pop ecx
pop ecx
push edi
push esi
call fcn.00407fdc
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00403741
push 0x11
mov ecx, 0x53b138
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401c97
mov eax, esi
call fcn.004f41bc
ret

Function at 0x40a719
Capabilities:
Delete file

Disassembly:
push 0x48
mov eax, 0x5238c8
call fcn.004f416f
mov ebx, ecx
cmp dword [ebx + 0x10], 0
je 0x40a79d
push ebx
lea esi, [ebp - 0x4c]
call fcn.00403165
and dword [ebp - 4], 0
push ebx
lea esi, [ebp - 0x30]
call fcn.00403165
push str..bak
mov eax, esi
push eax
mov byte [ebp - 4], 1
call fcn.004053b1
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x40a75f
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x30]
jae 0x40a772
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x40a77e
lea eax, [ebp - 0x4c]
push ecx
push eax
call fcn.004ec306
pop ecx
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00401501
push 1
lea esi, [ebp - 0x4c]
call fcn.00401501
push dword [ebp + 8]
call fcn.0042838a
pop ecx
push 8
mov dword [ebp - 4], 2
call fcn.004e7983
mov esi, eax
pop ecx
mov dword [ebp - 0x54], esi
test esi, esi
je 0x40a7e1
mov byte [ebp - 4], 4
and dword [esi + 4], 0
mov dword [esi], vtable.GFE::FileTraceHandler.0
cmp dword [ebx + 0x14], 8
jb 0x40a7d6
mov edi, dword [ebx]
jmp 0x40a7d8
mov edi, ebx
mov ecx, esi
call fcn.004286d0
jmp 0x40a7e3
xor esi, esi
push esi
mov byte [ebp - 4], 2
call fcn.0042847c
or dword [ebp - 4], 0xffffffff
pop ecx
push str.START_UPDT
xor ecx, ecx
call fcn.004284f3
pop ecx
call fcn.004f41cb
ret
Function at 0x40ee32
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x52f521
call fcn.004f4139
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x4c], eax
call esi
cmp dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x50], eax
je 0x40ef65
xor ebx, ebx
cmp dword [ebp - 0x4c], ebx
je 0x40ef65
cmp eax, 0xffffffff
je 0x40ef65
cmp eax, ebx
je 0x40ef65
push 3
pop edi
push edi
call fcn.0042838a
push 0x20
call fcn.004e7983
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x40eebe
lea ecx, [esi + 4]
mov dword [esi], vtable.GFE::MemoryTraceHandler.0
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
mov word [ecx], ax
mov eax, 0x10000
mov byte [ebp - 4], 2
call fcn.004152c8
jmp 0x40eec0
xor esi, esi
or dword [ebp - 4], 0xffffffff
push esi
call fcn.0042847c
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.0041cd68
lea ecx, [ebp - 0x48]
mov eax, esi
mov dword [ebp - 4], edi
call fcn.00428832
mov byte [ebp - 4], 4
call fcn.004283e1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], ebx
jae 0x40eef8
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x4c]
call esi
test eax, eax
jne 0x40ef30
xor ebx, ebx
inc ebx
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00401501
push 1
lea esi, [ebp - 0x2c]
call fcn.00401501
mov eax, ebx
jmp 0x40ef68
push dword [ebp - 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x40ef47
lea eax, [ebp - 0x48]
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x38]
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x50]
call esi
push dword [ebp - 0x50]
mov esi, eax
call edi
cmp esi, ebx
jne 0x40ef16
jmp 0x40ef13
xor eax, eax
inc eax
call fcn.004f41bc
ret
Function at 0x414055
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52f716
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x572480]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x572480]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xc], 0
mov edi, str.srcPackageManager.cpp
sete al
test al, al
jne 0x4140a8
push 0x64b
call fcn.00425fcb
pop ecx
push esi
push 0x41400d
call fcn.0042cec8
pop ecx
pop ecx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4140dd
push str.Cannot_start_installation_thread
lea esi, [esp + 0x10]
call fcn.0040319e
and dword [esp + 0x38], 0
push 0x650
mov ecx, edi
mov eax, esi
call fcn.00401c97
push str.Installation_thread_started.
push 3
pop ecx
call fcn.004284f3
pop ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004e72ee
mov esp, ebp
pop ebp
ret

Function at 0x41aa99
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5272c0
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x572480]
xor eax, esp
mov dword [esp + 0xb4], eax
push esi
push edi
mov eax, dword [0x572480]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.004036d7
mov esi, eax
and dword [esp + 0xd0], 0
push 0x53dae8
push esi
call fcn.00406897
push str.UPDT_API_IDaemon_GetLastGeolocation
push esi
call fcn.00406897
add esp, 0x10
lea eax, [esp + 0xa4]
push eax
mov eax, esi
call fcn.00403741
mov byte [esp + 0xd0], 1
cmp dword [esp + 0xb8], 8
mov eax, dword [esp + 0xa4]
jae 0x41ab34
lea eax, [esp + 0xa4]
push eax
push 4
pop ecx
call fcn.004284f3
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0xa8]
call fcn.00401501
or dword [esp + 0xd0], 0xffffffff
lea eax, [esp + 0xc]
call fcn.004025ae
push 0x18
pop eax
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004e72ee
mov esp, ebp
pop ebp
ret
Function at 0x4220bc
Capabilities:
Read file via mapping

Disassembly:
push 0x40
mov eax, 0x5287cf
call fcn.004f40d0
push str.AA45D379_DBB1_4AF4_833B_39E697EDCCA4
xor ebx, ebx
push ebx
push 4
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x18], eax
xor edi, edi
inc edi
mov dword [ebp - 4], edi
cmp eax, ebx
jne 0x42210a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4220fc
and eax, 0xffff
or eax, 0x80070000
mov edx, eax
push 0x73
mov eax, 0x54087c
call fcn.0040ebfe
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x422137
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x422131
and eax, 0xffff
or eax, 0x80070000
mov edx, eax
push 0x7f
jmp 0x422100
push 0x1c
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x422165
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42215c
and eax, 0xffff
or eax, 0x80070000
mov edx, eax
push 0x8a
jmp 0x422100
mov eax, dword [ebp - 0x40]
shr eax, 1
lea ecx, [ebp - 0x1c]
inc eax
push ecx
lea esi, [ebp - 0x30]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.0040a898
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
mov ecx, eax
and ecx, edi
sub eax, ecx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x30]
call fcn.004e8c50
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x30]
mov esi, dword [ebp + 8]
call fcn.0040319e
lea esi, [ebp - 0x30]
mov dword [ebp - 0x20], edi
call fcn.00460ab5
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 0xffffffff
je 0x4221d0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
call fcn.004f41a8
ret

Function at 0x42274a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x572480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
xor edi, edi
push 0x208
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x21c], edi
call fcn.004e9070
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, eax
cmp edx, edi
jge 0x4227ac
push 0x18
mov eax, 0x540b78
call fcn.0040ebfe
lea eax, [ebp - 0x218]
push eax
call fcn.0040319e
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004e72ee
leave
ret
Function at 0x422cc9
Capabilities:
Get common file path

Disassembly:
push 0x24c
mov eax, 0x5270a0
call fcn.004f4139
and dword [ebp - 0x258], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov esi, ecx
call fcn.004e9070
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x422d37
push str.GetSystemDirectory_failed
lea esi, [ebp - 0x238]
call fcn.0040319e
and dword [ebp - 4], 0
push 0x12
mov ecx, str.srcClientCommon_MergeWhitelist.cpp
mov eax, esi
call fcn.00401c97
push 0x540fb4
lea eax, [ebp - 0x21c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x422d70
push str.PathCombineW_failed
lea esi, [ebp - 0x254]
call fcn.0040319e
mov dword [ebp - 4], 1
push 0x16
mov ecx, str.srcClientCommon_MergeWhitelist.cpp
mov eax, esi
jmp 0x422d32
lea eax, [ebp - 0x21c]
push eax
call fcn.0040319e
mov eax, esi
call fcn.004f41bc
ret