joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c812c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x4c81c6.0
jmp dword [ecx*4 + 0x4c815f]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4c8191
sub dl, 8
je 0x4c81a0
jmp case.0x4c81c6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4c7dd4
jmp case.0x4c81c6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4c7e2c
jmp case.0x4c81c6.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x4c81c6.0
movzx ecx, byte [ecx + 0x4c81cd]
jmp dword [ecx*4 + 0x4c81de]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4c7ed8
jmp case.0x4c81c6.0
cmp dl, 3
jne 0x4c820b
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4c7f30
jmp case.0x4c81c6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4c7eec
jmp case.0x4c81c6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4c7f74
jmp case.0x4c81c6.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4c8236
sub dl, 8
je 0x4c8242
jmp case.0x4c81c6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4c7fa0
jmp case.0x4c81c6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4c800c
jmp case.0x4c81c6.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4c8261
sub dl, 8
je 0x4c826d
jmp case.0x4c81c6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4c80c8
jmp case.0x4c81c6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4c80f0
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x10], edx
mov esi, ecx
test esi, esi
jb 0x4c830f
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004c72d8
test eax, eax
je 0x4c830f
mov eax, ebx
call fcn.004c8318
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x4c82a8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c8318
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4c8349
dec al
je 0x4c8384
dec al
je 0x4c83c9
dec al
je 0x4c8432
jmp 0x4c84bc
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4c84bc
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4c8359
jmp 0x4c84bc
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4c84bc
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4c8394
jmp 0x4c84bc
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4c84bc
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4c83f8
xor ebp, ebp
jmp 0x4c8408
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4c8411
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4c83d9
jmp 0x4c84bc
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4c84bc
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4c848b
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004c53a8
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4c8446
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4cd174
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4cd190
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
fild qword [ebp - 0x30]
fdiv dword [0x4cd1d0]
call fcn.004047e0
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x4cd1c6
call fcn.00404dd4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4cd1d4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4cd1f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4cd20c
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov byte [ebp - 1], al
mov dword [ebp - 0x28], 0x20
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov al, byte [ebp - 1]
sub al, 4
je 0x4cd23a
dec al
je 0x4cd242
dec al
je 0x4cd24a
dec al
je 0x4cd252
jmp 0x4cd25a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
jmp 0x4cd25f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
jmp 0x4cd25f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4cd25f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x4cd25f
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4cd268
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov dword [ebp - 4], eax
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x40
call fcn.004048d8
mov dword [ebp - 0x48], 0x40
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GlobalMemoryStatusEx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
add eax, 0
adc edx, 0x80000000
cmp edx, 0xffffffff
jne 0x4cd2a7
cmp eax, 0xffffffff
jbe 0x4cd2ae
call fcn.00404dd4
add eax, 0
adc edx, 0x80000000
push edx
push eax
mov edx, dword [ebp - 4]
mov eax, 2
call fcn.004ccc54
mov esp, ebp
pop ebp
ret

Function at 0x4cd2cc
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x40
call fcn.004048d8
mov dword [ebp - 0x48], 0x40
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GlobalMemoryStatusEx
mov eax, dword [ebp - 0x44]
test eax, eax
jns 0x4cd2fd
call fcn.00404dd4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4cd930
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a44
xor eax, eax
push ebp
push 0x4cd9e5
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004cc88c
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004072f8
push eax
call sub.kernel32.dll_GetVolumeInformationW
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
shr eax, 0x10
movzx eax, ax
mov edx, 4
call fcn.0041cb5c
push dword [ebp - 0x18]
push 0x4cd9fc
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
movzx eax, ax
mov edx, 4
call fcn.0041cb5c
push dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.004075d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cd9ec
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004069c0
lea eax, [ebp - 4]
call fcn.00406960
ret

Function at 0x4cde4c
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 0xc], eax
call fcn.004cc88c
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_GetPriorityClass
test eax, eax
jns 0x4cde6e
call fcn.00404dd4
mov dword [ebp - 0x1c], eax
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_GetThreadPriority
mov dword [ebp - 0x20], eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
push 0xf
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push 0xa
call sub.kernel32.dll_Sleep_2
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
test eax, eax
jns 0x4cdeb7
call fcn.00404dd4
push eax
call sub.kernel32.dll_Sleep_2
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
mov eax, dword [ebp - 0x1c]
test eax, eax
jns 0x4cdee6
call fcn.00404dd4
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x24], eax
fild qword [ebp - 0x28]
imul eax, dword [ebp - 0xc], 0x3e8
jno 0x4cdf0e
call fcn.00404ddc
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fdivp st(1)
fstp qword [ebp - 0x18]
wait
fld qword [ebp - 0x18]
mov esp, ebp
pop ebp
ret

Function at 0x4ce16c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0x14]
test eax, eax
jns 0x4ce187
call fcn.00404dd4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4ce194
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp word [ebp - 0x28], 1
sete byte [ebp - 1]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x10611b8c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x106a2610]
jne 0x10611b96
repz ret
jmp fcn.10611e3d

Function at 0x106121e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [fcn.106121e0]
mov ecx, 4
mov dword [ebp - 8], eax
mov eax, ecx
call fcn.10611720
mov eax, esp
mov ecx, dword [0x106a25ec]
sub ecx, 0xaa7
mov dword [0x106a25ec], ecx
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [0x106a25f0]
add edx, 0x26d2
mov dword [0x106a25ec], edx
mov dword [ebp - 0xc], eax
jmp 0x10612268
mov al, 1
test al, 1
jne 0x10612268
jmp 0x106122a1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
jmp 0x106122aa
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
sub eax, 0x1000
and eax, 0xfffff000
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [0x106a25ec]
sub eax, 0x136a
mov dword [0x106a25ec], eax
jmp 0x1061222b
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dx, word [ecx]
mov word [ebp - 0x12], dx
mov ax, word [ebp - 0x12]
movzx ecx, ax
cmp ecx, 0x5a4d
jne 0x1061223d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x3c]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
cmp dword [ecx + edx], 0x4550
je 0x10612233
jmp 0x1061223d
mov dword [ebp - 4], 0
jmp 0x106122aa
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10612530
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x106a25f0]
sub eax, 0x940
mov dword [0x106a25f0], eax
mov dword [ebp - 4], 0
mov dword [0x106a25ec], 0x1950
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [0x106a25ec], 0x1e00
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x106a25f0]
sub eax, 0x491
mov dword [0x106a25f0], eax
mov dword [ebp - 0x10], 0
jmp 0x10612595
jmp 0x10612625
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x104
jl 0x10612658
jmp 0x10612682
mov dword [0x106a25ec], 0x1a97
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2 - 0x16]
cmp eax, 0x61
je 0x10612635
jmp 0x106126ef
jmp 0x10612682
jmp 0x106126ef
mov dword [0x106a25f0], 0x2262
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
je 0x106126c1
jmp 0x106126e8
mov dword [0x106a25ec], 0x125d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
je 0x106125ae
jmp 0x106126f1
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x10612595
mov eax, dword [0x106a25ec]
sub eax, 0x1403
mov dword [0x106a25f0], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
je 0x106126a9
jmp 0x106125da
mov dword [0x106a25ec], 0x1ab8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + eax*2]
cmp eax, 0
je 0x106125d5
jmp 0x10612590
mov eax, dword [0x106a25f0]
sub eax, 0xeef
mov dword [0x106a25ec], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
je 0x10612604
jmp 0x106126f3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
je 0x106125df
jmp 0x106126ea
mov dword [0x106a25f0], 0x26ae
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x106126e6
mov dword [ebp - 8], 1
jmp 0x106126fc
jmp 0x106126e8
jmp 0x106126ea
jmp 0x106125da
jmp 0x106126f1
jmp 0x106126f3
mov dword [ebp - 8], 0
jmp 0x106126fc
mov eax, dword [ebp - 8]
add esp, 0x1c
pop ebp
ret
Function at 0x10612c00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [0x106a25f0], 0xdfc
mov dword [0x106a25f4], 0
mov dword [0x106a25f8], 0
mov dword [0x106a2604], 0
mov dword [ebp - 0x20], 0
mov dword [0x106a25f0], 0x2542
mov dword [ebp - 0x24], 0
mov dword [0x106a25ec], 0x98b
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x10]
jb 0x10612c8c
jmp 0x10612e03
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
jmp 0x10612c72
mov eax, 0x100
mov dword [0x106a25f0], 0x189c
mov ecx, dword [0x106a25f4]
add ecx, 1
mov dword [ebp - 0x28], eax
mov eax, ecx
cdq
mov ecx, dword [ebp - 0x28]
idiv ecx
mov dword [0x106a25f4], edx
mov eax, 0x100
mov dword [0x106a25ec], 0xe08
mov ecx, dword [0x106a25f8]
mov edx, dword [0x106a25f4]
mov esi, dword [ebp - 0x1c]
movzx edx, byte [esi + edx]
add ecx, edx
mov dword [ebp - 0x2c], eax
mov eax, ecx
cdq
mov ecx, dword [ebp - 0x2c]
idiv ecx
mov dword [0x106a25f8], edx
mov dword [0x106a25f0], 0xbbe
mov edx, dword [0x106a25f4]
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + edx]
mov byte [0x106a25fc], bl
mov dword [0x106a25ec], 0xcff
mov edx, dword [0x106a25f8]
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + edx]
mov edx, dword [0x106a25f4]
mov esi, dword [ebp - 0x1c]
mov byte [esi + edx], bl
mov dword [0x106a25ec], 0x1da2
mov edx, dword [0x106a25ec]
add edx, 0x1b50
mov dword [0x106a25f0], edx
mov bl, byte [0x106a25fc]
mov edx, dword [0x106a25f8]
mov esi, dword [ebp - 0x1c]
mov byte [esi + edx], bl
mov edx, dword [0x106a25f0]
add edx, 0x1cfe
mov dword [0x106a25ec], edx
mov edx, dword [0x106a25f4]
mov esi, dword [ebp - 0x1c]
movzx edx, byte [esi + edx]
mov esi, dword [0x106a25f8]
mov edi, dword [ebp - 0x1c]
movzx esi, byte [edi + esi]
add edx, esi
mov dword [ebp - 0x20], edx
mov edx, dword [0x106a25f0]
add edx, 0x970
mov dword [0x106a25ec], edx
mov dword [0x106a25ec], 0x359
mov edx, dword [ebp - 0x20]
mov eax, edx
cdq
idiv ecx
mov dword [0x106a2604], edx
mov edx, dword [0x106a25f0]
sub edx, 0x28d
mov dword [0x106a25ec], edx
mov dword [0x106a25f0], 0xe9b
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
mov esi, dword [0x106a2604]
mov edi, dword [ebp - 0x1c]
movzx esi, byte [edi + esi]
xor edx, esi
mov bl, dl
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], bl
mov dword [0x106a25ec], 0xeba
jmp 0x10612c7f
mov dword [0x106a25f0], 0x2467
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4029b4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004046f0
test esi, esi
jne 0x4029ea
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004047e0
jmp 0x402a08
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028c8
mov edi, eax
test esi, esi
je 0x402a08
cmp dword [ebx], 0
je 0x402a08
dec esi
jmp 0x4029f1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403888
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x43f024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403920
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403900
xor eax, eax
push ebp
push 0x4038f9
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 0x40393c
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 0x403900
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x43f024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x43f024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x441044], 0
je 0x404551
cmp word [0x441218], 0xd7b2
jne 0x404519
cmp dword [0x441220], 0
jbe 0x404519
mov eax, 0x441214
call dword [0x441230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x43f094
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 0x404578
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43f034], 0
jne 0x40456d
push 0
push 0x43f08c
push 0x43f094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4046a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026a0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x441045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40466c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc