joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c510
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507175
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push ebx
push esi
push edi
mov eax, dword [0x54e938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov edi, dword [ebp + 8]
push ebx
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
push 0x50d97c
mov ecx, edi
mov dword [ebp - 4], ebx
mov word [edi], ax
call fcn.00406300
lea ecx, [ebp - 0x1c]
push ecx
push 0xf01ff
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42c6b7
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
cmp eax, ebx
je 0x42c5a4
cmp eax, 0xffffffff
je 0x42c5a4
mov dword [ebp - 0x10], eax
call fcn.00416c40
push 0x4c
mov dword [ebp - 4], 2
mov dword [ebp - 0x20], 0x4c
call fcn.0041becb
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
push edx
push eax
push esi
push 1
push ecx
mov byte [ebp - 4], 3
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x42c606
push esi
call fcn.004188d7
add esp, 4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004172f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov eax, dword [esi]
push edx
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x42c5de
mov edx, dword [ebp - 0x18]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x24], ecx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42c624
sub eax, dword [ebp - 0x24]
mov ecx, edi
sar eax, 1
push eax
push edx
call fcn.00406300
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call fcn.004188d7
mov esi, dword [ebp - 0x10]
add esp, 4
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x42c6b7
cmp esi, 0xffffffff
je 0x42c6b7
call fcn.00416c40
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x42c6b7
push 4
push 0x65
push str.F:CB11X_MainQImportsOpenChromeChrome_src_base_win_scoped_handle.h
lea ecx, [ebp - 0xd8]
call fcn.00458750
add eax, 8
push str.Check_failed:_false.
push eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x14], 5
call fcn.004461c0
add esp, 8
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call fcn.00458cd0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430c80
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
xor esi, esi
cmp byte [eax + 0x38], 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], esi
jne 0x430cbc
pop esi
mov eax, 0x3f0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret 4
mov edx, dword [eax + 0x30]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0x50]
push ecx
push esi
push esi
push 2
push edx
mov dword [ebp - 0x50], esi
call edi
mov eax, dword [ebp - 0x50]
cmp eax, esi
je 0x430d0a
push eax
call fcn.0041becb
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x60]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [edx + 0x30]
push ecx
push esi
push 2
push eax
mov dword [ebp - 0x54], esi
call edi
test eax, eax
jne 0x430d23
push esi
call fcn.004188d7
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret 4
cmp dword [esi], 0
mov dword [ebp - 0x58], 0
jbe 0x430df4
lea ecx, [esi + 4]
mov dword [ebp - 0x4c], ecx
lea esp, [esp]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 4]
test al, 0x20
jne 0x430de1
test eax, 0xc0000000
jne 0x430de1
test ebx, ebx
je 0x430dbf
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, esi
mov eax, 0x78787879
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x430dbc
mov dword [ebp - 0x5c], edi
lea esp, [esp]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x5c]
add ecx, esi
push eax
call fcn.0040b210
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x430dde
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
add dword [ebp - 0x5c], 0x44
sub ecx, esi
mov eax, 0x78787879
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
inc edi
add ecx, edx
cmp edi, ecx
jb 0x430d80
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040b0c0
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x60]
add ecx, 0x20
call fcn.00430920
jmp 0x430de1
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
add dword [ebp - 0x4c], 8
inc eax
mov dword [ebp - 0x58], eax
cmp eax, dword [esi]
jb 0x430d40
push esi
call fcn.004188d7
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret 4
Function at 0x430e20
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
xor esi, esi
cmp byte [ebx + 0x38], 0
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esi
jne 0x430e45
pop esi
mov eax, 0x3f0
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x30]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push esi
push esi
push 3
push ecx
mov dword [ebp - 4], esi
call edi
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x430e90
push eax
call fcn.0041becb
mov ecx, dword [ebx + 0x30]
add esp, 4
mov esi, eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
push esi
push 3
push ecx
mov dword [ebp - 0xc], esi
call edi
test eax, eax
jne 0x430e9f
push esi
call fcn.004188d7
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi], 0
mov dword [ebp - 0x14], 0
jbe 0x430f66
mov edi, dword [ebp + 8]
lea edx, [esi + 4]
mov dword [ebp - 8], edx
test edi, edi
je 0x430f3f
mov esi, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor ebx, ebx
add eax, edx
je 0x430f39
xor eax, eax
mov dword [ebp + 8], eax
jmp 0x430ee7
xor eax, eax
add esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
cmp dword [esi + 0x14], 8
jb 0x430ef8
mov esi, dword [esi]
lea edx, [ebp - 0x1c]
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0x18]
jne 0x430f16
mov edx, dword [eax]
cmp edx, dword [ebp - 0x1c]
je 0x430f4d
mov esi, dword [edi]
mov ecx, dword [edi + 4]
add dword [ebp + 8], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
cmp ebx, eax
jb 0x430ee5
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push ecx
lea ecx, [ebx + 0x10]
call fcn.00430f80
jmp 0x430f53
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0xc
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [esi]
jb 0x430eb8
push esi
call fcn.004188d7
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4314a0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
xor edi, edi
lea edx, [ebp - 0x20]
push edx
push edi
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x24]
push ecx
push edi
push edi
push 4
push 6
push eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
jne 0x4315de
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x30], ecx
cmp ecx, edi
je 0x4315de
push 2
push 0xc
lea edx, [ebp - 0x10]
push edx
push ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x4315de
push ebx
push esi
mov esi, dword [ebp - 0xc]
add esi, 8
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x4315dc
push 2
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x4315d5
xor esi, esi
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x10], edi
jbe 0x4315b3
lea esp, [esp]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x18]
push eax
push esi
push ecx
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x4315b3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4315b3
cmp byte [eax], 0
mov edi, eax
jne 0x431595
mov ecx, dword [ebp - 0x28]
lea esi, [eax + 8]
call fcn.0040b210
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov esi, dword [ebp - 0x1c]
test eax, eax
jne 0x4315aa
mov eax, dword [ebp - 0x18]
movzx edx, word [edi + 2]
push edx
push eax
push 0xffffffffffffffff
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x4315b3
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, dword [ebp - 0x10]
jb 0x431550
cmp esi, dword [ebp - 0x10]
jne 0x4315d5
mov eax, dword [ebp - 0x2c]
push 0
push ebx
push 0
push 0
push 4
push 6
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
jne 0x4315d5
mov byte [ebp - 0x11], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop ebx
mov eax, dword [ebp - 0x20]
pop edi
test eax, eax
je 0x4315ed
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x11]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x431b70
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.00431d10
test eax, eax
jne 0x431d09
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, 0x7f01
mov eax, 0x7f03
push esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0x7f02
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x7f05
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x7f04
xor esi, esi
mov eax, dword [ebp + esi*4 - 0x1c]
push eax
push 0
call ebx
push eax
mov ecx, edi
call fcn.00431d10
test eax, eax
jne 0x431d07
inc esi
cmp esi, 7
jb 0x431bc5
mov ebx, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x38], 0x7f02
mov dword [ebp - 0x34], 0x7f8a
mov dword [ebp - 0x30], 0x7f00
mov dword [ebp - 0x2c], 0x7f03
mov dword [ebp - 0x28], 0x7f89
mov dword [ebp - 0x24], 0x7f8b
mov dword [ebp - 0x20], 0x7f01
mov dword [ebp - 0x1c], 0x7f88
mov dword [ebp - 0x18], 0x7f86
mov dword [ebp - 0x14], 0x7f83
mov dword [ebp - 0x10], 0x7f85
mov dword [ebp - 0xc], 0x7f82
mov dword [ebp - 8], 0x7f84
mov dword [ebp - 4], 0x7f04
xor esi, esi
mov edi, edi
mov ecx, dword [ebp + esi*4 - 0x38]
push ecx
push 0
call ebx
push eax
mov ecx, edi
call fcn.00431d10
test eax, eax
jne 0x431d07
inc esi
cmp esi, 0xe
jb 0x431c50
push str._AcroAppTimer
push str.apptimer.exe
call fcn.00431d50
add esp, 8
test eax, eax
je 0x431c91
push eax
mov ecx, edi
call fcn.00431d10
test eax, eax
jne 0x431d07
push str.SafeNet_Borderless_Single_Sign_On.....
push str.DKAXSvr.exe
call fcn.00431d50
add esp, 8
test eax, eax
je 0x431cb3
push eax
mov ecx, edi
call fcn.00431d10
test eax, eax
jne 0x431d07
push 0
call fcn.00414f50
add esp, 4
test al, al
je 0x431d05
push str.PrivateOutputChannelHelperWindow
push str.QTPro.exe
call fcn.00431d50
add esp, 8
test eax, eax
je 0x431ce3
push eax
mov ecx, edi
call fcn.00431d10
test eax, eax
jne 0x431d07
push 0x5314b8
push str.QTPro.exe
call fcn.00431d50
add esp, 8
test eax, eax
je 0x431d05
push eax
mov ecx, edi
call fcn.00431d10
test eax, eax
jne 0x431d07
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x432b80
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x432cb3
mov dword [eax], 0
test edi, edi
je 0x432cb3
push 2
push 0xc
lea ecx, [ebp - 0x10]
xor eax, eax
push ecx
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x432cb3
push esi
mov esi, dword [ebp - 0xc]
add esi, 8
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x432ca0
push 2
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x432c99
xor ebx, ebx
cmp ebx, dword [ebp - 0x10]
jae 0x432c79
jmp 0x432c19
mov edi, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
push edx
push ebx
push edi
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x432c76
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x432c76
cmp byte [eax], 0
mov edi, eax
jne 0x432c58
mov ecx, dword [ebp - 0x24]
lea esi, [eax + 8]
call fcn.0040b210
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x432c70
mov eax, dword [ebp - 0x18]
movzx ecx, word [edi + 2]
mov edx, dword [ebp - 0x14]
push ecx
push eax
push 0xffffffffffffffff
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x432c76
inc ebx
cmp ebx, dword [ebp - 0x10]
jb 0x432c16
cmp ebx, dword [ebp - 0x10]
jne 0x432c96
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
pop esi
pop edi
mov al, 1
mov dword [edx], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x437620
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
push edi
mov edi, ecx
mov dword [ebp - 0x60], 0
jne 0x437659
cmp dword [edi + 8], 0
jne 0x43768b
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret 4
push 0
push 0x401480
push 1
push str.NtMapViewOfSection
push 0x513b00
call fcn.004340d0
push 1
push 0x4049f0
push 1
push str.NtUnmapViewOfSection
push 0x513b00
mov ecx, edi
call fcn.004340d0
mov eax, dword [edi]
push ebx
mov ebx, dword [eax]
push esi
push 1
push 0x2000
push 0x10000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, dword [edi + 8]
shl esi, 6
add esi, 0x50
push esi
mov dword [ebp - 0x58], eax
call fcn.004377d0
mov ecx, dword [ebp - 0x58]
mov edx, eax
add esp, 4
and eax, 0xfff
push 0x40
mov dword [ebp - 0x64], eax
push 0x1000
lea eax, [esi + 0xfff]
and edx, 0xfffff000
and eax, 0xfffff000
push eax
add ecx, edx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x4376fa
call fcn.0040c5c0
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x64]
mov dword [ebp - 0x58], eax
je 0x4377ac
push 0x49c
push 0
push 0x551560
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x50], 0x10
call fcn.004e15a0
mov eax, dword [ebp - 0x58]
add esp, 0xc
lea edx, [ebp - 0x54]
push edx
push esi
push eax
mov ecx, edi
call fcn.00437840
test al, al
je 0x4377ac
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x5c]
push ecx
push 0x10
lea edx, [ebp - 0x54]
push edx
push eax
push ebx
mov dword [ebp - 0x5c], 0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4377ac
cmp dword [ebp - 0x5c], 0x10
jne 0x4377ac
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x60]
push ecx
push 0x20
push esi
push edx
push ebx
mov dword [ebp - 0x60], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [edi]
push 0x49c
push 0x551560
push str.g_originals
call fcn.00433020
pop esi
test eax, eax
pop ebx
sete al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
xor al, al
pop edi
call fcn.00401316
mov esp, ebp
pop ebp
ret 4
Function at 0x438650
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0x14]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push eax
push ebx
push 0x8000004
push ebx
push 0xffffffffffffffff
mov esi, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x4386b3
cmp eax, ebx
je 0x4386a2
cmp eax, 0xffffffff
je 0x4386a2
call fcn.00416c40
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x43869f
call fcn.0040c5c0
mov dword [esi + 0x18], ebx
cmp edi, ebx
je 0x4386b3
cmp edi, 0xffffffff
je 0x4386b3
mov dword [esi + 0x18], edi
call fcn.00416c40
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x4386bf
cmp eax, 0xffffffff
jne 0x4386ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esi]
push ebx
push ebx
push 6
lea edx, [ebp - 4]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4386bf
mov eax, dword [esi + 0x18]
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4386bf
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
lea eax, [ebx + edi]
push eax
push ecx
push edx
call fcn.00438820
mov eax, dword [ebp - 4]
add esp, 0xc
push 4
push 0x55146c
push str.g_shared_section
mov ecx, esi
mov dword [0x55146c], eax
call fcn.00433020
mov dword [0x55146c], 0
test eax, eax
je 0x438757
cmp eax, 1
je 0x4386bf
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 4
push 0x551528
push str.g_shared_IPC_size
mov ecx, esi
mov dword [0x551528], edi
call fcn.00433020
xor edi, edi
mov dword [0x551528], edi
cmp eax, edi
jne 0x438740
mov ecx, dword [ebp + 0x14]
push 4
push 0x55152c
mov dword [0x55152c], ecx
push str.g_shared_policy_size
mov ecx, esi
call fcn.00433020
mov dword [0x55152c], edi
cmp eax, edi
jne 0x438740
push 0x24
call fcn.004051ca
add esp, 4
cmp eax, edi
je 0x4387cc
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 8]
mov edi, dword [esi]
push ecx
mov ecx, dword [esi + 0x24]
push ecx
mov ecx, dword [esi + 0x1c]
push ecx
push edx
push edi
mov ecx, eax
call fcn.00438860
jmp 0x4387ce
xor eax, eax
push eax
lea ecx, [esi + 0x20]
call fcn.00438900
mov edx, dword [ebp + 0x10]
mov ecx, dword [esi + 0x20]
push 0x20000
push edx
push ebx
call fcn.00438930
test al, al
jne 0x4387fb
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, esi
call fcn.00438be0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x438da0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004e15a0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x101
ja 0x438e0c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x438e0c
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x43bfc0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
cmp esi, 0x804
ja 0x43bffd
je case.0x43bff6.1027
lea eax, [esi - 0x403]
cmp eax, 0x2a
ja case.0x43bff6.1032
movzx eax, byte [eax + 0x43c050]
jmp dword [eax*4 + 0x43c048]
cmp esi, 0xc0a
je case.0x43bff6.1027
push 0x400
lea ecx, [ebp - 0x404]
push 0
push ecx
call fcn.004e15a0
add esp, 0xc
push 0x200
lea edx, [ebp - 0x404]
push edx
push 3
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43c036
mov bl, 1
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret

Function at 0x43c005
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
cmp esi, 0x804
ja 0x43bffd
je case.0x43bff6.1027
lea eax, [esi - 0x403]
cmp eax, 0x2a
ja case.0x43bff6.1032
movzx eax, byte [eax + 0x43c050]
jmp dword [eax*4 + 0x43c048]
cmp esi, 0xc0a
je case.0x43bff6.1027
push 0x400
lea ecx, [ebp - 0x404]
push 0
push ecx
call fcn.004e15a0
add esp, 0xc
push 0x200
lea edx, [ebp - 0x404]
push edx
push 3
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43c036
mov bl, 1
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x43ecc0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5020fb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x54e938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea ecx, [esi + 4]
call fcn.0043ed80
xor edi, edi
mov dword [esi], vtable.sandbox_dde::CDdeTopic.0
push 0x18
mov dword [ebp - 4], edi
mov dword [esi + 0x30], edi
call fcn.004051ca
add esp, 4
cmp eax, edi
je 0x43ed4f
mov dword [esi + 0x2c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x2c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x2c]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x2c]
mov al, 1
mov byte [edx + 0x14], al
mov ecx, dword [esi + 0x2c]
mov byte [ecx + 0x15], al
mov dword [esi + 0x38], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp + 0xc], edi
call fcn.004e102a
push 0x53b460
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.004e1169
int3