joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016a22
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
xor esi, esi
push esi
push dword [ebp + 8]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10016a48
or eax, 0xffffffff
pop esi
leave
ret
cmp dword [ebp + 0x14], esi
je 0x10016a77
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10016a6a
push 0xfffffffffffffffe
pop esi
push dword [ebp - 4]
call dword [0x1002de58]
mov eax, esi
jmp 0x10016a45
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10016a6a
push 0xfffffffffffffffd
jmp 0x10016a69

Function at 0x10016af9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
jle 0x10016b9a
push ebx
push esi
push edi
movzx ecx, cl
movzx edi, dl
inc ecx
and ecx, 0x800000ff
jns 0x10016b32
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 2], cl
movzx ecx, cl
mov dl, byte [ecx + eax]
movzx ebx, dl
add ebx, edi
and ebx, 0x800000ff
jns 0x10016b50
dec ebx
or ebx, 0xffffff00
inc ebx
mov esi, dword [ebp + 8]
add esi, dword [ebp - 8]
movzx edi, bl
mov byte [ebp - 1], bl
mov bl, byte [edi + eax]
mov byte [ecx + eax], bl
mov byte [edi + eax], dl
movzx ebx, byte [ecx + eax]
movzx edx, dl
add ebx, edx
and ebx, 0x800000ff
jns 0x10016b7e
dec ebx
or ebx, 0xffffff00
inc ebx
movzx edx, bl
mov dl, byte [edx + eax]
xor byte [esi], dl
inc dword [ebp - 8]
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jl 0x10016b21
mov dl, byte [ebp - 1]
mov cl, byte [ebp - 2]
pop edi
pop esi
pop ebx
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
leave
ret
Function at 0x10016ec8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x23e]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_memset
mov esi, 0x3fff
push esi
mov dword [ebp - 0x24], 0x104
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], ebx
call fcn.10011198
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x10016f1f
xor eax, eax
jmp 0x1001702c
push edi
mov edi, 0x800
push edi
call fcn.10011198
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x10016f3a
xor eax, eax
jmp 0x1001702b
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10017006
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x10016f95
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10017006
cmp dword [ebp - 0x10], ebx
je 0x10017006
mov dword [ebp - 0xc], ebx
jbe 0x10017006
push edi
push ebx
push dword [ebp - 8]
call sub.msvcrt.dll_memset
push esi
push ebx
push dword [ebp - 0x14]
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x14]
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], edi
mov word [eax], cx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 8]
lea ecx, [ebp - 0x18]
push ebx
push ebx
push ecx
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10016ff2
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [0x1002de9c]
test eax, eax
jne 0x10016fff
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jb 0x10016f9f
jmp 0x10017006
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 4], ebx
je 0x10017014
push dword [ebp - 4]
call dword [0x1002de58]
mov eax, esi
lea esi, [ebp - 0x14]
call fcn.100111ae
mov eax, edi
lea esi, [ebp - 8]
call fcn.100111ae
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10017030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
not eax
cmp dword [ebp + 0xc], ecx
jne 0x10017040
xor eax, eax
pop ebp
ret
jbe 0x1001706f
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor eax, edx
mov edx, eax
and edx, 0xf
shr eax, 4
xor eax, dword [edx*4 + 0x10024718]
mov edx, eax
and edx, 0xf
shr eax, 4
xor eax, dword [edx*4 + 0x10024718]
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x10017042
not eax
pop ebp
ret
Function at 0x100175c2
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x1c], 0x500
call fcn.100174b9
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x100175ea
xor eax, eax
jmp 0x1001767c
push esi
lea ecx, [ebp - 0x18]
push ecx
push 2
push eax
call fcn.10017503
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x10017661
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x20]
push eax
call dword [0x1002deb8]
test eax, eax
je 0x10017661
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
jbe 0x10017658
push edi
lea edi, [esi + 4]
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10017650
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 8
cmp eax, dword [esi]
jb 0x10017632
jmp 0x10017657
mov dword [ebp - 8], 1
pop edi
push dword [ebp - 0xc]
call dword [0x1002de30]
push dword [ebp - 0x10]
call dword [0x1002dddc]
cmp esi, ebx
je 0x10017678
xor eax, eax
lea esi, [ebp - 0x14]
call fcn.100111ae
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret

Function at 0x1001767f
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x12
mov dword [ebp - 0xc], eax
push 1
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 8], 0x500
call dword [0x1002deb8]
test eax, eax
jne 0x100176af
leave
ret
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 4]
mov esi, eax
call dword [0x1002de30]
mov eax, esi
pop esi
leave
ret

Function at 0x100179eb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
mov esi, dword [0x1002fe20]
call fcn.100179ad
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x10017a3b
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [eax + 4]
add ecx, 8
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10017a2b
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, 0x84
lea esi, [ebp - 8]
call fcn.100111ae
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x10018946
Capabilities:
Create thread
Terminate thread

Disassembly:
push esi
xor eax, eax
push eax
push eax
push 0x29e1
push 0x10018916
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10018980
push 2
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x10018daf
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [eax + 0x5c]
mov byte [ecx + eax + 0x1c], 0x80
inc dword [eax + 0x5c]
cmp ecx, 0x37
mov ecx, dword [eax + 0x5c]
jle 0x10018df9
jmp 0x10018dcf
mov byte [ecx + eax + 0x1c], 0
inc dword [eax + 0x5c]
mov ecx, dword [eax + 0x5c]
cmp ecx, 0x40
jl 0x10018dc4
call fcn.10018bf7
jmp 0x10018de6
mov ecx, dword [eax + 0x5c]
mov byte [eax + ecx + 0x1c], 0
inc dword [eax + 0x5c]
cmp dword [eax + 0x5c], 0x38
jl 0x10018ddb
jmp 0x10018dfe
mov byte [ecx + eax + 0x1c], 0
inc dword [eax + 0x5c]
mov ecx, dword [eax + 0x5c]
cmp ecx, 0x38
jl 0x10018dee
mov cl, byte [eax + 0x1b]
mov byte [eax + 0x54], cl
mov cl, byte [eax + 0x1a]
mov byte [eax + 0x55], cl
mov cl, byte [eax + 0x19]
mov byte [eax + 0x56], cl
mov cl, byte [eax + 0x18]
mov byte [eax + 0x57], cl
mov cl, byte [eax + 0x17]
mov byte [eax + 0x58], cl
mov cl, byte [eax + 0x16]
mov byte [eax + 0x59], cl
mov cl, byte [eax + 0x15]
mov byte [eax + 0x5a], cl
mov cl, byte [eax + 0x14]
mov byte [eax + 0x5b], cl
jmp fcn.10018bf7

Function at 0x10018e33
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x70
push esi
push edi
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
mov dword [esp + 0x20], 0xc3d2e1f0
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0xc], eax
mov esi, ecx
cmp eax, edi
je 0x10018ed6
dec dword [esp + 0xc]
cmp dword [esp + 0x74], edi
jne 0x10018ee7
mov ecx, dword [esp + 0x6c]
mov al, byte [esi]
mov byte [esp + ecx + 0x2c], al
inc dword [esp + 0x6c]
add dword [esp + 0x24], 8
jne 0x10018eb3
inc dword [esp + 0x28]
jne 0x10018eb3
mov dword [esp + 0x74], 1
cmp dword [esp + 0x6c], 0x40
jne 0x10018ec3
lea eax, [esp + 0x10]
call fcn.10018bf7
inc esi
cmp dword [esp + 0xc], edi
jne 0x10018e86
cmp dword [esp + 0x74], edi
jne 0x10018ee7
cmp dword [esp + 0x70], edi
jne 0x10018ee7
lea eax, [esp + 0x10]
call fcn.10018daf
mov dword [esp + 0x70], 1
lea ecx, [esp + 0x11]
lea esi, [esp + 0x10]
sub ecx, ebx
lea eax, [ebx + 2]
sub esi, ebx
mov dl, byte [ecx + eax]
mov byte [eax - 2], dl
mov dl, byte [esi + eax]
mov byte [eax - 1], dl
mov dl, byte [esp + edi*4 + 0x11]
mov byte [eax], dl
mov dl, byte [esp + edi*4 + 0x10]
mov byte [eax + 1], dl
inc edi
add eax, 4
cmp edi, 5
jb 0x10018ef6
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10018f1e
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 4]
push eax
push 0x10020670
push 1
push esi
push 0x10020740
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x10018fa6
push edi
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
lea edi, [ebp - 8]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push ecx
call dword [edx + 0xc]
pop edi
test eax, eax
js 0x10018fa6
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x10018fa6
push 8
call fcn.10011198
pop ecx
cmp eax, esi
jne 0x10018fc4
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x10018fb3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x10018fc0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x10018fcf
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
pop esi
leave
ret

Function at 0x100190a7
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push str.ROOTCIMV2
xor esi, esi
call fcn.10018f1e
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x1001910e
mov edi, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push str.Caption
push str.SELECT__FROM_Win32_OperatingSystem
call fcn.10018ffe
add esp, 0xc
test eax, eax
je 0x10019104
push dword [ebp - 0x10]
call fcn.10013723
mov esi, eax
pop ecx
test esi, esi
je 0x100190fa
push 0x10020c4c
push esi
call dword [0x1002dd98]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 4]
call fcn.10018fd2
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x1001917d
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push str.ROOTCIMV2
xor esi, esi
call fcn.10018f1e
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x100191e4
mov edi, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push str.Name
push str.SELECT__FROM_Win32_Processor
call fcn.10018ffe
add esp, 0xc
test eax, eax
je 0x100191da
push dword [ebp - 0x10]
call fcn.10013723
mov esi, eax
pop ecx
test esi, esi
je 0x100191d0
push 0x10020c4c
push esi
call dword [0x1002dd98]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 4]
call fcn.10018fd2
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x1001ec9c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
push ebx
lea ebx, [edx + eax - 0x21524111]
push esi
mov eax, ebx
push edi
mov esi, ebx
mov dword [ebp - 4], eax
cmp edx, 0xc
jbe switch.0x1001ed8e
lea eax, [edx - 0xd]
push 0xc
xor edx, edx
pop edi
div edi
inc eax
mov dword [ebp - 8], eax
movzx eax, byte [ecx + 7]
movzx edx, byte [ecx + 6]
movzx edi, byte [ecx + 4]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 5]
add edi, esi
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 0xa]
shl eax, 8
add edi, eax
movzx eax, byte [ecx + 0xb]
movzx esi, byte [ecx + 3]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 9]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 8]
add edx, ebx
movzx ebx, byte [ecx + 2]
shl esi, 8
add esi, ebx
movzx ebx, byte [ecx + 1]
shl esi, 8
add esi, ebx
movzx ebx, byte [ecx]
shl esi, 8
add esi, ebx
shl eax, 8
add eax, edx
sub esi, eax
add esi, dword [ebp - 4]
mov edx, eax
rol edx, 4
xor edx, esi
add eax, edi
sub edi, edx
mov esi, edx
rol esi, 6
xor esi, edi
add edx, eax
sub eax, esi
mov edi, esi
add esi, edx
rol edi, 8
xor edi, eax
sub edx, edi
mov eax, edi
rol eax, 0x10
xor eax, edx
add edi, esi
sub esi, eax
mov edx, eax
ror edx, 0xd
xor esi, edx
mov edx, dword [ebp + 8]
add eax, edi
mov ebx, esi
sub edi, esi
rol ebx, 4
sub edx, 0xc
xor ebx, edi
add esi, eax
add ecx, 0xc
dec dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp + 8], edx
jne 0x1001eccc
cmp edx, 0xc
ja 0x1001edf7
jmp dword [edx*4 + 0x1001ee48]
movzx edx, byte [ecx + 0xb]
shl edx, 0x18
add ebx, edx
movzx edx, byte [ecx + 0xa]
shl edx, 0x10
add ebx, edx
movzx edx, byte [ecx + 9]
shl edx, 8
add ebx, edx
movzx edx, byte [ecx + 8]
add ebx, edx
movzx edx, byte [ecx + 7]
shl edx, 0x18
add esi, edx
movzx edx, byte [ecx + 6]
shl edx, 0x10
add esi, edx
movzx edx, byte [ecx + 5]
shl edx, 8
add esi, edx
movzx edx, byte [ecx + 4]
add esi, edx
movzx edx, byte [ecx + 3]
shl edx, 0x18
add eax, edx
movzx edx, byte [ecx + 2]
shl edx, 0x10
add eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
add eax, edx
movzx ecx, byte [ecx]
add eax, ecx
xor ebx, esi
mov ecx, esi
rol ecx, 0xe
sub ebx, ecx
mov edx, ebx
rol edx, 0xb
mov ecx, ebx
xor ecx, eax
sub ecx, edx
xor esi, ecx
mov eax, ecx
ror eax, 7
sub esi, eax
xor ebx, esi
mov eax, esi
rol eax, 0x10
sub ebx, eax
mov eax, ebx
mov edi, eax
mov edx, eax
xor edx, ecx
rol edi, 4
sub edx, edi
mov ecx, edx
rol ecx, 0xe
xor esi, edx
sub esi, ecx
mov ecx, esi
ror ecx, 8
xor eax, esi
sub eax, ecx
pop edi
pop esi
pop ebx
leave
ret
mov eax, ebx
jmp 0x1001ee3c
Function at 0x1001fb60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x1001fb85
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x1001fb9d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x1001fbcc
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x1001fc0e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x1001fce2
sub edx, 0x10000
js 0x1001fce2
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x1001fbf4
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x1001fbf4
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x1001fc65
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x1001fc62
add edx, 8
jne 0x1001fc49
jmp 0x1001fcd3
add edx, 4
test eax, 0xffff
jne 0x1001fc72
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x1001fcd3
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x1001fca6
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x1001fbf4
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x1001fce2
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x1001fbf4
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x1001fcf3
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10014190
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10014354
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
jmp 0x100141ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100141c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100141b0
mov eax, 1
add ebx, ebx
jne 0x100141d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100141c8
jne 0x100141e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100141c8
xor ecx, ecx
sub eax, 3
jb 0x100141f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1001426a
mov ebp, eax
add ebx, ebx
jne 0x10014203
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10014210
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10014234
inc ecx
add ebx, ebx
jne 0x10014220
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10014215
jne 0x10014231
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10014215
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10014254
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10014245
jmp 0x100141b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10014254
add edi, ecx
jmp 0x100141b6
pop esi
mov edi, esi
mov ecx, 0x2f7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10014272
cmp byte [edi], 4
jne 0x10014272
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10014277
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x100142e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x140f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14208]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100142a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1420c]
or eax, eax
je 0x100142e0
mov dword [ebx], eax
add ebx, 4
jmp 0x100142c1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10014317
cmp al, 0xef
ja 0x1001430a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100142ec
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100142f9
mov ebp, dword [esi + 0x14210]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1001434b
sub esp, 0xffffff80
jmp 0x10008f1a
Function at 0x402970
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029ad
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4029cd
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004049ec
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b34
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.0040477c
test esi, esi
jne 0x402b6a
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.0040486c
jmp 0x402b88
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a48
mov edi, eax
test esi, esi
je 0x402b88
cmp dword [ebx], 0
je 0x402b88
dec esi
jmp 0x402b71
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403818
Capabilities:
Query or enumerate registry value

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

Function at 0x40457c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e804c], 0
je 0x4045dd
cmp word [0x4e8220], 0xd7b2
jne 0x4045a5
cmp dword [0x4e8228], 0
jbe 0x4045a5
mov eax, 0x4e821c
call dword [0x4e8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4dc094
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 0x404604
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4dc034], 0
jne 0x4045f9
push 0
push 0x4dc08c
push 0x4dc094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret