joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x405094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x401c70
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x405094]
movzx eax, al
bt eax, esi
jae 0x401cd0
mov ecx, dword [0x405084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x401b76
test byte [0x402018], 8
jne 0x401c10
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x402028], 8
jne 0x401bc0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x401b45
cmp esi, 3
jbe 0x401b80
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4030e4]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x401b45
mov ecx, dword [0x405094]
test ecx, ecx
je 0x401cb0
mov dword [esp], 0x402028
call dword [0x405094]
test al, 8
je 0x401b1c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x401b1c
mov ebx, dword [0x405094]
test ebx, ebx
je 0x401c90
mov dword [esp], 0x402018
call dword [0x405094]
test al, 8
je 0x401b09
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x401b0f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x401ad0
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x401c1a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x401bce
mov eax, 0xffffffff
jmp 0x401b76
Function at 0x401e30
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
Function at 0x100012c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10017620]
mov dword [ebp - 4], eax
jmp 0x100012d9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100012f6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100012d0
mov esp, ebp
pop ebp
ret

Function at 0x10001300
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10017630], eax
je 0x1000131e
mov eax, 0x10dd
jmp 0x100013ff
mov eax, dword [0x10017640]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000139c
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000137a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000137a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10001470
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10001326
mov dword [0x10017640], 0
call fcn.10001410
mov ecx, dword [0x1001763c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x100013e9
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x100013b4
mov dword [0x1001763c], 0
mov dword [0x10017630], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10001970
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10001985
xor eax, eax
jmp 0x100019fa
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x100019b2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x100019f5
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x100019f3
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x100019ef
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x100019f3
xor eax, eax
jmp 0x100019fa
jmp 0x100019a9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10001aa0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10017634], 0
je 0x10001ab9
mov eax, dword [0x10017634]
jmp 0x10001b59
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x10001acb
xor eax, eax
jmp 0x10001b59
push 8
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001b21
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x10001b0a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x10017634], eax
mov dword [0x10017638], 0
mov eax, dword [ebp - 4]
jmp 0x10001b59
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10001b3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10001aeb
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x1001763c]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x1001763c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10002380
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10002450
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000243c
cmp dword [ebp - 4], 0x50000000
jb 0x100023bc
cmp dword [ebp - 4], 0x80000000
ja 0x100023bc
mov dword [ebp - 4], 0x80010000
jmp 0x10002395
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100023e2
jmp 0x1000243c
cmp dword [ebp - 0x10], 0x10000
jne 0x10002425
cmp dword [ebp - 0x14], 0x10000
jb 0x10002425
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10002418
mov eax, dword [ebp - 0x24]
jmp 0x1000243e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10002437
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.10002450
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10002395
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10002480
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10002550
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10002544
cmp dword [ebp - 4], 0x50000000
jb 0x100024c1
cmp dword [ebp - 4], 0x80000000
ja 0x100024c1
mov dword [ebp - 4], 0x4fff0000
jmp 0x1000249a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100024e7
jmp 0x10002544
cmp dword [ebp - 0x10], 0x10000
jne 0x1000252a
cmp dword [ebp - 0x14], 0x10000
jb 0x1000252a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1000251d
mov eax, dword [ebp - 0x24]
jmp 0x10002546
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000253f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.10002550
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000249a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10003b50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100112d8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x80], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x7c]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
call fcn.100038f0
lea ecx, [ebp - 0x7c]
call fcn.100039a0
push esi
lea ecx, [ebp - 0x7c]
call fcn.10003a90
cmp dword [ebp + 0x1c], 0x10
jb 0x10003bf1
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100103d3
mov esp, ebp
pop ebp
ret

Function at 0x100042b0
Capabilities:
Log keystrokes via polling

Disassembly:
push edi
push 0x11
mov edi, edx
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x10004304
cmp byte [0x10023108], 0
je 0x100042e7
cmp dword [0x1002310c], 0
je 0x1000430b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x1002310c]
add ecx, edi
cmp ecx, eax
ja 0x1000430b
mov byte [0x10023108], 1
test edi, edi
je 0x100042fd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1002310c], eax
mov eax, 1
pop edi
ret
mov byte [0x10023108], 0
xor eax, eax
pop edi
ret
Function at 0x10004310
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [esp + 0x20], 0x128
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100043f9
jmp 0x10004360
mov ecx, 0xde
xor edx, edx
mov al, byte [edx + 0x1001394c]
xor al, cl
inc ecx
mov byte [esp + edx + 0xc], al
and ecx, 0x800000ff
jns 0x10004384
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10004367
mov byte [esp + 0x1c], 0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x44]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100043b7
test dl, dl
je 0x100043b3
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100043b7
add ecx, 2
add eax, 2
test dl, dl
jne 0x10004397
xor eax, eax
jmp 0x100043bc
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x100043e5
push dword [esp + 0x28]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100043e5
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10004360
push edi
call ebx
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100103d3
mov esp, ebp
pop ebp
ret
Function at 0x10004420
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x10011338
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x78], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ecx, 0x12
xor edx, edx
mov al, byte [edx + str._u_s____]
xor al, cl
inc ecx
mov byte [esp + edx + 0x14], al
and ecx, 0x800000ff
jns 0x1000447f
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x20
jl 0x10004462
mov byte [esp + 0x34], 0
mov dword [esp + 0x90], 0
cmp byte [esp + 0x14], 0
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
jne 0x100044b5
xor ecx, ecx
jmp 0x100044c9
lea ecx, [esp + 0x14]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100044c0
sub ecx, edx
push ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x70]
call fcn.10003d80
mov byte [esp + 0x90], 2
xorps xmm0, xmm0
movdqa xmmword [esp + 0x14], xmm0
movdqa xmmword [esp + 0x24], xmm0
mov byte [esp + 0x34], 0
call fcn.10004bd0
test eax, eax
je 0x10004533
cmp dword [esp + 0x7c], 0x10
jb 0x10004511
push dword [esp + 0x68]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.100103d3
mov esp, ebp
pop ebp
ret
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [0x10017ab0], 0
jne 0x10004556
xor ecx, ecx
jmp 0x10004569
mov ecx, 0x10017ab0
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004560
sub ecx, esi
push ecx
push 0x10017ab0
mov ecx, edx
call fcn.10003d80
lea ecx, [esp + 0x68]
call fcn.10003b50
add esp, 0x18
mov byte [esp + 0x90], 3
cmp dword [eax + 0x14], 0x10
jb 0x10004592
mov eax, dword [eax]
mov ecx, eax
call fcn.10004600
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
cmp eax, 1
sete al
cmp dword [esp + 0x64], 0x10
mov byte [esp + 0xf], al
jb 0x100045bd
push dword [esp + 0x50]
call esi
mov al, byte [esp + 0x13]
add esp, 4
test al, al
je 0x100045e2
cmp dword [esp + 0x7c], 0x10
mov dword [0x100229dc], 1
jb 0x100045db
push dword [esp + 0x68]
call esi
add esp, 4
xor eax, eax
jmp 0x10004514
mov dword [0x100229dc], 0
call fcn.10004310
call fcn.10004310
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100062c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10011448
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 0xc]
mov edi, 0x43000000
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [edx + 1]
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x10006310
sub edx, ecx
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x68], edx
xorps xmm0, xmm0
mov dword [ebp - 0x20], ecx
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp edi, 0x4c000000
jae 0x10006459
push 0x1c
lea eax, [ebp - 0x64]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp dword [ebp - 0x54], 0x1000
jne 0x10006451
cmp dword [ebp - 0x4c], 0x20000
jne 0x10006451
lea eax, [ebp - 0x1c]
push eax
push 0x40
push dword [ebp - 0x58]
push edi
call esi
mov esi, dword [ebp - 0x64]
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x58]
mov dword [ebp - 0x48], esi
cmp esi, edx
jae 0x10006429
mov ecx, dword [ebp - 0x68]
add ecx, esi
cmp ecx, 0x4c000000
ja 0x10006429
mov al, byte [esi]
cmp al, byte [ebx]
jne 0x1000641b
cmp ecx, edx
jb 0x100063f4
push 0x1c
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x58]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp dword [ebp - 0x34], 0x1000
jne 0x1000641b
cmp dword [ebp - 0x2c], 0x20000
jne 0x1000641b
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x58]
push 0x40
push dword [ebp - 0x38]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp + 0xc]
mov edx, ebx
mov ecx, esi
call fcn.10006250
add esp, 4
test eax, eax
je 0x1000641b
cmp dword [esi], 0x173
jae 0x1000641b
lea eax, [ebp - 0x48]
push eax
call fcn.1000f9b0
mov esi, dword [ebp - 0x48]
inc esi
jmp 0x1000638c
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x58]
push edi
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10006451
push 0
push eax
push dword [ebp - 0x38]
push edi
call esi
mov dword [ebp - 0x18], 0
add edi, dword [ebp - 0x58]
jmp 0x10006343
xor ecx, ecx
je 0x10006476
mov eax, dword [0x10022fa4]
mov esi, dword [eax]
test ecx, ecx
je 0x10006472
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
jmp 0x10006486
test ecx, ecx
je 0x10006484
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100103d3
mov esp, ebp
pop ebp
ret
Function at 0x1000f810
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
dec dword [ebp + 0xc]
jne 0x1000f836
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x1000f7d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x402ebc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4034e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45e024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40357c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40355c
xor eax, eax
push ebp
push 0x403555
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 0x403598
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40355c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45e024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45e024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404230
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x460044], 0
je 0x404291
cmp word [0x460218], 0xd7b2
jne 0x404259
cmp dword [0x460220], 0
jbe 0x404259
mov eax, 0x460214
call dword [0x460230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45e074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4042b8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45e034], 0
jne 0x4042ad
push 0
push 0x45e06c
push 0x45e074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret