joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fcc70
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
movzx eax, byte [eax + 0x54bbd0]
mov byte [edx], al
movzx eax, byte [edx + 4]
movzx eax, byte [eax + 0x54bbd0]
mov byte [edx + 4], al
movzx eax, byte [edx + 8]
movzx eax, byte [eax + 0x54bbd0]
mov byte [edx + 8], al
movzx eax, byte [edx + 0xc]
movzx eax, byte [eax + 0x54bbd0]
mov byte [edx + 0xc], al
movzx eax, byte [edx + 0xd]
mov cl, byte [eax + 0x54bbd0]
movzx eax, byte [edx + 9]
movzx eax, byte [eax + 0x54bbd0]
mov byte [edx + 0xd], al
movzx eax, byte [edx + 5]
movzx eax, byte [eax + 0x54bbd0]
mov byte [edx + 9], al
movzx eax, byte [edx + 1]
mov byte [edx + 1], cl
movzx eax, byte [eax + 0x54bbd0]
mov byte [edx + 5], al
movzx eax, byte [edx + 2]
mov cl, byte [eax + 0x54bbd0]
movzx eax, byte [edx + 0xa]
mov byte [edx + 0xa], cl
movzx eax, byte [eax + 0x54bbd0]
mov byte [edx + 2], al
movzx eax, byte [edx + 6]
mov cl, byte [eax + 0x54bbd0]
movzx eax, byte [edx + 0xe]
mov byte [edx + 0xe], cl
movzx eax, byte [eax + 0x54bbd0]
mov byte [edx + 6], al
movzx eax, byte [edx + 3]
mov cl, byte [eax + 0x54bbd0]
movzx eax, byte [edx + 7]
movzx eax, byte [eax + 0x54bbd0]
mov byte [edx + 3], al
movzx eax, byte [edx + 0xb]
movzx eax, byte [eax + 0x54bbd0]
mov byte [edx + 7], al
movzx eax, byte [edx + 0xf]
mov byte [edx + 0xf], cl
mov ecx, dword [ebp + 0xc]
movzx eax, byte [eax + 0x54bbd0]
mov byte [edx + 0xb], al
mov eax, dword [ecx]
xor dword [edx], eax
mov eax, dword [ecx + 4]
xor dword [edx + 4], eax
mov eax, dword [ecx + 8]
xor dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
xor dword [edx + 0xc], eax
pop ebp
ret
Function at 0x4fd4b0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
cmp eax, 0x10
jne 0x4fd4d2
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004fc710
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp eax, 0x18
je 0x4fd5e4
cmp eax, 0x20
jne 0x4fd5e4
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 1
push edi
mov edi, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [edi + 0xf0], 0xe
call fcn.004def80
lea eax, [esi + 0x10]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.004def80
mov edx, 2
lea eax, [edi + 0x22]
add esp, 0x10
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
nop dword [eax]
nop dword [eax + eax]
movzx edi, byte [eax - 3]
movzx esi, byte [eax - 6]
add edi, str.cw
movzx ecx, byte [eax - 5]
add esi, str.cw
mov byte [ebp + 0xf], bl
add ecx, str.cw
movzx ebx, byte [eax - 4]
add ebx, str.cw
test dl, 1
jne 0x4fd58a
mov dh, byte [ecx]
mov ecx, dword [ebp - 4]
mov dl, cl
xor dh, cl
add dl, dl
mov cl, dl
xor cl, 0x1b
cmp byte [ebp + 0xf], 0
movzx ecx, cl
mov dword [ebp - 4], ecx
mov eax, ecx
movzx ecx, dl
cmovge eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
jmp 0x4fd592
mov dh, byte [esi]
mov esi, edi
mov edi, ebx
mov ebx, ecx
mov cl, byte [ebx]
mov dl, byte [edi]
mov bl, byte [esi]
mov byte [eax - 2], dh
mov byte [eax - 1], cl
mov byte [eax], dl
mov byte [eax + 1], bl
mov ecx, dword [eax - 0x22]
xor dword [eax - 2], ecx
mov ecx, dword [eax - 0x1e]
xor ecx, dword [eax - 2]
mov edx, dword [eax - 0x1a]
mov ebx, dword [ebp - 4]
xor edx, ecx
mov dword [eax + 2], ecx
mov ecx, dword [eax - 0x16]
xor ecx, edx
mov dword [eax + 6], edx
mov edx, dword [ebp - 8]
inc edx
mov dword [eax + 0xa], ecx
add eax, 0x10
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
cmp edx, 0xf
jl 0x4fd530
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 2
mov esp, ebp
pop ebp
ret
Function at 0x506390
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
pop ebp
ret
Function at 0x50cf30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xca000]
push edi
jmp 0x50cf4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50cf51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50cf40
mov eax, 1
add ebx, ebx
jne 0x50cf63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50cf74
jne 0x50cf93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50cf93
dec eax
add ebx, ebx
jne 0x50cf80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x50cf58
add ebx, ebx
jne 0x50cf8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50cfe5
xor ecx, ecx
sub eax, 3
jb 0x50cfab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50d01a
sar eax, 1
mov ebp, eax
jmp 0x50cfb6
add ebx, ebx
jne 0x50cfb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50cf84
inc ecx
add ebx, ebx
jne 0x50cfc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50cf84
add ebx, ebx
jne 0x50cfd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50cfc6
jne 0x50cfe2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50cfc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50d004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50cff6
jmp 0x50cf46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50d004
add edi, ecx
jmp 0x50cf46
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50d022
cmp byte [edi], 0x13
jne 0x50d022
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 0x50d027
lea edi, [esi + 0x108000]
mov eax, dword [edi]
or eax, eax
je 0x50d09f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1682bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x168410]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50d054
mov ecx, edi
jns 0x50d083
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 + 0x168414]
or eax, eax
je 0x50d099
mov dword [ebx], eax
add ebx, 4
jmp 0x50d071
call dword [esi + 0x168424]
mov ebp, dword [esi + 0x168418]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x50d0d3
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x10001190
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x100276d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10032dc0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push ecx
xor ebx, ebx
push edx
mov ecx, esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.10007ef9
mov edi, eax
cmp edi, ebx
je 0x100012a9
call fcn.10008355
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x100011fd
push 0x80004005
call fcn.10001cd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebx
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 1
mov eax, dword [eax]
push ecx
push eax
call fcn.10007ba7
mov byte [esp + 0x20], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10001255
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x14]
push edx
add esi, 0x30
push esi
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x1000127b
cmp dword [esi], ebx
jne 0x10001281
mov dword [esi], 0x200
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100012a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
Function at 0x100017f3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
inc ebp
fmul qword [ebx + 0x45033c40]
fmul qword [ecx + 0x458be045]
fsubr dword [ebx - 0x40]
or byte [ebx], al
inc ebp
loopne 0x10001798
sar byte [eax - 0x75], 0
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x18]
cmp eax, edx
jb 0x10001866
jmp 0x100018af
mov eax, 1
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
jmp 0x1000184a
mov eax, dword [ebp - 0xc]
imul eax, eax, 4
add eax, dword [ebp - 0x18]
mov eax, dword [eax]
add byte [ebx], al
inc ebp
fmul qword [ecx + 0x458bf845]
or al, 0x8b
push ebp
clc
mov ecx, eax
call fcn.10001788
add al, 0xff
invalid
dec dword [ecx + 0x458bfc45]
cld
mov edx, dword [ebp + 8]
cmp eax, edx
jne 0x10001859
mov eax, dword [ebp - 0xc]
imul eax, eax, 2
add eax, dword [ebp - 0x10]
movzx eax, word [eax]
movzx eax, ax
imul eax, eax, 4
add eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
leave
ret 8
mov eax, 0
leave
ret 8

Function at 0x10003da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10003db9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10003df4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10003df0
lea ebx, [ebx]
cmp esi, eax
jae 0x10003df4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10003de0
cmp esi, eax
jb 0x10003dfa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x100056b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push esi
call fcn.100073b3
push eax
lea ecx, [esp + 0xc]
call fcn.1000bd8b
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
xor eax, eax
xor byte [esp + eax + 0x10], 0x49
inc eax
cmp eax, 0x18
jb 0x100056f7
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
mov eax, dword [esp + 0x24]
call fcn.10005740
cmp dword [esp + 0xc], 0
mov esi, eax
je 0x10005736
mov ecx, dword [esp + 8]
push ecx
push 0
call fcn.1000b49c
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10014a46
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10032dc0]
jne 0x10014a50
repz ret
jmp fcn.100187e1
Function at 0x1002215b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1001abde
and dword [ebp - 4], 0
cmp dword [0x10036b0c], 0
mov ebx, eax
jne 0x1002220c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100222bd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100222bd
push eax
call fcn.1001ab6c
mov dword [esp], 0x1002cde4
push edi
mov dword [0x10036b0c], eax
call esi
push eax
call fcn.1001ab6c
mov dword [esp], 0x1002cdd0
push edi
mov dword [0x10036b10], eax
call esi
push eax
call fcn.1001ab6c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10036b14], eax
call esi
push eax
call fcn.1001ab6c
pop ecx
mov dword [0x10036b1c], eax
test eax, eax
je 0x1002220c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001ab6c
pop ecx
mov dword [0x10036b18], eax
mov eax, dword [0x10036b18]
cmp eax, ebx
je 0x10022264
cmp dword [0x10036b1c], ebx
je 0x10022264
push eax
call fcn.1001abe7
push dword [0x10036b1c]
mov esi, eax
call fcn.1001abe7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10022264
test edi, edi
je 0x10022264
call esi
test eax, eax
je 0x1002225b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1002225b
test byte [ebp - 0xc], 1
jne 0x10022264
or dword [ebp + 0x10], 0x200000
jmp 0x1002229d
mov eax, dword [0x10036b10]
cmp eax, ebx
je 0x1002229d
push eax
call fcn.1001abe7
pop ecx
test eax, eax
je 0x1002229d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1002229d
mov eax, dword [0x10036b14]
cmp eax, ebx
je 0x1002229d
push eax
call fcn.1001abe7
pop ecx
test eax, eax
je 0x1002229d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10036b0c]
call fcn.1001abe7
pop ecx
test eax, eax
je 0x100222bd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100222bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xfae058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00fae1a8
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 0xfae07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xfae06a
add dl, dl
jne 0xfae089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xfae0dc
xor eax, eax
add dl, dl
jne 0xfae096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xfae17d
add dl, dl
jne 0xfae0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfae0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfae0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfae0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xfae0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xfae075
mov eax, 1
add dl, dl
jne 0xfae0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfae0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xfae0e1
sub eax, ebx
mov ebx, 1
jne 0xfae128
mov ecx, 1
add dl, dl
jne 0xfae10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xfae119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xfae105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xfae075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xfae13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xfae14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xfae136
cmp eax, 0x7d00
jae 0xfae16d
cmp eax, 0x500
jb 0xfae168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xfae075
cmp eax, 0x7f
ja 0xfae170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xfae075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xfae19e
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 0xfae075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x5038289d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x73863eb4
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402fb4
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403690
Capabilities:
Query or enumerate registry value

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

Function at 0x40451c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53f048], 0
je 0x40457d
cmp word [0x53f21c], 0xd7b2
jne 0x404545
cmp dword [0x53f224], 0
jbe 0x404545
mov eax, 0x53f218
call dword [0x53f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4045a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45c030], 0
jne 0x404599
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4080f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408180
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408180
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408133
test edx, 3
jne 0x408122
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40812d
jmp 0x408133
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408133
cmp dword [ecx - 8], 1
je 0x40813d
mov edx, ebx
or edx, 3
call fcn.00404de8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40814f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040469c

Function at 0x40818c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40821c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40821c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081cf
test edx, 3
jne 0x4081be
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081c9
jmp 0x4081cf
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081cf
cmp dword [ecx - 8], 1
je 0x4081d9
mov edx, ebx
or edx, 3
call fcn.00404de8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4081eb
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040469c

Function at 0x40b400
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b439
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040478c
jmp 0x40b442
mov eax, ebx
mov edx, esi
call fcn.004046f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b44c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b46e
movzx eax, byte [esp]
jmp 0x40b470
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret