joyce8/EMBER2024-capa huggingface dataset:
Function at 0x353440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x24
mov eax, dword [ecx + 4]
push ebx
push esi
mov dword [esp + 0x14], edx
lea esi, [ecx + 4]
mov edx, dword [ecx]
add esi, 4
xor eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
push edi
movd xmm0, edx
mov edi, eax
pshufd xmm0, xmm0, 0
movdqa xmmword [esp + 0x20], xmm0
test al, 3
je 0x353480
and edi, 0xfffffffc
add edi, 4
mov eax, dword [0x35e0bc]
test eax, eax
jne 0x3534a4
mov ecx, 0xf05fc174
call fcn.00354190
mov edx, 0x93231e3
mov ecx, eax
call fcn.003540f0
mov dword [0x35e0bc], eax
call eax
mov ebx, eax
mov eax, dword [0x35dddc]
test eax, eax
jne 0x3534cc
mov ecx, 0xf05fc174
call fcn.00354190
mov edx, 0xe96e8f4f
mov ecx, eax
call fcn.003540f0
mov dword [0x35dddc], eax
push edi
push 8
push ebx
call eax
mov dword [esp + 0xc], eax
test eax, eax
je 0x353582
shr edi, 2
xor edx, edx
lea ecx, [esi + edi*4]
mov edi, eax
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
mov ecx, eax
cmova ebx, edx
test ebx, ebx
je 0x353572
cmp ebx, 8
jb 0x353557
lea eax, [esi - 4]
lea eax, [eax + ebx*4]
cmp ecx, eax
ja 0x353516
lea eax, [ecx - 4]
lea eax, [eax + ebx*4]
cmp eax, esi
jae 0x353557
movdqa xmm1, xmmword [esp + 0x20]
mov eax, ebx
and eax, 7
mov dword [esp + 0xc], ebx
sub dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
lea ecx, [ecx]
movdqu xmm0, xmmword [esi]
add edx, 8
pxor xmm0, xmm1
movdqu xmmword [edi], xmm0
movdqu xmm0, xmmword [esi + 0x10]
add esi, 0x20
pxor xmm0, xmm1
movdqu xmmword [edi + 0x10], xmm0
add edi, 0x20
cmp edx, eax
jb 0x353530
cmp edx, ebx
jae 0x353572
sub edi, esi
lea ecx, [ecx]
mov eax, dword [esi]
lea esi, [esi + 4]
xor eax, dword [esp + 0x14]
inc edx
mov dword [edi + esi - 4], eax
cmp edx, ebx
jb 0x353560
mov edx, dword [esp + 0x18]
test edx, edx
je 0x353580
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3535f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push esi
lea esi, [ecx + 4]
mov dword [esp + 8], edx
lea ebx, [eax + 1]
mov dword [esp + 0x10], eax
add esi, 4
push edi
test bl, 3
je 0x353619
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x35e0bc]
test eax, eax
jne 0x35363d
mov ecx, 0xf05fc174
call fcn.00354190
mov edx, 0x93231e3
mov ecx, eax
call fcn.003540f0
mov dword [0x35e0bc], eax
call eax
mov edi, eax
mov eax, dword [0x35dddc]
test eax, eax
jne 0x353665
mov ecx, 0xf05fc174
call fcn.00354190
mov edx, 0xe96e8f4f
mov ecx, eax
call fcn.003540f0
mov dword [0x35dddc], eax
lea ecx, [ebx + ebx]
push ecx
push 8
push edi
call eax
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x3536e5
shr ebx, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, edi
lea ecx, [esi + ebx*4]
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
cmova ebx, eax
test ebx, ebx
je 0x3536da
mov edi, dword [esp + 0x10]
lea esp, [esp]
mov ecx, dword [esi]
lea edx, [edx + 8]
xor ecx, edi
lea esi, [esi + 4]
movzx eax, cl
inc ebp
mov word [edx - 8], ax
mov eax, ecx
shr eax, 8
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
mov word [edx - 4], ax
shr ecx, 8
movzx eax, cl
mov word [edx - 2], ax
cmp ebp, ebx
jb 0x3536a0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
xor ecx, ecx
pop ebp
mov word [edi + eax*2], cx
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x3536f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push ebp
push esi
lea esi, [ecx + 4]
mov dword [esp + 0xc], edx
lea ebx, [eax + 1]
mov dword [esp + 0x14], eax
add esi, 4
push edi
test bl, 3
je 0x35371a
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x35e0bc]
test eax, eax
jne 0x35373e
mov ecx, 0xf05fc174
call fcn.00354190
mov edx, 0x93231e3
mov ecx, eax
call fcn.003540f0
mov dword [0x35e0bc], eax
call eax
mov edi, eax
mov eax, dword [0x35dddc]
test eax, eax
jne 0x353766
mov ecx, 0xf05fc174
call fcn.00354190
mov edx, 0xe96e8f4f
mov ecx, eax
call fcn.003540f0
mov dword [0x35dddc], eax
push ebx
push 8
push edi
call eax
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x3537d2
shr ebx, 2
xor eax, eax
xor edi, edi
mov ecx, ebp
lea edx, [esi + ebx*4]
mov ebx, edx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, edx
cmova ebx, eax
test ebx, ebx
je 0x3537ca
mov ebp, dword [esp + 0x10]
lea esp, [esp]
mov edx, dword [esi]
lea ecx, [ecx + 4]
xor edx, ebp
lea esi, [esi + 4]
mov byte [ecx - 4], dl
mov eax, edx
shr eax, 8
inc edi
shr edx, 0x10
mov byte [ecx - 3], al
mov byte [ecx - 2], dl
shr edx, 8
mov byte [ecx - 1], dl
cmp edi, ebx
jb 0x3537a0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov byte [eax + ebp], 0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x353ce0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov dword [esp + 4], 0x3d42
shr dword [esp + 4], 4
imul eax, dword [esp + 4], 0x5d
push ebx
mov ebx, ecx
mov dword [esp + 8], eax
imul eax, dword [esp + 8], 0x57
mov dword [esp + 8], eax
xor dword [esp + 8], 0x4ecad597
or dword [esp + 8], 0x3c04465
mov eax, dword [esp + 8]
shl eax, 6
mov dword [esp + 8], eax
shr dword [esp + 8], 7
add dword [esp + 8], 0xffff768f
xor dword [esp + 8], 0x1f8ad06
mov dword [esp + 4], 0x727d
imul eax, dword [esp + 4], 0x6d
mov dword [esp + 4], eax
mov eax, 0x6c16c16d
shl dword [esp + 4], 0xf
xor dword [esp + 4], 0xf3d1e7b4
mov ecx, dword [esp + 4]
mul ecx
mov eax, 0xf0f0f0f1
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 5
mov dword [esp + 4], ecx
shr dword [esp + 4], 1
add dword [esp + 4], 0xb65
mov ecx, dword [esp + 4]
mul ecx
shr edx, 5
mov dword [esp + 4], edx
xor dword [esp + 4], 0xe6a8e
mov dword [esp + 4], 0x5917
add dword [esp + 4], 0xac1f
shr dword [esp + 4], 3
shl dword [esp + 4], 0xa
xor dword [esp + 4], 0xbfc66964
xor dword [esp + 4], 0x8e435246
shl dword [esp + 4], 0xc
imul eax, dword [esp + 4], 0x35
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
mov ecx, eax
shl ecx, 5
add ecx, eax
mov dword [esp + 4], ecx
xor dword [esp + 4], 0xd874a010
cmp byte [ebx], 0
je 0x353ed7
push esi
push edi
jmp 0x353df0
mov edi, dword [esp + 0x10]
lea ebx, [ebx + 1]
mov dword [esp + 0xc], 0x727d
imul eax, dword [esp + 0xc], 0x6d
mov dword [esp + 0xc], eax
mov eax, 0x6c16c16d
shl dword [esp + 0xc], 0xf
xor dword [esp + 0xc], 0xf3d1e7b4
mov ecx, dword [esp + 0xc]
mul ecx
mov eax, 0xf0f0f0f1
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 5
mov dword [esp + 0xc], ecx
shr dword [esp + 0xc], 1
add dword [esp + 0xc], 0xb65
mov ecx, dword [esp + 0xc]
mul ecx
shr edx, 5
mov dword [esp + 0xc], edx
xor dword [esp + 0xc], 0xe6a8e
movzx ecx, byte [esp + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], 0x5917
add dword [esp + 0xc], 0xac1f
shr dword [esp + 0xc], 3
shl dword [esp + 0xc], 0xa
xor dword [esp + 0xc], 0xbfc66964
xor dword [esp + 0xc], 0x8e435246
shl dword [esp + 0xc], 0xc
imul eax, dword [esp + 0xc], 0x35
shl esi, cl
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, eax
shl ecx, 5
add ecx, eax
mov dword [esp + 0xc], ecx
xor dword [esp + 0xc], 0xd874a010
movzx ecx, byte [esp + 0xc]
mov edx, dword [esp + 0x10]
movsx eax, byte [ebx - 1]
mov dword [esp + 0x10], eax
add dword [esp + 0x10], esi
shl edx, cl
add dword [esp + 0x10], edx
sub dword [esp + 0x10], edi
cmp byte [ebx], 0
jne 0x353df0
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebx
add esp, 8
ret
Function at 0x3540f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
add eax, 0x78
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax]
mov eax, dword [edi + ebx + 0x1c]
add edi, ebx
add eax, ebx
mov dword [esp + 0x18], eax
mov ebp, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add ebp, ebx
add eax, ebx
mov dword [esp + 0x14], eax
cmp dword [edi + 0x18], esi
jbe 0x35414c
lea esp, [esp]
mov ecx, dword [ebp + esi*4]
add ecx, ebx
call fcn.00353ce0
xor eax, 0x4d07de46
cmp eax, dword [esp + 0x10]
je 0x354156
inc esi
cmp esi, dword [edi + 0x18]
jb 0x354130
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + esi*2]
mov ecx, dword [ecx + eax*4]
add ecx, ebx
cmp ecx, edi
jb 0x354184
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
add eax, edi
cmp ecx, eax
jae 0x354184
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
jmp 0x354400
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x10
ret
sub esp, 0x104
lea edx, [esp]
push esi
mov esi, ecx
push edi
mov al, byte [esi]
test al, al
je 0x354426
cmp al, 0x2e
je 0x354423
inc esi
mov byte [edx], al
inc edx
mov al, byte [esi]
test al, al
jne 0x354413
jmp 0x354426
mov byte [edx], 0
mov eax, dword [0x35dc34]
test eax, eax
jne 0x35444a
mov ecx, 0xf05fc174
call fcn.00354190
mov edx, 0xba3f6171
mov ecx, eax
call fcn.003540f0
mov dword [0x35dc34], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x354491
mov eax, dword [0x35dd68]
test eax, eax
jne 0x35447b
mov ecx, 0xf05fc174
call fcn.00354190
mov edx, 0x922c65aa
mov ecx, eax
call fcn.003540f0
mov dword [0x35dd68], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x354491
pop edi
pop esi
add esp, 0x104
ret
lea ecx, [esi + 1]
call fcn.00353ce0
xor eax, 0x4d07de46
mov ecx, edi
mov edx, eax
call fcn.003540f0
pop edi
pop esi
add esp, 0x104
ret
Function at 0x3546c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
mov dword [esp + 0x10], ebp
push edi
cmp edx, 0x40
jb 0x35485e
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x35485e
mov edi, dword [ebp + 0x3c]
add edi, ebp
mov dword [esp + 0x18], edi
cmp dword [edi], 0x4550
jne 0x35485e
mov eax, 0x10b
cmp word [edi + 0x18], ax
jne 0x35485e
mov eax, dword [0x35db70]
test eax, eax
jne 0x35472b
mov ecx, 0xf05fc174
call fcn.00354190
mov edx, 0x74d6780c
mov ecx, eax
call fcn.003540f0
mov dword [0x35db70], eax
push ebx
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
call eax
mov ebx, eax
test ebx, ebx
je 0x354855
movzx ecx, word [edi + 0x14]
push esi
lea esi, [edi + 0x18]
add esi, ecx
movzx ecx, word [edi + 6]
mov dword [esp + 0x18], esi
lea ecx, [ecx + ecx*4]
lea eax, [esi + ecx*8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [str.__w]
test eax, eax
jne 0x35478b
mov ecx, 0xad0f0712
call fcn.00354190
mov edx, 0x70ba0131
mov ecx, eax
call fcn.003540f0
mov dword [str.__w], eax
push dword [esp + 0x10]
push ebp
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp esi, ecx
jae 0x35480e
sub ecx, dword [esp + 0x18]
mov eax, 0xcccccccd
dec ecx
add esi, 0x10
mul ecx
mov ecx, edx
shr ecx, 5
inc ecx
mov edi, ecx
mov ebp, dword [esi]
cmp dword [esi - 8], ebp
mov eax, dword [esi + 4]
cmovb ebp, dword [esi - 8]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi - 4]
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [str.__w]
test eax, eax
jne 0x3547f6
mov ecx, 0xad0f0712
call fcn.00354190
mov edx, 0x70ba0131
mov ecx, eax
call fcn.003540f0
mov dword [str.__w], eax
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call eax
add esp, 0xc
add esi, 0x28
dec edi
jne 0x3547b5
mov edi, dword [esp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.00354990
mov edx, edi
mov ecx, ebx
call fcn.003548a0
pop esi
test eax, eax
jne 0x354855
mov eax, dword [0x35dcc0]
test eax, eax
jne 0x354849
mov ecx, 0xf05fc174
call fcn.00354190
mov edx, 0xb7f50111
mov ecx, eax
call fcn.003540f0
mov dword [0x35dcc0], eax
push 0x8000
push 0
push ebx
call eax
xor ebx, ebx
mov eax, ebx
pop ebx
pop edi
pop ebp
add esp, 0x14
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
Function at 0x100012a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x100012ae
pop ebp
ret 0xc
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.100012c0
Function at 0x10002cc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
nop
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x10002d4f
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.10007c30
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x10002d1f
sub eax, esi
jmp 0x10002d21
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x10002d10
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x10002d40
sub eax, esi
jmp 0x10002d42
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x10002d31
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x10002e01
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x10002d7c
xor eax, eax
jmp 0x10002dc5
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x10002d99
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.10001010
jmp 0x10002da9
cmp eax, 2
jne 0x10002daf
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.100012a0
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x30], eax
push ecx
push dword [ebx]
push dword [ebp - 8]
call fcn.10007c30
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x10002ded
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x10002e01
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x10002cd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4010ff
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f8
push ebx
lea eax, [ebp - 0x5f8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40125d
lea eax, [ebp - 0x10c]
push eax
push ebx
push 0x402080
lea eax, [ebp - 0x5f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40125d
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
cmp byte [ebp - 0x10c], bl
je 0x40116b
inc eax
cmp byte [ebp + eax - 0x10c], bl
jne 0x401161
push ebx
push 0x80
push 2
lea eax, [ebp + eax - 0x10c]
push ebx
push ebx
mov byte [eax - 1], 0x6c
mov byte [eax - 2], 0x72
mov byte [eax - 3], 0x75
mov byte [eax - 4], 0x2e
push 0x40000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40125d
push esi
push edi
push 6
pop ecx
mov esi, str._InternetShortcut__r_nURL
lea edi, [ebp - 0x4f4]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0xf3
lea edi, [ebp - 0x4db]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
cmp byte [ebp - 0x4f4], bl
je 0x4011e3
inc eax
cmp byte [ebp + eax - 0x4f4], bl
jne 0x4011d9
mov edx, dword [ebp + 8]
jmp 0x4011f1
mov byte [ebp + eax - 0x4f4], cl
inc eax
inc edx
mov cl, byte [edx]
cmp cl, bl
jne 0x4011e8
mov byte [ebp + eax - 0x4f4], 0xd
inc eax
push ebx
mov byte [ebp + eax - 0x4f4], 0xa
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
lea eax, [ebp - 0x4f4]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x40125b
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 5
push ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
push str.open
push ebx
call esi
cmp eax, 0x20
ja 0x40125b
push 5
push ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40129c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
test edx, edx
je 0x401325
push esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push edi
xor eax, eax
push 0xe
pop ecx
mov dword [ebp - 0x3c], 0x3c
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [edx]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x20], 5
call esi
test eax, eax
jne 0x401309
cmp dword [ebp - 0x1c], 0x1f
je 0x4012fb
cmp dword [ebp - 0x1c], 0x1b
jne 0x401309
and dword [ebp - 0x30], 0
and byte [ebp - 0x37], 0xfb
lea eax, [ebp - 0x3c]
push eax
call esi
cmp dword [ebp - 4], 0
pop edi
pop esi
je 0x401325
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret
Function at 0x401446
Capabilities:
Accept command line arguments
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
call fcn.004010a4
cmp byte [eax], 0x22
sete cl
inc eax
lea ecx, [ecx + ecx + 0x20]
push ecx
call fcn.00401094
inc eax
call fcn.004010a4
mov esi, eax
push 0x5d
mov edx, esi
call fcn.0040107d
mov edi, eax
lea eax, [edi - 1]
push eax
lea ecx, [esi + 1]
lea eax, [ebp - 0x24]
call fcn.004010cf
lea edi, [esi + edi + 1]
push 0x5d
mov edx, edi
call fcn.0040107d
mov ebx, eax
lea eax, [ebx - 1]
push eax
lea ecx, [edi + 1]
lea eax, [ebp + 0x12]
call fcn.004010cf
push 0xa
push 0xffffffffffffffff
lea esi, [ebp + 0x12]
call fcn.0040101f
mov dword [ebp - 8], eax
add esp, 0x1c
lea eax, [ebx + edi + 1]
call fcn.004010a4
mov ecx, eax
mov dword [ebp + 0x10], ecx
call fcn.00401260
test al, al
je 0x4014e5
push dword [ebp + 0x10]
call fcn.004010ff
pop ecx
jmp 0x4015f0
mov edi, 0x104
push edi
lea eax, [ebp - 0x178]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
mov ecx, str.autorun.inf
lea eax, [ebp - 0x175]
call fcn.004010cf
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop ecx
lea eax, [ebp - 0x178]
push eax
push edi
lea eax, [ebp - 0x4c]
push eax
push 0x40209c
push str.ProductCode
mov ebx, str.Installed
push ebx
call esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x178]
push eax
push edi
lea eax, [ebp - 0x74]
push eax
push 0x40209c
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
cmp dword [ebp - 4], 1
jbe 0x40156b
lea eax, [ebp - 0x4c]
push eax
call sub.msi.dll_MsiRecordGetInteger
cmp eax, 5
jne 0x40156b
mov bl, 1
jmp 0x40156d
xor bl, bl
push edi
lea esi, [ebp - 0x18]
call fcn.00401327
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0x10]
call fcn.0040139d
mov esi, dword [ebp - 8]
cmp esi, 2
pop ecx
je 0x401590
cmp esi, 4
jne 0x4015d7
test bl, bl
je 0x4015ca
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp + 0x10], edi
call sub.msi.dll_MsiAdvertiseScriptA
cmp eax, 3
je 0x4015b9
cmp eax, 4
jne 0x4015ce
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
jmp 0x4015ce
and dword [ebp - 0x14], 0
cmp esi, 4
jne 0x4015d7
test bl, bl
je 0x4015e8
cmp esi, 1
jne 0x4015e0
test bl, bl
jne 0x4015e8
lea edx, [ebp - 0x18]
call fcn.0040129c
lea esi, [ebp - 0x18]
call fcn.004015f9
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x101995c5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x102c90d8]
jne 0x101995cf
repz ret
jmp fcn.1019b64d

Function at 0x1019c9bf
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.101996cc
and dword [ebp - 4], 0
cmp dword [0x102cab78], 0
mov ebx, eax
jne 0x1019ca70
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1019cb21
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1019cb21
push eax
call fcn.1019965a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x102cab78], eax
call esi
push eax
call fcn.1019965a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x102cab7c], eax
call esi
push eax
call fcn.1019965a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x102cab80], eax
call esi
push eax
call fcn.1019965a
pop ecx
mov dword [0x102cab88], eax
test eax, eax
je 0x1019ca70
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1019965a
pop ecx
mov dword [0x102cab84], eax
mov eax, dword [0x102cab84]
cmp eax, ebx
je 0x1019cac8
cmp dword [0x102cab88], ebx
je 0x1019cac8
push eax
call fcn.101996d5
push dword [0x102cab88]
mov esi, eax
call fcn.101996d5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1019cac8
test edi, edi
je 0x1019cac8
call esi
test eax, eax
je 0x1019cabf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1019cabf
test byte [ebp - 0xc], 1
jne 0x1019cac8
or dword [ebp + 0x10], 0x200000
jmp 0x1019cb01
mov eax, dword [0x102cab7c]
cmp eax, ebx
je 0x1019cb01
push eax
call fcn.101996d5
pop ecx
test eax, eax
je 0x1019cb01
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1019cb01
mov eax, dword [0x102cab80]
cmp eax, ebx
je 0x1019cb01
push eax
call fcn.101996d5
pop ecx
test eax, eax
je 0x1019cb01
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102cab78]
call fcn.101996d5
pop ecx
test eax, eax
je 0x1019cb21
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1019cb23
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret