joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412e30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x45b198]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push 4
push 0x3000
mov dword [ebp - 0x44], 1
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi]
and eax, 0xfffffff8
push eax
push 0
push 0
push ecx
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], eax
call fcn.00418de0
mov ebx, edx
mov edi, eax
or eax, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x3c], edi
mov ecx, edi
mov dword [ebp - 0x38], ebx
je 0x412efb
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push dword [ebp + 8]
push dword [ebp - 0x20]
push ebx
push edi
push dword [ebp - 0x14]
call fcn.00419110
test eax, eax
mov eax, dword [ebp + 8]
je 0x412ecf
mov ecx, edi
mov edx, ebx
cmp dword [ebp - 0x18], eax
je 0x412efb
push 0x4000
push eax
push ebx
push edi
push dword [ebp - 0x14]
call fcn.00418f80
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
movlpd qword [ebp - 0x24], xmm0
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], ebx
or ecx, edx
mov dword [ebp - 4], 0
je 0x412f5d
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 4]
push 0
push 0
je 0x412f28
push ebx
push edi
push dword [eax + 0xc]
push dword [eax + 8]
push 0
push 0
push dword [esi]
call fcn.00416620
jmp 0x412f39
mov ecx, dword [eax + 8]
push edi
push ecx
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
je 0x412f5d
push dword [esi + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x412f8d
mov eax, dword [esi + 4]
push ebx
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
or ecx, 0xffffffff
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov eax, edi
mov dword [ebp - 4], 1
or eax, ebx
je 0x412fe7
push 0x4000
push dword [ebp + 8]
push ebx
push edi
push dword [ebp - 0x14]
call fcn.00418f80
mov edx, dword [ebp - 0x18]
jmp 0x412fe9
cmp dword [esi + 0x18], 0
je 0x412fc4
cmp dword [esi + 0x10], 0
je 0x412fc4
xorps xmm0, xmm0
push ebx
movlpd qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push 0
push 8
push eax
push ebx
push edi
push dword [esi]
call fcn.004181b0
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
jmp 0x412f66
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x1c]
xor ecx, ecx
jmp 0x412f63
mov edx, ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418bf0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4484eb
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x45b198]
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]
mov edi, dword [ebp + 0xc]
push 0x44e538
push str.kernel32.dll
push ebx
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x45c], 0
call fcn.00416e40
push edx
push eax
push ebx
call fcn.004170d0
mov ecx, dword [0x45da08]
mov dword [ebp - 0x458], eax
or eax, edx
mov dword [ebp - 0x454], edx
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0xffffffff
mov dword [ebp - 0x448], ecx
jne 0x418d3c
test ebx, ebx
mov eax, ebx
cmove eax, dword [0x45da04]
push eax
call dword [0x44a414]
push eax
push 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x418d02
push 0x424
lea eax, [ebp - 0x434]
mov dword [ebp - 0x438], 0x428
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x418cfb
lea eax, [ebp - 0x418]
push str.kernel32.dll
push eax
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
je 0x418d5f
lea eax, [ebp - 0x438]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x418cd2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movlpd qword [ebp - 0x440], xmm0
mov eax, dword [ebp - 0x440]
mov edx, dword [ebp - 0x43c]
push 0x44e538
push edx
push eax
push ebx
call fcn.004173e0
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], edx
mov dword [ebp - 0x448], 0
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x418d4b
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x460]
call fcn.00411d10
or eax, edx
je 0x418d6f
mov bl, 1
jmp 0x418d71
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x41c]
cdq
jmp 0x418d19
xor bl, bl
mov esi, dword [ebp - 0x45c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x418db7
mov edx, dword [esi + 8]
mov eax, edx
mov ecx, dword [esi + 0xc]
or eax, ecx
mov dword [ebp - 4], 1
je 0x418dac
cmp dword [esi], 0
je 0x418dac
push 0x4000
push dword [esi + 0x10]
push ecx
push edx
push dword [esi + 4]
call fcn.00418f80
push 0x18
push esi
call fcn.004364af
add esp, 8
mov al, bl
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.004366b8
mov esp, ebp
pop ebp
ret
Function at 0x41b4f0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0x14]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x41b518
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x1c]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0xc], eax
jmp 0x41b520
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
test ecx, ecx
jle 0x41b539
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x41b541
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
test ecx, ecx
jle 0x41b55a
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x41b562
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
test ecx, ecx
jle 0x41b57b
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x41b583
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov eax, edx
mov dword [ebp - 4], 0
cdq
xorps xmm0, xmm0
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x41b5c4
add dword [esp], 5
retf

Function at 0x422143
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x437b80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x45b198]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x437ba7
mov ecx, 5
int 0x29
push 2
call fcn.0043748d
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x437cb2
test esi, esi
jne 0x437cb2
push 2
call fcn.0043748d
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004366b8
mov esp, ebp
pop ebp
ret

Function at 0x440fd0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x440ffa
mov eax, 2
pop ebp
ret
push esi
call fcn.00440f00
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x44101a
jmp dword [eax*4 + 0x441050]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.00437b20
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x4419a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0041ee20
mov esi, dword [ebp + 8]
test al, al
je 0x4419be
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.004419d0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x441b00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x441b5c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x441b5c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x441b5c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x441b5c
cmp dword [ecx + 0x74], 0xe
jbe 0x441b5c
cmp dword [ecx + 0xe8], 0
je 0x441b5c
push dword [ebp + 8]
call fcn.004419d0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x2a8e660
call fcn.004417b0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x441b91
push dword [ebp + 8]
call fcn.004419a0
mov esp, ebp
pop ebp
ret

Function at 0x441bd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x441c2c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x441c2c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x441c2c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x441c2c
cmp dword [ecx + 0x74], 0xe
jbe 0x441c2c
cmp dword [ecx + 0xe8], 0
je 0x441c2c
push dword [ebp + 8]
call fcn.004419d0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x2a8e660
call fcn.004417b0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x441c61
push dword [ebp + 8]
call fcn.004419a0
mov esp, ebp
pop ebp
ret

Function at 0x446b90
Capabilities:
Get process heap force flags

Disassembly:
call fcn.00440f00
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x50001
jae 0x446bba
add eax, 0x74
ret
cmp edx, 0x60000
jae 0x446bc6
add eax, 0x78
ret
add eax, 0x88
ret

Function at 0x446bd0
Capabilities:
Get process heap force flags

Disassembly:
call fcn.00440f00
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x60000
jae 0x446bfa
sub eax, 0xffffff80
ret
add eax, 0x90
ret
Function at 0x402108
Capabilities:
Terminate process

Disassembly:
jmp 0x4359ee
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4359ff
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00401442
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4029fa
Capabilities:
Parse pe header

Disassembly:
jmp 0x409898
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4098d8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4098d8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4098d8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4098d8
cmp dword [ecx + 0x74], 0xe
jbe 0x4098d8
cmp dword [ecx + 0xe8], 0
je 0x4098d8
mov al, 1
ret
xor al, al
ret

Function at 0x40321a
Capabilities:
Query environment variable

Disassembly:
jmp 0x441c77
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x441c8b
xor edi, edi
jmp 0x441cc2
push ebx
push esi
call fcn.00441b7f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004024ff
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x441cb2
push ebx
push esi
push edi
call fcn.0040330a
add esp, 0xc
push 0
call fcn.0040150f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x4072b0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov edx, dword [ebp - 4]
push edx
call fcn.00402fd1
add esp, 4
mov dword [ebp - 8], eax
push 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x29a0e233
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x29a0e242
pop dword [ebp - 0x20]
mov eax, 0x297e9b21
add eax, 0x224721
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x10417800
add dword [ebp - 0x30], 0x3e10cd4b
mov dword [ebp - 0x2c], 0x86b91a9
sub dword [ebp - 0x2c], 0xd6384564
mov dword [ebp - 0x28], 0x870fad95
sub dword [ebp - 0x28], 0x3ac36967
mov dword [ebp - 0x24], 0xfe6383cc
add dword [ebp - 0x24], 0x19c7c34
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x4aa7303f
add dword [ebp - 0x30], 0x29cb3917
mov dword [ebp - 0x2c], 0x413ce09
sub dword [ebp - 0x2c], 0xc2a76c94
mov dword [ebp - 0x28], 0x95f0de32
sub dword [ebp - 0x28], 0x328171c6
mov dword [ebp - 0x24], 0x6a24324
sub dword [ebp - 0x24], 0x6a24324
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xd6b1440c
sub eax, 0xad1003c8
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x39548
push 0
call eax
mov ecx, 0xe2d84ec9
add ecx, 0x1d27f54f
mov esi, eax
mov edi, 0x604dfae4
add edi, 0xc954251c
add edi, dword [ebp - 0x20]
mov ebx, 0x93e6ad50
add ebx, 0xfd388bbe
mov edx, dword [edi]
mov dword [ebp - 0xc], 0xf4405b6c
xor edx, ebx
mov dword [esi], edx
xor dword [ebp - 0x14], 0x415cdafd
add esi, 0x3f9f29bb
sub esi, 0x3f9f29b7
add edi, 4
loop 0x29a0e35f
add eax, 0x5b1d2c2f
add eax, 0xa4e3d704
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x29a00000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x1019287
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
push edi
xor edi, edi
push edi
push edi
mov esi, ecx
push esi
push 0x1019128
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, edi
je 0x10192b2
mov dword [esi + 0xc], 1
jmp 0x10192d6
mov edi, 0x4106
push edi
call fcn.01027916
test eax, eax
je 0x10192d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001b90
push edi
call fcn.010279c4
add esp, 0xc
mov eax, dword [esi + 0xc]
pop edi
pop esi
ret

Function at 0x101a0a5
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x1032038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
push 3
mov dword [ebp - 0x808], 0x400
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x101a0ff
mov esi, 0x4102
push esi
call fcn.01027916
test eax, eax
je 0x101a150
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002b90
jmp 0x101a130
mov eax, dword [ebp - 0x808]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x808], eax
cmp eax, 0x800
jbe 0x101a13b
mov esi, 0x4102
push esi
call fcn.01027916
test eax, eax
je 0x101a150
push dword [ebp - 0x808]
push 0x1002ae0
push esi
call fcn.010279c4
add esp, 0xc
jmp 0x101a150
push eax
lea eax, [ebp - 0x804]
push eax
push 1
push 0x100282c
push esi
call fcn.0101cfee
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01016c45
leave
ret 4
Function at 0x101ca60
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x1032038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x194]
push eax
push 0x202
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor esi, esi
mov dword [ebp - 0x198], eax
cmp eax, esi
je 0x101cac0
mov esi, 0x4102
push esi
call fcn.01027916
test eax, eax
je 0x101cb32
push dword [ebp - 0x198]
push 0x10042f0
push esi
call fcn.010279c4
add esp, 0xc
jmp 0x101cb32
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x18], eax
cmp eax, esi
jne 0x101cadf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x198], eax
jmp 0x101cb32
push ebx
push 0x10042d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x101caff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x198], eax
jmp 0x101cb31
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10042b0
push ebx
call esi
push 0x1004298
push ebx
mov dword [edi + 0x34], eax
call esi
push 0x1004280
push ebx
mov dword [edi + 0x38], eax
call esi
push 0x1004268
push ebx
mov dword [edi + 0x3c], eax
call esi
mov dword [edi + 0x40], eax
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x198], eax
pop edi
sete al
xor ecx, ebp
pop esi
call fcn.01016c45
leave
ret

Function at 0x101cd98
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
je 0x101cdcc
test eax, eax
je 0x101cdc9
push eax
push 0x3dd
push 0x1002c3c
push 0x1004518
call fcn.0102880e
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x101d6eb
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
mov esi, ecx
push esi
push 0x101d6d3
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
cmp eax, edi
jne 0x101d733
mov ebx, 0x4100
push ebx
call fcn.01027916
test eax, eax
je 0x101d74f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004d50
push ebx
call fcn.010279c4
add esp, 0xc
jmp 0x101d74f
mov ebx, 0xc100
push ebx
call fcn.01027916
test eax, eax
je 0x101d74f
push 0x1004cd8
push ebx
call fcn.010279c4
pop ecx
pop ecx
xor eax, eax
cmp dword [esi], edi
pop edi
pop esi
setne al
pop ebx
ret
Function at 0x10205c7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
mov edi, 0x1007ce0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x102061a
mov esi, 0xc105
push esi
call fcn.01027916
test eax, eax
je 0x102068d
push edi
push 0x1007f18
push esi
call fcn.010279c4
add esp, 0xc
jmp 0x102068d
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov ebx, 0x1007d40
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1020661
mov esi, 0xc105
push esi
call fcn.01027916
test eax, eax
je 0x102068d
push ebx
push edi
push 0x1007e28
push esi
call fcn.010279c4
add esp, 0x10
jmp 0x102068d
cmp dword [ebp - 0x10], esi
je 0x102067e
mov esi, 0xc105
push esi
call fcn.01027916
test eax, eax
je 0x102068d
push ebx
push edi
push 0x1007d58
jmp 0x1020656
mov eax, dword [ebp - 0x14]
cmp eax, 2
mov dword [ebp - 8], eax
jl 0x102068d
and dword [ebp - 8], 0
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x102069f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x401000
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push str.BOE0729
push 0x40bc58
push str._s_hs_sDevice_ParametersEDID_OVERRIDE
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004023ca
add esp, 0x18
cmp eax, 0x100
jl 0x40105c
mov eax, dword [0x40ea38]
or eax, 0xfffffffe
mov dword [0x40ea38], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
push 2
push 0
push 0
push 0
lea edx, [ebp - 0x104]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401041
or dword [0x40ea38], 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push edi
xor edi, edi
mov esi, 0x40b9d8
lea esp, [esp]
push edi
push 0x40bcac
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004023ca
add esp, 0x10
cmp eax, 0x100
jge 0x401199
test edi, edi
je 0x401112
cmp byte [esi], 0
jne 0x401112
mov edx, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x401130
add eax, 0xfffffffe
cmp eax, 1
jbe 0x401137
mov eax, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40115f
or dword [0x40ea38], esi
jmp 0x40115f
mov ecx, dword [ebp - 0x108]
push 0x80
push esi
push 3
push 0
lea eax, [ebp - 0x104]
push eax
push ecx
call ebx
test eax, eax
jne 0x401175
or dword [0x40ea38], 1
sub esi, 0xffffff80
inc edi
cmp esi, 0x40bbd8
jl 0x4010a0
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40115f
or dword [0x40ea38], 0xfffffffe
mov ecx, dword [ebp - 4]
mov eax, dword [0x40ea38]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004020bf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40115f
or dword [0x40ea38], esi
jmp 0x40115f
mov edx, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40115f
or dword [0x40ea38], esi
jmp 0x40115f