joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100524f6
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x1008b96c
call fcn.1005e07b
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xor edx, edx
push edx
push edx
push ecx
push edx
push 1
push dword [eax - 0xc]
mov dword [ebp - 4], edx
push eax
call esi
test eax, eax
je 0x10052560
push dword [ebp - 0x14]
call fcn.1005da98
push dword [ebp - 0x14]
mov ebx, eax
push 0
push ebx
call fcn.100609a0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
add esp, 0x10
push 0
push 0
push eax
push ebx
push 1
push dword [ecx - 0xc]
push ecx
call esi
test eax, eax
jne 0x10052571
push ebx
call fcn.1005daa1
pop ecx
mov ecx, edi
call fcn.10052241
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10052592
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push ebx
call fcn.10052635
mov esi, eax
test esi, esi
je 0x1005258b
mov ecx, edi
call fcn.10052241
push ebx
call fcn.1005daa1
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10055fc0
mov eax, esi
call fcn.1005e025
ret 8

Function at 0x100525a7
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x1008b96c
call fcn.1005e07b
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
je 0x10052622
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 1
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x100525e4
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x1005261a
push dword [ebp - 0x14]
mov ecx, esi
call fcn.1005cab3
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push ebx
push ebx
mov esi, dword [edi - 0xc]
push eax
push ebx
call fcn.1005b7b7
push eax
push 1
push esi
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x10052622
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10055fc0
mov eax, ebx
call fcn.1005e025
ret
Function at 0x10052635
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x114
mov eax, 0x1008b371
call fcn.1005e07b
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.1005da98
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.100609a0
push edi
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push esi
call fcn.1005d060
add esp, 0x20
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 0x100526af
push esi
call fcn.1005daa1
pop ecx
mov ecx, dword [ebp - 0x18]
call fcn.10052241
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10052715
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x120]
push 0xfde9
push esi
mov byte [esi + eax], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
call fcn.1005475b
push dword [ebp - 0x120]
and dword [ebp - 4], 0
call fcn.100581b7
pop ecx
mov ecx, dword [ebp - 0x18]
push eax
push dword [ebp - 0x120]
call fcn.100580ee
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x1005270c
push dword [ebp - 0x120]
call fcn.100676b0
pop ecx
push esi
call fcn.1005daa1
pop ecx
xor eax, eax
call fcn.1005e025
ret 0xc
Function at 0x10054923
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1012572c]
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 0x10054957
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10054a5c
push edi
mov edi, 0x94
push edi
call fcn.1005da98
push edi
push ebx
push eax
mov dword [esi + 0x10], eax
call fcn.100609a0
mov eax, dword [esi + 0x10]
push 0x80
push 0x100c2b68
push edi
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 eax, dword [esi + 0x10]
add eax, 0x14
push eax
call fcn.1005d060
add esp, 0x20
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 0x10054a3f
lea edi, [esi + 8]
push edi
push 0x800001
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x10054a3f
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 0x10054a3f
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 0x10054a3f
push dword [ebp - 8]
call fcn.1005da98
push dword [ebp - 8]
mov dword [esi + 0x14], eax
push 0
push eax
call fcn.100609a0
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 0x10054a47
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10054a5b
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.1005d95a
mov esp, ebp
pop ebp
ret
Function at 0x10059399
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x9c
mov eax, 0x1008ba21
call fcn.1005e07b
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
push 0xfde9
push dword [ebp + 8]
xor edi, edi
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xa8], eax
call fcn.10054820
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.1004f82a
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 3
cmp dword [ebp - 0xa8], eax
je 0x1005940d
push dword [ebp - 0xa8]
call fcn.100676b0
pop ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax - 0xc]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
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 0x10059494
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add eax, dword [ebx + 0x1c]
push eax
mov dword [ecx], eax
call fcn.1005da98
mov ecx, dword [ebp - 0x20]
mov dword [esi], eax
push dword [ecx]
push edi
push eax
call fcn.100609a0
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x1c]
push dword [esi]
call fcn.1005d060
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebx + 0x1c]
mov ecx, dword [eax - 0xc]
add esi, dword [edx]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
push esi
call fcn.1005d060
add esp, 0x30
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
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 0x1005949c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.10055fc0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10055fc0
mov eax, edi
call fcn.1005e025
ret 0xc
Function at 0x1005a1e6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x90
mov eax, 0x1008bb67
call fcn.1005e07b
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x8c], eax
xor eax, eax
mov dword [ebp - 0x88], 0x386f4449
push eax
push eax
sub esp, 0xc
mov dword [ebp - 0x84], 0x6955784a
mov ecx, esp
mov dword [ebp - 0x80], 0x30747941
mov dword [ebp - 0x7c], 0x6355544f
mov dword [ebp - 0x78], 0x634d434a
push dword [ebp - 0x90]
mov dword [ebp - 0x74], 0x2f387864
mov dword [ebp - 0x70], 0x356f424c
mov dword [ebp - 0x6c], 0x44516750
mov dword [ebp - 0x68], 0x41417945
mov dword [ebp - 0x64], 0x6a426d41
mov dword [ebp - 0x60], 0x51774746
mov dword [ebp - 0x5c], 0x70495450
mov dword [ebp - 0x58], 0x35557946
mov dword [ebp - 0x54], 0x5449684a
mov dword [ebp - 0x50], 0x516f784a
mov dword [ebp - 0x4c], 0x4438584c
mov dword [ebp - 0x48], 0x2b4e5166
mov dword [ebp - 0x44], 0x34774341
mov dword [ebp - 0x40], 0x6e4e524a
mov dword [ebp - 0x3c], 0x7145474d
mov dword [ebp - 0x38], 0x764a5246
mov dword [ebp - 0x34], 0x55496949
mov dword [ebp - 0x30], 0x375a5148
mov dword [ebp - 0x2c], 0x5551794b
mov dword [ebp - 0x28], 0x61417866
mov dword [ebp - 0x24], 0x4151584e
mov dword [ebp - 0x20], 0x4a424141
mov dword [ebp - 4], eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.1004ef92
lea eax, [ebp - 0x9c]
push eax
call fcn.1005204d
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.1005b800
push eax
lea ecx, [ebp + 0x14]
call fcn.100522ad
cmp eax, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9c]
setne bl
call fcn.1005b682
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi]
call dword [eax + 4]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.1005b7b7
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
push 0x18
pop esi
push 0
pop edx
push ecx
mov ecx, dword [ebp - 0x8c]
test bl, bl
push eax
cmovne edx, esi
add ecx, edx
push ecx
call fcn.10062640
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.1005b5ff
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.10055fc0
mov al, 1
call fcn.1005e025
ret
Function at 0x1005d27e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x1012572c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [eax]
mov dword [ebp - 0x24], eax
call fcn.1005d241
push esi
call fcn.1005d5a6
mov esi, eax
push edi
mov dword [ebp - 0x14], esi
call fcn.1005d5a6
push 0x58
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.100609a0
lea eax, [ebp - 0x7c]
push eax
push 5
push esi
call fcn.1005d12b
mov edi, eax
add esp, 0x20
cmp edi, 5
jb 0x1005d41c
push edi
push esi
call fcn.1005d68a
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push esi
call fcn.1005d816
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x1005d417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
and dword [ebp - 8], 0
push ecx
push 0x40
push edi
push esi
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1005d3fc
lea eax, [ebp - 8]
push eax
push 0x40
push 0x6c
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1005d3df
xor edx, edx
lea ecx, [ebx + 0x2c]
test edi, edi
je 0x1005d365
sub esi, ecx
mov al, byte [esi + ecx]
mov byte [ecx], al
mov byte [ebx + edx + 0x4c], al
inc edx
inc ecx
cmp edx, edi
jb 0x1005d350
mov esi, dword [ebp - 0x14]
lea ecx, [ebx + 0x2c]
lea eax, [edi + esi]
push eax
lea eax, [ecx + edi]
push eax
call fcn.1005d1f8
mov edx, dword [ebp - 0x18]
mov eax, edx
pop ecx
pop ecx
mov ecx, esi
sub eax, esi
sub ecx, edx
cmp edx, esi
push edx
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x1005d3ab
lea esi, [ebx + 0xc]
push esi
call fcn.1005d1f8
pop ecx
pop ecx
sub eax, ebx
sub eax, 0xc
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push esi
mov esi, dword [ebp - 0x14]
push esi
call fcn.1005d1f8
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
mov dword [ebx + 8], eax
lea eax, [ebx + 0x2c]
push edi
push eax
push dword [ebp - 0x10]
mov dword [ebx + 4], edi
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x6c
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [ebx], 0
je 0x1005d40b
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0x2c]
mov dword [ecx], eax
jmp 0x1005d417
push 1
push ebx
call fcn.1005d91d
pop ecx
pop ecx
xor ebx, ebx
call fcn.1005d528
push 0x10127988
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor eax, eax
test ebx, ebx
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.1005d95a
mov esp, ebp
pop ebp
ret
Function at 0x1005d43f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1012572c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xc], ebx
xor edi, edi
call fcn.1005d241
xor esi, esi
mov eax, dword [esi*4 + 0x101279a0]
test eax, eax
je 0x1005d477
add eax, 0x2c
cmp eax, dword [ebx]
je 0x1005d51c
inc esi
cmp esi, 0x40
jb 0x1005d461
xor esi, esi
test esi, esi
je 0x1005d4fe
push dword [esi + 4]
push dword [esi]
call fcn.1005d68a
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [ebp - 8], edi
mov ebx, eax
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 0x1005d4f9
mov edx, dword [esi]
xor ecx, ecx
cmp dword [esi + 4], ecx
jbe 0x1005d4c6
mov al, byte [esi + ecx + 0x4c]
mov byte [ecx + edx], al
inc ecx
cmp ecx, dword [esi + 4]
jb 0x1005d4b9
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 ecx, dword [ebp - 0xc]
xor edi, edi
mov eax, dword [esi]
inc edi
push 0
push esi
mov dword [ecx], eax
call fcn.1005d91d
pop ecx
pop ecx
call fcn.1005d528
push 0x10127988
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005d95a
mov esp, ebp
pop ebp
ret
mov esi, dword [esi*4 + 0x101279a0]
jmp 0x1005d47f

Function at 0x1005d528
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 [0x10127aa8], esi
jbe 0x1005d57a
mov eax, dword [0x10127aa4]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x10127aa4]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x10127aa8]
jb 0x1005d555
push dword [0x10127aa4]
call fcn.100676b0
and dword [0x10127aa4], 0
and dword [0x10127aa8], 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 0x1005d5de
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x1012572c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x1005d678
test esi, esi
je 0x1005d678
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1005d66f
mov dword [ebp - 0x2d0], 0x10001
xor ebx, ebx
jmp 0x1005d65b
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x218], eax
jb 0x1005d678
add eax, dword [ebp + 0x10]
cmp dword [ebp - 0x218], eax
jae 0x1005d678
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp ebx, 3
jge 0x1005d66f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
inc ebx
lea eax, [ebp - 0x2d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1005d629
jmp 0x1005d678
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005d95a
mov esp, ebp
pop ebp
ret

Function at 0x1005d816
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1012572c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0x48], eax
cmp dword [0x10127aa0], 0x40
jae 0x1005d90c
push esi
lea esi, [edx + ecx]
add ecx, dword [ebp + 0x14]
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 0x1005d90a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005d8e5
cmp dword [ebp - 0x10], 0x10000
jne 0x1005d8d9
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
jb 0x1005d8dc
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jb 0x1005d8dc
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 0x1005d8e9
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
add edi, eax
cmp edi, esi
jb 0x1005d88e
test ebx, ebx
je 0x1005d90a
xor eax, eax
cmp dword [eax*4 + 0x101279a0], 0
je 0x1005d8fd
inc eax
cmp eax, 0x40
jb 0x1005d8eb
jmp 0x1005d90a
inc dword [0x10127aa0]
mov dword [eax*4 + 0x101279a0], ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1005d95a
mov esp, ebp
pop ebp
ret

Function at 0x1006a78f
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006a694
Function at 0x10074842
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 0x4033e8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040627c
test esi, esi
jne 0x403420
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004063b8
jmp 0x40343e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040332c
mov edi, eax
test esi, esi
je 0x40343e
cmp dword [ebx], 0
je 0x40343e
dec esi
jmp 0x403427
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403470
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x54d008], 0x8088405
inc edx
mov dword [ebx + 0x54d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403b84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x54d024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c1c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403bfc
xor eax, eax
push ebp
push 0x403bf5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403c54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403bfc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x54d024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x54d024], ax
mov esp, ebp
pop ebp
ret
Function at 0x404404
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004046b8
mov byte [esp], al
cmp byte [esp], 0
jne 0x40458d
test edi, edi
je 0x40458d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4044c4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40449f
cmp edi, 0xffffffff
je 0x404463
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404463
mov byte [esp], 0
jmp 0x40458d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40449f
test ebx, ebx
jne 0x404498
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00401400
test eax, eax
jne 0x404498
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40458d
pause
dec ebp
test ebp, ebp
jg 0x404448
cmp edi, 0xffffffff
je 0x4044c4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4044c2
mov byte [esp], 0
jmp 0x40458d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x404412
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00401400
cmp ebx, eax
jne 0x4044c4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00404600
mov edx, eax
mov ebx, dword [0x55d8cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40452b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x404529
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40452b
xor edi, edi
cmp byte [esp], 0
je 0x404554
mov ebx, dword [esi]
test bl, 1
jne 0x40456d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00401400
cmp ebx, eax
jne 0x404531
mov byte [esp + 1], 1
jmp 0x40456d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00401400
cmp ebx, eax
jne 0x404554
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4044de
cmp byte [esp], 0
je 0x40458d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret