joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d6a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x28]
mov edx, 0x40
cmp eax, edx
jb 0x44d6b9
lea eax, [edx - 0x30]
pop esi
pop ebp
ret
lea ecx, [eax*8]
add dword [esi], ecx
push ebx
mov ebx, 0
adc dword [esi + 4], ebx
push edi
mov byte [eax + esi + 0x2c], 0x80
mov edi, 1
add dword [esi + 0x28], edi
mov eax, dword [esi + 0x28]
mov ecx, 0x38
cmp eax, ecx
jbe 0x44d712
cmp eax, edx
jae 0x44d6fe
lea esp, [esp]
mov byte [eax + esi + 0x2c], bl
add dword [esi + 0x28], edi
mov eax, dword [esi + 0x28]
cmp eax, edx
jb 0x44d6f0
lea eax, [esi + 0x2c]
push esi
call fcn.0044baf0
add esp, 4
mov dword [esi + 0x28], ebx
mov ecx, 0x38
cmp dword [esi + 0x28], ecx
jae 0x44d72f
jmp 0x44d720
mov edx, dword [esi + 0x28]
mov byte [esi + edx + 0x2c], bl
add dword [esi + 0x28], edi
cmp dword [esi + 0x28], ecx
jb 0x44d720
movzx eax, byte [esi + 7]
movzx ecx, byte [esi + 6]
movzx edx, byte [esi + 5]
mov byte [esi + 0x64], al
movzx eax, byte [esi + 4]
mov byte [esi + 0x65], cl
movzx ecx, byte [esi + 3]
mov byte [esi + 0x67], al
movzx eax, byte [esi + 1]
mov byte [esi + 0x66], dl
movzx edx, byte [esi + 2]
mov byte [esi + 0x68], cl
movzx ecx, byte [esi]
mov byte [esi + 0x6a], al
lea eax, [esi + 0x2c]
push esi
mov byte [esi + 0x69], dl
mov byte [esi + 0x6b], cl
call fcn.0044baf0
movzx edx, byte [esi + 0xb]
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
movzx ecx, byte [esi + 0xa]
mov byte [eax + 1], cl
movzx edx, byte [esi + 9]
mov byte [eax + 2], dl
movzx ecx, byte [esi + 8]
mov byte [eax + 3], cl
movzx edx, byte [esi + 0xf]
mov byte [eax + 4], dl
movzx ecx, byte [esi + 0xe]
mov byte [eax + 5], cl
movzx edx, byte [esi + 0xd]
mov byte [eax + 6], dl
movzx ecx, byte [esi + 0xc]
mov byte [eax + 7], cl
movzx edx, byte [esi + 0x13]
mov byte [eax + 8], dl
movzx ecx, byte [esi + 0x12]
mov byte [eax + 9], cl
movzx edx, byte [esi + 0x11]
mov byte [eax + 0xa], dl
movzx ecx, byte [esi + 0x10]
mov byte [eax + 0xb], cl
movzx edx, byte [esi + 0x17]
mov byte [eax + 0xc], dl
movzx ecx, byte [esi + 0x16]
mov byte [eax + 0xd], cl
movzx edx, byte [esi + 0x15]
mov byte [eax + 0xe], dl
movzx ecx, byte [esi + 0x14]
mov byte [eax + 0xf], cl
movzx edx, byte [esi + 0x1b]
mov byte [eax + 0x10], dl
movzx ecx, byte [esi + 0x1a]
mov byte [eax + 0x11], cl
movzx edx, byte [esi + 0x19]
mov byte [eax + 0x12], dl
movzx ecx, byte [esi + 0x18]
mov byte [eax + 0x13], cl
movzx edx, byte [esi + 0x1f]
mov byte [eax + 0x14], dl
movzx ecx, byte [esi + 0x1e]
mov byte [eax + 0x15], cl
movzx edx, byte [esi + 0x1d]
mov byte [eax + 0x16], dl
movzx ecx, byte [esi + 0x1c]
mov byte [eax + 0x17], cl
movzx edx, byte [esi + 0x23]
mov byte [eax + 0x18], dl
movzx ecx, byte [esi + 0x22]
mov byte [eax + 0x19], cl
movzx edx, byte [esi + 0x21]
mov byte [eax + 0x1a], dl
movzx ecx, byte [esi + 0x20]
mov byte [eax + 0x1b], cl
movzx edx, byte [esi + 0x27]
mov byte [eax + 0x1c], dl
movzx ecx, byte [esi + 0x26]
add esp, 4
mov byte [eax + 0x1d], cl
movzx edx, byte [esi + 0x25]
mov byte [eax + 0x1e], dl
movzx ecx, byte [esi + 0x24]
pop edi
pop ebx
mov byte [eax + 0x1f], cl
xor eax, eax
pop esi
pop ebp
ret
Function at 0x44ebe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x23c], 0
jne 0x44ed34
mov eax, dword [esi + 0x240]
cmp eax, 0x10
jge 0x44ed34
test eax, eax
js 0x44ed34
mov eax, dword [esi + 0x234]
push eax
call fcn.00450df0
add esp, 4
test eax, eax
jne 0x44ed39
mov ecx, dword [esi + 0x240]
mov eax, dword [ebp + 0x10]
lea edx, [ecx + eax]
cmp edx, 0xc
jbe 0x44ec3a
or dword [esi + 0x238], 1
push ebx
push edi
xor edi, edi
test ecx, ecx
jne 0x44ec95
mov ecx, eax
and ecx, 0xfffffff0
mov dword [ebp + 8], ecx
jbe 0x44ec8e
lea ebx, [esi + 0x1f4]
xor eax, eax
mov edx, dword [ebp + 0xc]
lea ecx, [eax + edi]
mov ecx, dword [ecx + edx]
xor dword [ebx + eax], ecx
add eax, 4
cmp eax, 0x10
jb 0x44ec54
push ebx
push esi
call fcn.00450d60
add esp, 8
add dword [esi + 0x248], 0x80
adc dword [esi + 0x24c], 0
add edi, 0x10
cmp edi, dword [ebp + 8]
jb 0x44ec52
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
add ebx, edi
jmp 0x44ec98
mov ebx, dword [ebp + 0xc]
cmp edi, eax
jae 0x44ed2d
sub eax, edi
mov dword [ebp + 8], eax
mov ecx, 1
lea ebx, [ebx]
mov al, byte [ebx]
mov edx, dword [esi + 0x240]
mov byte [esi + edx + 0x224], al
add dword [esi + 0x240], ecx
add ebx, ecx
cmp dword [esi + 0x240], 0x10
jne 0x44ed23
lea edi, [esi + 0x1f4]
mov eax, edi
mov ecx, 4
lea ecx, [ecx]
movzx edx, byte [eax + 0x30]
xor byte [eax], dl
movzx edx, byte [eax + 0x31]
xor byte [eax + 1], dl
movzx edx, byte [eax + 0x32]
xor byte [eax + 2], dl
movzx edx, byte [eax + 0x33]
xor byte [eax + 3], dl
add eax, 4
dec ecx
jne 0x44ece0
push edi
push esi
call fcn.00450d60
xor eax, eax
add esp, 8
add dword [esi + 0x248], 0x80
mov dword [esi + 0x240], eax
adc dword [esi + 0x24c], eax
mov ecx, 1
sub dword [ebp + 8], ecx
jne 0x44ecb0
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret
mov eax, 0x10
pop esi
pop ebp
ret
Function at 0x450bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], edi
cmp eax, edi
je 0x450c54
push esi
mov eax, dword [ebp + 0x10]
dec dword [ebp + 0xc]
test eax, eax
je 0x450be1
call eax
dec dword [ebp - 8]
call fcn.0046b9f8
mov esi, eax
call fcn.0046b9f8
cmp esi, eax
jne 0x450c00
xor edi, 1
call fcn.0046b9f8
cmp esi, eax
je 0x450bf4
call fcn.0046b9f8
mov esi, eax
call fcn.0046b9f8
cmp esi, eax
jne 0x450c1c
xor ebx, 1
call fcn.0046b9f8
cmp esi, eax
je 0x450c10
cmp edi, ebx
je 0x450be4
mov eax, dword [ebp - 4]
lea ecx, [eax + eax]
or ecx, edi
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ecx
jne 0x450be1
mov eax, dword [ebp + 8]
mov dl, cl
mov byte [eax], dl
inc eax
cmp dword [ebp + 0xc], 0
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 8
jne 0x450bd5
mov eax, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450d60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [edi]
add eax, eax
lea edx, [ecx + eax*8 + 0x258]
push 0x10
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00469f40
add esp, 0xc
mov esi, 1
mov edx, 0x100
movzx ecx, byte [esi + edi]
mov ebx, dword [ebp + 8]
add ecx, edx
xor eax, eax
add ecx, ecx
lea ecx, [ebx + ecx*8 + 0x258]
jmp 0x450db0
mov ebx, dword [ecx]
xor dword [ebp + eax - 0x10], ebx
add eax, 4
add ecx, 4
cmp eax, 0x10
jl 0x450db0
add edx, 0x100
inc esi
cmp edx, 0x1000
jl 0x450d94
push 0x10
lea edx, [ebp - 0x10]
push edx
push edi
call fcn.00469f40
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a537
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov eax, edx
xor eax, dword [ebp + 0x10]
shr ecx, 5
inc ecx
cmp edx, ecx
jb 0x45a56e
push esi
push edi
mov esi, dword [ebp + 8]
movzx esi, byte [esi + edx - 1]
mov edi, eax
shl edi, 5
add esi, edi
mov edi, eax
shr edi, 2
add esi, edi
sub edx, ecx
xor eax, esi
cmp edx, ecx
jae 0x45a54e
pop edi
pop esi
pop ebp
ret

Function at 0x45e6d3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
mov esi, 0x200
call fcn.00452377
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00452216
push dword [ebp + 0xc]
push esi
push 1
push eax
call fcn.00469b2c
add esp, 0x20
jmp 0x45e735
cmp esi, 0x3fffffff
ja 0x45e719
add esi, esi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00452216
push dword [ebp + 0xc]
push esi
push 1
push eax
call fcn.00469b2c
add esp, 0x18
add dword [ebp - 0x208], eax
cmp eax, esi
jae 0x45e70f
lea eax, [ebp - 0x210]
push eax
call fcn.004522df
pop ecx
pop esi
leave
ret

Function at 0x45e74f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call fcn.00452377
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.00452216
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push eax
call fcn.00469b2c
mov esi, eax
add dword [ebp - 0x208], esi
lea eax, [ebp - 0x210]
push eax
call fcn.004522df
xor eax, eax
add esp, 0x24
cmp eax, esi
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0x45ea40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, eax
call fcn.00453325
pop ecx
mov esi, eax
sub esi, ebx
push 1
pop edi
je 0x45ead1
push ebx
push dword [ebp + 8]
dec esi
call fcn.004534b4
pop ecx
pop ecx
cmp eax, 3
jne 0x45ea9a
test edi, edi
je 0x45eac6
push 0
push ebx
push dword [ebp + 8]
call fcn.0045369d
fstp qword [esp + 4]
mov dword [esp], str._.14g
push dword [ebp + 0xc]
call fcn.0046716e
add esp, 0x10
test eax, eax
jle 0x45eac6
xor edi, edi
inc edi
jmp 0x45eac8
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call fcn.00452e99
add esp, 0xc
test edi, edi
je 0x45eac6
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp - 4]
inc edi
push edi
push eax
call fcn.0046889f
add esp, 0x10
cmp eax, dword [ebp - 4]
je 0x45eac8
xor edi, edi
inc ebx
test esi, esi
jne 0x45ea5b
test edi, edi
je 0x45ead6
xor eax, eax
inc eax
jmp 0x45eae5
push 0
push 0
push dword [ebp + 8]
call fcn.00452040
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a10
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx edx, word [ebp - 0x24]
xor eax, eax
cmp edx, 9
sete al
mov esp, ebp
pop ebp
ret

Function at 0x401f50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + 0xc]
cmp edx, dword [ecx + 0x10]
jb 0x401f88
mov dword [ebp - 8], 0xd40008
mov dword [ebp - 4], 0
jmp 0x402079
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
shr ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x20]
push eax
push 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x1c]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
add eax, 1
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xc], eax
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x12
je 0x401ff6
cmp dword [ebp - 0xc], 2
jne 0x40200e
mov eax, dword [ebp - 0xc]
cdq
mov cl, 0x20
call fcn.00403f70
or eax, 0xda0021
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp 0x402079
xor edx, edx
cmp dword [ebp - 0xc], 0
setne dl
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x40205e
mov eax, dword [ebp - 0xc]
cdq
mov cl, 0x20
call fcn.00403f70
or eax, 0xdb0021
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0x405290
mov eax, dword [ebp - 8]
push eax
push 0xdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x4052b8
call sub.euLogPct.dll_dbgPut
add esp, 0x18
jmp 0x402079
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401720
add esp, 8
xor edx, edx
jne 0x401f67
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x402340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x12
je 0x40239c
cmp dword [ebp - 0x14], 2
jne 0x4023b4
mov eax, dword [ebp - 0x14]
cdq
mov cl, 0x20
call fcn.00403f70
or eax, 0x1150021
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp 0x4023d6
cmp dword [ebp - 0x14], 0
je 0x4023d2
mov eax, dword [ebp - 0x14]
cdq
mov cl, 0x20
call fcn.00403f70
or eax, 0x1160021
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp 0x4023d6
xor ecx, ecx
jne 0x402357
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x4023f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [ebp - 0xc], 0xb
mov dword [ebp - 0x10], 8
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x12
je 0x402453
cmp dword [ebp - 0x14], 2
jne 0x40246b
mov eax, dword [ebp - 0x14]
cdq
mov cl, 0x20
call fcn.00403f70
or eax, 0x1270021
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp 0x4024c3
xor ecx, ecx
cmp dword [ebp - 0x14], 0
setne cl
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x4024bb
mov eax, dword [ebp - 0x14]
cdq
mov cl, 0x20
call fcn.00403f70
or eax, 0x1280021
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0x4054c0
mov edx, dword [ebp - 8]
push edx
push 0x128
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0x4054e8
call sub.euLogPct.dll_dbgPut
add esp, 0x18
jmp 0x4024c3
xor ecx, ecx
jne 0x402407
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x402960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp - 0xc], 0
setne al
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4029e9
mov eax, dword [ebp - 0xc]
cdq
mov cl, 0x20
call fcn.00403f70
or eax, 0x1850021
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0x405610
mov ecx, dword [ebp - 8]
push ecx
push 0x185
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x10]
push edx
push 0x405638
call sub.euLogPct.dll_dbgPut
add esp, 0x18
jmp 0x4029ed
xor eax, eax
jne 0x402977
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402a00
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
xor eax, eax
cmp dword [ebp + 8], 0
sete al
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x402a5f
mov dword [ebp - 8], 0x1920001
mov dword [ebp - 4], 0
push 0x405680
mov ecx, dword [ebp - 8]
push ecx
push 0x192
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x10]
push edx
push 0x4056a8
call sub.euLogPct.dll_dbgPut
add esp, 0x18
jmp 0x402acb
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp - 0xc], 0
setne al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x402ac3
mov eax, dword [ebp - 0xc]
cdq
mov cl, 0x20
call fcn.00403f70
or eax, 0x1940021
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0x4056f0
mov ecx, dword [ebp - 8]
push ecx
push 0x194
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x14]
push edx
push 0x405718
call sub.euLogPct.dll_dbgPut
add esp, 0x18
jmp 0x402acb
xor eax, eax
jne 0x402a17
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x403c8f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d064]
jne 0x403c99
repz ret
jmp fcn.00404111
Function at 0x41b8fa
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47e690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00418753
mov dword [ebp - 0x14], eax
cmp dword [0x4c8a88], edi
jne 0x41b9eb
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41b978
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41bacb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41bacb
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41bacb
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4c8a88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4c8a8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4c8a90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c8a98], eax
test eax, eax
je 0x41b9e8
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c8a94], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41ba10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41ba03
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41ba25
push 4
pop eax
jmp 0x41bacd
cmp dword [ebp - 0x14], edi
je 0x41ba25
push dword [0x4c8a88]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41ba0a
mov eax, dword [0x4c8a94]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41ba83
cmp dword [0x4c8a98], esi
je 0x41ba83
push eax
call ebx
push dword [0x4c8a98]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41ba83
test eax, eax
je 0x41ba83
call ecx
test eax, eax
je 0x41ba78
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41ba78
test byte [ebp - 8], 1
jne 0x41ba83
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41bab3
mov eax, dword [0x4c8a8c]
cmp eax, esi
je 0x41bab0
push eax
call ebx
test eax, eax
je 0x41bab0
call eax
mov edi, eax
test edi, edi
je 0x41bab0
mov eax, dword [0x4c8a90]
cmp eax, esi
je 0x41bab0
push eax
call ebx
test eax, eax
je 0x41bab0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4c8a88]
call ebx
test eax, eax
je 0x41bacb
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41bacd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415859
leave
ret
Function at 0x403a90
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404ed0
test esi, esi
jne 0x403ac6
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.00405048
jmp 0x403ae4
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004039d4
mov edi, eax
test esi, esi
je 0x403ae4
cmp dword [ebx], 0
je 0x403ae4
dec esi
jmp 0x403acd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404b7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x410038], 0
je 0x404be3
cmp word [0x410324], 0xd7b2
jne 0x404ba5
cmp dword [0x41032c], 0
jbe 0x404ba5
mov eax, 0x410320
call dword [0x41033c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x404c10
call fcn.00405448
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x40f022], 0
jne 0x404bff
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404dac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x40f024], 0
je 0x404dd7
mov edx, edi
mov eax, esi
call dword [0x40f024]
mov ebx, eax
jmp 0x404de8
mov eax, 8
call fcn.0040379c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x410039], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x404d74
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
test esi, esi
jne 0x404e18
mov eax, ebx
call fcn.004037b8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4088cc
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xfffffeec
xor ebx, ebx
mov eax, esp
xor ecx, ecx
mov edx, 0x114
call fcn.00403b90
mov dword [esp], 0x114
push esp
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x408940
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x408922
mov edx, dword [esp + 8]
test edx, edx
jne 0x40890c
mov ebx, 0x32
jmp 0x408922
cmp edx, 2
jne 0x408918
mov ebx, 0x34
jmp 0x408922
cmp edx, 1
jne 0x408922
mov ebx, 0x33
cmp eax, 6
jne 0x408940
mov eax, dword [esp + 8]
test eax, eax
jne 0x408936
mov ebx, 0x3c
jmp 0x408940
cmp eax, 1
jne 0x408940
mov ebx, 0x3d
mov eax, ebx
add esp, 0x114
pop ebx
ret