joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421f40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e06eb
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x23c], ecx
jne 0x421f84
mov al, 1
jmp 0x422095
mov edi, 8
xor bl, bl
cmp dword [esi + 0x14], edi
jb 0x421f94
mov eax, dword [esi]
jmp 0x421f96
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x421fb5
cmp eax, 0x50
je 0x421fb5
cmp eax, 0xb7
jne 0x422093
cmp dword [esi + 0x14], edi
jb 0x421fbc
mov esi, dword [esi]
lea eax, [ebp - 0x21c]
mov ecx, eax
xor edi, edi
mov edx, 0x105
sub esi, ecx
lea ecx, [ecx]
lea ecx, [edx + 0x7ffffef9]
test ecx, ecx
je 0x421fee
movzx ecx, word [esi + eax]
test cx, cx
je 0x421fee
mov word [eax], cx
add eax, 2
dec edx
jne 0x421fd0
jmp 0x421ff2
test edx, edx
jne 0x421ffa
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
mov word [eax], dx
test edi, edi
js 0x422093
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x422093
push 0x4feebc
push 0x105
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00420830
test eax, eax
js 0x422093
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x238]
call fcn.00408780
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 4], 0
call fcn.00417940
mov eax, dword [ebp - 0x238]
add esp, 4
cmp dword [ebp - 0x224], 8
jae 0x42206f
lea eax, [ebp - 0x238]
mov ecx, dword [ebp - 0x23c]
mov ecx, dword [ecx]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
push 0
push 0
call eax
test eax, eax
lea ecx, [ebp - 0x238]
sete bl
call fcn.00409ff0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret 4
Function at 0x422fd0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004b7610
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 0x1008]
push edx
lea edx, [ebp - 0x804]
push edx
lea edx, [ebp - 0x100c]
push edx
push 0
mov dword [ebp - 0x1010], 0
push eax
mov eax, dword [ecx]
push eax
mov dword [ebp - 0x100c], 1
mov dword [ebp - 0x1008], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4230f5
mov eax, dword [ebp - 0x100c]
cmp eax, 1
jne 0x423082
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423050
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x804]
push ecx
mov ecx, edi
call fcn.00406040
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jne 0x4230f0
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea ecx, [ebp - 0x804]
xor edx, edx
push ecx
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x4230d9
cmp eax, 0x400
ja 0x4230d9
lea edx, [ebp - 0x1004]
push edx
mov ecx, edi
call fcn.004321e0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0xea
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401306
mov esp, ebp
pop ebp
ret 8
Function at 0x4238f0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0fb5
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push ebx
push esi
push edi
mov eax, dword [0x5246a8]
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 0x4e696c
mov ecx, edi
mov dword [ebp - 4], ebx
mov word [edi], ax
call fcn.00406040
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 0x423a97
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
cmp eax, ebx
je 0x423984
cmp eax, 0xffffffff
je 0x423984
mov dword [ebp - 0x10], eax
call fcn.00416220
push 0x4c
mov dword [ebp - 4], 2
mov dword [ebp - 0x20], 0x4c
call fcn.00416893
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 0x4239e6
push esi
call fcn.004168eb
add esp, 4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004168b0
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 0x4239be
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 0x423a04
sub eax, dword [ebp - 0x24]
mov ecx, edi
sar eax, 1
push eax
push edx
call fcn.00406040
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call fcn.004168eb
mov esi, dword [ebp - 0x10]
add esp, 4
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x423a97
cmp esi, 0xffffffff
je 0x423a97
call fcn.00416220
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x423a97
push 4
push 0x65
push str.f:CB11X_SecurityImportsOpenChromeChrome_src_base_win_scoped_handle.h
lea ecx, [ebp - 0xd8]
call fcn.00450580
add eax, 8
push str.Check_failed:_false.
push eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x14], 5
call fcn.00441cc0
add esp, 8
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call fcn.00450920
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 0x427a80
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5246a8]
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 0x427abc
pop esi
mov eax, 0x3f0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
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 0x427b0a
push eax
call fcn.00416893
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 0x427b23
push esi
call fcn.004168eb
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.00401306
mov esp, ebp
pop ebp
ret 4
cmp dword [esi], 0
mov dword [ebp - 0x58], 0
jbe 0x427bf4
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 0x427be1
test eax, 0xc0000000
jne 0x427be1
test ebx, ebx
je 0x427bbf
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 0x427bbc
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.00427c20
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x427bde
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 0x427b80
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x48]
call fcn.00427970
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x60]
add ecx, 0x20
call fcn.00427700
jmp 0x427be1
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 0x427b40
push esi
call fcn.004168eb
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret 4
Function at 0x427c30
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 0x427c55
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 0x427ca0
push eax
call fcn.00416893
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 0x427caf
push esi
call fcn.004168eb
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 0x427d76
mov edi, dword [ebp + 8]
lea edx, [esi + 4]
mov dword [ebp - 8], edx
test edi, edi
je 0x427d4f
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 0x427d49
xor eax, eax
mov dword [ebp + 8], eax
jmp 0x427cf7
xor eax, eax
add esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
cmp dword [esi + 0x14], 8
jb 0x427d08
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 0x427d26
mov edx, dword [eax]
cmp edx, dword [ebp - 0x1c]
je 0x427d5d
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 0x427cf5
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push ecx
lea ecx, [ebx + 0x10]
call fcn.00427d90
jmp 0x427d63
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 0x427cc8
push esi
call fcn.004168eb
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x428970
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.00428b10
test eax, eax
jne 0x428b09
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.00428b10
test eax, eax
jne 0x428b07
inc esi
cmp esi, 7
jb 0x4289c5
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.00428b10
test eax, eax
jne 0x428b07
inc esi
cmp esi, 0xe
jb 0x428a50
push str._AcroAppTimer
push str.apptimer.exe
call fcn.00428b50
add esp, 8
test eax, eax
je 0x428a91
push eax
mov ecx, edi
call fcn.00428b10
test eax, eax
jne 0x428b07
push str.SafeNet_Borderless_Single_Sign_On.....
push str.DKAXSvr.exe
call fcn.00428b50
add esp, 8
test eax, eax
je 0x428ab3
push eax
mov ecx, edi
call fcn.00428b10
test eax, eax
jne 0x428b07
push 0
call fcn.00414430
add esp, 4
test al, al
je 0x428b05
push str.PrivateOutputChannelHelperWindow
push str.QTPro.exe
call fcn.00428b50
add esp, 8
test eax, eax
je 0x428ae3
push eax
mov ecx, edi
call fcn.00428b10
test eax, eax
jne 0x428b07
push 0x508800
push str.QTPro.exe
call fcn.00428b50
add esp, 8
test eax, eax
je 0x428b05
push eax
mov ecx, edi
call fcn.00428b10
test eax, eax
jne 0x428b07
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42db70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
push edi
mov edi, ecx
mov dword [ebp - 0x60], 0
jne 0x42dba9
cmp dword [edi + 8], 0
jne 0x42dbdb
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret 4
push 0
push 0x401470
push 1
push str.NtMapViewOfSection
push 0x4ec158
call fcn.0042a5b0
push 1
push 0x404950
push 1
push str.NtUnmapViewOfSection
push 0x4ec158
mov ecx, edi
call fcn.0042a5b0
mov eax, dword [edi]
mov eax, dword [eax]
push ebx
push esi
push 1
push 0x2000
push 0x10000
push 0
push eax
mov dword [ebp - 0x58], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, dword [edi + 8]
shl esi, 6
add esi, 0x50
push esi
mov dword [ebp - 0x5c], eax
call fcn.0042dd00
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x5c]
push 0x40
mov ecx, ebx
push 0x1000
lea edx, [esi + 0xfff]
and ecx, 0xfffff000
and edx, 0x1000
add eax, ecx
push edx
push eax
mov eax, dword [ebp - 0x58]
push eax
and ebx, 0xfff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x42dc51
call fcn.00430d70
mov eax, dword [ebp - 0x5c]
push 0x4a8
push 0
push 0x527278
add ebx, eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x50], 0x10
call fcn.004b7180
add esp, 0xc
lea ecx, [ebp - 0x54]
push ecx
push esi
push ebx
mov ecx, edi
call fcn.0042dd70
test al, al
je 0x42dce8
mov ecx, dword [ebp - 0x58]
lea edx, [ebp - 0x60]
push edx
push 0x10
lea eax, [ebp - 0x54]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x42dce8
cmp dword [ebp - 0x60], 0x10
jne 0x42dce8
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x64]
push edx
push 0x20
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [edi]
push 0x4a8
push 0x527278
push str.g_originals
call fcn.004296a0
pop esi
test eax, eax
pop ebx
sete al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
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.00401306
mov esp, ebp
pop ebp
ret 4
Function at 0x42eb00
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 0x42eb63
cmp eax, ebx
je 0x42eb52
cmp eax, 0xffffffff
je 0x42eb52
call fcn.00416220
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x42eb4f
call fcn.00430d70
mov dword [esi + 0x18], ebx
cmp edi, ebx
je 0x42eb63
cmp edi, 0xffffffff
je 0x42eb63
mov dword [esi + 0x18], edi
call fcn.00416220
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x42eb6f
cmp eax, 0xffffffff
jne 0x42eb7e
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 0x42eb6f
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 0x42eb6f
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.0042ecd0
mov eax, dword [ebp - 4]
add esp, 0xc
push 4
push 0x527194
push str.g_shared_section
mov ecx, esi
mov dword [0x527194], eax
call fcn.004296a0
mov dword [0x527194], 0
test eax, eax
je 0x42ec07
cmp eax, 1
je 0x42eb6f
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 4
push 0x527248
push str.g_shared_IPC_size
mov ecx, esi
mov dword [0x527248], edi
call fcn.004296a0
xor edi, edi
mov dword [0x527248], edi
cmp eax, edi
jne 0x42ebf0
mov ecx, dword [ebp + 0x14]
push 4
push 0x52724c
mov dword [0x52724c], ecx
push str.g_shared_policy_size
mov ecx, esi
call fcn.004296a0
mov dword [0x52724c], edi
cmp eax, edi
jne 0x42ebf0
push 0x24
call fcn.00404fcd
add esp, 4
cmp eax, edi
je 0x42ec7c
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.0042ed10
jmp 0x42ec7e
xor eax, eax
push eax
lea ecx, [esi + 0x20]
call fcn.0042ed80
mov edx, dword [ebp + 0x10]
mov ecx, dword [esi + 0x20]
push 0x20000
push edx
push ebx
call fcn.0042edb0
test al, al
jne 0x42ecab
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, esi
call fcn.0042f060
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 0x42f200
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5246a8]
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.004b7180
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x101
ja 0x42f26c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x42f26c
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x433850
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd32b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5246a8]
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.00433910
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.00404fcd
add esp, 4
cmp eax, edi
je 0x4338df
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.004b6c0a
push 0x5127c0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.004b6d49
int3
Function at 0x436d20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfb30
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov edi, ecx
cmp dword [eax + 0x10], esi
je 0x436ed0
push 0xffffffffffffffff
xor ecx, ecx
push esi
mov word [ebp - 0x2c], cx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
call fcn.004066a0
mov dword [ebp - 4], esi
cmp dword [ebp - 0x1c], esi
je 0x436eac
lea edx, [ebp - 0x2c]
push edx
mov eax, edx
push eax
call fcn.00416360
add esp, 8
test al, al
je 0x436eac
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x436da5
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x436eac
push 1
push esi
push 0x4feebc
lea ecx, [ebp - 0x2c]
call fcn.0040a0c0
cmp eax, 0xffffffff
jne 0x436eac
push 1
push esi
push 0x4feeb8
lea ecx, [ebp - 0x2c]
call fcn.0040a0c0
cmp eax, 0xffffffff
jne 0x436eac
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x436df2
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.00416900
add esp, 8
test al, al
je 0x436eac
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x436e13
lea eax, [ebp - 0x2c]
push eax
call fcn.00416bb0
add esp, 4
test al, al
je 0x436eac
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x436e30
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x436eac
lea edx, [ebp - 0x2c]
push edx
mov eax, edx
push eax
call fcn.00416c80
add esp, 8
test al, al
je 0x436eac
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00417940
add esp, 4
lea esi, [edi + 0xcc]
push esi
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [edi + 0xe4]
mov byte [ebp - 4], 1
call fcn.00417ac0
mov eax, dword [ebp - 0x30]
push esi
cmp eax, dword [edi + 0xe8]
je 0x436eb8
inc dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x18], 8
jb 0x436ea8
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406d09
add esp, 4
mov al, 1
jmp 0x436ed2
cmp dword [ebp - 0x18], 8
jb 0x436ed0
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x436ec8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x18], 8
jb 0x436ed0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406d09
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret 4
Function at 0x437ae0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
mov dword [ebp - 4], 0
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x437af5
mov edx, dword [ebp + 8]
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ecx]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8