joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457e00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0x1095750]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x457f7a
sub esp, 0x10
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x457f70
mov edx, dword [esp + 0x14]
movzx ebx, byte [edx]
test ebx, ebx
jne 0x457e5a
movzx ebp, byte [esp + 0x28]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x457e5a
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
add esp, 0x10
ret
test ebx, 0x80
je 0x457e6d
xor eax, eax
xor ebx, ebx
xor ebp, ebp
jmp 0x457f47
mov eax, 1
mov ebp, ebx
and ebx, 1
neg ebx
shr ebp, 1
xor ebx, ebp
mov ebp, dword [esp + 0x24]
add dword [ebp], ebx
cmp ecx, eax
jb 0x457f3b
sub ecx, eax
mov ebx, dword [esp + 0x1c]
sub ebx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
lea ebx, [edx + eax]
test ecx, ecx
jbe 0x457f32
movzx edx, byte [edx + eax]
test edx, 0x80
je 0x457ec0
mov dword [esp + 0xc], ecx
xor eax, eax
xor edx, edx
xor esi, esi
jmp 0x457f03
mov eax, 1
cmp eax, ecx
ja 0x457ef7
mov esi, dword [esp + 0x20]
add dword [esi], edx
sub ebp, eax
sub ecx, eax
mov edx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
add eax, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], 1
add esp, 0x10
ret
call fcn.0046d180
lea esi, [ecx + 7]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jae 0x457f2d
movzx edi, byte [eax + ebx]
xchg edi, eax
mov byte [esp + 0xb], al
xchg edi, eax
and edi, 0x7f
mov ecx, esi
shl edi, cl
inc eax
or edx, edi
movzx edi, byte [esp + 0xb]
xchg edi, eax
test al, 0x80
xchg edi, eax
jne 0x457efc
mov ecx, dword [esp + 0xc]
jmp 0x457ec5
call fcn.0046d120
xor eax, eax
mov ecx, eax
call fcn.0046d110
call fcn.0046d180
lea ebp, [ecx + 7]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jbe 0x457f6b
movzx esi, byte [eax + edx]
mov edi, esi
and esi, 0x7f
mov ecx, ebp
shl esi, cl
inc eax
or ebx, esi
xchg edi, eax
test al, 0x80
xchg edi, eax
jne 0x457f40
mov ecx, dword [esp + 0x18]
jmp 0x457e72
call fcn.0046d120
xor eax, eax
mov ecx, eax
call fcn.0046d110
nop
call fcn.0046bc90
jmp fcn.00457e00
Function at 0x45d2c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x1095750]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x45d4ad
sub esp, 0x68
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
mov word [esp + 8], 0x102
call fcn.0045b6b0
mov eax, dword [esp + 0x74]
test byte [eax], al
mov ecx, eax
mov eax, 0xaaaaaaab
mov edx, dword [esp + 0x70]
mov ebx, edx
mul edx
shr edx, 1
lea eax, [edx + edx*2]
sub ebx, eax
lea eax, [ecx + ebx*4 + 0xe0]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x64], ebx
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x44], ebp
mov esi, dword [esp + 0x14]
mov dword [esp + 0x40], esi
mov dword [esp], eax
call fcn.00402cc0
mov eax, dword [esp + 4]
test eax, eax
je 0x45d34e
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x40]
jmp 0x45d3d6
mov eax, dword [esp + 0x74]
lea ecx, [eax + 0xe0]
mov dword [esp], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
call fcn.0045e260
movzx eax, byte [esp + 8]
test al, al
jne 0x45d37f
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x40]
jmp 0x45d3d6
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 0x54]
movzx ebx, byte [eax + 0x6e]
mov ebp, dword [esp + 0x64]
mov dword [esp], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov byte [esp + 0x1c], 4
mov byte [esp + 0x1d], bl
call fcn.0045df70
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x60], ebx
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x70]
mov ecx, eax
and eax, 1
mov edx, dword [esp + 0x74]
lea eax, [edx + eax*8 + 0xec]
mov edi, dword [eax]
mov esi, dword [eax + 4]
add edi, 1
mov dword [esp + 0x3c], edi
mov dword [eax], edi
adc esi, 0
mov dword [eax + 4], esi
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
mov esi, dword [esp + 0x78]
mov dword [esp], esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
call fcn.0045dd00
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
lea edi, [esp + 0x48]
mov edx, eax
xor eax, eax
call fcn.0046d34a
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x50]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 0x15
lea eax, [esp + 0x48]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 3
call fcn.0045b8d0
add esp, 0x68
ret
call fcn.0046bc90
jmp fcn.0045d2c0
Function at 0x4611e0
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword [0x1095750]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x46127b
sub esp, 0x30
lea ecx, [esp + 0x34]
mov dword [esp + 4], ecx
mov edx, dword [0x1095750]
mov edx, dword fs:[edx]
mov edx, dword [edx]
mov dword [esp + 8], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.0046d347
lea ecx, [0x461290]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
lea ecx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call fcn.0046bba0
mov ecx, dword [esp + 8]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.0046bc90
jmp fcn.004611e0
Function at 0x46cf40
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x1095c80]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x46b6cb
je 0x46b71e
cmp ebx, 0x20
jbe 0x46b724
cmp ebx, 0x40
jbe 0x46b76a
jmp 0x46b80b
test ebx, ebx
je 0x46b714
add eax, 0x10
test ax, 0xff0
je 0x46b700
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0xdbe180]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0xdbe280]
jmp 0x46b6e8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x46b6e8
pxor xmm1, xmmword [0x1095c90]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x1095c90]
pxor xmm2, xmmword [0x1095ca0]
pxor xmm3, xmmword [0x1095cb0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x1095c90]
pxor xmm2, xmmword [0x1095ca0]
pxor xmm3, xmmword [0x1095cb0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x46b86a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x109560c], 0
je 0x46cf5a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x46b690
jmp fcn.004098b0
Function at 0x7f75d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x1095750]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x7f77fc
sub esp, 0x18
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.007f79b0
movzx eax, byte [esp + 5]
test al, al
je 0x7f7704
movzx eax, byte [esp + 4]
cmp al, 0x22
je 0x7f76d0
cmp al, 0x27
je 0x7f76d0
mov ecx, dword [esp + 0x1c]
movzx edx, byte [ecx]
test dl, dl
jne 0x7f7666
nop
cmp al, 0xa
jne 0x7f762b
dec dword [ecx + 0x7c]
movzx eax, al
mov dword [ecx + 0x6c], eax
mov eax, dword [ecx + 0x88]
mov edx, dword [ecx + 0x8c]
add eax, 0xffffffff
mov dword [ecx + 0x88], eax
adc edx, 0xffffffff
mov dword [ecx + 0x8c], edx
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x3c], 0
mov byte [ecx + 0x40], 0
jmp 0x7f7733
lea eax, [0x88e1c0]
mov dword [esp], eax
call fcn.0040d4a0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2e
lea ecx, [0x8fa6d5]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x7c]
mov dword [eax + 8], edx
lea edx, [0xdbbb30]
mov dword [ecx + 0x74], edx
mov edx, dword [0x1095848]
test edx, edx
je 0x7f76b1
call fcn.0046d0a0
mov dword [edi], eax
mov edx, dword [ecx + 0x78]
mov dword [edi + 4], edx
mov dword [ecx + 0x78], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov dword [esp], ecx
movzx eax, al
mov dword [esp + 4], eax
mov byte [esp + 8], 0
call fcn.007f7aa0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
add esp, 0x18
ret
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
add esp, 0x18
ret
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0x30]
mov dword [esp], ecx
call fcn.00481060
mov ecx, dword [esp + 0x1c]
mov dword [esp], ecx
call fcn.007f79b0
movzx eax, byte [esp + 5]
test al, al
je 0x7f77da
movzx edx, byte [esp + 4]
lea ebx, [edx - 0x61]
cmp bl, 0x19
jbe 0x7f7720
lea ebx, [edx - 0x41]
cmp bl, 0x19
jbe 0x7f7720
lea ebx, [edx - 0x30]
cmp bl, 9
jbe 0x7f7720
cmp dl, 0x5f
je 0x7f7720
cmp dl, 0x3a
je 0x7f7720
cmp dl, 0x2d
je 0x7f7720
nop
cmp dl, 0xa
jne 0x7f7783
mov ebx, dword [esp + 0x1c]
dec dword [ebx + 0x7c]
jmp 0x7f7787
mov ebx, dword [esp + 0x1c]
movzx edx, dl
mov dword [ebx + 0x6c], edx
mov edx, dword [ebx + 0x88]
mov ebp, dword [ebx + 0x8c]
add edx, 0xffffffff
mov dword [ebx + 0x88], edx
adc ebp, 0xffffffff
mov dword [ebx + 0x8c], ebp
mov ecx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x3c]
cmp ecx, eax
jb 0x7f77f6
mov edx, dword [ebx + 0x30]
mov ebx, dword [ebx + 0x38]
sub ebx, eax
sub ecx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
add eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebp
add esp, 0x18
ret
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
add esp, 0x18
ret
call fcn.0046d170
nop
call fcn.0046bc90
jmp fcn.007f75d0
Function at 0x7f8af0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x1095750]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x7f8c91
sub esp, 0x2c
mov eax, dword [esp + 0x30]
mov dword [eax + 0x34], 0
mov dword [eax + 0x3c], 0
mov byte [eax + 0x40], 0
mov dword [esp], eax
call fcn.007f8ca0
movzx eax, byte [esp + 4]
test al, al
je 0x7f8c72
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 0x34]
mov eax, dword [edx + 0x3c]
nop
cmp ecx, eax
jb 0x7f8c8b
mov ebx, dword [edx + 0x30]
mov ebp, dword [edx + 0x38]
sub ecx, eax
mov dword [esp + 0x1c], ecx
sub ebp, eax
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
add eax, ebx
mov dword [esp + 0x24], eax
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
call fcn.007f8e10
movzx eax, byte [esp + 0xc]
test al, al
jne 0x7f8c3d
mov dword [esp], 0
lea eax, [0x8d6c19]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x12
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
call fcn.004546b0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
lea edx, [0x88e1c0]
mov dword [esp], edx
call fcn.0040d4a0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [0x1095848]
test ecx, ecx
jne 0x7f8bea
mov ecx, dword [esp + 0x28]
jmp 0x7f8bf5
call fcn.0046d090
mov ecx, dword [esp + 0x28]
mov dword [edi], ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x7c]
mov dword [eax + 8], edx
lea edx, [0xdbbb30]
mov dword [ecx + 0x74], edx
mov edx, dword [0x1095848]
test edx, edx
je 0x7f8c21
call fcn.0046d0a0
mov dword [edi], eax
mov edx, dword [ecx + 0x78]
mov dword [edi + 4], edx
mov dword [ecx + 0x78], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov byte [esp + 0x3c], 0
add esp, 0x2c
ret
mov dword [esp], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
call fcn.00454950
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov byte [esp + 0x3c], 1
add esp, 0x2c
ret
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov byte [esp + 0x3c], 0
add esp, 0x2c
ret
call fcn.0046d170
nop
call fcn.0046bc90
jmp fcn.007f8af0
Function at 0x1264a8d
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg bl, bh
jmp 0x1264a95
mov al, ah
mov dword [esp], ebp
mov byte [esp + 2], al
dec eax
ja 0x1265357
jbe 0x1265357
add byte [edx], 0x90
test dword [edx], reloc.oleaut32.dll_SysFreeString
inc esp
lea esp, [esp + 4]
jmp 0x126517f

Function at 0x126970e
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf124fe64
jmp 0x126961e
rdtsc
mov edx, 0x3c254f8b
xchg esi, eax
mov ax, word [esp]
jmp 0x1269608
mov dword [esp + 0x40], edi
lea esp, [esp + 0x40]
pushfd
jmp 0x126893e
mov dword [esp], edx
mov dword [esp], ecx
jmp 0x1269691

Function at 0x1279562
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 4]
jmp 0x1252f71
Function at 0x12ac828
Capabilities:
Encode data using base64

Disassembly:
lea esp, [esp + 8]
jmp 0x12ad9d8

Function at 0x12ae00a
Capabilities:
Encode data using base64

Disassembly:
push word [esp + 3]
lea esp, [esp + 2]
jmp 0x12ae0f5
lea esp, [esp + 4]
movzx eax, al
stc
call fcn.012ae081
Function at 0x12af62c
Capabilities:
Encode data using base64

Disassembly:
lea esp, [esp + 4]
push ebp
mov bp, 0x6c5
push bx
lea esp, [esp + 2]
jmp 0x12af654
push cx
lea esp, [esp + 2]
jmp 0x12af616
push dword [esp]
push dword [esp + 5]
mov dword [esp + 8], esi
jmp 0x12af678
lea ebp, [esp - 0x78]
clc
sub esp, 0x84
pushfd
jmp 0x12af634
lea esp, [esp + 8]
mov dword [ebp + 0x74], 0x40
bswap eax
jmp 0x12af7c6
pushal
mov dword [esp + 4], eax
popal
jmp 0x12af662
mov ax, word [esp]
lea eax, [ebp - 0xc]
jmp 0x12525ea

Function at 0x1402b08
Capabilities:
Parse pe header

Disassembly:
call fcn.013fc0d6
push eax
jmp 0x13fc0d1
movzx ebx, word [eax + 0x3c]
jmp 0x1402b60
cmp word [eax], 0x5a4d
je 0x1402068
jne 0x1402b31
iretd
push word [esp + 6]
push word [esp + 3]
mov dword [esp + 0xc], esi
call fcn.01402abc
lodsd eax, dword [esi]
mov esp, 0xbdd436db
inc ebx
sal dword [esi + reloc.oleaut32.dll_SysFreeString], cl
lcall 0x3330, 0x31e40cfd
sub ch, byte [0x10000]
sub eax, 0x10000
jmp 0x1402aec
add ebx, eax
cmp word [ebx], 0x4550
je 0x13fc173
jne 0x1402b31
or al, 0x93
add esp, dword [esi - 0x6b]
jnp fcn.01402b08
adc al, 0x8a
in eax, dx
sbb al, 0xe3
add al, 0x81
adc dword [eax - 0x7d], esi
push es
mov byte [edx - 0x30], 0xb7
inc edx
lds eax, [ebx + 0x1f29707]
fdivr qword [ebx]
mov eax, 0x5ab8492e
pop ss
xchg ebp, eax
add eax, 0x87789f6c
push es
xchg esp, eax
push cs
out 0x33, al
mov ebx, 0x44bd4e2b
sbb ebx, dword [edx + esi + 0x6f23a455]
jmp 0x702b442a
Function at 0x40124e
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, edx
mov edi, ecx
mov ecx, esi
call fcn.00401200
mov ebx, eax
test edi, edi
je 0x401352
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x401352
cmp ebx, dword [esp + 0x1c]
ja 0x401352
xor ecx, ecx
test esi, esi
je 0x401328
mov dword [esp + 0x10], ebp
cmp ecx, esi
jae 0x401297
movzx edx, byte [ecx + edi]
inc ecx
jmp 0x401299
xor edx, edx
cmp ecx, esi
jae 0x4012a4
movzx ebp, byte [ecx + edi]
inc ecx
jmp 0x4012a6
xor ebp, ebp
cmp ecx, esi
jae 0x4012b1
movzx eax, byte [ecx + edi]
inc ecx
jmp 0x4012b3
xor eax, eax
shl edx, 8
add edx, ebp
mov ebp, dword [esp + 0x10]
shl edx, 8
add edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc dword [esp + 0x10]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp], al
mov eax, edx
mov ebp, dword [esp + 0x10]
shr eax, 0xc
and eax, 0x3f
inc dword [esp + 0x10]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp], al
mov eax, edx
mov ebp, dword [esp + 0x10]
and edx, 0x3f
shr eax, 6
and eax, 0x3f
inc dword [esp + 0x10]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [esp + 0x10]
mov byte [edx], al
inc edx
mov dword [esp + 0x10], edx
cmp ecx, esi
jb 0x401290
mov ebp, dword [esp + 0x18]
push 3
xor edx, edx
mov eax, esi
pop ecx
div ecx
mov ecx, dword [edx*4 + 0x41e8b0]
test ecx, ecx
jle 0x401348
lea eax, [ebx - 1]
add eax, ebp
mov byte [eax], 0x3d
dec eax
dec ecx
jne 0x401341
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
mov al, 1
jmp 0x401354
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x401958
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4019af
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4019a0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40199c
cmp esi, ecx
jae 0x4019a0
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x40198c
cmp esi, ecx
jb 0x4019a4
xor eax, eax
jmp 0x4019ae
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x401ddb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, edx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [0x4239ec]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401e0c
xor al, al
jmp 0x401e48
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, 1
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402b61
Capabilities:
Receive http response

Disassembly:
sub esp, 0xc
and dword [esp], 0
and dword [esp + 4], 0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor edi, edi
xor esi, esi
mov ebx, edx
test ebp, ebp
je 0x402c0d
test ebx, ebx
je 0x402c0d
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x402c0d
mov eax, dword [esp + 0x10]
test esi, esi
jne 0x402bb1
add eax, 2
push eax
call fcn.004079f9
pop ecx
mov esi, eax
mov ecx, esi
jmp 0x402bc8
mov ecx, dword [esp + 0x14]
add ecx, 2
add eax, ecx
push eax
push esi
call fcn.00407a8b
mov esi, eax
pop ecx
pop ecx
lea ecx, [esi + edi]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
add dword [esp + 0x14], eax
push edx
push eax
push ecx
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
add edi, dword [esp + 0x18]
test eax, eax
je 0x402c18
cmp dword [esp + 0x18], 0
je 0x402bfd
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x402b99
test esi, esi
je 0x402c0d
mov eax, dword [esp + 0x20]
mov byte [esi + edi], 0
mov dword [ebx], esi
mov dword [eax], edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
call fcn.00407414
and dword [ebx], 0
xor eax, eax
pop ecx
jmp 0x402c10