joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100892b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x100b6c8], edi
jne 0x1008a47
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x1008992
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x100b6c8], edi
pop esi
je 0x1008a1a
dec eax
jne 0x1008a47
cmp dword [ebp - 0x11c], 5
jne 0x1008a07
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x10089fb
dec eax
je 0x10089e8
dec eax
je 0x10089ce
mov dword [0x100b6c8], 0x14
jmp 0x1008a47
cmp word [ebp - 0xc], 1
jb 0x10089df
mov dword [0x100b6c8], 0x10
or dword [0x100b6c8], 4
jmp 0x1008a47
cmp word [ebp - 0xc], 2
jb 0x10089df
mov dword [0x100b6c8], 8
jmp 0x10089df
mov dword [0x100b6c8], 4
jmp 0x1008a47
cmp dword [ebp - 0x11c], 4
ja 0x1008a59
mov dword [0x100b6c8], 2
cmp dword [ebp - 0x11c], 4
jne 0x1008a47
cmp dword [ebp - 0x118], edi
je 0x1008a3d
cmp dword [ebp - 0x118], 0xa
je 0x1008a3d
cmp dword [ebp - 0x118], 0x5a
jne 0x1008a47
mov dword [0x100b6c8], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x100b6c8]
xor ecx, ebp
pop edi
call fcn.010052d1
leave
ret
mov dword [0x100b6c8], 0x20
jmp 0x1008a47

Function at 0x1008a6a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1008abe
push 3
lea eax, [ebp - 0x44]
push 0x10019f8
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.010052d1
leave
ret

Function at 0x1008ad3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x100b6cc]
jne 0x1008b6e
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x1001928
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1008b6d
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x10019e0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x1008b6d
push 3
push dword [esi*8 + 0x1001778]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x1008b5f
inc esi
cmp esi, 0x1c
jb 0x1008b3e
jmp 0x1008b6d
mov ax, word [esi*8 + 0x100177c]
mov word [0x100b6cc], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x100b6cc]
xor ecx, ebp
call fcn.010052d1
leave
ret
Function at 0x4364b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x31000]
push edi
jmp 0x4364ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4364d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4364c0
mov eax, 1
add ebx, ebx
jne 0x4364e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4364d8
jne 0x4364f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4364d8
xor ecx, ecx
sub eax, 3
jb 0x436508
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43657a
mov ebp, eax
add ebx, ebx
jne 0x436513
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x436520
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x436544
inc ecx
add ebx, ebx
jne 0x436530
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x436525
jne 0x436541
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x436525
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x436564
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x436555
jmp 0x4364c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x436564
add edi, ecx
jmp 0x4364c6
pop esi
mov edi, esi
mov ecx, 0x24a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x436582
cmp byte [edi], 1
jne 0x436582
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 0x436587
lea edi, [esi + 0x34000]
mov eax, dword [edi]
or eax, eax
je 0x4365ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3dfe0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3e0ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4365b4
mov ecx, edi
jns 0x4365e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3e0b4]
or eax, eax
je 0x4365f9
mov dword [ebx], eax
add ebx, 4
jmp 0x4365d1
call dword [esi + 0x3e0b0]
mov ebp, dword [esi + 0x3e0b8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x436633
sub esp, 0xffffff80
jmp 0x40323c
Function at 0x1005cb5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001348
call fcn.010056f8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1005cf2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005cf2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1005d0a
cmp eax, 0x20b
je 0x1005cf7
mov dword [ebp - 0x1c], ebx
jmp 0x1005d1e
cmp dword [ecx + 0x84], 0xe
jbe 0x1005cf2
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1005d18
cmp dword [ecx + 0x74], 0xe
jbe 0x1005cf2
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10071cc], 0xffffffff
or dword [0x10071d0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1007180]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100717c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10071d4], eax
call fcn.01005eae
cmp dword [0x1007108], ebx
jne 0x1005d79
push fcn.01005eae
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01005e97
push 0x1007010
push 0x100700c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1007178]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1007174]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1007008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1005e0f
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1005de3
cmp al, 0x22
jne 0x1005dd5
cmp byte [esi], 0x22
jne 0x1005dec
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1005df6
cmp al, 0x20
jbe 0x1005de8
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1005e1a
movzx eax, word [ebp - 0x50]
jmp 0x1005e1d
cmp byte [esi], 0x20
jbe 0x1005dec
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1005e0f
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1005e3a
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1005e6f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01005733
ret

Function at 0x8cc28c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x8cc296
pushal
call 0x8cc29c
pop ebp
sub ebp, 0x10
sub ebp, 0x4cc28c
jmp 0x8cc2b2
mov eax, 0x4cc28c
add eax, ebp
add eax, 0x4c
mov ecx, 0x608
mov edx, 0x8eb4ea0
xor byte [eax], dl
inc eax
dec ecx
jne 0x8cc2c9
jmp 0x8cc2dc
sub ebp, dword [ebp + 0x2b]
sub dword [eax + 0x6121a0a0], ebx
pop eax
mov al, byte [0x6da3a0a0]
sbb byte [ebx + 0x1aa0a0a0], ah
mov byte [eax + 0x4257a0a0], ah
mov dword [0xac212b68], eax
mov al, byte [0x65a3a0a0]
invalid
Function at 0x10638058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.106381a8
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 0x1063807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1063806a
add dl, dl
jne 0x10638089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106380dc
xor eax, eax
add dl, dl
jne 0x10638096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1063817d
add dl, dl
jne 0x106380a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106380b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106380bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106380c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x106380d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10638075
mov eax, 1
add dl, dl
jne 0x106380ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106380f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106380e1
sub eax, ebx
mov ebx, 1
jne 0x10638128
mov ecx, 1
add dl, dl
jne 0x1063810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10638119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10638105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10638075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1063813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1063814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10638136
cmp eax, 0x7d00
jae 0x1063816d
cmp eax, 0x500
jb 0x10638168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10638075
cmp eax, 0x7f
ja 0x10638170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10638075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1063819e
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 0x10638075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

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

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x52051c5a
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x4304d8
mov ecx, 0x77ae3a12
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401f40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403250
push 0x402140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x404184], 0xffffffff
mov dword [0x404188], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x404180]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x40417c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40418c], ecx
call fcn.00402130
mov eax, dword [0x404130]
test eax, eax
jne 0x401fd1
push 0x402120
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00402100
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x404178]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x404174]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4020df
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x402045
cmp al, 0x22
jne 0x402037
cmp byte [esi], 0x22
jne 0x40204e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40205e
cmp al, 0x20
ja 0x40205e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40204e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40207f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x402084
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4020c4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40204e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4020df

Function at 0x4022e0
Capabilities:
Terminate process

Disassembly:
mov edx, eax
push dword [0x40374f]
call dword [sym.imp.pdh.dll_PdhCloseQuery]
mov eax, 5
add eax, 5
inc eax
xor edi, edi
xor esi, esi
test eax, 0xb
jne 0x40230e
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x401775], eax
ret
Function at 0x41dae4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x41dba7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 0x48]
call fcn.0041e900
lea eax, [esi + 0x48]
call fcn.0041e90c
push dword [esi + 0x14]
push dword [esi + 0x10]
mov eax, dword [esi + 0x70]
push eax
lea eax, [esi + 0x18]
push eax
lea ecx, [esi + 0x48]
mov dl, 1
mov eax, dword [esi + 8]
call fcn.0041cdf4
mov ebx, eax
test bl, bl
jne 0x41db3a
mov eax, dword [esi + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x1c], eax
test bl, bl
je 0x41db8c
cmp byte [esi + 0x68], 0
je 0x41db8c
push dword [esi + 0x54]
push dword [esi + 0x50]
lea edx, [ebp - 4]
mov eax, dword [esi + 0x78]
call fcn.0041d244
mov edx, dword [ebp - 4]
lea eax, [esi + 0x74]
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea edx, [ebp - 8]
mov eax, dword [esi + 0x74]
call sub.rtl170.bpl__System_Sysutils_IncludeTrailingPathDelimiter_qqrx20System_UnicodeString
mov edx, dword [ebp - 8]
lea eax, [esi + 0x74]
mov ecx, dword [esi + 0x48]
call sub.rtl170.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [esi + 0x58]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x3c], eax
movzx eax, byte [esi + 0x6a]
mov byte [esi + 0x30], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dbae
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
ret

Function at 0x441ae8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd3c
push ebx
xor edx, edx
mov dword [ebp - 0x2bc], edx
mov dword [ebp - 0x2c0], edx
mov dword [ebp - 0x2c4], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x441bb6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2bc]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebp - 0x2bc]
push eax
lea edx, [ebp - 0x2c4]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 0x2c4]
lea edx, [ebp - 0x2c0]
call sub.rtl170.bpl__System_Sysutils_IncludeTrailingPathDelimiter_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x2c0]
lea eax, [ebp - 4]
pop ecx
call sub.rtl170.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
push 0x101
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
mov eax, dword [ebp - 4]
call sub.rtl170.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.shell32.dll_SHGetFileInfoW
mov eax, dword [ebp - 0x2b8]
mov dword [ebx + 0x18], eax
test eax, eax
jne 0x441b90
mov dword [ebx + 0x18], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441bbd
lea eax, [ebp - 0x2c4]
mov edx, 3
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.rtl170.bpl__System__UStrClr_qqrpv
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x189d1be4
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x74b859c6
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x100137df
Capabilities:
Generate random numbers via winapi

Disassembly:
call fcn.100b0a27
sub byte [eax], al
add byte [eax - 0x64846fe], al
sub esp, dword [ebx + 0x14]
xchg esp, eax
or esi, dword [ebp + 0xd508a03]
sbb eax, 0x6e64b0a0
dec ebx
jae 0x1001385c
dec edi
lds esi, [edx - 0x7b1f398d]
out dx, al
out dx, eax
ljmp 0xfdb3
mov ebp, esp
push esi
xor esi, esi
cmp dword [0x10120740], 1
je 0x10013871
mov esi, 0x8000ffff
jmp 0x10013899
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [0x10120730]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x100138be
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.1009a4be
mov esi, eax
test esi, esi
jge 0x100138be
mov eax, dword [0x1011faf4]
cmp eax, 0x1011faf4
je 0x100138be
test byte [eax + 0x3c], 2
je 0x100138be
push esi
push 0x100034d8
push 0xa
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.1009a4be
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x402b40
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.0040433c
test esi, esi
jne 0x402b76
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.0040442c
jmp 0x402b94
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029f4
mov edi, eax
test esi, esi
je 0x402b94
cmp dword [ebx], 0
je 0x402b94
dec esi
jmp 0x402b7d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40335c
Capabilities:
Query or enumerate registry value

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

Function at 0x40411c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a804c], 0
je 0x40417d
cmp word [0x4a8220], 0xd7b2
jne 0x404145
cmp dword [0x4a8228], 0
jbe 0x404145
mov eax, 0x4a821c
call dword [0x4a8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a4070
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 0x4041a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a4034], 0
jne 0x404199
push 0
push 0x4a4068
push 0x4a4070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4042f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402740
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4042b8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc