joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e8d2
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x43e9e2
lea eax, [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x43e917
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push 1
call fcn.0043e9f4
pop ecx
pop ecx
jmp 0x43e9e0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x43e952
mov byte [ebp - 1], 0
push 0x79cb
push 1
lea eax, [ebp - 1]
push eax
push 1
push 0
push 0x18f1
push 1
push 0
push 1
call fcn.0044d0d7
add esp, 0x24
jmp 0x43e9e0
or dword [ebp - 0x44], 0xffffffff
or dword [ebp - 0x40], 0xffffffff
or dword [ebp - 0x3c], 0xffffffff
or dword [ebp - 0x38], 0xffffffff
lea ecx, [ebp - 3]
call fcn.0042f4cc
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
call fcn.0042f4cf
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x30]
call fcn.0042f47b
mov dword [ebp - 8], 0x184c506d
mov dword [ebp - 8], 3
jmp 0x43e99f
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x43e9d8
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x43e9d6
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1fa2
push 0x36d
push 0x1730
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x43e998
lea ecx, [ebp - 0x30]
call fcn.0042f4a1
jmp 0x43e9f0
push 0xe49
push 1
call fcn.00439f5f
pop ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x44193d
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x441aa9
lea eax, [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x441a18
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x4419d8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x38]
add eax, dword [ecx]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
jmp 0x441a13
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x441a13
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1fa2
push 0x36d
push 0x1730
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x441aa7
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
test eax, eax
je 0x441a5c
mov byte [ebp - 1], 0
push 0x1f47
push 1
push 0x4637
push 0
push 0
lea eax, [ebp - 1]
push eax
push 1
push 1
push 1
call fcn.0044d0d7
add esp, 0x24
jmp 0x441aa7
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x441a8a
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jge 0x441aa7
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x68]
call fcn.0042f4bd
mov dword [eax], 0x8b13eca4
jmp 0x441a7f
jmp 0x441ac7
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x6c], eax
push 0x28a2
mov eax, dword [ebp - 0x6c]
movzx eax, byte [eax]
push eax
push 1
push 1
call fcn.0043a598
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x44412c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x4441f6
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x444185
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push 0x7570
push 0
push dword [ebp - 0x10]
push 0x65d1
call fcn.0044614f
add esp, 0x10
jmp 0x4441f4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x4441ee
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x4441cf
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 3
jge 0x4441ec
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x34]
call fcn.0042f4bd
mov dword [eax], 0x15a1
jmp 0x4441c4
jmp 0x4441f4
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
jmp 0x44420a
push 0x5205
push 1
push 0x3c20
call fcn.00434fee
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x4458ad
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movzx eax, byte [ebp + 8]
test eax, eax
je 0x44595c
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x30]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x38]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x4458eb
push 0x4b1
push 1
call fcn.004459f3
pop ecx
pop ecx
jmp 0x445957
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x445926
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x445924
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_HideCaret]
jmp 0x445957
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x445957
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1fa2
push 0x36d
push 0x1730
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x4459ef
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x24]
push 0x59fc
push dword [ebp - 0x28]
push 0x5923
push 0
push 0x31b4
push dword [ebp - 0x2c]
push 0x24fb
push dword [ebp - 0x30]
push 0x3ac0
push 0x2c1
push 0x2560
push dword [ebp - 0x34]
push 0x4c36
push 1
push 0x3175
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
push eax
push dword [ebp - 0x40]
push 0x415a
push dword [ebp - 0x44]
call fcn.00448584
add esp, 0x54
mov esp, ebp
pop ebp
ret
Function at 0x44be3e
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x44bf94
lea eax, [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x44bef3
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x44bec9
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax + 0x18]
sub eax, dword [ecx]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
mov dword [ecx + 0x18], eax
jmp 0x44beee
mov byte [ebp - 1], 0
push 0
push 0x735b
lea eax, [ebp - 1]
push eax
push 1
push 0x7aea
push 0
push 0x4dd7
call fcn.00441092
add esp, 0x1c
jmp 0x44bf92
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
test eax, eax
je 0x44bf48
mov byte [ebp - 2], 0
push 0x5208
push 1
push 0x3b15
push 0xf3a
push 0x603d
lea eax, [ebp - 2]
push eax
push 0x20ec
push 1
push 0
push 0
push 0x65ce
push 1
push 0x59f4
call fcn.00446e36
add esp, 0x34
jmp 0x44bf92
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x44bf6a
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0x1a
jge 0x44bf92
mov byte [ebp - 3], 0
movzx eax, byte [ebp - 3]
test eax, eax
je 0x44bf90
push 0
push 0x9e4
push 0x7f4
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x44bf5f
jmp 0x44bfac
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x4c], eax
push 0x224f
push dword [ebp - 0x4c]
push 0
call fcn.0045060d
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x44df47
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x44e0c9
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x44e074
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x44e027
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x44dfdb
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0x26
je 0x44e025
push 0
push 0x2eda
push 0xeb6
push 1
push 1
push 1
push 0xd1e
call fcn.00447778
add esp, 0x1c
push 0x3106
push 1
push 0
push 0x214
push 1
push 0x5953
push 1
push 1
call fcn.00444dc4
add esp, 0x20
jmp 0x44dfd0
jmp 0x44e072
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x44e055
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jge 0x44e072
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x40]
call fcn.0042f4bd
mov dword [eax], 0x77722aba
jmp 0x44e04a
jmp 0x44e0c7
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x50]
movzx eax, byte [eax]
test eax, eax
je 0x44e0a9
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
jmp 0x44e0c7
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
movzx eax, byte [eax]
test eax, eax
je 0x44e0c7
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x44e0f5
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x68], eax
push 0x391
push dword [ebp - 0x68]
push 0x4b1b
push 0x5b37
push 0x1612
mov edx, 0xe1b
xor cl, cl
call fcn.00430b35
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x451ae6
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x451b9a
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x451b67
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x451b5f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2c]
add eax, dword [ecx]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x451b65
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x451b98
push 1
push 0x3651
push 1
push 0x7ff4
push 0x1395
push 0x6cfc
push 0x345c
push 0x7273
push 1
push 0x6529
call fcn.0043fb14
add esp, 0x28
jmp 0x451bda
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x30]
push 0
push 0x3282
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.00433a2c
add esp, 0x1c
mov esp, ebp
pop ebp
ret
Function at 0x4882b6
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 0x49d3cc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b06c4]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0048404f
mov dword [ebp - 0x14], eax
cmp dword [0xaae1ec], esi
jne 0x49d4bf
push 0x800
push esi
push 0xaa325c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x49d44c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x49d59f
push esi
push esi
push 0xaa325c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x49d59f
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49d59f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xaae1ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xaae1f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xaae1f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xaae1fc], eax
test eax, eax
je 0x49d4bc
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xaae1f8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x49d4e4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x49d4d7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x49d4f9
push 4
pop eax
jmp 0x49d5a1
cmp dword [ebp - 0x14], esi
je 0x49d4f9
push dword [0xaae1ec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x49d4de
mov eax, dword [0xaae1f8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x49d557
cmp dword [0xaae1fc], edi
je 0x49d557
push eax
call ebx
push dword [0xaae1fc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x49d557
test eax, eax
je 0x49d557
call ecx
test eax, eax
je 0x49d54c
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 0x49d54c
test byte [ebp - 8], 1
jne 0x49d557
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x49d587
mov eax, dword [0xaae1f0]
cmp eax, edi
je 0x49d584
push eax
call ebx
test eax, eax
je 0x49d584
call eax
mov esi, eax
test esi, esi
je 0x49d584
mov eax, dword [0xaae1f4]
cmp eax, edi
je 0x49d584
push eax
call ebx
test eax, eax
je 0x49d584
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xaae1ec]
call ebx
test eax, eax
je 0x49d59f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x49d5a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048315b
mov esp, ebp
pop ebp
ret
Function at 0x403358
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.00405420
test esi, esi
jne 0x40338e
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.00405510
jmp 0x4033ac
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031fc
mov edi, eax
test esi, esi
je 0x4033ac
cmp dword [ebx], 0
je 0x4033ac
dec esi
jmp 0x403395
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404204
Capabilities:
Query or enumerate registry value

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

Function at 0x4051ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49404c], 0
je 0x40524d
cmp word [0x494220], 0xd7b2
jne 0x405215
cmp dword [0x494228], 0
jbe 0x405215
mov eax, 0x49421c
call dword [0x494238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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
push 0x405274
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x490030], 0
jne 0x405269
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4053a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x490038], 0
je 0x4053ca
mov edx, esi
mov eax, ebx
call dword [0x490038]
jmp 0x4053d9
mov eax, 8
call fcn.00402f00
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x49404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40536c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc