joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4886e5
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x20], vtable.CNWndBackGround::CClient.0
lea edi, [esi + 0x24]
lea ebp, [esi + 0x20]
mov dword [edi], vtable.CNCustomCaption::CClient.0
mov dword [edi + 4], 0xffffff
mov dword [edi + 8], ebx
lea ecx, [esi + 0x34]
mov dword [esi + 0x30], vtable.CNDialogSkinXmlConfig::CNameMap.0
call fcn.0044c400
mov dword [esi], vtable.CNDialog_class_CNWaitDialog_.1.0
mov dword [ebp], vtable.CNDialog_class_CNWaitDialog_.2.0
mov dword [edi], vtable.CNDialog_class_CNWaitDialog_.3.0
mov dword [esi + 0x30], vtable.CNDialog_class_CNWaitDialog_.4.0
mov dword [esi + 0x34], vtable.CNDialog_class_CNWaitDialog_.0
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
lea ecx, [esi + 0xa0]
mov byte [esp + 0x1c], 6
call fcn.0044e3b0
lea ecx, [esi + 0x26c]
mov byte [esp + 0x1c], 7
call fcn.00455780
lea ecx, [esi + 0x2c0]
mov byte [esp + 0x1c], 8
call fcn.0044cd10
lea ecx, [esi + 0x370]
mov byte [esp + 0x1c], 9
call fcn.004565c0
mov eax, dword [0x4ba6a8]
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x38], bl
mov byte [esi + 0x9c], bl
mov byte [esi + 0x388], bl
movzx ecx, byte [eax + 0x36]
mov byte [esi + 0x44], cl
movzx edx, byte [eax + 0x34]
mov byte [esi + 0x9d], dl
movzx ecx, byte [eax + 0x35]
mov byte [esi + 0x9e], cl
movzx edx, byte [eax + 0x2cc]
mov byte [esi + 0x46], dl
movzx ecx, byte [eax + 0x2cd]
mov byte [esi + 0x47], cl
movzx edx, byte [eax + 0x2ce]
mov byte [esi + 0x48], dl
movzx ecx, byte [eax + 0x2cf]
mov byte [esi + 0x49], cl
movzx edx, byte [eax + 0x2d0]
mov byte [esi + 0x4a], dl
movzx ecx, byte [eax + 0x2d1]
mov byte [esi + 0x4b], cl
movzx edx, byte [eax + 0x2c0]
mov byte [esi + 0x45], dl
mov dword [esi + 0x138], edi
mov dword [esi + 0x274], ebp
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x411cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
call fcn.004171d0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push edi
push esi
mov dword [esp + 0x20], 0xffffffff
call ebx
mov ebp, eax
test ebp, ebp
je 0x411da4
push 0xf0
push edi
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
test eax, eax
je 0x411d14
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push ebp
push esi
mov dword [esp + 0x18], 0
call ebx
test eax, eax
je 0x411d7d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x411d7d
push edi
push ebx
call fcn.00411a40
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push edx
push edi
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov esi, eax
test esi, esi
je 0x411d5f
cmp esi, 0xffffffff
jne 0x411d69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp edi, ebx
je 0x411d8b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x411d8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x411d9a
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x418a50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4880c8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x28], pe_nt_image_headers32
mov dword [esp + 0x2c], 0xe1
mov dword [esp + 0x30], 0xe2
mov dword [esp + 0x34], 0xe3
mov dword [esp + 0x38], 0xe4
mov dword [esp + 0x3c], 0xe5
mov dword [esp + 0x40], 0xe6
mov dword [esp + 0x44], 0xe7
mov dword [esp + 0x20], 0x4c1208
mov dword [esp + 0x1c], eax
mov edx, dword [0x4be0cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4be0cc
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x50], 0
movzx edx, word [ecx]
push 0x498a1c
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x418b7a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x418b73
push edi
push ebx
push eax
call fcn.00468760
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x418b73
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.0041a950
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x20]
push esi
call fcn.0044de80
lea eax, [ebp - 0x10]
add esp, 4
mov dword [esp + 0x50], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418bb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x1c], 4
add esi, 0x30
cmp esi, 0x4c1388
mov dword [esp + 0x20], esi
jl 0x418ac7
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x41c4a0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0
push ebp
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
xor ebx, ebx
test esi, esi
jne 0x41c4cd
mov ecx, edi
call fcn.00402a60
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 4
mov eax, dword [edi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, esi
or ecx, edx
jge 0x41c4eb
push esi
mov ecx, edi
call fcn.00402ad0
mov eax, dword [edi]
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, dword [edi]
test edx, edx
jne 0x41c500
xor eax, eax
jmp 0x41c516
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c505
sub eax, esi
sar eax, 1
js 0x41c532
cmp eax, dword [edx - 8]
jg 0x41c532
mov dword [edx - 0xc], eax
mov ecx, dword [edi]
pop edi
mov word [ecx + eax*2], bx
pop esi
mov ebx, 1
pop ebp
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.004032e0
int3
Function at 0x41f700
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47cd4b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esi], vtable.CNException.0
call fcn.00406220
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.0042ec80
push 5
push str.error
mov ecx, edi
call fcn.00403080
mov dword [esi + 0x30], 0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x47cd4b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esi], vtable.CNException.0
call fcn.00406220
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.0042ec80
push 5
push str.error
mov ecx, edi
call fcn.00403080
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
mov dword [esi + 0x30], 0
call fcn.0041e170
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x47cd4b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esi], vtable.CNException.0
call fcn.00406220
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.0042ec80
push 5
push str.error
mov ecx, edi
call fcn.00403080
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
mov ecx, esi
mov dword [esi + 0x30], 0
call fcn.0041fbe0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x14
Function at 0x421890
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x47d483
mov eax, dword fs:[0]
push eax
sub esp, 0x1fc
push ebx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 2
call fcn.00421120
mov ecx, esi
call fcn.0041fe40
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 + 0x24], eax
call edi
push 8
mov dword [esi + 0x28], eax
call fcn.00465f73
add esp, 4
cmp eax, ebx
je 0x42190a
mov ecx, dword [ebp + 0x70]
mov dword [eax], esi
mov dword [eax + 4], ecx
jmp 0x42190c
xor eax, eax
lea edx, [esi + 0x68]
push edx
push ebx
push eax
push 0x420a40
push ebx
push ebx
mov byte [esi + 0x21], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x2c], eax
jne 0x4219ae
push str.CNWorkerThreadHost::StartWorkerThread
lea ecx, [ebp + 0x70]
mov byte [esi + 0x21], bl
call fcn.004031f0
push 0x48e474
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], 3
call fcn.004031f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 4
call edi
test eax, eax
jg 0x421965
call edi
mov esi, eax
jmp 0x421975
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push ebx
call edi
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.00435510
add esp, 0xc
lea ecx, [ebp + 0x70]
push ecx
push 0x98
lea edx, [ebp + 0x60]
push edx
push esi
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.0041fce0
push 0x4b1c2c
lea eax, [ebp - 0x80]
push eax
call fcn.00466ffb
mov ecx, dword [esi + 0x6c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x68
mov esp, ebp
pop ebp
ret 4
Function at 0x4244d0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xffffffffffffffff
push 0x47dd43
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4bb27c]
xor eax, ebp
mov dword [ebp + 0x414], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x420]
xor ebx, ebx
push 0x410
mov dword [ebp - 0x24], ebx
lea eax, [ebp + 2]
push ebx
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 4], 2
mov word [ebp], bx
call fcn.00467730
add esp, 0xc
lea ecx, [ebp]
push ecx
push 0x209
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4245d1
push str.CNFileUtilities::GetCurrentDirectoryW
lea ecx, [ebp - 0x1c]
call fcn.004031f0
push str..NFileUtilities.cpp
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004031f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 4
call edi
test eax, eax
jg 0x424582
call edi
mov esi, eax
jmp 0x424592
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push ebx
call edi
push eax
lea edx, [ebp - 0x24]
push edx
call fcn.00435510
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
push 0x424
lea edx, [ebp - 0x14]
push edx
push esi
push eax
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 5
call fcn.0041fce0
push 0x4b1c2c
lea eax, [ebp - 0xec]
push eax
call fcn.00466ffb
lea ecx, [ebp]
push ecx
mov ecx, esi
call fcn.004031f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.0046605d
add ebp, 0x418
mov esp, ebp
pop ebp
ret
Function at 0x428e30
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xffffffffffffffff
push 0x47eacb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
push ebx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x74]
push eax
lea ecx, [ebp + 0x60]
xor edi, edi
mov dword [ebp - 4], edi
push ecx
mov byte [ebp - 4], 2
call fcn.00426160
mov eax, dword [eax]
add esp, 8
push edi
push 0x80
push 3
push edi
push 3
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
sub esi, 0xffffffff
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [ebp + 0x60]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x428ebf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
jne 0x428edc
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x6c
mov esp, ebp
pop ebp
ret
lea ecx, [ebp + 0x68]
push ecx
push esi
mov dword [ebp + 0x68], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 0x68]
push 1
push edi
push edi
push edx
mov dword [ebp + 0x64], eax
call fcn.00468c50
mov edi, eax
xor eax, eax
add edi, dword [ebp + 0x64]
mov ebx, edx
adc ebx, eax
cmp esi, 0xffffffff
je 0x428f11
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov edx, ebx
jmp 0x428ec7
Function at 0x429fa0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x54
push 0xffffffffffffffff
push 0x47ee64
mov eax, dword fs:[0]
push eax
sub esp, 0x234
push ebx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp + 0x30], ebx
mov eax, dword [0x4be0cc]
mov edx, dword [eax + 0xc]
mov dword [ebp - 4], 1
mov ecx, 0x4be0cc
mov byte [ebp - 4], 3
call edx
add eax, 0x10
mov dword [ebp + 0x44], eax
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 4
mov dword [ebp + 0x34], ebx
call fcn.004356d0
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x34]
push eax
push ebx
mov byte [ebp - 4], 5
call edi
mov esi, eax
lea ecx, [esi + esi + 2]
push ebx
push ecx
lea ecx, [ebp + 0x20]
call fcn.00435720
mov edx, dword [ebp + 0x20]
mov eax, dword [edx + 0x14]
lea ecx, [ebp + 0x20]
call eax
push eax
add esi, 1
push esi
call edi
mov esi, eax
cmp esi, ebx
jne 0x42a0c7
push str.CNFileUtilities::GetTempDirectory
lea ecx, [ebp + 0x50]
call fcn.004031f0
push str..NFileUtilities.cpp
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 6
call fcn.004031f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 7
call edi
test eax, eax
jg 0x42a078
call edi
mov esi, eax
jmp 0x42a088
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push ebx
call edi
push eax
lea ecx, [ebp + 0x38]
push ecx
call fcn.00435510
add esp, 0xc
lea edx, [ebp + 0x50]
push edx
push 0xea
lea ecx, [ebp + 0x48]
push ecx
push esi
push eax
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 8
call fcn.0041fce0
push 0x4b1c2c
lea edx, [ebp - 0xb8]
push edx
call fcn.00466ffb
mov eax, dword [ebp + 0x20]
mov edx, dword [eax + 0x14]
lea ecx, [ebp + 0x20]
call edx
push esi
push eax
lea ecx, [ebp + 0x44]
call fcn.00403080
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebp + 0x50]
push ecx
call fcn.00432830
add esp, 8
push eax
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 9
call fcn.00403000
mov eax, dword [ebp + 0x50]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42a11c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [ebp + 0x38], esp
push 0x497728
call fcn.004031f0
lea ecx, [ebp + 0x44]
push ecx
call fcn.004226b0
mov esi, dword [ebp + 0x5c]
add esp, 8
lea edx, [ebp + 0x44]
push edx
push esi
call fcn.00428670
add esp, 8
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x30], 1
mov byte [ebp - 4], 4
call fcn.00435f80
mov eax, dword [ebp + 0x44]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a17e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x54
mov esp, ebp
pop ebp
ret
Function at 0x430dc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47fb4b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
push 0x34
call fcn.00465f73
add esp, 4
mov dword [esp + 0xc], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x18], esi
je 0x430e06
mov ecx, eax
call fcn.00406220
mov esi, eax
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0042ec80
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
call fcn.00430c10
mov dword [esi + 8], edi
mov ecx, dword [edi + 0x30]
lea edx, [esp + 0x20]
mov dword [esi + 0x30], ecx
push edx
lea ecx, [edi + 0xc]
mov dword [esp + 0x24], esi
call fcn.0042fa30
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x432830
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x47c9d9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x10], edi
mov eax, dword [0x4be0cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4be0cc
mov dword [esp + 0x1c], edi
call edx
mov esi, dword [esp + 0x24]
add eax, 0x10
mov dword [esi], eax
mov ecx, 1
mov dword [esp + 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
mov ebx, 0x8000
sub eax, ebx
or eax, ecx
mov dword [esp + 0x1c], edi
jge 0x43289c
push ebx
mov ecx, esi
call fcn.00402ad0
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jge 0x4328ad
push 0x80070057
call fcn.004032e0
mov edx, dword [esp + 0x28]
mov dword [eax - 0xc], ebx
mov ecx, dword [esi]
push 0x10000
mov word [ecx + 0x10000], di
mov ecx, dword [edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, dword [esi]
cmp edx, edi
jne 0x4328d6
xor eax, eax
jmp 0x4328f1
mov eax, edx
lea ebx, [eax + 2]
jmp 0x4328e0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4328e0
sub eax, ebx
sar eax, 1
js 0x4328a3
cmp eax, dword [edx - 8]
jg 0x4328a3
mov dword [edx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], di
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x434710
Capabilities:
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x4806c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x4bb27c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4347c2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x20
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 2
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4347c2
mov eax, dword [esp + 0xc]
push 0
push 0
push 0x10
mov esi, eax
sub esi, 0xffffffff
lea ecx, [esp + 0x24]
push ecx
neg esi
push 0
sbb esi, esi
push eax
and esi, eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4347d6
test esi, esi
je 0x4347c2
cmp esi, 0xffffffff
je 0x4347c2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret
mov edx, dword [esp + 0x38]
push 0x80040002
push edx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne bl
test esi, esi
je 0x4347fb
cmp esi, 0xffffffff
je 0x4347fb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret
Function at 0x436830
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4368a6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x436875
cmp eax, 2
jne 0x436891
test esi, esi
mov eax, dword [esp + 0x14]
je 0x4368a0
test eax, eax
je 0x43689b
test al, 1
jne 0x436891
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4368a0
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc