joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1273d27
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x1273dec
cmp esi, 0xa
jb 0x1273dec
shl eax, 2
mov dword [ebp - 0xc], eax
inc eax
push eax
call fcn.01280796
pop ecx
mov ebx, eax
push ebx
push esi
push dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.01273cb9
add esp, 0xc
test eax, eax
je 0x1273de3
push 0x12968c4
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.012809b4
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x1273d93
mov dword [ebp - 8], 0xfffffffe
jmp 0x1273dff
push dword [ebp - 4]
push dword [ebp - 0xc]
push 1
push ebx
call fcn.01280b69
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x1273db2
mov dword [ebp - 8], 0xfffffffe
jmp 0x1273df0
mov esi, dword [0x129312c]
call esi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov edi, edx
call esi
xor edx, edx
mov ecx, 0x3e8
div ecx
push dword [ebp - 4]
push edi
push 1
add edx, ebx
push edx
call fcn.01280b69
add esp, 0x10
jmp 0x1273df0
mov dword [ebp - 8], 0xfffffffd
jmp 0x1273df0
or dword [ebp - 8], 0xffffffff
cmp dword [ebp - 4], 0
je 0x1273dff
push dword [ebp - 4]
call fcn.01280c62
pop ecx
test ebx, ebx
je 0x1273e0a
push ebx
call fcn.01280860
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x127559e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x12755a9
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x127565b
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x1298720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x1298720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x1298720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x1298720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x1298720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x1298720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x1298720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x1298720]
inc ecx
sub edi, 8
dec esi
jne 0x12755c0
pop ebx
test edi, edi
je 0x1275674
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x1298720]
inc ecx
dec edi
jne 0x127565f
pop esi
not eax
pop edi
ret

Function at 0x1275679
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x1298720]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x1298720]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x41fe40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
jmp 0x41fe5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41fe61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41fe50
mov eax, 1
add ebx, ebx
jne 0x41fe73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41fe68
jne 0x41fe84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fe68
xor ecx, ecx
sub eax, 3
jb 0x41fe98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ff0a
mov ebp, eax
add ebx, ebx
jne 0x41fea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41feb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41fed4
inc ecx
add ebx, ebx
jne 0x41fec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41feb5
jne 0x41fed1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41feb5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41fef4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41fee5
jmp 0x41fe56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41fef4
add edi, ecx
jmp 0x41fe56
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ff12
cmp byte [edi], 9
jne 0x41ff12
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 0x41ff17
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41ff8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20a34]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20b14]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ff44
mov ecx, edi
jns 0x41ff73
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 + 0x20b1c]
or eax, eax
je 0x41ff89
mov dword [ebx], eax
add ebx, 4
jmp 0x41ff61
call dword [esi + 0x20b18]
mov ebp, dword [esi + 0x20b20]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x41ffc3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x7f31350c
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x2b33577
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x7c97224b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x2420ae9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
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
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x100c117
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1003800
call fcn.01007d0c
xor esi, esi
cmp dword [0x10107f0], esi
jne 0x100c15b
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100c146
mov dword [0x10107f0], edi
jmp 0x100c15b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100c15b
mov dword [0x10107f0], 2
mov eax, dword [0x10107f0]
cmp eax, 2
je 0x100c23c
cmp eax, esi
je 0x100c23c
cmp eax, 1
jne 0x100c1a0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x100c189
mov eax, dword [0x101070c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x100c1a7
xor eax, eax
jmp 0x100c24e
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.01007e70
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x100c1dd
cmp edi, esi
jne 0x100c1f8
lea eax, [ebx + ebx]
push eax
call fcn.010080ad
pop ecx
mov edi, eax
cmp edi, esi
je 0x100c1a0
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100c22b
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x100c215
push esi
push esi
jmp 0x100c21b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x100c237
push edi
call fcn.01007fe8
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x100c24e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.01007d47
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x21338cf
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, str._r_rz
nop
mov ebx, 0x42f3f8
mov ecx, 0xd4d3cca
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x6df860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2cd000]
push edi
or ebp, 0xffffffff
jmp 0x6df882
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6df889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6df878
mov eax, 1
add ebx, ebx
jne 0x6df89b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6df8ac
jne 0x6df8cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6df8cb
dec eax
add ebx, ebx
jne 0x6df8b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6df890
add ebx, ebx
jne 0x6df8c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6df91d
xor ecx, ecx
sub eax, 3
jb 0x6df8e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6df952
sar eax, 1
mov ebp, eax
jmp 0x6df8ee
add ebx, ebx
jne 0x6df8ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6df8bc
inc ecx
add ebx, ebx
jne 0x6df8fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6df8bc
add ebx, ebx
jne 0x6df909
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6df8fe
jne 0x6df91a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6df8fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6df93c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6df92e
jmp 0x6df87e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6df93c
add edi, ecx
jmp 0x6df87e
pop esi
mov edi, esi
mov ecx, 0x167d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6df95a
cmp byte [edi], 0xd
jne 0x6df95a
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 0x6df95f
lea edi, [esi + 0x2d0000]
mov eax, dword [edi]
or eax, eax
je 0x6df9ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x56e168]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x56e3e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6df98c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x56e3ec]
or eax, eax
je 0x6df9c8
mov dword [ebx], eax
add ebx, 4
jmp 0x6df9a9
call dword [esi + 0x56e3f4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6df9ff
cmp al, 0xef
ja 0x6df9f2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6df9d4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6df9e1
mov ebp, dword [esi + 0x56e3f0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x6dfa33
sub esp, 0xffffff80
jmp 0x42b60c
Function at 0x404a60
Capabilities:
Get common file path
Get disk information
Get memory capacity
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd48
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x48d368]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x48d36c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x24], 0x9e3779b9
mov dword [ebp - 0x20], edx
call fcn.00404a50
mov ecx, dword [0x48d370]
mov edx, dword [0x48d374]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404ad0
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x494b04]
shl esi, 4
add esi, dword [ebp - 0x28]
cmp eax, 0xfa9
jne 0x404afc
mov dword [0x494b00], 0xedeb2e40
jmp 0x404b17
cmp eax, 0x3eb
jne 0x404b17
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x494590], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x2c]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x494b04], 0x9e6
mov dword [0x494afc], 0xf4ea3dee
jne 0x404b50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommMask]
xor dword [ebp - 4], esi
cmp dword [0x494b04], 0x213
jne 0x404bc6
push 0
push 0
push 0
push 0
call ebx
lea eax, [ebp - 0xd48]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
lea ecx, [ebp - 0x548]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x494b04], 0xc
jne 0x404bda
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp - 8]
mov eax, edi
shr eax, 5
lea ecx, [edx + edi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0x20]
xor edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404ad0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0xcf11b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00cf1140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00cf1140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00cf1140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00cf1140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xcf1bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xcf1c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd0387c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xcf1c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xcf1c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x100015c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100015de
push 0
push 0
push 0
push 0x10001540
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0xaaccc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4c0000]
push edi
or ebp, 0xffffffff
jmp 0xaacce2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xaacce9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaaccd8
mov eax, 1
add ebx, ebx
jne 0xaaccfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xaacd0c
jne 0xaacd2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaacd2b
dec eax
add ebx, ebx
jne 0xaacd18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xaaccf0
add ebx, ebx
jne 0xaacd27
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xaacd7d
xor ecx, ecx
sub eax, 3
jb 0xaacd43
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xaacdb2
sar eax, 1
mov ebp, eax
jmp 0xaacd4e
add ebx, ebx
jne 0xaacd4e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaacd1c
inc ecx
add ebx, ebx
jne 0xaacd5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaacd1c
add ebx, ebx
jne 0xaacd69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xaacd5e
jne 0xaacd7a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xaacd5e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xaacd9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xaacd8e
jmp 0xaaccde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xaacd9c
add edi, ecx
jmp 0xaaccde
pop esi
mov edi, esi
mov ecx, 0x24e1a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xaacdba
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0xaacdbf
lea edi, [esi + 0x6a8000]
mov eax, dword [edi]
or eax, eax
je 0xaace27
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6b6244]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6b6368]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xaacde5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6b6370]
or eax, eax
je 0xaace21
mov dword [ebx], eax
add ebx, 4
jmp 0xaace02
call dword [esi + 0x6b636c]
mov ebp, dword [esi + 0x6b6374]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0xaace5b
sub esp, 0xffffff80
jmp 0x85f494
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402978
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 0x4029b5
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 0x4029d5
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404bac
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b3c
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.0040493c
test esi, esi
jne 0x402b72
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.00404a2c
jmp 0x402b90
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a50
mov edi, eax
test esi, esi
je 0x402b90
cmp dword [ebx], 0
je 0x402b90
dec esi
jmp 0x402b79
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4039bc
Capabilities:
Query or enumerate registry value

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

Function at 0x40473c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48f048], 0
je 0x40479d
cmp word [0x48f21c], 0xd7b2
jne 0x404765
cmp dword [0x48f224], 0
jbe 0x404765
mov eax, 0x48f218
call dword [0x48f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48c094
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 0x4047c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48c034], 0
jne 0x4047b9
push 0
push 0x48c08c
push 0x48c094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4048f0
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.00402764
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48f049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4048b8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc