joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4303a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x445c0c
je 0x430465
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43044d
mov esi, dword [ebx + 4]
jmp 0x430447
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x430437
cmp dword [ebp - 0xc], 4
jne 0x430437
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x43042f
or dword [eax + 0x9c], ecx
jmp 0x430437
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x4303fb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4303de
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x430802
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4342b1
call fcn.0041966c
sub esp, 0x110
mov eax, dword [0x446490]
xor eax, dword [ebp + 4]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x4308bd
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, 0xff
jmp 0x430886
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401f50
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call fcn.00430802
mov ecx, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
setne byte [ebp - 0x11]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004011a0
cmp byte [ebp - 0x11], 0
jne 0x43089b
push ebx
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x18]
call edi
mov esi, eax
test esi, esi
je 0x43084a
cmp esi, 0x103
pop edi
pop ebx
je 0x4308ad
cmp esi, 0x3f2
jne 0x4308bd
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
call fcn.004195ce
leave
ret 8

Function at 0x430c6d
Capabilities:
Get thread local storage value

Disassembly:
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x430c8a
mov ecx, dword [esp + 4]
cmp ecx, dword [eax + 8]
jge 0x430c8a
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ecx*4]
jmp 0x430c8c
xor eax, eax
ret 4
Function at 0x430d71
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x430da5
call fcn.0042516c
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x430e0d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x430e3b
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x430ed6
cmp dword [esp + 0x14], ebx
je 0x430ed6
jmp 0x430e78
push 0x10
call fcn.00430b32
cmp eax, ebx
je 0x430e51
mov ecx, eax
call fcn.00430d68
mov esi, eax
jmp 0x430e53
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
push ebx
mov dword [edi + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x430e8f
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x430e9f
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x430eab
call fcn.0042516c
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0xc]
sub ecx, eax
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax*4]
push ebx
push eax
call fcn.00419690
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8

Function at 0x430f9c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x430fca
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x430fe8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00430f06
jmp 0x430fe8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x430fe8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00430f06
test edi, edi
mov eax, edi
jne 0x430fd2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4494ec]
test ecx, ecx
je 0x43109b
jmp 0x430f9b
ret 8
Function at 0x1040f714
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1040f76f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1040f760
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x1040f75c
cmp esi, ecx
jae 0x1040f760
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x1040f74a
cmp esi, ecx
jb 0x1040f764
xor eax, eax
jmp 0x1040f76e
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10411005
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 8
mov eax, 0x1044f68e
call fcn.1044d171
mov edi, ecx
xor esi, esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.1041abc4
test eax, eax
je 0x10411086
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push 1
call fcn.1041abc4
push eax
call fcn.10419ced
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov ecx, edi
test eax, eax
je 0x10411079
push dword [ebp - 0x14]
call fcn.1041a0b1
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, edi
call fcn.1041a092
push eax
push 1
lea ecx, [ebp + 8]
call fcn.1041abc4
push eax
call fcn.10419ced
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x10411086
mov ecx, edi
call fcn.1041a070
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp + 8]
call fcn.1041a6bb
mov eax, esi
call fcn.1044d11b
ret
Function at 0x104115e3
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10c0000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf0000040
push 0x18
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10411617
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1041171c
push edi
mov edi, 0x94
push edi
call fcn.10421e67
push edi
push ebx
push eax
mov dword [esi + 0x10], eax
call fcn.10426070
mov eax, dword [esi + 0x10]
mov edx, edi
push 0x80
push 0x1080a768
mov dword [eax], 0x206
mov dword [eax + 4], 0xa400
mov eax, dword [esi + 0x10]
mov dword [eax + 8], 0x31415352
mov dword [eax + 0xc], 0x400
mov dword [eax + 0x10], 0x10001
mov ecx, dword [esi + 0x10]
add ecx, 0x14
call fcn.1040f45b
add esp, 0x18
lea eax, [esi + 4]
push eax
push ebx
push ebx
push edi
push dword [esi + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x104116ff
lea edi, [esi + 8]
push edi
push 0x800001
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x104116ff
lea ebx, [esi + 0xc]
push ebx
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x104116ff
lea eax, [ebp - 8]
push eax
push 0
push 0
push 1
push dword [ebx]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x104116ff
push dword [ebp - 8]
call fcn.10421e67
push dword [ebp - 8]
mov dword [esi + 0x14], eax
push 0
push eax
call fcn.10426070
add esp, 0x10
lea eax, [ebp - 8]
push eax
push dword [esi + 0x14]
push 0
push 1
push dword [ebx]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x10411707
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1041171b
mov eax, dword [esi + 0x14]
add eax, 0xc
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
mov dword [esi + 0x1c], eax
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.104216a1
mov esp, ebp
pop ebp
ret
Function at 0x1041172c
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x9c
mov eax, 0x1044f845
call fcn.1044d171
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
push ecx
xor edi, edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.10410131
push ecx
lea ecx, [ebp + 8]
call fcn.10419ced
push eax
lea ecx, [ebp - 0xa8]
call fcn.1041adc9
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10419ced
push eax
lea ecx, [ebp - 0x14]
call fcn.1041a71c
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 3
call fcn.1041adbc
lea ecx, [ebp - 0x14]
call fcn.1041abc4
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 1
push edi
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x10411823
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
add eax, dword [ebx + 0x1c]
push eax
mov dword [ecx], eax
call fcn.10421e67
mov ecx, dword [ebp - 0x20]
mov dword [esi], eax
push dword [ecx]
push edi
push eax
call fcn.10426070
mov edx, dword [ebx + 0x1c]
mov ecx, dword [esi]
push edx
push dword [ebx + 0x18]
call fcn.1040f45b
add esp, 0x18
lea ecx, [ebp - 0x14]
call fcn.1041abc4
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebx + 0x1c]
push eax
mov dword [ebp - 0x1c], eax
add esi, dword [ecx]
lea ecx, [ebp - 0x14]
call fcn.10419ced
mov edx, dword [ebp - 0x18]
mov ecx, esi
push eax
call fcn.1040f45b
pop ecx
pop ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push 1
push edi
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1041182b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x14]
call fcn.1041a6bb
lea ecx, [ebp + 8]
call fcn.1041a6bb
mov eax, edi
call fcn.1044d11b
ret 0xc

Function at 0x104118c9
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x114
mov eax, 0x1044f8a5
call fcn.1044d171
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [edi + 1]
mov dword [ebp - 0x14], edi
push eax
call fcn.10421e67
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.10426070
mov edx, dword [ebp - 0x14]
push edi
push esi
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.1040f45b
add esp, 0x18
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 1
push 0
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x10411944
push esi
call fcn.104217da
pop ecx
mov ecx, dword [ebp - 0x18]
call fcn.1041ad56
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10411980
mov eax, dword [ebp - 0x14]
push ecx
push esi
lea ecx, [ebp - 0x120]
mov byte [esi + eax], 0
call fcn.1041ade4
and dword [ebp - 4], 0
mov ecx, eax
call fcn.10419ced
mov ecx, dword [ebp - 0x18]
push eax
call fcn.1041aa00
lea ecx, [ebp - 0x120]
call fcn.1041adbc
push esi
call fcn.104217da
pop ecx
xor eax, eax
call fcn.1044d11b
ret 0xc
Function at 0x10411988
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 8
mov eax, 0x1044f68e
call fcn.1044d171
mov esi, ecx
mov edi, dword [ebp + 0xc]
xor ecx, ecx
lea eax, [ebp - 0x14]
push ecx
push ecx
push eax
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp + 8]
push 1
call fcn.1041abc4
push eax
call fcn.10419ced
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x10411a03
push dword [ebp - 0x14]
call fcn.10421e67
push dword [ebp - 0x14]
mov ebx, eax
push 0
push ebx
call fcn.10426070
add esp, 0x10
lea eax, [ebp - 0x14]
lea ecx, [ebp + 8]
push 0
push 0
push eax
push ebx
push 1
call fcn.1041abc4
push eax
call fcn.10419ced
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x10411a14
push ebx
call fcn.104217da
pop ecx
mov ecx, edi
call fcn.1041ad56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10411a34
push edi
push dword [ebp - 0x14]
mov ecx, esi
push ebx
call fcn.104118c9
mov esi, eax
test esi, esi
je 0x10411a2d
mov ecx, edi
call fcn.1041ad56
push ebx
call fcn.104217da
pop ecx
lea ecx, [ebp + 8]
call fcn.1041a6bb
mov eax, esi
call fcn.1044d11b
ret 8
Function at 0x10418cee
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
lea ecx, [ebp + 8]
call fcn.10419ced
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x10c30df4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10418d31
lea ecx, [ebp + 8]
call fcn.10419ced
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x10c30df4], eax
jmp 0x10418d46
cmp eax, 0xb7
jne 0x10418d46
push 0xffffffffffffffff
push dword [0x10c30df4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x10c30df4], 0
lea ecx, [ebp + 8]
push ebx
sete bl
call fcn.1041a6bb
mov al, bl
pop ebx
pop ebp
ret
Function at 0x10420f30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x10c0000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x48], eax
cmp dword [0x10c30e08], 0x40
jae 0x10421023
push esi
lea esi, [edx + ecx]
add ecx, dword [ebp + 0x10]
push edi
cmp ecx, 0x80000000
lea edi, [ebp - 0x44]
push 9
lea eax, [ecx + 0x7ff80000]
mov edx, 0xfff80000
cmovb edx, eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
lea edi, [esi - 0x7fff0000]
inc eax
cmp esi, 0x80000000
mov esi, dword [ebp - 0x48]
cmovb edi, eax
cmp edi, esi
jae 0x10421021
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10420ffc
cmp dword [ebp - 0x10], 0x10000
jne 0x10420ff0
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
jb 0x10420ff3
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jb 0x10420ff3
lea eax, [ecx - 1]
xor edx, edx
add eax, edi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10421000
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
add edi, eax
cmp edi, esi
jb 0x10420fa5
test ebx, ebx
je 0x10421021
xor eax, eax
cmp dword [eax*4 + 0x10c31080], 0
je 0x10421014
inc eax
cmp eax, 0x40
jb 0x10421002
jmp 0x10421021
inc dword [0x10c30e08]
mov dword [eax*4 + 0x10c31080], ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.104216a1
mov esp, ebp
pop ebp
ret

Function at 0x1042108c
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x10c0000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
push 0
push 0x1fffff
mov dword [ebp - 0x2d4], edx
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x1042112c
test esi, esi
je 0x1042112c
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x10421123
mov dword [ebp - 0x2d0], 0x10001
xor edi, edi
jmp 0x1042110f
mov eax, dword [ebp - 0x2d4]
cmp dword [ebp - 0x218], eax
jb 0x1042112c
add eax, dword [ebp + 8]
cmp dword [ebp - 0x218], eax
jae 0x1042112c
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp edi, 3
jge 0x10421123
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
inc edi
lea eax, [ebp - 0x2d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x104210da
jmp 0x1042112c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.104216a1
mov esp, ebp
pop ebp
ret
Function at 0x1042113e
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x10c30e04], esi
jbe 0x10421190
mov eax, dword [0x10c30e00]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x10c30e00]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x10c30e04]
jb 0x1042116b
push dword [0x10c30e00]
call fcn.1042b8f9
and dword [0x10c30e00], 0
and dword [0x10c30e04], 0
pop ecx
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x104213f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x10c0000c]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
mov esi, dword [0x10c30df8]
push edi
xor edi, edi
call fcn.10420e77
mov ecx, esi
call fcn.10420ec0
mov ebx, eax
mov ecx, 0x104180e4
mov dword [esp + 0x18], ebx
call fcn.10420ec0
push 0x58
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
push edi
push eax
call fcn.10426070
add esp, 0xc
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.1042133c
mov esi, eax
mov dword [esp + 0x20], esi
pop ecx
cmp esi, 5
jb 0x104215c8
mov edx, esi
mov ecx, ebx
call fcn.104211bc
push dword [esp + 0x2c]
mov ecx, ebx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.10420f30
mov edi, eax
add esp, 0x10
test edi, edi
je 0x104215c3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [esp + 0x80], 0
lea ecx, [esp + 0x80]
and dword [esp + 0x7c], 0
push ecx
push 0x40
push esi
push ebx
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x104215a8
lea eax, [esp + 0x7c]
push eax
push 0x40
push 0x6c
push edi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10421581
xor ecx, ecx
lea eax, [edi + 0x2c]
test esi, esi
je 0x104214f9
mov edx, eax
sub ebx, eax
mov al, byte [ebx + edx]
mov byte [edx], al
mov byte [edi + ecx + 0x4c], al
inc ecx
inc edx
cmp ecx, esi
jb 0x104214e3
mov ebx, dword [esp + 0x18]
lea eax, [edi + 0x2c]
lea edx, [esi + ebx]
lea ecx, [eax + esi]
call fcn.10420ef1
mov edx, dword [esp + 0x10]
mov ecx, ebx
sub ecx, edx
mov eax, edx
sub eax, ebx
cmp edx, ebx
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x10421546
lea esi, [edi + 0xc]
mov ecx, esi
call fcn.10420ef1
sub eax, edi
sub eax, 0xc
push eax
push esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, esi
mov ecx, ebx
call fcn.10420ef1
mov esi, dword [esp + 0x1c]
jmp 0x1042154d
mov ecx, ebx
call fcn.10420ef1
mov eax, dword [esp + 0x10]
mov dword [edi + 8], eax
lea eax, [edi + 0x2c]
push esi
push eax
push dword [esp + 0x14]
mov dword [edi + 4], esi
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x80]
push 0x6c
push edi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push esi
push ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x84]
push esi
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [edi], 0
je 0x104215b7
lea eax, [edi + 0x2c]
mov dword [0x10c30df8], eax
jmp 0x104215c3
xor edx, edx
mov ecx, edi
inc edx
call fcn.10421059
xor edi, edi
call fcn.1042113e
call fcn.10420eb4
mov ecx, dword [esp + 0x84]
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.104216a1
mov esp, ebp
pop ebp
ret
Function at 0x104215e9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10c0000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
call fcn.10420e77
mov ecx, dword [0x10c30df8]
call fcn.10421034
mov esi, eax
test esi, esi
je 0x1042168a
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push ebx
call fcn.104211bc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov dword [ebp - 8], edi
lea eax, [ebp - 8]
push eax
push 0x40
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10421684
mov ecx, dword [esi]
cmp dword [esi + 4], edi
jbe 0x10421652
mov al, byte [esi + edi + 0x4c]
mov byte [edi + ecx], al
inc edi
cmp edi, dword [esi + 4]
jb 0x10421645
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [esi]
xor edi, edi
xor edx, edx
mov dword [0x10c30df8], eax
mov ecx, esi
inc edi
call fcn.10421059
call fcn.1042113e
pop ebx
call fcn.10420eb4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.104216a1
mov esp, ebp
pop ebp
ret

Function at 0x1042dca1
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1042dba6

Function at 0x10438ebd
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