joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e6e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x41e779
push esi
push esi
call fcn.0041e780
add esp, 8
test al, al
je 0x41e779
cmp byte [ebp + 0xc], 0
jne 0x41e71c
cmp dword [esi + 0x14], 8
jb 0x41e70f
mov eax, dword [esi]
jmp 0x41e711
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e779
push 1
push 0
push 0x4fdfa4
mov ecx, esi
call fcn.0040a060
cmp eax, 0xffffffff
jne 0x41e779
push 1
push 0
push 0x4fdfa0
mov ecx, esi
call fcn.0040a060
cmp eax, 0xffffffff
jne 0x41e779
cmp dword [esi + 0x14], 8
jb 0x41e750
mov eax, dword [esi]
jmp 0x41e752
mov eax, esi
push esi
push eax
call fcn.0041ecc0
add esp, 8
test al, al
je 0x41e779
cmp dword [esi + 0x14], 8
jb 0x41e768
mov esi, dword [esi]
push esi
call fcn.0041eed0
add esp, 4
test al, al
setne al
pop esi
pop ebp
ret
xor al, al
pop esi
pop ebp
ret
Function at 0x422b70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1523
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x522638]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [ebp + 8]
mov dword [esi], vtable.acrobat_broker::SandboxMAPIDispatcher.0
mov dword [esi + 0x14], eax
push 0x18
mov dword [ebp - 4], ebx
mov dword [esi + 0x44], ebx
call fcn.00404f8a
add esp, 4
cmp eax, ebx
je 0x422c8a
mov dword [esi + 0x40], eax
mov dword [eax], eax
mov eax, dword [esi + 0x40]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x40]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x40]
mov al, 1
mov byte [ecx + 0x14], al
mov edx, dword [esi + 0x40]
mov byte [edx + 0x15], al
mov dword [esi + 0x38], ebx
mov byte [ebp - 4], al
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x507218
lea ecx, [esi + 4]
call fcn.0041d040
push 0x5071dc
lea ecx, [esi + 4]
call fcn.0041d040
push 0x5071a0
lea ecx, [esi + 4]
call fcn.0041d040
push 0x507164
lea ecx, [esi + 4]
call fcn.0041d040
push 0x507128
lea ecx, [esi + 4]
call fcn.0041d040
push 0x5070ec
lea ecx, [esi + 4]
call fcn.0041d040
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebx
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x1c], eax
call edi
push ebx
push ebx
push esi
push 0x422e30
push ebx
push ebx
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], ebx
call fcn.004b7aaa
push 0x511300
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.004b7be9
int3
Function at 0x422cb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1728
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x522638]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x38]
push ecx
mov dword [ebp - 4], 0
mov dword [edi], vtable.acrobat_broker::SandboxClipboardDispatcher.0
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x507090
lea ecx, [edi + 4]
call fcn.0041d040
push 0x507054
lea ecx, [edi + 4]
call fcn.0041d040
push 0x507018
lea ecx, [edi + 4]
call fcn.0041d040
push 0x506fdc
lea ecx, [edi + 4]
call fcn.0041d040
push 0x506fa0
lea ecx, [edi + 4]
call fcn.0041d040
push 0x506f64
lea ecx, [edi + 4]
call fcn.0041d040
push 0x506f28
lea ecx, [edi + 4]
call fcn.0041d040
push 0x506eec
lea ecx, [edi + 4]
call fcn.0041d040
push 0x506eb0
lea ecx, [edi + 4]
call fcn.0041d040
push 0x506e74
lea ecx, [edi + 4]
call fcn.0041d040
push 0x506e38
lea ecx, [edi + 4]
call fcn.0041d040
push 0x506dfc
lea ecx, [edi + 4]
call fcn.0041d040
push 0x506dc0
lea ecx, [edi + 4]
call fcn.0041d040
push 0x506d84
lea ecx, [edi + 4]
call fcn.0041d040
push 0x506d48
lea ecx, [edi + 4]
call fcn.0041d040
push 0x506d0c
lea ecx, [edi + 4]
call fcn.0041d040
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x1c], eax
call esi
push 0
push 0
push edi
push 0x422e30
push 0
push 0
mov dword [edi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x18], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4236f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x42370c
mov eax, dword [eax]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0x20019
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42377a
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
push esi
mov esi, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0xc], esi
mov dword [ebp - 8], esi
jb 0x42373f
mov eax, dword [eax]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
lea ecx, [ebp + 0xc]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42376f
cmp dword [ebp + 0xc], esi
jne 0x42376f
cmp dword [ebp - 8], esi
jne 0x42376f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov bl, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e00f3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x522638]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [ebp + 8]
mov dword [esi], vtable.acrobat_broker::SandboxPreviewDispatcher.0
mov dword [esi + 0x14], eax
push 0x2c
mov dword [ebp - 4], ebx
mov dword [esi + 0x20], ebx
call fcn.00404f8a
add esp, 4
cmp eax, ebx
je 0x424157
mov dword [esi + 0x1c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x1c]
mov al, 1
mov byte [ecx + 0x28], al
mov edx, dword [esi + 0x1c]
mov byte [edx + 0x29], al
mov byte [ebp - 4], al
lea eax, [esi + 0x48]
push eax
mov byte [esi + 0x60], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x5041e0
lea ecx, [esi + 4]
call fcn.0041d040
push 0x5041a4
lea ecx, [esi + 4]
call fcn.0041d040
push 0x504168
lea ecx, [esi + 4]
call fcn.0041d040
push 0x50412c
lea ecx, [esi + 4]
call fcn.0041d040
push 0x5040f0
lea ecx, [esi + 4]
call fcn.0041d040
push 0x5040b4
lea ecx, [esi + 4]
call fcn.0041d040
push 0x504078
lea ecx, [esi + 4]
call fcn.0041d040
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebx
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x2c], eax
call edi
push ebx
push ebx
push esi
push 0x424280
push ebx
push ebx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x28], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], ebx
call fcn.004b7aaa
push 0x511300
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.004b7be9
int3
Function at 0x424180
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfe98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x522638]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esi], vtable.acrobat_broker::SandboxDDEDispatcher.0
mov dword [esi + 0x14], eax
cmp dword [0x52513c], 0
mov dword [ebp - 4], 0
jne 0x4241f3
lea ecx, [ebp - 0x1c]
call fcn.004b7a11
push 0x5131a8
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004b7be9
lea edx, [esi + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x503cbc
lea ecx, [esi + 4]
call fcn.0041d040
push 0x503c80
lea ecx, [esi + 4]
call fcn.0041d040
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x24], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x28], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x1c], eax
call edi
push 0
push 0
push esi
push 0x424770
push 0
push 0
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
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 4

Function at 0x424380
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1728
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x522638]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x18]
push ecx
mov dword [ebp - 4], 0
mov dword [edi], vtable.acrobat_broker::AtomDispatcher.0
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x503a58
lea ecx, [edi + 4]
call fcn.0041d040
push 0x503a1c
lea ecx, [edi + 4]
call fcn.0041d040
push 0x5039e0
lea ecx, [edi + 4]
call fcn.0041d040
push 0x5039a4
lea ecx, [edi + 4]
call fcn.0041d040
push 0x7fff8
call fcn.004159eb
push 0x7fff8
push 0
push eax
mov dword [edi + 0x30], eax
call fcn.004b8020
add esp, 0x10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x426910
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x522638]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 4], 0
jne 0x426971
lea eax, [ebp - 0x20]
push str.Readerplug_insTest_Tools_aaFEAT.api
push eax
mov byte [esi + 4], 1
call fcn.0041d630
add esp, 8
cmp dword [ebp - 0x10], 0
je 0x42695f
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x426950
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42695f
mov byte [esi + 5], 1
cmp dword [ebp - 0xc], 8
jb 0x426971
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ca9
add esp, 4
mov ecx, dword [ebp - 4]
mov al, byte [esi + 5]
xor ecx, ebp
pop esi
call fcn.00401306
mov esp, ebp
pop ebp
ret

Function at 0x426fc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x522638]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push ecx
push 0
mov dword [ebp - 0x214], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x427059
cmp word [ebp - 0x210], 0
je 0x427059
test edi, edi
je 0x427020
push edi
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x427059
cmp byte [ebp + 0x14], 0
je 0x427051
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x427059
push 0x4fdfa4
push 0x105
lea ecx, [ebp - 0x210]
push ecx
call fcn.00427280
test eax, eax
js 0x427059
lea edx, [ebp - 0x210]
jmp 0x42705e
mov edx, 0x4e596c
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x427076
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00405fe0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x427cd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x522638]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push 0x105
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x427d6d
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x427d6d
cmp byte [ebp + 0xc], 0
je 0x427d38
push 0x4fdfa4
push 0x105
lea edx, [ebp - 0x210]
push edx
call fcn.00427280
test eax, eax
js 0x427d6d
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x427d54
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x210]
push ecx
jmp 0x427d86
xor edx, edx
push edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
push 0x4e596c
mov ecx, esi
call fcn.00405fe0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401306
mov esp, ebp
pop ebp
ret 8

Function at 0x428240
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x4282bc
mov ecx, ebx
cmp word [ebx], si
je 0x42827a
mov eax, ecx
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x428260
sub eax, esi
sar eax, 1
cmp word [ecx + eax*2 + 2], dx
lea ecx, [ecx + eax*2 + 2]
jne 0x428257
sub ecx, ebx
push edi
lea edi, [ecx + 2]
sar edi, 1
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
push 0x525eb5
neg ecx
or ecx, eax
push ecx
call fcn.004282c1
mov esi, eax
add esp, 8
test esi, esi
je 0x4282b6
lea eax, [edi + edi]
push eax
push ebx
push esi
call fcn.004b7340
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov eax, esi
pop esi
pop ebx
ret
Function at 0x428660
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcaa8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x522638]
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]
xor ebx, ebx
cmp esi, ebx
je 0x4286e2
cmp word [esi], bx
je 0x4286e2
mov edi, 7
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004287d0
add esp, 4
test al, al
jne 0x428700
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x4286d6
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406ca9
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
xor eax, eax
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
lea ecx, [ebp - 0x48]
push ecx
call fcn.00419a70
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], ebx
jne 0x428732
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00409f90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00409f90
jmp 0x4286e2
mov eax, dword [ebp - 0x48]
mov ebx, 8
cmp dword [ebp - 0x34], ebx
jae 0x428742
lea eax, [ebp - 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call edi
test eax, eax
je 0x428715
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x64]
call fcn.00428860
mov byte [ebp - 4], 2
push 0x4e84a0
lea ecx, [ebp - 0x64]
call fcn.00428890
push esi
lea ecx, [ebp - 0x64]
call fcn.00428890
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x428780
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x428794
lea eax, [ebp - 0x2c]
push eax
call edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00409f90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00409f90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00409f90
mov eax, esi
jmp 0x4286e4

Function at 0x4287d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x522638]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ecx
xor eax, eax
push 0x104
mov word [ebp - 0x20c], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x428845
cmp eax, 0x104
ja 0x428845
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x428816
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, esi
call fcn.00405fe0
mov al, 1
pop esi
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
pop esi
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x4288c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4def8b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x522638]
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 0x428904
mov al, 1
jmp 0x428a15
mov edi, 8
xor bl, bl
cmp dword [esi + 0x14], edi
jb 0x428914
mov eax, dword [esi]
jmp 0x428916
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x428935
cmp eax, 0x50
je 0x428935
cmp eax, 0xb7
jne 0x428a13
cmp dword [esi + 0x14], edi
jb 0x42893c
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 0x42896e
movzx ecx, word [esi + eax]
test cx, cx
je 0x42896e
mov word [eax], cx
add eax, 2
dec edx
jne 0x428950
jmp 0x428972
test edx, edx
jne 0x42897a
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
mov word [eax], dx
test edi, edi
js 0x428a13
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x428a13
push 0x4fdfa4
push 0x105
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00427280
test eax, eax
js 0x428a13
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x238]
call fcn.00408720
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 4], 0
call fcn.0041fc60
mov eax, dword [ebp - 0x238]
add esp, 4
cmp dword [ebp - 0x224], 8
jae 0x4289ef
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.00409f90
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 0x429950
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004b8260
mov eax, dword [0x522638]
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 0x429a75
mov eax, dword [ebp - 0x100c]
cmp eax, 1
jne 0x429a02
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4299d0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x804]
push ecx
mov ecx, edi
call fcn.00405fe0
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 0x429a70
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 0x429a59
cmp eax, 0x400
ja 0x429a59
lea edx, [ebp - 0x1004]
push edx
mov ecx, edi
call fcn.00438ae0
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 0x42e320
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x522638]
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 0x42e35c
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 0x42e3aa
push eax
call fcn.004159eb
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 0x42e3c3
push esi
call fcn.0041ecb3
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 0x42e494
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 0x42e481
test eax, 0xc0000000
jne 0x42e481
test ebx, ebx
je 0x42e45f
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 0x42e45c
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.0042e4c0
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x42e47e
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 0x42e420
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x48]
call fcn.0042e210
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x60]
add ecx, 0x20
call fcn.0042dfa0
jmp 0x42e481
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 0x42e3e0
push esi
call fcn.0041ecb3
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