joyce8/EMBER2024-capa huggingface dataset:
Function at 0x559170
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.00482804
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5591ae
cmp dword [ebp + 8], 0
je 0x55919c
lea eax, [ebp + 8]
push eax
call fcn.00481aee
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x5591ae
mov eax, 4
jmp 0x5592de
call fcn.00484541
movzx edx, al
test edx, edx
jne 0x5591dc
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5591cd
mov dword [ebp - 0xc], 4
jmp 0x5591d4
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x5592de
movzx eax, byte [ebp - 1]
test eax, eax
je 0x559285
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x5594c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.004839d9
lea ecx, [ebp - 8]
call fcn.004810bc
movzx edx, al
test edx, edx
jne 0x559247
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.00483911
mov eax, dword [ebp - 0x10]
jmp 0x5592de
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0048225f
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x559272
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.00483911
mov eax, dword [ebp - 0x14]
jmp 0x5592de
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.00483911
mov eax, dword [ebp - 0x18]
jmp 0x5592de
call fcn.0048310a
movzx ecx, al
test ecx, ecx
jne 0x5592be
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00480f04
add esp, 0x10
jmp 0x5592de
call fcn.00480edc
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0047f3cf
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x408150
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop edx
push esi
push edi
mov edi, dword [ebp + 0x14]
in eax, dx
ror byte [ebx - 9], 0x74
or ecx, dword [ebx + 0xc71045]
add byte [eax], al
add byte [eax], al
jmp 0x408122
mov eax, 0x93cc18cd
je 0x408133
jp 0x40810c
shr edx, 3
mov al, dl
test eax, 0xc82aebf6
sub cl, al
add cl, 0x30
mov byte [esi], al
mov ecx, edx
test edx, edx
jne 0x408122
mov ecx, edx
sbb byte [ebx], ch
ror byte [esi + 0x38], 1
mov ebp, dword [eax + 0x5f]
pop esi
pop ebx
pop ebp
fst qword [eax - 0x1374e470]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, 0xc0852d7d
test eax, eax
ja 0x408172
push cs
add eax, 0x77fffb83
add al, 0x69
leave
pop esi
and dword [edx - 0x40], ebp
jg 0x4081af
jl 0x40817e
outsb dx, byte [esi]
mov edi, edi
invalid
cmp eax, 0xffffffff
jl 0x408161
jg 0x40818d
cmp ebx, 0x800000ce
jb 0x4081a8
pop ss
daa
push ebx
sbb ebp, dword [ebp - 0x3d]
sbb al, 0x8b
push ebp
lahf
salc
push edi
push edx
push ecx
push ebx
call fcn.004056f0
add esp, 0x14
pop edi
pop ebx
pop ebp
ret
test ecx, ecx
arpl word [ebx], cx
mov ecx, dword [ebp + 0x14]
add byte [ecx], 0
add byte [eax], al
add dl, dl
mov edx, 0xd7fc06e
pop esp
cmp eax, dword [ebx]
fistp dword [edi + eax - 0x47]
add dword [eax], eax
add byte [eax], al
leave
add dh, byte [ebx]
cwde
mov edx, dword [ebp + 0x14]
test ecx, ecx
mov dword [edx], ecx
movsd dword es:[edi], dword [esi]
pop es
neg ebx
adc eax, 0
neg eax
push esi
push 0
push 0xa
push eax
cmp ebp, eax
stosb byte es:[edi], al
sub al, 0
mov ecx, eax
mov ecx, dword [edx + 0xabcc18a]
imul dl
sub bl, al
dec edi
add bl, 0x30
mov edi, eax
mov byte [edi], bl
mov ebx, ecx
or ecx, esi
jne 0x4081db
xchg edx, eax
sbb byte es:[ebx - 0x38d4e3b3], cl
pop esi
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebx
pop ebp
xor bh, ch
nop
nop
nop
nop
popal
mov eax, 0xcb90a090
nop
nop
nop
nop
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
imul edx, ecx, 0xb015ff51
rol dword [eax], 0x8b
jne 0x408241
mov edi, dword [ebx]
and dword [ebp + 8], edx
invalid
push eax
and ecx, 0xff
test byte [ecx], al
push ecx
int 0x5d
cld
call fcn.004080f0
dec eax
push ebp
or byte [edx - 5], dl
mov bh, 0
lea esi, cs:[edi + 0x50c9330c]
mov cl, byte [ecx - 0x17aefe96]
test cl, al
mov dh, 0xff
dec eax
lea edi, [edx + 8]
push edx
push eax
mov byte [eax], 0x2e
in al, dx
inc ebp
or al, 0x7a
mov dword [0xfe4d8a42], eax
xor eax, 0x6ae85101
invalid
Function at 0x40b080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov esi, dword [edi + 0x10]
mov edi, dword [eax + edx - 0x75]
dec esi
adc al, 0xb
rcr esi, 0x45
adc byte [eax], al
push ds
add byte [eax], al
jne 0x40b10d
and byte [ecx - 0x4b], bh
in eax, 0xc0
je 0x40b137
mov cl, byte [esi + 8]
add al, 0xc9
insb byte es:[edi], dx
or dword [ebx + 0x48895021], 0x50468b08
mov edx, dword [esi + 0x54]
mov ecx, 0xe40020
call fcn.0040b810
mov edx, dword [esi + 0xc]
mov dword [ecx + 0x2a468b0c], esi
mov eax, dword [esi + 0x2a]
mov esi, dword [eax + 0xc]
push ebx
lea ecx, [ebp + 0x10]
push eax
cwde
inc esi
invalid
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x55b12080
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
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, 0x64b532f0
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4bbe99
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3408
cmp edx, dword [eax]
je 0x4bbebb
add eax, 8
inc ecx
cmp eax, 0x4c3498
jl 0x4bbeac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3408]
jne 0x4bbfe9
mov eax, dword [0x4c8e30]
cmp eax, 1
je 0x4bbfc3
test eax, eax
jne 0x4bbeec
cmp dword [0x4c3330], 1
je 0x4bbfc3
cmp edx, 0xfc
je 0x4bbfe9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bbf23
lea eax, [ebp - 0x1a4]
push 0x4c1680
push eax
call fcn.004bc880
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bcd10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bbf66
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bcd10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c167c
push edi
call fcn.004bebe0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c1660
push eax
call fcn.004bc880
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc890
lea eax, [ebp - 0xa0]
push 0x4c165c
push eax
call fcn.004bc890
push dword [esi + 0x4c340c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc890
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c1634
push eax
call fcn.004beb54
add esp, 0x2c
pop edi
jmp 0x4bbfe9
lea eax, [ebp + 8]
lea esi, [esi + 0x4c340c]
push 0
push eax
push dword [esi]
call fcn.004bcd10
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 0x1e839ae
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf1e6d9bc
jmp 0x1e83a16
xchg dword [esp], esi
pushfd
mov dword [esp], edi
call fcn.01e839e2
inc ebp
aad 0x45
sub al, 0xdf
sbb al, 0xc4
ja 0x1e83a21
test eax, 0x8824248d
and al, 0x24
mov word [esp], si
push bp
jmp 0x1e83a30
add eax, 0xf96f43f4
imul ecx, dword [eax], reloc.KERNEL32.dll_RtlUnwind
xchg edx, eax
or eax, 0x7c89ef9c
and al, 0x4c
mov dword [esp + 0x4c], edi
lea esp, [esp + 0x4c]
pushfd
jmp 0x1e824a0

Function at 0x1e8b8c9
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xf]
push bp
mov byte [esp], dh
mov si, word [esp + 1]
mov esi, dword [esp]
push dx
jmp 0x1e8b885
xchg byte [esp + 2], al
jmp 0x1e8b89b

Function at 0x1e8e5ab
Capabilities:
Execute anti-debugging instructions

Disassembly:
adc bh, ah
xchg dword [esp], ebx
call fcn.01e8e4ea
mov ebx, dword [esp]
lea ebx, [esp + 0xd7]
mov bx, word [esp]
jmp 0x1e8e56a

Function at 0x1e8e95f
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dx, word [esp]
jmp 0x1e8e99e
pop word [esp]
bt edx, edx
jb 0x1e8e93c
mov dx, word [esp]
lea esp, [esp + 2]
jmp 0x1e8e988
add bl, cl
jo 0x1e8e9f0
lea edx, [ecx*4]
jmp 0x1e8e9c8
lea esp, [esp + 2]
jmp 0x1e8e988
lea edx, [ecx*4]
xchg dx, ax
lea edx, [edx - 0x5b]

Function at 0x1e8eae8
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [esp]
jg 0x1e8eb04
mov eax, ebp
mov al, cl
jmp 0x1e8ebf9
jmp 0x1e8eb1a
mov eax, ebp
mov al, cl
jmp 0x1e8ebf9
xchg edx, eax
jmp 0x1e8eb3e
add cl, dl
bsr edx, eax
jnp 0x1e8eb5e
xchg edx, eax
lea eax, [ecx + ebx]
mov dx, 0x8edd
jmp 0x1e8eb45
Function at 0x1e9dac9
Capabilities:
Encode data using xor

Disassembly:
push dx
lea esp, [esp + 2]
jmp 0x1e9db37
pushfd
mov eax, 0x6374fcf9
jmp 0x1e9dbe3
pushal
lea esp, [esp + 0x20]
sub dword [ebp - 0x10], ebx
jmp 0x1e9dc08
mov ecx, dword [ebp - 0x10]
jmp 0x1e9dc29
push cx
jmp 0x1e9dd00
movzx eax, dx
push bx
lea esp, [esp + 2]
jmp 0x1e9dc7d
jmp 0x1e9ddcc
call fcn.01e9ddb6
push eax
retf
add esp, 0xf
lea esp, [esp + 1]
jmp 0x1e9dae9
lea esp, [esp + 0x14]
cmp dword [ebp - 0x10], ebx
ja 0x1e6df57
jmp 0x1e9db54
pushal
xchg ah, bh
mov bp, di
mov dword [esp + 0x1c], esi
popal
jmp 0x1e9db79
jne 0x1e6df83
mov ah, al
mov eax, esi
call fcn.01e9daf8
shl eax, 0x10
jmp 0x1e9e186
sub esp, 0x14
add esp, 0x11
lea esp, [esp + 3]
jmp 0x1e9db63
lea esp, [esp + 0x40]
jbe 0x1e6dfb0
ja 0x1e9ddea
xor eax, 0xc000002
lea ebx, reloc.KERNEL32.dll_RtlUnwind
or al, 0x8d
sbb eax, 0x9e239764
push ds
mov ebx, gs
jecxz 0x1e9dbb1
test byte [ebx - 0x37d4ff3c], 0x3b
stc
add esp, 0
sub ecx, eax
cmp edi, ecx
pushal
jmp 0x1e9dba5
cmp word [ebp - 0xc], ax
jmp 0x1e9dd5f
lea eax, reloc.KERNEL32.dll_RtlUnwind
push eax
lea esp, [esp + 4]
lea esp, [esp + 4]
jmp 0x1e9dbcd
inc dword [ebp - 4]
jmp 0x1e9d710
mov edx, dword [esp]
btr dx, bx
mov edx, ebx
mov dh, bh
jmp 0x1e9dc50
mov dh, 0xc
mov dx, word [esp]
mov eax, edi
shl ecx, 0x10
jmp 0x1e9dc10
mov cx, 0xea31
mov cx, word [esp]
jmp 0x1e9dc72
shr eax, 0x10
mov edx, dword [esp]
add eax, ecx
xchg ch, dl
jmp 0x1e9dc36
div ecx
jmp 0x1e9dc93
xor edx, edx
neg cl
mov ch, cl
lea ecx, [ebx + 1]
jmp 0x1e9dc5c
imul esi, eax
jmp 0x1e9dce7
movzx edx, ax
jmp 0x1e9d73c
lea edi, [edi - 0x10]
movzx edx, word [edi]
pop edi
jmp 0x1e9d73c
cmp edi, ecx
push bx
lea esp, [esp + 2]
jmp 0x1e9dd16
sub ecx, esi
sub esp, 0
jmp 0x1e9dcba
imul eax, ebx
or ecx, reloc.KERNEL32.dll_RtlUnwind
sub edi, esi
jmp 0x1e9dcd0
lea esp, [esp + 2]
jmp 0x1e9dd37
jbe 0x1e9d726
call 0x1e9dcf4
shl ecx, 0x10
pushal
jmp 0x1e9dd3f
mov ecx, eax
cmc
call 0x1e9dd21
loop 0x1e9dd3c
invalid
invalid
push word [esp + 0x18]
lea esp, [esp + 2]
lea esp, [esp + 0x24]
or esi, reloc.KERNEL32.dll_RtlUnwind
call fcn.01e9ddb3
jns 0x1e9dd3b
jo 0x1e9dd72
loop 0x1e9ddb4
mov dword [reloc.KERNEL32.dll_RtlUnwind], eax
stc
invalid
jne 0x1e9d6f9
push edi
mov edi, ebp
jmp 0x1e9dcae
sub esi, ecx
cmp edi, esi
pushal
jmp 0x1e9dd8f
pop dword [esp]
sub edi, ecx
stc
pushfd
jmp 0x1e9dd6d
lea esp, [esp + 0x28]
jbe 0x1e9d77c
dec dword [ebp - 0x10]
jmp 0x1e9d77c
jmp 0x1e9dd86
mov ecx, dword [ebp - 0x10]
shr eax, 0x10
sub ecx, eax
jmp 0x1e9d7c7
dec dword [ebp - 0x10]
jmp 0x1e6dfb0
or ecx, reloc.KERNEL32.dll_RtlUnwind
sub edi, eax
pushal
mov word [esp + 4], si
jmp 0x1e9dbc3
Function at 0x4010cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4010f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 3
pop ebp
ret

