joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc4e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c4e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc4e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc4e06a
add dl, dl
jne 0xc4e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc4e0dc
xor eax, eax
add dl, dl
jne 0xc4e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc4e17d
add dl, dl
jne 0xc4e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc4e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc4e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc4e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc4e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc4e075
mov eax, 1
add dl, dl
jne 0xc4e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc4e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc4e0e1
sub eax, ebx
mov ebx, 1
jne 0xc4e128
mov ecx, 1
add dl, dl
jne 0xc4e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc4e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc4e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc4e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc4e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc4e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc4e136
cmp eax, 0x7d00
jae 0xc4e16d
cmp eax, 0x500
jb 0xc4e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc4e075
cmp eax, 0x7f
ja 0xc4e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc4e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc4e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc4e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x51dea0
Capabilities:
Terminate process

Disassembly:
test byte [0x5cc2e8], 0x20
jne 0x51debe
vmovq xmm0, xmm0
vcvttpd2qq xmm0, xmm0
vmovd eax, xmm0
vpextrd edx, xmm0, 1
ret
mov ecx, esp
add esp, 0xfffffff8
and esp, 0xfffffff8
movsd qword [esp], xmm0
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov esp, ecx
btr edx, 0x1f
sbb ecx, ecx
cmp edx, 0x41e00000
jae 0x51df1e
cvttsd2si eax, xmm0
cdq
ret
mov ecx, edx
bts edx, 0x14
shr ecx, 0x14
and edx, 0x1fffff
sub ecx, 0x433
jge 0x51df18
neg ecx
push ebx
xor ebx, ebx
shrd ebx, eax, cl
je 0x51df11
cvttss2si ebx, dword [0x532bec]
pop ebx
shrd eax, edx, cl
shr edx, cl
ret
shld edx, eax, cl
shl eax, cl
ret
cmp edx, 0x43e00000
jae 0x51df37
test ecx, ecx
je 0x51dee8
call 0x51dee8
neg eax
adc edx, 0
neg edx
ret
jecxz 0x51df3f
ja 0x51df3f
test eax, eax
je 0x51df47
cvttss2si ecx, dword [0x532be8]
mov edx, SysReAllocStringLen
xor eax, eax
ret

Function at 0x51e623
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x51e662
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x51e662
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x51e662
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x51e662
cmp dword [ecx + 0x74], 0xe
jbe 0x51e662
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x52adc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x52aded
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x52aded
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x402e4c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov esi, edx
mov ebx, eax
lea edi, [ebp - 4]
xor eax, eax
push ebp
push 0x402f47
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x402ea0
push 0x105
lea eax, [ebp - 0x10d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x10d]
mov eax, esi
call fcn.0040161c
jmp 0x402f2e
call sub.kernel32.dll_GetCommandLineA
mov dword [edi], eax
mov eax, dword [edi]
call fcn.00402dd4
mov dword [edi], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi]
call fcn.00402dfc
mov dword [edi], eax
test ebx, ebx
je 0x402ece
dec ebx
test ebx, ebx
jl 0x402ece
mov eax, dword [edi]
cmp eax, dword [ebp - 8]
jne 0x402ea7
push esi
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 8]
call fcn.0040165c
mov eax, dword [ebp - 0x114]
mov ecx, dword [edi]
sub ecx, dword [ebp - 8]
mov edx, 1
call fcn.004018f8
mov eax, dword [esi]
call fcn.004016a4
cmp eax, 2
jl 0x402f2e
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x402f2e
mov eax, dword [esi]
call fcn.004016a4
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x22
jne 0x402f2e
push esi
mov eax, dword [esi]
call fcn.004016a4
mov ecx, eax
sub ecx, 2
mov eax, dword [esi]
mov edx, 2
call fcn.004018f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f4e
lea eax, [ebp - 0x114]
call fcn.00401530
ret

Function at 0x403130
Capabilities:
Get common file path

Disassembly:
push eax
sub esp, 0x108
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov edx, esp
mov eax, dword [esp + 0x108]
call fcn.0040165c
add esp, 0x108
pop edx
mov eax, dword [edx]
call fcn.004030ac
ret

Function at 0x4031e4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4032a4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00407984
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x40328e
cmp dword [ebp - 8], 0
jbe 0x40328c
mov eax, dword [ebp - 8]
inc eax
call fcn.004010d4
mov ebx, eax
xor esi, esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x40326a
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040165c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00407974
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumKeyExA
cmp eax, 0x103
jne 0x40324d
mov eax, ebx
call fcn.004010ec
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4032ab
lea eax, [ebp - 0x10]
call fcn.00401530
ret
Function at 0x4032b4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x403374
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00407984
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x40335e
cmp dword [ebp - 8], 0
jbe 0x40335c
mov eax, dword [ebp - 8]
inc eax
call fcn.004010d4
mov ebx, eax
xor esi, esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x40333a
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040165c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00407974
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumValueA
cmp eax, 0x103
jne 0x40331d
mov eax, ebx
call fcn.004010ec
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40337b
lea eax, [ebp - 0x10]
call fcn.00401530
ret

Function at 0x403474
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
cmp byte [ebx + 0x18], 0
jne 0x4034f0
mov byte [ebp - 0x1004], 0
mov eax, dword [ebx + 0x19]
call fcn.0040189c
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov eax, esi
call fcn.0040189c
push eax
mov eax, dword [ebp - 4]
call fcn.0040189c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040189c
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
je 0x4034e7
mov eax, edi
lea edx, [ebp - 0x1004]
mov ecx, 0x1000
call fcn.0040168c
jmp 0x403521
mov eax, edi
call fcn.00401530
jmp 0x403521
mov eax, edi
mov edx, esi
call fcn.00401584
mov eax, dword [ebx + 0x19]
call fcn.0040189c
push eax
mov eax, esi
call fcn.0040189c
push eax
mov eax, dword [ebp - 4]
call fcn.0040189c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040189c
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405f4c
Capabilities:
Get file attributes

Disassembly:
call fcn.004028bc
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x405f60
dec eax
and al, 0x10
sete al
ret
Function at 0x406118
Capabilities:
Read .ini file

Disassembly:
or eax, 0
je 0x40610a
lea eax, [esi + 4]
call fcn.00402dc0
mov dword [esi], eax
lea edx, [esi + 4]
inc eax
add esi, eax
mov eax, edi
call fcn.00407974
cmp byte [esi + 4], 0
jne 0x4060ed
pop eax
call fcn.004010ec
pop ecx
pop ebx
pop edi
pop esi
ret
push esi
push edi
push ebx
push ecx
mov ebx, eax
mov eax, 0x8003
mov edi, edx
call fcn.004010d4
mov esi, eax
push eax
or byte [ebx + 0x18], 0
jne 0x40614d
push dword [ebx + 0x19]
mov eax, 0x7fff
push eax
lea eax, [esi + 4]
push eax
push dword [ebx + 0x1d]
call sub.kernel32.dll_GetPrivateProfileSectionA
jmp 0x4060e8
push ebx
push esi
push edx
push ebp
mov edx, 0
mov ebp, dword [edi + 0x1c]
mov ebx, 0x7ffd
or ebp, ebp
je 0x40618e
or ebx, ebx
je 0x40618e
push edx
mov eax, edi
call fcn.004079e0
push eax
call fcn.00402dc0
pop eax
xor ecx, 0xffffffff
mov edx, esi
sub ebx, ecx
ja 0x406182
add ecx, ebx
xor ebx, ebx
add esi, ecx
call fcn.004011b8
pop edx
inc edx
dec ebp
jmp 0x406160
mov word [esi], 0
pop ebp
pop edx
pop esi
pop ebx
mov eax, ebx
call fcn.00403454
push dword [ebx + 0x19]
push esi
push dword [ebx + 0x1d]
call sub.kernel32.dll_WritePrivateProfileSectionA
pop eax
call fcn.004010ec
pop ecx
pop ebx
pop edi
pop esi
ret

Function at 0x406f30
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x37], 0xef
test dl, dl
je 0x406f3c
or byte [eax + 0x37], 0x10
mov byte [eax + 0x52], dl
mov ecx, dword [eax + 0x28]
jecxz 0x406f58
push eax
je 0x406f59
call dword [0x40c0fc]
pop eax
push 5
push dword [eax + 0x28]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x177], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x40c0fc]
ret

Function at 0x408000
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.00407fb4
je 0x408032
mov eax, ebx
push edx
call fcn.00404b78
pop edx
cmp eax, edx
je 0x408032
test edx, edx
mov eax, ebx
jne 0x408024
pop ebx
inc edx
jmp fcn.00404b68
mov byte [ebx + 0x49], dl
xor edx, edx
call fcn.00404b68
xchg ebx, eax
cmp eax, 0
pop ebx
jne fcn.00408050
ret
Function at 0x409bc8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040188c
xor eax, eax
push ebp
push 0x409c39
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00405ea4
mov edx, dword [ebp - 8]
mov eax, 0x40d788
call fcn.00401584
xor eax, eax
mov dword [0x40d784], eax
push 0
push 0x409adc
call sub.user32.dll_EnumWindows
mov ebx, dword [0x40d784]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c40
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401554
ret

Function at 0x409c48
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push ecx
xor ebx, ebx
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
push esp
push esi
call sub.kernel32.dll_GetExitCodeProcess
test esi, esi
je 0x409c77
mov eax, dword [esp]
push eax
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop edx
pop esi
pop ebx
ret
Function at 0x40a5b0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40a657
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40d770]
push dword [eax + 0x28]
push 0x40a66c
push ebx
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00401764
mov edx, dword [ebp - 0x24]
mov eax, dword [0x40d76c]
call fcn.0040a508
lea eax, [ebp - 0x1e]
mov edx, 0x1e
call fcn.004026dc
mov dword [ebp - 0x1a], 3
mov word [ebp - 0xe], 0x14
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.004030c0
lea eax, [ebp - 0x28]
mov edx, 0x40a678
call fcn.004016ac
mov eax, dword [ebp - 0x28]
call fcn.0040189c
mov dword [ebp - 0x16], eax
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a65e
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00401554
ret

Function at 0x40a67c
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040188c
xor eax, eax
push ebp
push 0x40a76c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x40a751
test bl, bl
je 0x40a6dc
mov ebx, 8
mov eax, dword [ebp - 4]
call fcn.0040189c
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
test al, 1
je 0x40a6d4
push 0x80
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
jmp 0x40a6ef
mov ebx, 0xa
mov eax, dword [ebp - 4]
call fcn.0040189c
push eax
call sub.kernel32.dll_RemoveDirectoryA
mov eax, dword [0x40d770]
push dword [eax + ebx*4]
push 0x40a784
push dword [ebp - 4]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00401764
mov edx, dword [ebp - 8]
mov eax, dword [0x40d76c]
call fcn.0040a508
mov ebx, 0xa
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004030d4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004030c0
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.004015c8
mov eax, dword [ebp - 4]
call fcn.0040189c
push eax
call sub.kernel32.dll_RemoveDirectoryA
test eax, eax
jne 0x40a6ef
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a773
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00401554
ret
Function at 0x40a9e8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040188c
mov eax, dword [ebp - 8]
call fcn.0040188c
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x40aad1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor ecx, ecx
mov edx, 0x3c
call fcn.00401218
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
call fcn.0040189c
mov dword [esi + 0x10], eax
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.004030d4
mov eax, dword [ebp - 0x48]
call fcn.0040189c
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
call fcn.0040189c
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], ebx
mov eax, 0x400
mov dword [esi + 4], eax
cmp dword [ebp + 8], 1
jne 0x40aa7f
or eax, 0x40
or eax, 0x200
mov dword [esi + 4], eax
push esi
call sub.shell32.dll_ShellExecuteExA
jmp 0x40aa93
mov eax, dword [0x40c458]
mov eax, dword [eax]
call fcn.00407420
push 0x32
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x40aa87
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aad8
lea eax, [ebp - 0x48]
call fcn.00401530
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401554
ret
Function at 0x404a7c
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.004065f8
test esi, esi
jne 0x404ab2
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.00406764
jmp 0x404ad0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404960
mov edi, eax
test esi, esi
je 0x404ad0
cmp dword [ebx], 0
je 0x404ad0
dec esi
jmp 0x404ab9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x405560
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.00405810
mov byte [esp], al
cmp byte [esp], 0
jne 0x4056ec
test edi, edi
je 0x4056ec
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405623
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4055fe
cmp edi, 0xffffffff
je 0x4055bf
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4055bf
mov byte [esp], 0
jmp 0x4056ec
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4055fe
test ebx, ebx
jne 0x4055f4
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004026dc
test eax, eax
jne 0x4055f4
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4056ec
call 0x405854
dec ebp
test ebp, ebp
jg 0x4055a4
cmp edi, 0xffffffff
je 0x405623
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405621
mov byte [esp], 0
jmp 0x4056ec
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40556e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004026dc
cmp ebx, eax
jne 0x405623
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040575c
mov edx, eax
mov ebx, dword [0x5928f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40568a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405688
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40568a
xor edi, edi
cmp byte [esp], 0
je 0x4056b3
mov ebx, dword [esi]
test bl, 1
jne 0x4056cc
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004026dc
cmp ebx, eax
jne 0x405690
mov byte [esp + 1], 1
jmp 0x4056cc
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004026dc
cmp ebx, eax
jne 0x4056b3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40563d
cmp byte [esp], 0
je 0x4056ec
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
Function at 0x406254
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x592054], 0
je 0x4062bb
cmp word [0x592340], 0xd7b2
jne 0x40627d
cmp dword [0x592348], 0
jbe 0x40627d
mov eax, 0x59233c
call dword [0x592358]
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, 0x4062e8
call fcn.00406f2c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x58a032], 0
jne 0x4062d7
push 0
push 0x58a9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4064b4
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 [0x58a034], 0
je 0x4064df
mov edx, edi
mov eax, esi
call dword [0x58a034]
mov ebx, eax
jmp 0x4064f0
mov eax, 8
call fcn.0040464c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x592055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40647c
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 0x406525
mov edx, 8
mov eax, ebx
call fcn.00404668
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408b94
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408cf9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004065f8
cmp si, word [0x58aa00]
jb 0x408c2c
cmp si, word [0x58ac00]
ja 0x408c2c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408c2c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x58aa00]
jae 0x408c06
mov edi, ebx
dec edi
jmp 0x408c27
cmp si, word [ebx*8 + 0x58aa00]
jbe 0x408c16
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408c27
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x58aa04]
call fcn.00408aa4
jmp 0x408c2c
cmp edi, dword [ebp - 8]
jae 0x408bf0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408cdb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408cdb
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407374
push dword [ebp - 0x160]
push 0x408d14
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407374
push dword [ebp - 0x164]
push 0x408d24
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407374
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407540
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d00
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406658
ret