joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fba0
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 8], 0
call fcn.00446560
cmp eax, 4
jl 0x42fcd3
push esi
push 0x4cdc28
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x42fcd2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.InitializeProcThreadAttributeList
push esi
call ebx
mov edi, eax
test edi, edi
je 0x42fcd0
push str.UpdateProcThreadAttribute
push esi
call ebx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x42fcd0
push str.DeleteProcThreadAttributeList
push esi
call ebx
test eax, eax
je 0x42fcd0
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0
mov dword [ebp - 4], 0
call edi
mov eax, dword [ebp - 4]
test eax, eax
jbe 0x42fcd0
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 0x42fcd0
lea ecx, [ebp - 4]
push ecx
push 0
push 1
push ebx
call edi
test eax, eax
je 0x42fcd0
push 0
push 0
push 4
lea edx, [ebp + 0xc]
push edx
push 0x20000
push 0
push ebx
call dword [ebp - 0xc]
test eax, eax
je 0x42fcd0
push 0x44
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.0048e760
mov esi, dword [ebp + 0x30]
mov eax, dword [ebp + 0x2c]
add esp, 0xc
mov ecx, 0x11
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x34]
push ecx
mov ecx, dword [ebp + 0x28]
lea edx, [ebp - 0x54]
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 - 0x54], 0x48
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 8], eax
pop edi
pop ebx
pop esi
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x42ff70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4fcae0
push 0x4902a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x509354]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x19], 0
cmp dword [0x50bd4c], 0
je 0x430141
cmp dword [0x50bd50], 0
je 0x430141
cmp dword [ebp + 0x14], 0
je 0x430141
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x430141
cmp byte [eax], 0
je 0x430141
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x430141
cmp byte [eax], 0
je 0x430141
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x430141
cmp dword [ebp + 0x18], 0
je 0x430141
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x430141
push 0
push 0x40
push ebx
call fcn.0041ccf0
add esp, 0xc
test al, al
je 0x430141
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x430141
mov edi, dword [ebx + 0x3c]
add edi, ebx
push 0
push pe_nt_image_headers32
push edi
call fcn.0041ccf0
add esp, 0xc
test al, al
je 0x430141
cmp dword [edi], 0x4550
jne 0x430141
mov esi, dword [edi + 0x80]
add esi, ebx
cmp esi, edi
jne 0x430083
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
push edi
call dword [0x50bd50]
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4300b9
add eax, ebx
mov ecx, dword [ebp - 0x24]
push ecx
push edi
push eax
call dword [0x50bd4c]
add esp, 0xc
test eax, eax
je 0x4300b9
add esi, 0x14
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x43009a
cmp dword [esi + 0xc], 0
je 0x43006f
mov esi, dword [esi + 0x10]
add esi, ebx
mov dword [ebp - 0x24], esi
mov eax, dword [esi]
test eax, eax
je 0x430141
cmp eax, dword [ebp + 0x18]
jne 0x430156
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
push edx
push 0x80
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x430141
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x430129
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 4
jmp 0x4300c4
Function at 0x430230
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
xor esi, esi
call fcn.00446560
cmp eax, 4
jge 0x4302c7
push 0x40
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0048e760
add esp, 0xc
push 0x50c1cc
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.00430160
test al, al
je 0x4302bf
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.004301d0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x430520
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 0x430563
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.00430370
add esp, 0x2c
test eax, eax
jne 0x430592
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 0x430592
pop esi
pop ebp
ret
cmp dword [ebp + 0x10], 0
mov eax, 0x101c01
mov dword [ebp + 0x24], 0x100c43
je 0x4305ac
mov eax, 0x1fffff
mov dword [ebp + 0x24], eax
mov ecx, dword [esi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
mov edi, dword [ebp + 0xc]
push 1
push 0
push eax
push esi
push edi
push ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4305df
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
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 edi
sbb eax, eax
pop ebx
neg eax
pop esi
pop ebp
ret
Function at 0x4318a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x509354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x118
lea eax, [ebp - 0x11c]
push ebx
push eax
mov dword [ebp - 0x124], ebx
call fcn.0048e760
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x43193d
cmp byte [0x50c21c], bl
je 0x43191c
push 3
push 0x3e
push str.._src_sandbox_utils.cc
lea ecx, [ebp - 0x1b0]
lea ebx, [eax + 1]
call fcn.004440f0
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.0040afde
add esp, 8
test bl, 1
je 0x431971
lea ecx, [ebp - 0x1b0]
call fcn.00443d90
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e25d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jbe 0x431959
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e25d
mov esp, ebp
pop ebp
ret
jne 0x431971
mov eax, dword [ebp - 0x118]
cmp eax, 1
ja 0x431948
test eax, eax
je 0x431971
cmp word [ebp - 0xc], 2
jae 0x431948
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.0048e25d
mov esp, ebp
pop ebp
ret
Function at 0x436520
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x509354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x210], ebx
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x4365a9
cmp byte [0x50c21c], bl
je 0x436585
push 3
push 0x10b
push str.._srcWow64.cc
lea ecx, [ebp - 0x29c]
mov ebx, 1
call fcn.004440f0
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.0040afde
add esp, 8
test bl, 1
je 0x436595
lea ecx, [ebp - 0x29c]
call fcn.00443d90
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e25d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [esi + 8]
push edi
mov edi, dword [ebp + 8]
push edi
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 2
mov dword [ebp - 0x20c], edx
mov dword [ebp - 0x208], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x43669e
lea ecx, [ecx]
cmp eax, 0x80
je 0x43669e
cmp eax, 0x81
je 0x43669e
test eax, eax
je 0x43669e
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x43669e
mov eax, dword [esi]
mov eax, dword [eax]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [esi + 4]
push 0x200
lea edx, [ebp - 0x204]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x43663a
xor bl, bl
jmp 0x43665c
cmp dword [ebp - 0x210], 0x200
je 0x43664a
xor bl, bl
jmp 0x43665c
mov edx, dword [esi]
mov eax, dword [edx + 4]
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
jne 0x43669e
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x43669e
test bl, bl
jne 0x4366b3
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [esi + 8]
push edi
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 2
mov dword [ebp - 0x20c], edx
mov dword [ebp - 0x208], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x4365e0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e25d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0048e25d
mov esp, ebp
pop ebp
ret 4
Function at 0x438420
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x509354]
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 0x438513
cmp eax, ebx
jne 0x438470
cmp dword [ebp - 0x214], ebx
je 0x438513
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 0x438513
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 0x43850b
push 0x208
lea eax, [ebp - 0x20e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x210], dx
call fcn.0048e760
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 0x438504
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4384e0
mov ecx, dword [ebp - 0x218]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x210]
push edx
call fcn.00401cd6
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.0048e25d
mov esp, ebp
pop ebp
ret
Function at 0x4388e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x509354]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x254], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x438925
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e25d
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x24c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x43895c
xor ecx, ecx
cmp eax, 2
pop ebx
sete cl
pop edi
mov al, cl
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e25d
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x244]
call fcn.00401f35
mov eax, dword [ebp - 0x230]
lea esi, [eax - 1]
cmp eax, esi
ja 0x43897a
call fcn.0048cfa7
cmp dword [ebp - 0x22c], 8
mov eax, dword [ebp - 0x240]
jae 0x43898f
lea eax, [ebp - 0x240]
cmp word [eax + esi*2], 0x5c
je 0x4389a8
push 1
push 0x4cfe30
lea ecx, [ebp - 0x244]
call fcn.004027ed
mov ecx, dword [ebp - 0x24c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x20c]
push eax
push ebx
push ecx
mov dword [ebp - 0x248], 0x104
call edi
test eax, eax
jne 0x438ab7
lea esp, [esp]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x244]
xor edx, edx
push eax
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x210], 7
mov dword [ebp - 0x214], ebx
mov word [ebp - 0x224], dx
call fcn.00401c43
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x438a17
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x228]
call fcn.004027ed
cmp dword [ebp - 0x210], 8
mov eax, dword [ebp - 0x224]
jae 0x438a4e
lea eax, [ebp - 0x224]
mov edx, dword [ebp - 0x250]
push eax
push edx
call fcn.004388e0
add esp, 8
test al, al
je 0x438aac
mov edx, dword [ebp - 0x24c]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push edx
mov dword [ebp - 0x248], 0x104
call edi
cmp dword [ebp - 0x210], 8
mov esi, eax
jb 0x438aa2
mov eax, dword [ebp - 0x224]
push eax
call fcn.0048e006
add esp, 4
cmp esi, ebx
je 0x4389e0
jmp 0x438ab7
lea ecx, [ebp - 0x228]
call fcn.0040198e
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x250]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
cmp dword [ebp - 0x22c], 8
jb 0x438af5
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.0048e006
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0048e25d
mov esp, ebp
pop ebp
ret
Function at 0x43f7d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
cmp byte [0x50c21c], bl
je 0x43f81c
cmp dword [0x50c204], ebx
je 0x43f81c
push 3
push 0xdc
push str..command_line.cc
lea ecx, [ebp - 0xac]
mov ebx, 1
call fcn.004440f0
add eax, 4
push str.Check_failed:_current_process_commandline___NULL.
push eax
call fcn.0040afde
add esp, 8
test bl, 1
pop ebx
je 0x43f82d
lea ecx, [ebp - 0xac]
call fcn.00443d90
mov ecx, dword [0x50c204]
push esi
mov esi, ecx
test ecx, ecx
je 0x43f848
call fcn.0043f280
push esi
call fcn.0048e006
add esp, 4
push 0x54
call fcn.0048e1ac
add esp, 4
test eax, eax
je 0x43f864
mov ecx, eax
call fcn.0043f4f0
mov dword [0x50c204], eax
jmp 0x43f86e
mov dword [0x50c204], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0x18], cx
mov ecx, eax
mov dword [ebp - 4], 7
mov dword [ebp - 8], 0
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x43f890
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401cd6
mov ecx, dword [0x50c204]
lea edx, [ebp - 0x1c]
push edx
call fcn.0043f570
cmp dword [ebp - 4], 8
pop esi
jb 0x43f8cb
mov eax, dword [ebp - 0x18]
push eax
call fcn.0048e006
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x440450
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x109c
call fcn.00490990
mov eax, dword [0x509354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x1008], ebx
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x100c], eax
cmp byte [0x50c21c], bl
je 0x4404b7
test eax, eax
jne 0x4404b7
push 3
push 0x108
push str.._registry.cc
lea ecx, [ebp - 0x109c]
lea ebx, [eax + 1]
call fcn.004440f0
add eax, 4
push str.Check_failed:_value.
push eax
call fcn.0040afde
add esp, 8
test bl, 1
je 0x4404c7
lea ecx, [ebp - 0x109c]
call fcn.00443d90
mov eax, dword [esi]
mov dword [ebp - 0x1010], 1
mov dword [ebp - 0x1008], 0x800
test eax, eax
je 0x4405b2
lea ecx, [ebp - 0x1008]
push ecx
lea edx, [ebp - 0x804]
push edx
lea ecx, [ebp - 0x1010]
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
test al, al
je 0x4405b2
mov eax, dword [ebp - 0x1010]
cmp eax, 1
jne 0x44055c
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x440525
mov ecx, dword [ebp - 0x100c]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x804]
push edx
call fcn.00401cd6
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e25d
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jne 0x4405b2
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x4405b2
cmp eax, 0x400
ja 0x4405b2
mov ecx, dword [ebp - 0x100c]
lea edx, [ebp - 0x1004]
push edx
call fcn.004028b9
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e25d
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0048e25d
mov esp, ebp
pop ebp
ret 8

Function at 0x4405d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
cmp byte [0x50c21c], bl
je 0x44061d
test edi, edi
jne 0x44061d
push 3
push 0x124
push str.._registry.cc
lea ecx, [ebp - 0x94]
lea ebx, [edi + 1]
call fcn.004440f0
add eax, 4
push str.Check_failed:_value.
push eax
call fcn.0040afde
add esp, 8
test bl, 1
je 0x44062d
lea ecx, [ebp - 0x94]
call fcn.00443d90
mov eax, dword [esi]
mov ebx, 4
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0
test eax, eax
je 0x440688
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
test al, al
je 0x440688
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x440673
cmp eax, 3
jne 0x440688
cmp dword [ebp - 8], ebx
jne 0x440688
mov eax, dword [ebp - 4]
mov dword [edi], eax
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4406a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 4], ebx
cmp byte [0x50c21c], bl
je 0x4406ed
test edi, edi
jne 0x4406ed
push 3
push 0x134
push str.._registry.cc
lea ecx, [ebp - 0x90]
lea ebx, [edi + 1]
call fcn.004440f0
add eax, 4
push str.Check_failed:_data.
push eax
call fcn.0040afde
add esp, 8
test bl, 1
je 0x4406fd
lea ecx, [ebp - 0x90]
call fcn.00443d90
mov eax, dword [esi]
test eax, eax
jne 0x44070e
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
push edi
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x442f50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x509354]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0
je 0x4430c9
cmp byte [0x50c230], 0
je 0x4430c9
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push 0x5c
push ecx
call fcn.004911e3
add esp, 8
test eax, eax
je 0x442fad
xor edx, edx
mov word [eax + 2], dx
push str.debug_message.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004929dc
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x442fd7
mov ecx, dword [esi + 4]
mov dword [ebp - 0x230], ecx
jmp 0x442fe0
lea edx, [esi + 4]
mov dword [ebp - 0x230], edx
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x228]
push edx
mov dword [ebp - 0x22c], eax
call fcn.004476e0
add esp, 8
cmp dword [ebp - 0x214], 0
je 0x4430be
push 0x44
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.0048e760
mov eax, dword [ebp - 0x224]
mov esi, 8
add esp, 0xc
mov dword [ebp - 0x284], 0x44
cmp dword [ebp - 0x210], esi
jae 0x443042
lea eax, [ebp - 0x224]
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x284]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x443097
mov ecx, dword [ebp - 0x240]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x23c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x240]
push eax
call esi
jmp 0x4430be
mov eax, dword [ebp - 0x224]
cmp dword [ebp - 0x210], esi
jae 0x4430ab
lea eax, [ebp - 0x224]
push 0x40010
push 0x4e6ee0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x228]
call fcn.0040198e
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048e25d
mov esp, ebp
pop ebp
ret