Function at 0x40144a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
call fcn.0040a290
xor dl, dl
pop ecx
test eax, eax
jbe 0x401482
xor ecx, ecx
mov cl, byte [ecx + esi]
cmp cl, 0x30
jl 0x401498
cmp cl, 0x36
jle 0x401474
cmp cl, 0x41
jl 0x401498
cmp cl, 0x5a
jg 0x401498
inc dl
movzx ecx, dl
cmp ecx, eax
jb 0x401462
movsx eax, byte [esi + 1]
movsx ecx, byte [esi]
imul eax, eax, 0x1a
lea edi, [eax + ecx - 0x6db]
cmp edi, dword [ebp + 0xc]
jbe 0x40149f
xor eax, eax
jmp 0x401589
push ebx
add esi, 2
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0040158d
mov ebx, eax
add esp, 0xc
cmp edi, ebx
jae 0x4014ba
mov ebx, edi
mov edi, 0x100
cmp ebx, edi
jbe 0x4014c5
mov ebx, edi
push edi
call fcn.0040a40b
push edi
mov esi, eax
call fcn.0040a40b
and byte [esi], 0
pop ecx
pop ecx
mov edi, eax
push 1
mov byte [ebp + 0x13], 0x22
pop ecx
cmp ebx, ecx
mov byte [ebp + 0xf], cl
jbe 0x401519
movzx edx, byte [ebp + 0x13]
lea eax, [ecx + 0x37]
xor eax, edx
cdq
idiv ecx
mov byte [ebp - 1], dl
xor dl, byte [ebp + 0xf]
movzx eax, byte [ebp - 1]
add byte [ebp + 0x13], dl
mov dl, byte [eax + esi]
add eax, esi
mov byte [ecx + esi], dl
mov cl, byte [ebp + 0xf]
inc byte [ebp + 0xf]
mov byte [eax], cl
movzx ecx, byte [ebp + 0xf]
cmp ecx, ebx
jb 0x4014e8
and byte [ebp + 0xf], 0
test ebx, ebx
jbe 0x40153b
xor eax, eax
movzx ecx, byte [eax + esi]
mov edx, dword [ebp + 8]
inc byte [ebp + 0xf]
mov al, byte [eax + edx]
mov byte [ecx + edi], al
movzx eax, byte [ebp + 0xf]
cmp eax, ebx
jb 0x401523
xor dl, dl
mov cl, 0x22
test ebx, ebx
jbe 0x401556
xor eax, eax
xor byte [eax + edi], cl
add cl, byte [eax + edi]
add eax, edi
inc dl
movzx eax, dl
cmp eax, ebx
jb 0x401545
and byte [ebp + 0xf], 0
test ebx, ebx
jbe 0x401578
xor eax, eax
movzx ecx, byte [eax + esi]
mov edx, dword [ebp + 8]
inc byte [ebp + 0xf]
mov cl, byte [ecx + edi]
mov byte [eax + edx], cl
movzx eax, byte [ebp + 0xf]
cmp eax, ebx
jb 0x401560
push edi
call fcn.0040a400
push esi
call fcn.0040a400
pop ecx
mov eax, ebx
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4018e8
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
lea eax, [ebp - 4]
push esi
push eax
push 0x4103f8
xor ebx, ebx
push 1
push ebx
push 0x410408
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x4019d7
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call fcn.0040a310
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.0040a5a0
add esp, 0x10
cmp eax, ebx
je 0x401958
mov byte [eax], bl
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x40196d
cmp byte [eax], bl
je 0x40196d
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x401981
push dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x410418
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x4019ce
lea eax, [ebp - 0x314]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x314]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x402d80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x208
call fcn.0040a482
mov ebx, eax
xor esi, esi
cmp ebx, esi
pop ecx
je 0x402df7
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s__s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push 1
push esi
push esi
push ebx
push esi
mov dword [edi], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x28], esi
mov word [ebp - 0x22], si
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebx
mov dword [ebp + 0xc], eax
call fcn.0040a419
cmp dword [ebp + 0xc], esi
pop ecx
jne 0x402dfb
xor eax, eax
jmp 0x402e03
mov eax, dword [ebp - 0x10]
push 1
mov dword [edi], eax
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e2e
Capabilities:
Check for time delay via gettickcount
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, 0x414c24
push ebx
test eax, eax
je 0x402fd2
xor ebx, ebx
xor eax, eax
cmp dword [0x414c40], ebx
mov dword [ebp - 0xc], eax
jle 0x402fd2
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x412044]
je 0x402fbd
mov ecx, eax
shl ecx, 2
mov eax, dword [ecx + 0x414c24]
cmp eax, ebx
je 0x402fbd
cmp dword [eax], ebx
je 0x402fbd
test byte [eax + 0x1a], 1
je 0x402fbd
mov eax, dword [ecx + 0x414c0c]
mov esi, dword [eax + 4]
cmp esi, ebx
je 0x402fbd
cmp byte [esi], bl
je 0x402fbd
lea eax, [ebp - 0x1b4]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.0040a310
lea eax, [ebp - 0x1b4]
push esi
push eax
call fcn.0040a320
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1b4]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402fbd
mov eax, 0x168
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x1b4]
push ebx
push eax
call fcn.0040a540
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.UninstallString
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
je 0x402f35
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402fbd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1b4]
push ebx
push eax
call section..text
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x402fbd
push eax
call fcn.00401229
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1b4]
push 0x412148
push eax
call fcn.00402d80
add esp, 0x10
test eax, eax
je 0x402fbd
lea eax, [ebp - 8]
push eax
call fcn.00402e08
test eax, eax
pop ecx
je 0x402f8f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x402f71
call edi
mov esi, eax
call edi
sub eax, esi
cmp eax, 0xbb8
jae 0x402fbd
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4c]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
lea eax, [ebp - 0x1b4]
push eax
call fcn.0040a781
test eax, eax
pop ecx
jne 0x402f93
mov eax, dword [ebp - 0xc]
inc eax
cmp eax, dword [0x414c40]
mov dword [ebp - 0xc], eax
jl 0x402e60
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403453
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0xa
push str.AllUsers
push edi
xor esi, esi
call fcn.0040a7b0
add esp, 0xc
test eax, eax
jne 0x403494
cmp dword [0x414ca0], eax
je 0x403483
push 1
pop esi
add edi, 0xa
cmp byte [edi], 0x5c
jne 0x40348c
inc edi
test esi, esi
je 0x403494
push 0x17
jmp 0x403496
push 2
pop ebx
push str.Start_Menu
push edi
call fcn.0040a860
pop ecx
test eax, eax
pop ecx
jne 0x4034b4
neg esi
sbb esi, esi
and esi, 0xb
add esi, 0xb
jmp 0x4034cf
push str.Startup
push edi
call fcn.0040a860
pop ecx
test eax, eax
pop ecx
jne 0x4034d3
neg esi
sbb esi, esi
and esi, 0x11
add esi, 7
mov ebx, esi
xor edi, edi
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test edi, edi
je 0x403515
cmp byte [edi], 0
je 0x403515
lea eax, [ebp - 0x104]
push eax
call fcn.004084fd
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.0040a320
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call fcn.00408524
lea eax, [ebp - 0x104]
push eax
call fcn.0040a6fb
pop ecx
test eax, eax
pop ecx
je 0x403562
lea eax, [ebp - 0x104]
push eax
call fcn.004084fd
lea eax, [ebp - 0x104]
push eax
call fcn.0040871b
lea eax, [ebp - 0x104]
push eax
call fcn.0040a6fb
add esp, 0xc
test eax, eax
jne 0x4035e8
lea eax, [ebp - 0x104]
push eax
call fcn.004084fd
lea eax, [ebp - 0x104]
push eax
call fcn.0040a290
push dword [ebp + 0x10]
mov esi, eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040a320
lea eax, [ebp - 0x104]
push str..lnk
push eax
call fcn.0040a320
push dword [ebp + 0x18]
lea eax, [ebp - 0x104]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.004018e8
add esp, 0x28
cmp dword [ebp + 0x1c], 0xffffffff
je 0x4035e8
test esi, esi
je 0x4035c6
and byte [ebp + esi - 0x105], 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x1c]
call fcn.00403417
lea eax, [ebp + esi - 0x104]
push eax
push dword [ebp + 0x1c]
call fcn.00403417
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret