joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42eb30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x46fa66
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4aaeb0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
lea ecx, [esi + 4]
mov dword [esi], vtable.npz::cmn::npFileImpl.0
push edi
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], edi
push 0x48584c
mov word [ecx + 4], di
call fcn.00401540
mov dword [esp + 0x14], edi
mov dword [esi + 0x20], edi
mov byte [esp + 0x14], 1
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], 7
mov dword [esi + 0x2c], 7
push 0xffffffffffffffff
lea ecx, [esi + 0x34]
mov dword [esi + 0x30], 0xffffffff
call fcn.00413fc0
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.004098b0
mov dword [esi + 0x38], 2
mov dword [esi + 0x3c], 0xc0000000
mov dword [esi + 0x40], 3
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
add esp, 8
mov dword [esi + 0x50], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x46fa33
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4aaeb0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.00442989
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x4312e1
mov eax, dword [esi + 0x1c]
push eax
call fcn.00452ad1
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4335d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x4aaeb0]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x16]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x18], ebx
mov word [esp + 0x1c], bx
call fcn.0045a220
mov edx, dword [esp + 0x230]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push ebx
push esi
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x433640
mov esi, str.._srcixCorewindowsixcPathUtilImpl.cpp_291_:__ix::cmn::ixcPathUtilImpl::GetFolderPath_
call fcn.00436c10
push ebx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
push 0x48584c
jmp 0x43366a
lea eax, [esp + 0x10]
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x433655
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.00401540
mov ecx, dword [esp + 0x21c]
pop esi
pop ebx
xor ecx, esp
mov eax, edi
call fcn.00452816
add esp, 0x218
ret
Function at 0x434b20
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x434b2e
mov eax, dword [esi]
jmp 0x434b30
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x434b40
xor al, al
pop esi
ret
test al, 1
je 0x434b47
and eax, 0xfffffffe
cmp dword [edi + 0x18], 8
jb 0x434b4f
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop esi
ret

Function at 0x436c10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4710c0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4aaeb0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push edi
mov eax, dword [0x4aaeb0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 0x48584c
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
call fcn.00401540
lea edi, [esp + 0xc]
mov dword [esp + 0x50], ebx
call fcn.00436930
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 1
call fcn.004016a0
mov edi, 8
mov byte [esp + 0x50], bl
cmp dword [esp + 0x24], edi
jb 0x436c9d
mov eax, dword [esp + 0x10]
push eax
call fcn.00452ad1
add esp, 4
cmp dword [esp + 0x3c], ebx
jne 0x436cb0
cmp dword [esp + 0x40], edi
jb 0x436ce5
mov ecx, dword [esp + 0x2c]
push ecx
jmp 0x436cdd
cmp dword [esp + 0x40], edi
mov eax, dword [esp + 0x2c]
jae 0x436cbe
lea eax, [esp + 0x2c]
push eax
push 2
call fcn.00434060
mov ecx, esi
mov edx, eax
call fcn.00436820
add esp, 8
cmp dword [esp + 0x40], edi
jb 0x436ce5
mov edx, dword [esp + 0x2c]
push edx
call fcn.00452ad1
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00452816
add esp, 0x48
ret
Function at 0x43e8d0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push str.GetNativeSystemInfo
push 0x49b0f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
test eax, eax
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
je 0x43e925
lea ecx, [esp]
push ecx
call eax
cmp word [esp], 9
sete al
add esp, 0x24
ret
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [esp], 9
sete al
add esp, 0x24
ret
Function at 0x43fac0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x46fe18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4aaeb0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
mov eax, dword [0x4aaeb0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x43fbc8
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], 0
call fcn.004016a0
mov dword [esp + 0x34], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x43fb3f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 4], 0xffffffff
push 0xffffffffffffffff
push 0
push esi
lea ecx, [edi + 0x258]
call fcn.004016a0
mov eax, dword [esp + 0x10]
mov ebp, 8
cmp dword [esp + 0x24], ebp
jae 0x43fb62
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43fb94
test al, 0x10
je 0x43fb94
push 1
push 0x48c72c
lea esi, [esp + 0x14]
call fcn.00408d50
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x274]
push eax
mov ecx, esi
call fcn.00408c40
cmp dword [esp + 0x24], ebp
mov eax, dword [esp + 0x10]
jae 0x43fba2
lea eax, [esp + 0x10]
lea ecx, [edi + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
jne 0x43fbcc
cmp dword [esp + 0x24], ebp
jb 0x43fbc8
mov edx, dword [esp + 0x10]
push edx
call fcn.00452ad1
add esp, 4
xor al, al
jmp 0x43fbe1
cmp dword [esp + 0x24], ebp
jb 0x43fbdf
mov eax, dword [esp + 0x10]
push eax
call fcn.00452ad1
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00452816
add esp, 0x2c
ret

Function at 0x43fc00
Capabilities:
Parse pe header

Disassembly:
test edi, edi
jne 0x43fc08
lea eax, [edi + 1]
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call ebx
test eax, eax
jne 0x43fc1f
cmp word [edi], 0x5a4d
je 0x43fc26
mov eax, 1
pop ebx
ret
push esi
mov esi, dword [edi + 0x3c]
add esi, edi
je 0x43fc40
push 4
push esi
call ebx
cmp eax, 1
je 0x43fc40
cmp dword [esi], 0x4550
je 0x43fc48
pop esi
mov eax, 1
pop ebx
ret
mov al, byte [esi + 0x16]
and al, 2
xor ecx, ecx
cmp al, 2
setne cl
pop esi
pop ebx
mov eax, ecx
ret
Function at 0x440240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x20
mov eax, dword [0x4aaeb0]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [edi + 0x14], 0
jne 0x440265
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00452816
add esp, 0x20
ret
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x440274
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
push 0
lea ebp, [esi + 8]
push 0x48584c
mov ecx, ebp
mov dword [esi + 4], 0xffffffff
call fcn.00401540
test bl, 1
je 0x4402f2
mov ecx, edi
lea eax, [esp + 4]
call fcn.00431090
cmp dword [esp + 0x18], 0
je 0x4402de
cmp dword [esp + 0x1c], 8
mov eax, dword [esp + 8]
jae 0x4402b3
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4402c3
test al, 0x10
jne 0x4402de
lea ecx, [esp + 4]
call fcn.00401510
xor al, al
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00452816
add esp, 0x20
ret
cmp dword [esp + 0x1c], 8
jb 0x4402f2
mov eax, dword [esp + 8]
push eax
call fcn.00452ad1
add esp, 4
mov ecx, ebx
mov edx, esi
call fcn.00440120
cmp dword [edi + 0x18], 8
jb 0x440306
mov eax, dword [edi + 4]
jmp 0x440309
lea eax, [edi + 4]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x30]
push 0
push 0x80
push ecx
mov ecx, dword [esi + 0x2c]
push 0
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4402cc
push 0xffffffffffffffff
push 0
push edi
mov ecx, ebp
call fcn.004016a0
mov ecx, dword [esp + 0x20]
pop ebp
xor ecx, esp
mov al, 1
call fcn.00452816
add esp, 0x20
ret
Function at 0x452816
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4aaeb0]
jne 0x452820
repz ret
jmp fcn.0045c228

Function at 0x45450a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x454537
call fcn.00457767
mov dword [eax], esi
call fcn.00457754
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00452d57
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x454513
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x454566
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045777a
pop ecx
call fcn.00457754
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x45458d
test al, 1
je 0x45458d
test byte [esp + 0xc], 2
je 0x45458d
call fcn.00457767
mov dword [eax], 5
call fcn.00457754
mov dword [eax], 0xd
jmp 0x45455d
xor eax, eax
pop esi
ret

Function at 0x45d11e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4aafa8]
je 0x45d139
inc edi
cmp edi, 0x17
jb 0x45d12a
cmp edi, 0x17
jae 0x45d2b9
push ebp
push 3
call fcn.004669fa
cmp eax, 1
pop ecx
je 0x45d285
push 3
call fcn.004669fa
test eax, eax
pop ecx
jne 0x45d16d
cmp dword [0x4aaa50], 1
je 0x45d285
cmp ebx, 0xfc
je 0x45d2b8
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4aeb08
push ebp
call fcn.0045c6c1
add esp, 0xc
test eax, eax
je 0x45d1a3
push esi
push esi
push esi
push esi
push esi
call fcn.00452c5b
add esp, 0x14
push 0x104
mov esi, 0x4aeb21
push esi
push 0
mov byte [0x4aec25], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45d1e7
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0045c6c1
add esp, 0xc
test eax, eax
je 0x45d1e7
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00452c5b
add esp, 0x14
push esi
call fcn.004554e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45d22c
push esi
call fcn.004554e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4aee1c
push 0x477e14
sub ecx, eax
push ecx
push eax
call fcn.004646be
add esp, 0x14
test eax, eax
je 0x45d22c
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00452c5b
add esp, 0x14
jmp 0x45d22e
xor esi, esi
push 0x477e10
push ebx
push ebp
call fcn.0046464d
add esp, 0xc
test eax, eax
je 0x45d24e
push esi
push esi
push esi
push esi
push esi
call fcn.00452c5b
add esp, 0x14
push dword [edi*8 + 0x4aafac]
push ebx
push ebp
call fcn.0046464d
add esp, 0xc
test eax, eax
je 0x45d270
push esi
push esi
push esi
push esi
push esi
call fcn.00452c5b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0046683d
add esp, 0xc
jmp 0x45d2b8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x45d2b8
cmp ebp, 0xffffffff
je 0x45d2b8
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4aafac]
push dword [esi]
call fcn.004554e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x46683d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0045c902
xor ebx, ebx
cmp dword [0x4af330], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x466913
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4669f3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4669f3
push eax
call fcn.0045c894
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4af330], eax
call esi
push eax
call fcn.0045c894
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4af334], eax
call esi
push eax
call fcn.0045c894
mov dword [0x4af338], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0045a6d6
test eax, eax
pop ecx
pop ecx
je 0x4668e1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00452c5b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x466913
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0045c894
cmp eax, ebx
pop ecx
mov dword [0x4af340], eax
je 0x466913
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045c894
pop ecx
mov dword [0x4af33c], eax
mov eax, dword [0x4af33c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x466998
cmp dword [0x4af340], ecx
je 0x466998
push eax
call fcn.0045c90b
push dword [0x4af340]
mov esi, eax
call fcn.0045c90b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x466998
cmp edi, ebx
je 0x466998
call esi
cmp eax, ebx
je 0x466965
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x466965
test byte [ebp - 0x18], 1
jne 0x466998
lea eax, [ebp - 0x10]
push eax
call fcn.0045a70d
test eax, eax
pop ecx
je 0x466980
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00452c5b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x46698f
or dword [ebp + 0x10], 0x200000
jmp 0x4669d3
or dword [ebp + 0x10], 0x40000
jmp 0x4669d3
mov eax, dword [0x4af334]
cmp eax, dword [ebp - 8]
je 0x4669d3
push eax
call fcn.0045c90b
cmp eax, ebx
pop ecx
je 0x4669d3
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4669d3
mov eax, dword [0x4af338]
cmp eax, dword [ebp - 8]
je 0x4669d3
push eax
call fcn.0045c90b
cmp eax, ebx
pop ecx
je 0x4669d3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4af330]
call fcn.0045c90b
cmp eax, ebx
pop ecx
je 0x4669f3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4669f5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46c240
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4af360]
test eax, eax
push esi
je 0x46c27a
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x46c27a
mov eax, dword [0x4af360]
test eax, eax
je 0x46c263
push eax
call esi
mov eax, dword [eax + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x46c27a
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x46c910
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x46ecf8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4aaeb0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4af360]
test eax, eax
jne 0x46c942
xor esi, esi
jmp 0x46c94b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x46c98d
cmp dword [esi + 0x14], 0
jne 0x46c9cf
cmp dword [esi + 0x10], 0
jne 0x46c9d5
push 0x46c220
push 0x4af35c
call fcn.0046c500
mov eax, dword [0x4af360]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x46c9bb
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46c9bb
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x46ca15
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x46ca03
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x46c9d5
cmp dword [esi + 0x14], 0
je 0x46c967
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x46ca3a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x46ca6b
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x46ca6b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46ca6b
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x46ca1f
jmp 0x46c961
Function at 0x46cb20
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x46ca90
push 0
push 0
call fcn.00452eaf
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x46cb60
lea ecx, [esp + 8]
call fcn.0046dbe0
push 0x4a28a0
lea edx, [esp + 0xc]
push edx
call fcn.0045556b
mov eax, dword [edi + 8]
push esi
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi + 8]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x46cb89
cmp eax, 0xffffffff
je 0x46cb89
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x471004]
jne 0x40100a
repz ret
jmp fcn.00401a91

Function at 0x405ebb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x471004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040408b
and dword [ebp - 0x14], 0
cmp dword [0x4736fc], 0
mov dword [ebp - 0x18], eax
jne 0x405f6e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406016
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406016
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4736fc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x473700], eax
call edi
push eax
call esi
push 0x46f05c
push ebx
mov dword [0x473704], eax
call edi
push eax
call esi
mov dword [0x47370c], eax
test eax, eax
je 0x405f6e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x473708], eax
mov eax, dword [0x473708]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405fc7
cmp dword [0x47370c], ecx
je 0x405fc7
push eax
call esi
push dword [0x47370c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405fc7
test ebx, ebx
je 0x405fc7
call edi
test eax, eax
je 0x405fbe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405fbe
test byte [ebp - 8], 1
jne 0x405fc7
or dword [ebp + 0x10], 0x200000
jmp 0x405ffa
mov eax, dword [0x473700]
cmp eax, dword [ebp - 0x18]
je 0x405ffa
push eax
call esi
test eax, eax
je 0x405ffa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405ffa
mov eax, dword [0x473704]
cmp eax, dword [ebp - 0x18]
je 0x405ffa
push eax
call esi
test eax, eax
je 0x405ffa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4736fc]
call esi
test eax, eax
je 0x406016
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406018
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x46d100
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x4750dc]
push ebx
push esi
mov esi, dword [0x474dfc]
mov ebx, eax
cmp eax, 0x5dd
jne 0x46d122
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x4721c0]
call fcn.0046cff0
cmp dword [0x4750dc], 0x2f
jne 0x46d13d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
call fcn.0046d030
add esp, 4
cmp dword [0x4750dc], 0x568
pop esi
pop ebx
jne 0x46d16a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
ret