joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c28e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
push 0x11
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0xc4
call fcn.10065af0
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000c317
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.10065ad0
add esp, 0x1c
mov dword [ebp - 4], eax
push 0x10
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0xc4
call fcn.10065af0
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000c389
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.10065ad0
add esp, 0x1c
mov dword [ebp - 4], eax
push 0x12
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0xc4
call fcn.10065af0
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000c3fb
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.10065ad0
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x1000c403
mov esp, ebp
pop ebp
ret
Function at 0x10015a81
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000005
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x10015aad
mov eax, 0x10077238
push eax
push 1
mov ebx, 0x194
call fcn.10065d20
add esp, 0x10
mov dword [ebp - 4], eax
push 0x40
push 0x1000
push dword [ebp - 4]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
add ebx, eax
mov dword [ebp - 0xc], ebx
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
mov eax, dword [ebp - 8]
jmp 0x10015b14
mov esp, ebp
pop ebp
ret 4
Function at 0x100658b0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.100674f6
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x1006591a
push esi
lea edi, [eax + 0x400]
call fcn.100674eb
push edi
call fcn.100674f6
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x100658ea
push esi
xor edi, edi
call dword [0x1007d4c8]
add esp, 4
test eax, eax
je 0x10065936
push eax
push esi
call fcn.100670e0
add esp, 8
mov edi, eax
push esi
call fcn.100674eb
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10065a10
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10065a5b
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x10065a50
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push edi
call dword [0x1007d4c8]
push eax
push edi
call fcn.100670e0
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret

Function at 0x10066880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x100668a1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x100668fb
inc edi
cmp edi, esi
jl 0x10066895
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x10066930
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x100668ea
cmp byte [eax], bl
je 0x10066905
cmp byte [eax + 1], bl
je 0x1006690e
cmp byte [eax + 2], bl
je 0x10066918
cmp byte [eax + 3], bl
je 0x10066924
add eax, 4
cmp eax, edi
jb 0x100668c1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x412281
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x412290
pop dword [ebp - 0x50]
mov eax, 0x412290
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3a056
push 0
mov eax, 0x5fdcf894
add eax, 0xa0659798
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x2408155d
add ecx, 0xdbf83689
mov edx, eax
mov ebx, 0x3c32ff5b
add ebx, 0xc4106ea5
add ebx, dword [ebp - 0x50]
mov esi, 0x3ff213dd
sub esi, 0x862d8f2c
mov edi, dword [ebx]
add dword [ebp - 0x30], 0x7903b26c
xor edi, esi
xor dword [ebp - 0x20], ebx
mov dword [edx], edi
sub dword [ebp - 0x38], edx
add edx, 0xda4be873
sub edx, 0xda4be86f
add ebx, 4
loop 0x4122ea
add eax, 0xcec605aa
add eax, 0x313b1cc1
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xa410d88f
add ecx, 0x5c2f2771
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x404600
Capabilities:
Create thread

Disassembly:
sub esp, 0x2c
mov eax, dword [0x465f00]
xor eax, esp
mov dword [esp + 0x28], eax
push 4
call fcn.00407e7a
add esp, 4
test eax, eax
je 0x404624
mov dword [eax], 0x404360
jmp 0x404626
xor eax, eax
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x401c30
push 0
push 0
call fcn.0040d545
add esp, 0x18
mov dword [esp], eax
test eax, eax
je 0x4047a8
call dword [sym.imp.KERNEL32.dll_FreeConsole]
cmp dword [esp + 4], 0
je 0x4047b7
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x4047be
push 0
push ecx
push dword [esp + 8]
call fcn.00404997
add esp, 0xc
test eax, eax
jne 0x4047c5
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
push str.Enter_filename:__n
movups xmmword [esp + 0x14], xmm0
push 0x467368
movlpd qword [esp + 8], xmm0
mov dword [esp + 0x2c], 0xf
mov byte [esp + 0x18], al
call fcn.00401420
lea eax, [esp + 0x18]
push eax
push 0x467240
call fcn.00401200
mov ecx, dword [esp + 0x30]
add esp, 0x10
test ecx, ecx
je 0x404749
cmp dword [esp + 0x24], 0xf
lea eax, [esp + 0x10]
push esi
cmova eax, dword [esp + 0x14]
push edi
push ecx
push eax
push 0x4672b8
call fcn.00401a40
mov edi, eax
add esp, 0xc
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + edi + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [esp + 0x14], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [esp + 0x10]
push eax
call fcn.00401c50
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x10], al
test esi, esi
je 0x404735
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x404735
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x10]
mov ecx, edi
call fcn.004040b0
mov ecx, edi
call fcn.00403c10
pop edi
pop esi
mov ecx, dword [esp + 0x24]
cmp ecx, 0xf
jbe 0x40477b
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404771
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047cc
push ecx
push edx
call fcn.00407eaa
add esp, 8
cmp dword [esp + 4], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xf
mov byte [esp + 0x10], 0
jne 0x4047d1
mov ecx, dword [esp + 0x28]
xor eax, eax
xor ecx, esp
call fcn.00407ebd
add esp, 0x2c
ret
push 6
mov dword [esp + 8], 0
call fcn.00404b4d
push 1
call fcn.00404b4d
push 5
call fcn.00404b4d
push 2
call fcn.00404b4d
call fcn.0040c8ef
call fcn.0040d3ad
int3
Function at 0x41625a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00415efc

Function at 0x416265
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041608b

Function at 0x41665f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408c20
mov eax, dword [0x465f00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004150f1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4166a1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4167fd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041f830
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x467d18]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041782f
mov ecx, dword [esi*4 + 0x467d18]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4167f6
cmp eax, dword [edi + ecx + 0x24]
jne 0x4167f6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4167f6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041782f
add esp, 0x14
test edx, edx
jl 0x4167f6
jg 0x41676c
test eax, eax
jb 0x4167f6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4167f6
jl 0x416786
cmp dword [ebp - 0x1008], eax
ja 0x4167f6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4167a4
test ebx, ebx
je 0x4167dd
cmp ecx, edi
jae 0x4167dd
mov al, byte [ecx]
cmp al, 0xd
jne 0x4167be
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4167ca
cmp byte [ecx + 1], 0xa
jne 0x4167ca
inc ecx
jmp 0x4167ca
movzx eax, al
movsx eax, byte [eax + 0x4661d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4167a4
cmp edx, ebx
jne 0x4167a4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4167fb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407ebd
leave
ret
Function at 0x416ccd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x467d18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416d0d
cmp byte [ebx], 0xa
jne 0x416d0d
or byte [eax + edi + 0x28], 4
jmp 0x416d12
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x416e10
mov al, byte [edx]
cmp al, 0x1a
je 0x416df2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x416d41
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x416d66
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x416d70
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x416d23
jmp 0x416e10
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416ded
cmp dword [ebp - 0xc], 0
je 0x416ded
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x467d18]
test byte [eax + edi + 0x28], 0x48
je 0x416dc7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x416db2
mov byte [esi], dl
jmp 0x416dc3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x467d18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416e10
cmp byte [ebp - 1], 0xa
jne 0x416dd6
cmp esi, ebx
jne 0x416dd6
mov byte [esi], 0xa
jmp 0x416e0f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041784d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416e10
mov byte [esi], 0xd
jmp 0x416e0f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x467d18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416e0c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416e10
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416e19
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x467d18]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416e5c
cmp word [esi], dx
jne 0x416e5c
or byte [edi + eax + 0x28], 4
jmp 0x416e61
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x416fb4
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x416f94
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x416ea3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x416ed9
cmp eax, edx
jae 0x416ee5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x416e7b
jmp 0x416fb4
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416f90
cmp dword [ebp - 0x14], 0
je 0x416f90
mov eax, dword [ebx*4 + 0x467d18]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x416f68
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x416f31
mov word [esi], cx
jmp 0x416f64
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x467d18]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x467d18]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x467d18]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x416fb4
pop ebx
cmp word [ebp - 4], bx
jne 0x416f79
cmp esi, dword [ebp + 0xc]
jne 0x416f79
mov word [esi], bx
jmp 0x416fb1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041784d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x416fb4
push 0xd
jmp 0x416fad
mov ecx, dword [ebx*4 + 0x467d18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416fab
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416fb4
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419bc2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x419c5f
push ebx
push esi
call fcn.00419b8b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00418810
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x419c0c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419c5e
push edi
push eax
call fcn.004140e0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x419c2c
call fcn.004132ab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419c5d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00418810
add esp, 0x20
test eax, eax
jne 0x419c4b
push edi
call fcn.004132ab
jmp 0x419c53
push ebx
call fcn.004132ab
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41f7f0
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1156058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.011561a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x115607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x115606a
add dl, dl
jne 0x1156089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11560dc
xor eax, eax
add dl, dl
jne 0x1156096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x115617d
add dl, dl
jne 0x11560a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11560b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11560bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11560c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x11560d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1156075
mov eax, 1
add dl, dl
jne 0x11560ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11560f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11560e1
sub eax, ebx
mov ebx, 1
jne 0x1156128
mov ecx, 1
add dl, dl
jne 0x115610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1156119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1156105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1156075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x115613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x115614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1156136
cmp eax, 0x7d00
jae 0x115616d
cmp eax, 0x500
jb 0x1156168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1156075
cmp eax, 0x7f
ja 0x1156170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1156075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x115619e
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 0x1156075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406e7c
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.0040a148
test esi, esi
jne 0x406eb2
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.0040a2d0
jmp 0x406ed0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406d60
mov edi, eax
test esi, esi
je 0x406ed0
cmp dword [ebx], 0
je 0x406ed0
dec esi
jmp 0x406eb9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x408dcc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040922c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408f56
test edi, edi
je 0x408f56
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408e96
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408e71
cmp edi, 0xffffffff
je 0x408e31
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408e31
mov byte [esp], 0
jmp 0x408f56
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408e71
test ebx, ebx
jne 0x408e63
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408e63
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408f56
lea eax, [esp + 0xc]
call fcn.00408aac
dec ebp
test ebp, ebp
jg 0x408e16
cmp edi, 0xffffffff
je 0x408e96
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408e94
mov byte [esp], 0
jmp 0x408f56
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408dda
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408e96
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408fc4
mov edx, eax
mov ebx, dword [0x6308fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408efa
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408ef8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408efa
xor edi, edi
cmp byte [esp], 0
je 0x408f20
mov ebx, dword [esi]
test bl, 1
jne 0x408f36
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408f00
mov byte [esp + 1], 1
jmp 0x408f36
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408f20
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408ead
cmp byte [esp], 0
je 0x408f56
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret