joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434008]
jne 0x40100a
repz ret
jmp fcn.00401671

Function at 0x40482b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402cea
and dword [ebp - 4], 0
cmp dword [0x435cb0], 0
mov ebx, eax
jne 0x4048dc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40498d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40498d
push eax
call fcn.00402c78
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x435cb0], eax
call esi
push eax
call fcn.00402c78
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x435cb4], eax
call esi
push eax
call fcn.00402c78
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x435cb8], eax
call esi
push eax
call fcn.00402c78
pop ecx
mov dword [0x435cc0], eax
test eax, eax
je 0x4048dc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402c78
pop ecx
mov dword [0x435cbc], eax
mov eax, dword [0x435cbc]
cmp eax, ebx
je 0x404934
cmp dword [0x435cc0], ebx
je 0x404934
push eax
call fcn.00402cf3
push dword [0x435cc0]
mov esi, eax
call fcn.00402cf3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404934
test edi, edi
je 0x404934
call esi
test eax, eax
je 0x40492b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40492b
test byte [ebp - 0xc], 1
jne 0x404934
or dword [ebp + 0x10], 0x200000
jmp 0x40496d
mov eax, dword [0x435cb4]
cmp eax, ebx
je 0x40496d
push eax
call fcn.00402cf3
pop ecx
test eax, eax
je 0x40496d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40496d
mov eax, dword [0x435cb8]
cmp eax, ebx
je 0x40496d
push eax
call fcn.00402cf3
pop ecx
test eax, eax
je 0x40496d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435cb0]
call fcn.00402cf3
pop ecx
test eax, eax
je 0x40498d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40498f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4313d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x50e3dc]
push ebx
push esi
mov esi, dword [0x50e224]
mov ebx, eax
cmp eax, 0x5dd
jne 0x43140a
push 0
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x434c60]
call fcn.004312d0
cmp dword [0x50e3dc], 0x2f
jne 0x431425
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
call fcn.00431310
add esp, 4
cmp dword [0x50e3dc], 0x568
pop esi
pop ebx
jne 0x43144c
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x401587
Capabilities:
Terminate process

Disassembly:
call fcn.0040114d
push 0x5c
push 0x4016b0
call fcn.0040175e
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x4040c8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x4027ee
xor esi, esi
inc esi
mov eax, dword [0x4040c4]
cmp eax, esi
je 0x40280d
mov eax, dword [0x4040c4]
test eax, eax
jne 0x40171d
mov dword [0x4040c4], esi
push 0x4016a8
push 0x40169c
call fcn.004016ea
pop ecx
pop ecx
test eax, eax
jne 0x4028a3
mov eax, dword [0x4040c4]
cmp eax, esi
jne 0x40163a
push 0x401698
push 0x40168c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4040c4], 2
cmp dword [ebp - 0x20], ebx
jne 0x401647
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x4040d4], ebx
jne 0x40281a
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x4028a3
mov eax, dword [eax]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
jbe 0x40170e
cmp cx, 0x22
je 0x4016d8
inc eax
inc eax
jmp 0x401670
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x401686
cmp cx, bx
je 0x40172d
cmp dword [ebp - 0x1c], ebx
je 0x40172d
jmp 0x401680
mov dword [0x4040dc], esi
jmp 0x401616
push 0xa
pop ecx
jmp 0x40174c
movzx ecx, word [eax]
cmp cx, bx
je 0x401742
cmp cx, 0x20
ja 0x401742
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x40172d
test byte [ebp - 0x40], 1
je 0x401728
movzx ecx, word [ebp - 0x3c]
push ecx
push eax
push ebx
push 0x400000
call fcn.00401b55
jmp 0x40283c
cmp eax, esi
jne 0x4027fd
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4015dd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4015c9
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x401616
push 0x4040d4
call fcn.00402e25
pop ecx
test eax, eax
je 0x401653
push ebx
push 2
push ebx
call dword [0x4040d4]
jmp 0x401653
mov dword [0x4040d8], eax
cmp dword [0x4040a8], ebx
jne 0x402880
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x28], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x4040dc], ebx
jne 0x40288e
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4040d8]
jmp 0x4028af
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00401854
ret
Function at 0x401b55
Capabilities:
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
xor esi, esi
push eax
mov dword [ebp - 0x210], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402504
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x402516
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x40251d
push 2
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, esi
jl 0x402524
push esi
push 3
call fcn.00401a94
cmp eax, esi
jl 0x402534
push ebx
push 0x401c08
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x40253c
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.00401f2e
jmp 0x402543
push 0x402798
call fcn.00402d47
add esp, 4
or eax, 0xffffffff
jmp 0x402589
push 0x402728
jmp 0x402509
push 0x4026d0
jmp 0x402509
push eax
push 0x40269c
call fcn.00402d47
add esp, 8
jmp 0x402589
push eax
push 0x402658
jmp 0x40252a
push 0x402624
jmp 0x402570
cmp eax, esi
jge 0x40255a
push eax
push 0x4025e0
call fcn.00402d47
add esp, 8
or esi, 0xffffffff
jmp 0x402560
mov esi, dword [ebp - 0x210]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x402580
push 0x40259c
call fcn.00402d47
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401248
leave
ret 0x10
Function at 0x402167
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp esi, ebx
je 0x402ba4
cmp dword [ebp + 8], ebx
je 0x402bae
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
mov dword [esi], ebx
push ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x402bb8
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll____U_YAPAXI_Z
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x402bcf
push dword [ebp - 8]
call sub.msvcrt.dll_malloc
pop ecx
mov dword [esi], eax
cmp eax, ebx
je 0x40221b
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 8]
push ebx
call edi
test eax, eax
je 0x402bd9
push dword [ebp + 0xc]
call sub.msvcrt.dll____V_YAXPAX_Z
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
mov ebx, 0x8007000e
jmp 0x402209
mov eax, 0x80004003
jmp 0x402215
mov eax, 0x80070057
jmp 0x402215
cmp eax, ebx
jle 0x402214
and eax, 0xffff
or eax, 0x80070000
jmp 0x402214
mov eax, 0x8007000e
jmp 0x402214
call fcn.00403001
push dword [esi]
mov edi, eax
call sub.msvcrt.dll_free
mov dword [esi], ebx
pop ecx
mov ebx, edi
jmp 0x402209
Function at 0x43c640
Capabilities:
Create pipe
Create process on windows
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x180c
call fcn.0044b9f0
mov eax, dword [0x462e54]
mov ecx, dword [0x4628e0]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x43c775
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x462e54], 0x959
jne 0x43c75e
push 0
lea eax, [ebp - 0x1008]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0x1808]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
lea edx, [ebp - 0x408]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0x403690
push 0
push 0
push 0
call esi
push 0
lea ecx, [ebp - 0xc08]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp - 4]
push edx
call fcn.0043c3b0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x43c67e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e4d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45072b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x43af00
call fcn.0043efdd
push 4
mov dword [ebp - 4], 0
call fcn.004400ba
mov edi, eax
add esp, 4
test edi, edi
je 0x43e543
push ebx
call fcn.0043ec49
mov dword [edi], eax
call fcn.0043ea77
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0043ed99
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x43e538
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0043edc1
pop ebx
jmp 0x43e545
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4406c3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x453444]
jne 0x4406cd
repz ret
jmp fcn.004467dc
Function at 0x44ae4b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00443d6e
and dword [ebp - 4], 0
cmp dword [0x459e5c], 0
mov ebx, eax
jne 0x44aefc
push 0x402d74
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44afad
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402d68
push edi
call esi
test eax, eax
je 0x44afad
push eax
call fcn.00443cfc
mov dword [esp], 0x402d58
push edi
mov dword [0x459e5c], eax
call esi
push eax
call fcn.00443cfc
mov dword [esp], 0x402d44
push edi
mov dword [0x459e60], eax
call esi
push eax
call fcn.00443cfc
mov dword [esp], 0x402d28
push edi
mov dword [0x459e64], eax
call esi
push eax
call fcn.00443cfc
pop ecx
mov dword [0x459e6c], eax
test eax, eax
je 0x44aefc
push 0x402d10
push edi
call esi
push eax
call fcn.00443cfc
pop ecx
mov dword [0x459e68], eax
mov eax, dword [0x459e68]
cmp eax, ebx
je 0x44af54
cmp dword [0x459e6c], ebx
je 0x44af54
push eax
call fcn.00443d77
push dword [0x459e6c]
mov esi, eax
call fcn.00443d77
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44af54
test edi, edi
je 0x44af54
call esi
test eax, eax
je 0x44af4b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44af4b
test byte [ebp - 0xc], 1
jne 0x44af54
or dword [ebp + 0x10], 0x200000
jmp 0x44af8d
mov eax, dword [0x459e60]
cmp eax, ebx
je 0x44af8d
push eax
call fcn.00443d77
pop ecx
test eax, eax
je 0x44af8d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44af8d
mov eax, dword [0x459e64]
cmp eax, ebx
je 0x44af8d
push eax
call fcn.00443d77
pop ecx
test eax, eax
je 0x44af8d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x459e5c]
call fcn.00443d77
pop ecx
test eax, eax
je 0x44afad
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44afaf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401334
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401330
lea ebx, [ebx]
cmp esi, eax
jae 0x401334
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401320
cmp esi, eax
jb 0x40133a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404270
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x456158
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x46d358]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.004035f0
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4042d0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.004033a0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], di
call fcn.004035f0
cmp dword [esp + 0x28], 8
jb 0x40431b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041d291
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x4044a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x456213
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x46d358]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
push str.USBVID_05C6PID_3197
lea ecx, [esp + 0xc]
call fcn.004043e0
push str.USBVID_05C6PID_6000
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 0
call fcn.004043e0
push str.USBVID_19D2PID_FFFD
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 1
call fcn.004043e0
push str.USBVID_19D2PID_FFFE
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 2
call fcn.004043e0
push str.USBVID_19D2PID_FFFF
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 3
call fcn.004043e0
push str.USBVID_19D2PID_FFFC
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 4
call fcn.004043e0
push str.USBVID_19D2PID_FFFB
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 5
call fcn.004043e0
push str.USBVID_19D2PID_FFFA
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 6
call fcn.004043e0
push str.USBVID_19D2PID_FFF9
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 7
call fcn.004043e0
push str.USBVID_19D2PID_FFF8
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 8
call fcn.004043e0
push str.USBVID_19D2PID_FFF7
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 9
call fcn.004043e0
push str.USBVID_19D2PID_FFF6
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 0xa
call fcn.004043e0
push str.USBVID_19D2PID_FFF5
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 0xb
call fcn.004043e0
push str.USBVID_19D2PID_FFF1
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 0xc
call fcn.004043e0
push str.USBVID_19D2PID_FFE7
lea ecx, [esp + 0x44]
mov byte [esp + 0x58], 0xd
call fcn.004043e0
push str.USBVID_19D2PID_FFEA
lea ecx, [esp + 0x48]
mov byte [esp + 0x58], 0xe
call fcn.004043e0
mov byte [esp + 0x54], 0xf
push str.USBVID_19D2PID_FFDD
lea ecx, [esp + 0x4c]
call fcn.004043e0
xor esi, esi
mov ecx, dword [esp + esi*4 + 8]
test ecx, ecx
je 0x40462e
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x40462e
push ecx
push eax
call fcn.00427da8
add esp, 8
test eax, eax
je 0x40462e
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x404664
add esi, 1
cmp esi, 0x11
jb 0x404607
push fcn.00412e50
push 0x11
push 4
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x64], 0xffffffff
call fcn.004286b6
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x50
ret
push fcn.00412e50
push 0x11
push 4
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x64], 0xffffffff
call fcn.004286b6
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x50
ret
Function at 0x40a4f0
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x456938
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x46d358]
xor eax, esp
mov dword [esp + 0x82c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46d358]
xor eax, esp
push eax
lea eax, [esp + 0x844]
mov dword fs:[0], eax
mov esi, dword [esp + 0x854]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
lea ebp, [esi + 4]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [esp + 0x20], esi
mov word [ebp], bx
mov dword [esp + 0x84c], ebx
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [esp + 0x14]
push eax
push 8
push edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
setne al
cmp al, bl
je 0x40a5f8
push 0x7fe
lea ecx, [esp + 0x46]
push ebx
push ecx
mov word [esp + 0x4c], bx
call fcn.00428720
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x44]
push eax
push ecx
mov dword [esp + 0x24], 0x400
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
setne al
cmp al, bl
je 0x40a5ed
lea eax, [esp + 0x40]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40a5d1
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call fcn.004037c0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], ebx
jne 0x40a639
lea ecx, [esp + 0x24]
push ecx
call fcn.00416200
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x858], 1
call fcn.004035f0
cmp dword [esp + 0x3c], 8
jb 0x40a6b6
mov edx, dword [esp + 0x28]
push edx
jmp 0x40a6ae
call fcn.00415d50
cmp eax, 6
mov ecx, esi
jne 0x40a64e
push 0x19
push str.AppData_roamingZTEMTUI_
jmp 0x40a655
push 0x1a
push 0x45bce4
call fcn.004033a0
mov edi, 8
cmp dword [esi + 0x18], edi
jb 0x40a667
mov ebp, dword [ebp]
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a6b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40a6b6
lea eax, [esp + 0x24]
push eax
call fcn.00416200
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x858], 2
call fcn.004035f0
cmp dword [esp + 0x3c], edi
jb 0x40a6b6
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041d291
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x844]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x82c]
xor ecx, esp
call fcn.00428437
add esp, 0x83c
ret
Function at 0x40a720
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push ebx
lea eax, [esp + 4]
push eax
push 0x20
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40a7b0
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x40a769
push str.Cant___lookup___privilege___value._n
call fcn.00429677
add esp, 4
mov eax, dword [esp + 4]
push 0
push 0
push 0x10
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40a79a
push str.Cant___adjust___privilege___value._n
call fcn.00429677
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
test eax, eax
push ecx
sete bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
add esp, 0x14
ret