joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45cab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5059d9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], 1
cmp dword [edi], 0
jne 0x45cbeb
lea esi, [edi + 8]
push 0x514538
push esi
call fcn.00449da0
add esp, 8
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0045ca50
mov byte [ebp - 4], 2
push 0
push 0
call fcn.0040eb00
mov eax, dword [0x55639c]
add esp, 8
mov esi, 0x10
test eax, eax
je 0x45cbc4
cmp eax, 2
je 0x45cbc4
cmp dword [0x5563c0], 0
jne 0x45cb50
mov ecx, dword [0x5563c4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x45cb5b
mov ecx, dword [0x5563bc]
call fcn.0040ede0
mov byte [ebp - 4], 3
call fcn.0045c7c0
test al, al
je 0x45cb9d
mov edx, dword [0x5563a4]
push 2
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x45cb86
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x30]
push ecx
push edx
push eax
mov eax, dword [0x5563a4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 2
cmp dword [0x5563c0], 0
jne 0x45cbb9
mov ecx, dword [0x5563c4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x45cbc4
mov ecx, dword [0x5563bc]
call fcn.0040ee60
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], esi
jb 0x45cbd9
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406fa9
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 0
mov eax, dword [edi + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 8]
call fcn.0045b800
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x45e130
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push esi
push 0x20019
push 0
push eax
push ecx
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45e187
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [ebp + 0xc]
push edx
push eax
push eax
push eax
mov dword [ebp + 0xc], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, dword [esi]
test eax, eax
je 0x45e19c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov word [esi + 8], ax
mov dword [esi], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
dec eax
mov dword [esi + 4], eax
test ecx, ecx
je 0x45e1d0
test eax, eax
js 0x45e1d0
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
lea edx, [ebp + 0xc]
push edx
lea edx, [esi + 8]
push edx
push eax
push ecx
mov dword [ebp + 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x45e1d6
xor eax, eax
mov word [esi + 8], ax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x45e3b0
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5066a8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x553948]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x44
lea eax, [ebp - 0x64]
push edi
push eax
mov dword [ebp - 0x10], edi
call fcn.004e41d0
mov esi, dword [ebp + 0xc]
add esp, 0xc
cmp byte [esi + 8], 0
mov dword [ebp - 0x64], 0x44
je 0x45e403
mov dword [ebp - 0x5c], 0x51199c
xor ecx, ecx
cmp byte [esi + 1], cl
mov dword [ebp - 0x38], 1
setne cl
xor ebx, ebx
dec ecx
and ecx, 5
mov word [ebp - 0x34], cx
cmp dword [esi + 0xc], edi
je 0x45e426
mov ebx, 0x1000004
lea ecx, [ebp - 0x20]
call fcn.00413760
mov dword [ebp - 4], edi
cmp dword [esi + 4], edi
jne 0x45e4ae
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x45e441
mov edi, dword [edi]
lea ecx, [ebp - 0x20]
call fcn.00431e40
push eax
movzx eax, byte [esi + 2]
lea edx, [ebp - 0x64]
push edx
push 0
push 0
push ebx
push eax
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x45e4ae
mov eax, dword [esi + 0xc]
xor edi, edi
cmp eax, edi
je 0x45e4db
mov ecx, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x45e4d1
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x20]
push 1
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
test al, al
je 0x45e4ab
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45e4ae
mov dword [ebp - 4], edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00435480
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [esi], 0
je 0x45e4ec
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x45e4fd
lea ecx, [ebp - 0x20]
call fcn.0043b5c0
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00435480
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f120
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50699b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x553948]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
cmp byte [esi], 0
je 0x45f16d
cmp dword [esi + 0x14], 0
je 0x45f16d
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x45f166
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x18], 8
jb 0x45f186
mov eax, dword [esi + 4]
push eax
call fcn.00406fa9
add esp, 4
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45f1b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 0
push 0
push 0x5563dc
call esi
test eax, eax
jne 0x45f202
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x45f1ec
push str.advapi32.dll
call fcn.0042bc80
add esp, 4
test eax, eax
je 0x45f202
push str.SystemFunction036
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push eax
push 0x5563dc
call esi
mov eax, dword [0x5563dc]
mov dword [ebp - 8], 0
pop esi
test eax, eax
je 0x45f21f
push 4
lea ecx, [ebp - 8]
push ecx
call eax
test al, al
jne 0x45f246
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], 0
call fcn.00410b10
add esp, 4
test eax, eax
jne 0x45f23d
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call fcn.004e5e28
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x45f250
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push 0x5563e0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x45f3a8
push 0x11c
push eax
mov byte [ebp - 0x121], al
lea eax, [ebp - 0x120]
push eax
call fcn.004e41d0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45f38e
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x45f2d4
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x45f2da
cmp word [ebp - 0xc], ax
ja 0x45f2da
jmp 0x45f38e
jbe 0x45f38e
push str.bcrypt.dll
call fcn.0042bc80
add esp, 4
test eax, eax
je 0x45f38e
push 0x514718
call fcn.0042bc80
add esp, 4
test eax, eax
je 0x45f38e
push esi
push edi
push 0
push str.Microsoft_Primitive_Provider
push str.ECDH_P256
lea edx, [ebp - 0x12c]
push edx
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
call sub.ncrypt.dll_BCryptOpenAlgorithmProvider
mov edi, eax
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x45f346
push 0
push eax
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
push 0
push str.Microsoft_Software_Key_Storage_Provider
lea eax, [ebp - 0x128]
push eax
call sub.ncrypt.dll_NCryptOpenStorageProvider
mov esi, eax
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x45f371
push eax
call sub.ncrypt.dll_NCryptFreeObject
mov eax, dword [ebp - 0x128]
test edi, edi
jne 0x45f38c
test esi, esi
jne 0x45f38c
cmp dword [ebp - 0x12c], esi
je 0x45f38c
test eax, eax
je 0x45f38c
mov byte [ebp - 0x121], 1
pop edi
pop esi
xor ecx, ecx
cmp byte [ebp - 0x121], cl
push 0
sete cl
inc ecx
push ecx
push 0x5563e0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x5563e0], 1
sete al
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x4622b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor al, al
test esi, esi
je 0x462318
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x462317
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push esi
call edi
test eax, eax
je 0x4622fc
push 0
push 0x4d7ae0
push ebx
call dword [sym.imp.USER32.dll_EnumThreadWindows]
push 0
push 0
push 0x12
push ebx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x1388
push esi
call edi
test eax, eax
jne 0x462303
pop edi
pop ebx
mov al, 1
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
push esi
call edi
test eax, eax
sete al
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x462a90
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x214]
push ecx
xor ebx, ebx
push esi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x462b83
cmp eax, ebx
jne 0x462ae0
cmp dword [ebp - 0x214], ebx
je 0x462b83
push ebx
push 1
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
je 0x462b83
push edi
push 1
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x462b7b
push 0x208
lea eax, [ebp - 0x20e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x210], dx
call fcn.004e41d0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetMappedFileNameW
test eax, eax
je 0x462b74
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x462b50
mov ecx, dword [ebp - 0x218]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x210]
push edx
call fcn.004063e0
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x463310
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x218], eax
test edi, edi
je 0x46343b
cmp word [edi], 0x5c
jne 0x46343b
cmp word [edi + 2], 0x5c
jne 0x46343b
mov ecx, dword [0x5170b4]
mov dx, word [0x5170b8]
push ebx
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], dx
mov ebx, 0x43
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x4633ee
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x21c], 0x104
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x4633ee
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4633b0
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4633c6
sub eax, edx
sar eax, 1
cmp eax, esi
jbe 0x4633ee
push esi
lea ecx, [ebp - 0x214]
push ecx
push edi
call fcn.00417b2b
add esp, 0xc
test eax, eax
je 0x46340c
inc ebx
cmp bx, 0x5a
jbe 0x463368
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x218]
lea edx, [ebp - 0xc]
push edx
mov ecx, ebx
call fcn.004187e0
lea eax, [edi + esi*2]
push eax
mov ecx, ebx
call fcn.0042bf20
pop esi
pop ebx
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop edi
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x463450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov byte [ebp - 1], 0
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jb 0x463478
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
push 0x20019
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46351b
mov esi, dword [ebp + 0x14]
cmp dword [esi + 0x14], 8
mov dword [ebp + 0x10], edi
jb 0x4634a5
mov eax, dword [esi]
jmp 0x4634a7
mov eax, esi
mov edx, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push edi
push edi
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x4634c2
cmp eax, 0x7a
jne 0x463509
mov eax, dword [ebp + 0x10]
cmp eax, edi
jbe 0x463509
shr eax, 1
push edi
add eax, 2
push eax
lea ecx, [ebp - 0x18]
call fcn.0045f480
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
sub eax, ebx
sar eax, 1
add eax, eax
cmp dword [esi + 0x14], 8
mov dword [ebp + 0x10], eax
jb 0x4634ef
mov esi, dword [esi]
mov edx, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push ebx
push edi
push edi
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x463509
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], 0
mov edx, ebx
jne 0x463520
mov edx, 0x51199c
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], edi
xor ecx, ecx
mov eax, edx
mov dword [esi + 0x14], 7
mov word [esi], cx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x463537
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.004063e0
test ebx, ebx
je 0x46355c
push ebx
call fcn.00406fa9
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468940
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
call fcn.00435570
test al, al
je 0x468995
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x468984
cmp dword [ebp - 4], 0x103
jne 0x468995
mov edx, dword [esi]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call edi
mov edi, dword [esi + 0x20]
cmp edi, ebx
je 0x4689af
mov ecx, edi
call fcn.004699e0
push edi
call fcn.00406fa9
add esp, 4
mov dword [esi + 0x20], ebx
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x4689c2
push eax
call fcn.00402d0e
add esp, 4
mov dword [esi + 0x2c], ebx
mov edi, dword [esi + 0x20]
cmp edi, ebx
je 0x4689d9
mov ecx, edi
call fcn.004699e0
push edi
call fcn.00406fa9
add esp, 4
mov eax, dword [esi + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x468a02
cmp eax, 0xffffffff
je 0x468a02
call fcn.00416dd0
mov eax, dword [esi + 0x18]
push eax
call edi
test eax, eax
jne 0x4689ff
call fcn.0040c740
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x468a25
cmp eax, 0xffffffff
je 0x468a25
call fcn.00416dd0
mov eax, dword [esi + 0x14]
push eax
call edi
test eax, eax
jne 0x468a22
call fcn.0040c740
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x468a48
cmp eax, 0xffffffff
je 0x468a48
call fcn.00416dd0
mov eax, dword [esi + 0x10]
push eax
call edi
test eax, eax
jne 0x468a45
call fcn.0040c740
mov dword [esi + 0x10], ebx
mov ecx, esi
call fcn.00435480
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c140
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 8], 0
call fcn.00407780
cmp eax, 3
jl 0x46c261
push ebx
push 0x5119d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x46c260
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitializeProcThreadAttributeList
push ebx
call edi
mov esi, eax
test esi, esi
je 0x46c25e
push str.UpdateProcThreadAttribute
push ebx
call edi
mov edi, eax
test edi, edi
je 0x46c25e
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0
mov dword [ebp - 4], 0
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x46c25e
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x46c25e
lea ecx, [ebp - 4]
push ecx
push 0
push 1
push ebx
call esi
test eax, eax
je 0x46c25e
push 0
push 0
push 4
lea edx, [ebp + 0xc]
push edx
push 0x20000
push 0
push ebx
call edi
test eax, eax
je 0x46c25e
push 0x44
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.004e41d0
mov esi, dword [ebp + 0x30]
mov eax, dword [ebp + 0x2c]
add esp, 0xc
mov ecx, 0x11
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x34]
push ecx
mov ecx, dword [ebp + 0x28]
lea edx, [ebp - 0x50]
push edx
mov edx, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
or edx, 0x1080000
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov dword [ebp - 0x50], 0x48
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 8], eax
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x46c270
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
xor esi, esi
call fcn.00407780
cmp eax, 3
jge 0x46c307
push 0x40
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.004e41d0
add esp, 0xc
push 0x556a2c
mov dword [ebp - 0x48], 0x44
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [ebp + 0xc]
cmp eax, 1
sete cl
mov byte [ebp - 3], cl
push edx
lea ecx, [ebp - 4]
call fcn.0046c040
test al, al
je 0x46c2ff
mov eax, dword [ebp + 0x34]
mov edx, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
or ecx, 0x1080000
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
lea ecx, [ebp - 4]
call fcn.0046c0d0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46c920
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 0x38]
push esi
test eax, eax
je 0x46c963
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x30]
push ecx
mov ecx, dword [ebp + 0x2c]
push edx
mov edx, dword [ebp + 0x28]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.0046c6a0
add esp, 0x2c
test eax, eax
jne 0x46c992
pop esi
pop ebp
ret
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
push edx
mov edx, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push 0
push eax
mov eax, dword [ebp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x46c992
pop esi
pop ebp
ret
push edi
push 0
call fcn.0049c990
push 0
mov edi, eax
call fcn.0049c9c0
add esp, 8
cmp dword [ebp + 0x10], 0
mov dword [ebp + 0x24], eax
je 0x46c9b7
mov edi, 0x1fffff
mov dword [ebp + 0x24], edi
mov ecx, dword [esi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push edi
mov edi, dword [ebp + 0xc]
push esi
push edi
push ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x46c9e9
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x24]
mov edx, dword [esi + 4]
push 1
push 0
push ecx
lea eax, [esi + 4]
push eax
push edi
push edx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
pop ebx
sbb eax, eax
pop edi
neg eax
pop esi
pop ebp
ret

Function at 0x46db90
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call fcn.004e41d0
add esp, 0xc
test edi, edi
je 0x46dc32
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x20e]
push eax
mov word [ebp - 0x210], dx
call fcn.004e41d0
add esp, 0xc
push 0x105
lea ecx, [ebp - 0x210]
push ecx
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x46dc32
push 0
push 0
push 0x105
lea edx, [ebp - 0x41c]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00418a99
add esp, 0x24
lea edx, [ebp - 0x41c]
test eax, eax
je 0x46dc37
mov edx, 0x51199c
xor ecx, ecx
mov eax, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46dc50
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.004063e0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x46e060
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x46e0f6
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e41d0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x46e09f
mov esi, dword [esi]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x46e0f6
cmp eax, 0x104
ja 0x46e0f6
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46e0c6
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, edi
call fcn.004063e0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.00401316
mov esp, ebp
pop ebp
ret