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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.0059a8e0
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push 0x1000
push eax
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x1008], eax
lea eax, [ebp - 0x1004]
push eax
mov dword [ebp - 0x1054], 0
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x103c], 0
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 0
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1058], 0x44
call fcn.0059dbb0
push esi
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.005a74bd
add esp, 0x18
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1058]
push eax
push 0
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x47a082
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x47a054
mov esi, dword [ebp - 0x1014]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x1074]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test ebx, ebx
je 0x47a059
push ebx
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x47a059
mov edi, 1
push dword [ebp - 0x1014]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1010]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00599f9c
mov esp, ebp
pop ebp
ret

Function at 0x47a0a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x47a0cb
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebp
ret
Function at 0x47ade0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5daed0
mov eax, dword fs:[0]
push eax
mov eax, 0x3044
call fcn.0059a8e0
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x5f776c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x47afe9
lea eax, [ebp - 0x3020]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x800
lea eax, [ebp - 0x2010]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x3038]
push eax
call fcn.0047b5d0
add esp, 4
mov esi, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x47ae78
mov esi, dword [esi]
call fcn.0047ad40
cmp dword [eax + 0x2c], 8
lea ecx, [eax + 0x18]
jb 0x47ae88
mov ecx, dword [ecx]
movzx eax, word [ebp - 0x3014]
push eax
movzx eax, word [ebp - 0x3016]
push eax
movzx eax, word [ebp - 0x3018]
push eax
movzx eax, word [ebp - 0x301a]
push eax
movzx eax, word [ebp - 0x301e]
push eax
movzx eax, word [ebp - 0x3020]
push eax
push esi
push ecx
lea eax, [ebp - 0x2010]
push eax
push 0x5f7784
lea eax, [ebp - 0x3010]
push 0x800
push eax
call fcn.004729f0
add esp, 0x30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3038]
call fcn.00404866
lea eax, [ebp - 0x1010]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x3010]
push eax
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x303c], eax
cmp eax, 0xffffffff
je 0x47afe9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x5f77c4
push edi
mov dword [ebp - 0x3050], eax
mov dword [ebp - 0x304c], ebx
mov dword [ebp - 0x3048], 0
mov dword [ebp - 0x3044], 0
mov dword [ebp - 0x3040], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x47afe9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x3044]
push ecx
push 0
lea ecx, [ebp - 0x3050]
push ecx
push 0
push dword [ebp - 0x303c]
push eax
push esi
call ebx
test eax, eax
je 0x47afe9
push dword [ebp - 0x303c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x669540]
test eax, eax
je 0x47afe5
lea ecx, [ebp - 0x1010]
push ecx
call eax
add esp, 4
mov al, 1
jmp 0x47afeb
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret
Function at 0x47b500
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x5f7730
call edi
test eax, eax
je 0x47b529
push 0x5f7748
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x47b54a
push 0x5f76b0
call edi
test eax, eax
je 0x47b5c8
push 0x5f7748
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x47b5c8
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 7
push esi
call edi
test eax, eax
je 0x47b5c8
cmp byte [ebp + 8], 0
jne 0x47b59a
mov eax, dword [esi]
mov dword [0x669544], eax
movzx eax, word [esi + 4]
mov word [0x669548], ax
movzx eax, byte [esi + 6]
mov byte [0x66954a], al
mov eax, dword [0x5f7764]
mov dword [esi], eax
movzx eax, word [0x5f7768]
mov word [esi + 4], ax
movzx eax, byte [0x5f776a]
jmp 0x47b5b9
cmp byte [0x669544], 0
je 0x47b5bc
mov eax, dword [0x669544]
mov dword [esi], eax
mov ax, word [0x669548]
mov word [esi + 4], ax
mov al, byte [0x66954a]
mov byte [esi + 6], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 7
push esi
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47b5d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dafb7
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], 0
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx edi, ax
shr edi, 8
call dword [sym.imp.KERNEL32.dll_GetVersion]
push edi
movzx eax, al
push eax
push 0x5f770c
lea eax, [ebp - 0x210]
push 0xff
push eax
call fcn.004729f0
lea eax, [ebp - 0x210]
add esp, 0x14
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47b670
sub eax, edx
mov ecx, ebx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040656e
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x23c], 9
mov ecx, ebx
push 4
jne 0x47b6b0
push 0x5f7718
jmp 0x47b6b5
push 0x5f7724
call fcn.0040656e
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret
Function at 0x47d450
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x210], 0
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
mov dword [ebp - 0x214], eax
push esi
lea esi, [ebp - 0x20c]
test ecx, ecx
je 0x47d4c5
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47d654
mov eax, dword [ebp - 0x214]
push edi
push 0
push 0
push 0
lea ecx, [ebp - 0x220]
push ecx
push 0
push 0
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
jne 0x47d63c
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
inc ecx
inc eax
mov dword [ebp - 0x21c], ecx
cmp ecx, eax
mov dword [ebp - 0x220], eax
cmovb ecx, eax
mov dword [ebp - 0x218], ecx
cmp ecx, 0x104
jbe 0x47d54a
lea eax, [ecx + ecx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x47d544
lea edi, [eax + 8]
jmp 0x47d622
mov ecx, dword [ebp - 0x218]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ecx
push eax
push esi
push 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x47d5b1
push esi
push dword [ebp - 0x214]
call fcn.0047d450
mov edi, eax
test edi, edi
jne 0x47d622
mov eax, dword [ebp - 0x218]
push edi
push edi
push edi
push edi
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push esi
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x47d572
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x47d5c7
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x47d622
mov eax, dword [ebp - 0x218]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x47d622
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test edi, edi
jne 0x47d622
mov eax, dword [ebp - 0x218]
push edi
push edi
push edi
push edi
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x47d5f0
lea eax, [ebp - 0x20c]
cmp esi, eax
je 0x47d63c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x224], 0
je 0x47d651
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00599f9c
mov esp, ebp
pop ebp
ret 8
Function at 0x47d670
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x1c]
mov ebx, 1
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47d778
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x47d76f
mov eax, dword [ebp - 0x10]
inc eax
push esi
mov dword [ebp - 0x14], eax
xor esi, esi
add eax, eax
push edi
push eax
call fcn.005a199c
mov edi, eax
mov dword [ebp - 0x20], esi
add esp, 4
mov dword [ebp - 0x1c], esi
test edi, edi
je 0x47d76d
cmp dword [ebp - 0xc], esi
jbe 0x47d764
test ebx, ebx
je 0x47d764
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x47d75e
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x1c]
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47d75e
push dword [ebp + 0x18]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [ebp + 0x14]
push dword [ebp - 8]
dec eax
neg eax
sbb eax, eax
and ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x47d6f6
push edi
call fcn.005a1981
add esp, 4
pop edi
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x47d83b
mov eax, dword [ebp - 4]
xor ecx, ecx
inc eax
mov edx, 2
xor esi, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005649e3
add esp, 4
mov edi, eax
cmp dword [ebp - 8], esi
jbe 0x47d832
mov eax, dword [ebp - 4]
push 0
inc eax
mov dword [ebp - 0xc], 0
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x47d82c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x47d82c
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push edi
push dword [ebp + 0x14]
push ebx
call dword [ebp + 0xc]
sub eax, 1
je 0x47d847
inc esi
cmp esi, dword [ebp - 8]
jb 0x47d7e5
push edi
call fcn.005649de
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.005649de
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47db20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5db1dd
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov ecx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
lea esi, [ecx + 2]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47db74
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004049aa
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], 0
lea ecx, [edx - 1]
cmp edx, ecx
jbe 0x47dd0c
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
cmp edi, 8
cmovae eax, ebx
cmp word [eax + ecx*2], 0x5c
jne 0x47dc47
cmp edx, ecx
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0
cmovb ecx, edx
mov dword [ebp - 0x2c], 7
cmp edi, 8
push ecx
cmovae eax, ebx
lea ecx, [ebp - 0x40]
push eax
call fcn.004049aa
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x47dc23
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47dc19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47dd11
push edx
push ecx
call fcn.00599f8e
add esp, 8
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
push 0
push 0x5f80f0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x47dca1
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x47dca1
push eax
push 0
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x47dca1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x48]
cmp edi, 8
lea eax, [ebp - 0x28]
cmovae eax, ebx
push eax
call fcn.0047d860
mov edx, dword [ebp - 0x14]
add esp, 8
mov esi, eax
cmp edx, 8
jb 0x47dcee
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47dce4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47dd11
push edx
push ecx
call fcn.00599f8e
add esp, 8
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 - 0x10]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret
call fcn.00404954
call fcn.005a1930
int3
Function at 0x47dd70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47ddd9
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 4
push eax
push 0
push dword [ebp + 0x10]
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x47de80
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x800
xor bl, bl
mov dword [ebp - 4], 0x800
call fcn.005a199c
push dword [ebp - 4]
mov esi, eax
push 0
push esi
call fcn.0059dbb0
add esp, 0x10
test esi, esi
je 0x47dfe4
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
cmp ecx, 1
je 0x47dee4
cmp ecx, 2
jne 0x47dfd2
cmp eax, 0xea
jne 0x47df16
push dword [ebp - 4]
push esi
call fcn.005ab6ad
mov esi, eax
add esp, 8
test esi, esi
je 0x47dfe4
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47dfd2
mov eax, dword [ebp - 4]
cmp eax, 2
jbe 0x47dfd0
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x47df40
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47df40
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 0x10]
push esi
call fcn.004049aa
cmp dword [ebp - 8], 2
jne 0x47dfd0
mov ebx, dword [ebp - 4]
and ebx, 0xfffffffe
lea eax, [ebx + ebx]
push eax
call fcn.005a199c
mov edi, eax
add esp, 4
test edi, edi
je 0x47dfd0
lea eax, [ebx + ebx]
push eax
push 0
push edi
call fcn.0059dbb0
add esp, 0xc
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jbe 0x47dfb3
add eax, eax
push eax
push edi
call fcn.005ab6ad
mov edi, eax
add esp, 8
test edi, edi
je 0x47dfb3
push dword [ebp - 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x47dfc7
mov ecx, dword [ebp + 0x10]
push edi
call fcn.0046f660
push edi
call fcn.005a1981
add esp, 4
mov bl, 1
push esi
call fcn.005a1981
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x484010
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5db430
mov eax, dword fs:[0]
push eax
mov eax, 0x1084
call fcn.0059a8e0
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
cmp dword [eax + 0x10], 0
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x103c], ecx
mov dword [ebp - 0x1030], eax
jne 0x484074
push ebx
push esi
push edi
push ecx
call fcn.00484870
add esp, 0x10
jmp 0x484255
lea eax, [ebp - 0x1028]
push eax
call fcn.00484290
add esp, 4
cmp dword [ebp - 0x1018], 0
mov dword [ebp - 4], 0
je 0x484220
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x1029], 0
mov dword [ebp - 0x1034], esi
jb 0x4840b2
mov eax, dword [esi]
mov dword [ebp - 0x1034], eax
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x1038], edi
jb 0x4840c6
mov eax, dword [edi]
mov dword [ebp - 0x1038], eax
cmp dword [ebx + 0x14], 8
mov edx, ebx
jb 0x4840d0
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x1030]
cmp dword [ecx + 0x14], 8
jb 0x4840de
mov ecx, dword [ecx]
push dword [ebp - 0x1034]
cmp dword [ebp - 0x1014], 8
lea eax, [ebp - 0x1028]
push dword [ebp - 0x1038]
cmovae eax, dword [ebp - 0x1028]
push edx
push ecx
push eax
push 0x5f8558
lea eax, [ebp - 0x1010]
push 0x800
push eax
call fcn.004729f0
add esp, 0x20
mov dword [ebp - 0x108c], 0
xor eax, eax
mov dword [ebp - 0x1088], 0
mov dword [ebp - 0x104c], eax
mov dword [ebp - 0x1048], eax
mov dword [ebp - 0x1044], eax
mov dword [ebp - 0x1040], eax
lea eax, [ebp - 0x104c]
push eax
lea eax, [ebp - 0x1090]
mov dword [ebp - 0x1084], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1080], 0
push eax
push 0
mov dword [ebp - 0x107c], 0
mov dword [ebp - 0x1078], 0
mov dword [ebp - 0x1074], 0
mov dword [ebp - 0x1070], 0
mov dword [ebp - 0x106c], 0
mov dword [ebp - 0x1068], 0
mov dword [ebp - 0x1064], 0
mov dword [ebp - 0x1060], 0
mov dword [ebp - 0x105c], 0
mov dword [ebp - 0x1058], 0
mov dword [ebp - 0x1054], 0
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x1090], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
movzx ecx, byte [ebp - 0x1029]
test eax, eax
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x1030], ecx
jmp 0x48423d
push dword [ebp - 0x1030]
push ebx
push esi
push edi
push dword [ebp - 0x103c]
call fcn.00483bc0
add esp, 0x14
mov byte [ebp - 0x1030], al
lea ecx, [ebp - 0x1028]
mov dword [ebp - 4], 0xffffffff
call fcn.00404866
mov eax, dword [ebp - 0x1030]
test al, al
jne 0x48426a
push ebx
push esi
push edi
push dword [ebp - 0x103c]
call fcn.00484870
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret