joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bd572
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4f55dc]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x34]
push 0
mov dword [esp + 0x10], esi
call fcn.004986f1
mov dword [esp + 0x2c], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [esp + 0x2c], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [esp + 0x2c], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [esp + 0x2c], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [esp + 0x2c], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [esp + 0x2c], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [esp + 0x2c], 6
test edi, edi
jne 0x411118
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], str.bad_locale_name
push eax
lea ecx, [esp + 0x14]
call fcn.0049e26e
mov byte [esp + 0x2c], 7
mov dword [esp + 0x10], vtable.std::runtime_error.0
mov byte [esp + 0x2c], 6
lea eax, [esp + 0x10]
push 0x4f35fc
push eax
call fcn.0049f48b
push edi
push esi
call fcn.00498520
add esp, 8
mov dword [esp + 0x2c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0049bfa3
add esp, 0x24
ret 4

Function at 0x4118a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bd7f9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 0x30], 1
cmp dword [esp + 0x50], 0
je 0x4118f1
push 2
push 0x4d6994
lea ecx, [esp + 0x48]
call fcn.00413090
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.00411830
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x40]
push 0xffffffffffffffff
push 0
push eax
call fcn.00412fe0
mov byte [esp + 0x30], 1
cmp dword [esp + 0x24], 0x10
jb 0x41192a
push dword [esp + 0x10]
call fcn.0049c766
add esp, 4
lea eax, [esp + 0x40]
mov dword [esp + 0x24], 0xf
push eax
mov ecx, esi
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.004128b0
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
cmp dword [esp + 0x54], 0x10
jb 0x41196b
push dword [esp + 0x40]
call fcn.0049c766
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x4119a0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4bd840
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x24], esp
push 0xffffffffffffffff
push 0
push dword [esp + 0x5c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00401ea0
mov dword [esp + 0x4c], 0
push dword [esp + 0x5c]
push dword [esp + 0x5c]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.004118a0
add esp, 0x20
mov dword [esp + 0x34], 1
cmp dword [eax + 0x14], 0x10
jb 0x411a25
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [esp + 0x3c]
push eax
call fcn.0049e26e
mov byte [esp + 0x34], 2
mov dword [esi], vtable.std::runtime_error.0
mov byte [esp + 0x34], 4
cmp dword [esp + 0x24], 0x10
jb 0x411a58
push dword [esp + 0x10]
call fcn.0049c766
add esp, 4
mov eax, dword [esp + 0x40]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], eax
mov dword [esp + 0x34], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x30
ret 0xc

Function at 0x411dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bd9c9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [ecx + 0x30]
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x413d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bdf81
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4f55dc]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x38], 0
xor edx, edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call fcn.004364c0
mov dword [esp + 0x38], 1
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov edx, esi
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x14]
call fcn.0040b2c0
mov edx, 0x10
mov ecx, esi
call fcn.0040c5f0
mov byte [esp + 0x38], 0
cmp dword [esp + 0x28], 8
jb 0x413e22
push dword [esp + 0x14]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0049bfa3
add esp, 0x34
ret
Function at 0x413e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bdfd1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor eax, eax
mov dword [esp + 8], 0
push eax
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
push 0x4d5fa4
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.004024a0
mov dword [esp + 0x30], 1
lea edx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004140c0
add esp, 4
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
cmp dword [esp + 0x24], 8
jb 0x413eff
push dword [esp + 0x10]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
mov eax, esi
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x414900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4be191
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4f55dc]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x50], 1
xor eax, eax
push eax
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
push 0x4d5fa4
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.004024a0
mov byte [esp + 0x50], 2
lea edx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x30]
call fcn.004140c0
add esp, 4
mov byte [esp + 0x50], 4
cmp dword [esp + 0x20], 8
jb 0x4149b1
push dword [esp + 0xc]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], eax
mov ecx, esi
push eax
mov word [esp + 0x14], ax
mov word [esi], ax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
call fcn.00401fd0
cmp dword [esi + 0x10], 0
mov dword [esp + 0x24], 1
je 0x414a02
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call fcn.0040a970
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.00414b00
test eax, eax
setne byte [esp + 8]
cmp dword [esp + 0x3c], 0
je 0x414a32
push dword [esp + 8]
lea eax, [esp + 0x30]
push eax
call fcn.00423a30
mov ecx, eax
call fcn.00423ab0
mov byte [esp + 0x50], 1
cmp dword [esp + 0x40], 8
jb 0x414a4a
push dword [esp + 0x2c]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov byte [esp + 0x50], al
cmp dword [esp + 0x6c], 8
jb 0x414a78
push dword [esp + 0x58]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0049bfa3
add esp, 0x4c
ret
Function at 0x415340
Capabilities:
Create directory
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4be29b
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x4f55dc]
xor eax, esp
mov dword [esp + 0x438], eax
push esi
push edi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], 0
mov eax, dword [0x4f8a78]
mov dword [esp + 0x18], edi
test al, 1
jne 0x4153d4
or eax, 1
mov dword [0x4f8a78], eax
mov dword [esp + 0x450], 1
xor eax, eax
push 0x4cdd80
mov dword [0x4f8a74], 7
mov dword [0x4f8a70], 0
mov word [0x4f8a60], ax
call fcn.0049c72f
add esp, 4
mov byte [esp + 0x450], 0
xor eax, eax
cmp dword [0x4f8a70], eax
je 0x415412
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], eax
push 0x4f8a60
mov word [edi], ax
call fcn.00401fd0
mov dword [esp + 0x450], 0
mov dword [esp + 0x14], 1
jmp 0x41558b
push 0x40e
mov word [esp + 0x38], ax
lea eax, [esp + 0x3a]
push 0
push eax
call fcn.004a1910
add esp, 0xc
call fcn.00402d10
test al, al
lea eax, [esp + 0x34]
push 0x208
push eax
je 0x415445
push 0x4d6a7c
jmp 0x41544a
push str._ALLUSERSPROFILE_Application_Data
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
call fcn.004152a0
mov esi, 0x208
test eax, eax
js 0x415482
mov eax, dword [esp + 0x10]
mov edx, esi
push ecx
push 0x4d6684
push ecx
lea ecx, [esp + 0x40]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.004152f0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
call fcn.004152a0
test eax, eax
js 0x4154af
mov eax, dword [esp + 0x10]
sub esi, eax
push ecx
push str.2345PackStatService
push ecx
lea ecx, [esp + 0x40]
mov edx, esi
lea ecx, [ecx + eax*2]
call fcn.004152f0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x34]
push 0
push eax
call esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
call fcn.00401dd0
mov dword [esp + 0x450], 2
lea ecx, [esp + 0x1c]
push 5
push str.log_
call fcn.0040a5c0
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
push 0
cmovae eax, dword [esp + 0x20]
push eax
call esi
lea eax, [esp + 0x1c]
mov ecx, 0x4f8a60
push eax
call fcn.0040a320
mov ecx, dword [0x4f8a70]
mov eax, dword [esp + 0x2c]
mov dword [0x4f8a70], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x4f8a74]
mov dword [0x4f8a74], eax
xor eax, eax
push 0xffffffffffffffff
mov dword [esp + 0x34], ecx
mov ecx, edi
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push 0x4f8a60
mov word [edi], ax
call fcn.00401fd0
mov dword [esp + 0x14], 1
mov byte [esp + 0x450], 0
cmp dword [esp + 0x30], 8
jb 0x415574
push dword [esp + 0x1c]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov eax, edi
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.0049bfa3
add esp, 0x448
ret
Function at 0x418070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bc9c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4f55dc]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.004172a0
mov dword [esp + 0x30], 0
cmp dword [esp + 0x1c], 0
jne 0x4180bc
xor bl, bl
jmp 0x4180c7
lea ecx, [esp + 0xc]
call fcn.0040d5b0
mov bl, al
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x4180e2
push dword [esp + 0xc]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0049bfa3
add esp, 0x2c
ret
Function at 0x41e370
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bf393
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4f55dc]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
cmp dword [ecx + 0xc0], 0
je 0x41e4de
lea esi, [ecx + 0xb0]
mov ecx, esi
call fcn.0040bcf0
push 4
call fcn.0049c7b6
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], 0
test eax, eax
je 0x41e3e1
mov dword [eax], 0
mov dword [eax], 0xffffffff
jmp 0x41e3e3
xor eax, eax
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 0x30], 1
push 0x80
push 2
push ecx
push 0x40000000
push esi
lea ecx, [esp + 0x1c]
call fcn.0040d230
mov esi, dword [esp + 8]
test al, al
je 0x41e4a9
mov dword [esp + 0xc], 0
call fcn.0041e680
mov dword [esp + 0x10], eax
test esi, esi
je 0x41e44b
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41e44b
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x18], xmm0
call fcn.0049d9dc
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
test esi, esi
je 0x41e4a9
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41e4a9
push 0
lea ecx, [esp + 0x10]
push ecx
push 8
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41e4a9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e4a9
mov dword [esi], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x41e4de
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41e4cd
test eax, eax
je 0x41e4cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push esi
call fcn.0049c766
add esp, 4
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0049bfa3
add esp, 0x2c
ret

Function at 0x41e600
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4be699
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
xor eax, eax
mov esi, dword [esp + 0x1c]
add ecx, 0x30
push 0xffffffffffffffff
push eax
push ecx
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], 0
mov word [esi], ax
call fcn.00401fd0
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x423350
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x4f55dc]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x4f6678], 0
jne 0x4233e3
xor eax, eax
push 0x208
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.004a1910
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov word [esp + 0x20e], ax
cmp word [esp + 8], ax
jne 0x4233bd
xor ecx, ecx
jmp 0x4233d3
lea ecx, [esp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4233c4
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xc]
mov ecx, 0x4f6668
push eax
call fcn.004024a0
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0049bfa3
add esp, 0x214
ret

Function at 0x423640
Capabilities:
Get session user name

Disassembly:
sub esp, 0x220
mov eax, dword [0x4f55dc]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [0x4f83a0]
push ebx
push esi
mov esi, ecx
push edi
test eax, eax
jle 0x423682
inc eax
mov dword [0x4f83a0], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0049bfa3
add esp, 0x220
ret
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
xor bl, bl
call fcn.00423410
test al, al
je 0x42374d
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x42374d
push str.ImpersonateLoggedOnUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [esp + 0xc]
call eax
test eax, eax
je 0x423746
inc dword [0x4f83a0]
mov eax, dword [esi]
test eax, eax
je 0x4236e2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esp + 0xc]
mov bl, 1
mov dword [esi], eax
cmp dword [0x4f6690], 0
mov dword [esp + 0xc], 0
jne 0x423746
xor eax, eax
push 0x208
push eax
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1e]
push eax
call fcn.004a1910
add esp, 0xc
mov dword [esp + 0x10], 0x104
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x4f6680
mov word [esp + 0x21a], ax
lea eax, [esp + 0x14]
push eax
call fcn.00403810
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x42375c
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x228]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049bfa3
add esp, 0x220
ret
Function at 0x423880
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4f55dc]
xor eax, esp
mov dword [esp + 0x10], eax
lea eax, [esp]
mov dword [esp + 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x30]
mov word [esp + 0x34], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [esp + 4], ecx
test ecx, ecx
je 0x4238f1
lea eax, [esp + 4]
push eax
push dword [esp + 4]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [esp]
neg eax
sbb eax, eax
and dword [esp + 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x10]
setne al
xor ecx, esp
call fcn.0049bfa3
add esp, 0x14
ret
Function at 0x4248e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bff80
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00427900
mov ecx, dword [esp + 0x38]
cmp ecx, eax
jb 0x424928
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 8
push ecx
mov ecx, esi
call fcn.00427ca0
push eax
lea ecx, [esp + 0x10]
call fcn.00426a30
mov dword [esp + 0x30], 1
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x3c]
push eax
call fcn.00426d90
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00426bf0
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 8
Function at 0x428720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c09db
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xc], 0
jne 0x428793
push 0x10
call fcn.00498300
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
test eax, eax
je 0x428786
push 0x426480
push 0x426470
push 3
lea esi, [eax + 4]
mov dword [eax], 3
push 4
push esi
call fcn.004b7938
jmp 0x428788
xor esi, esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [edi + 0xc], esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
test eax, eax
je 0x4287a7
cmp byte [ecx + eax - 1], 0xa
jne 0x4287a7
dec eax
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [edi + 0xc]
lea ecx, [ecx + eax*4]
call fcn.00426490
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0xc
Function at 0x42ea70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c0f69
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
cmp byte [edx], 0
jne 0x42eaac
xor esi, esi
jmp 0x42eaba
mov esi, edx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42eab1
sub esi, ecx
push esi
push edx
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0042ef90
push eax
mov ecx, edi
call fcn.004128b0
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 1
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x438b50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c2316
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov byte [esi], 0
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov dword [esp + 0x18], eax
lea ecx, [esi + 0x1c]
push 0xffffffffffffffff
push eax
push dword [esp + 0x28]
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], eax
mov word [esi + 0x1c], ax
call fcn.00401fd0
mov byte [esp + 0x18], 1
cmp dword [esi + 0x2c], 0
jne 0x438bcb
push 3
push 0x4daef8
lea ecx, [esi + 0x1c]
call fcn.004024a0
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4