joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1014e520
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebx
push ebp
xor ecx, ecx
push esi
lea eax, [ecx + 1]
push edi
lea esp, [esp]
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea esi, [eax + eax]
xor edx, esi
xor edx, eax
mov dword [ecx*4 + 0x103b2918], eax
mov dword [eax*4 + 0x103b2118], ecx
and edx, 0xff
inc ecx
cmp ecx, 0x100
mov eax, edx
jl 0x1014e530
mov eax, 1
mov ecx, 0x103b0cf0
nop
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov dword [ecx], eax
and edx, 0x1b
add eax, eax
xor edx, eax
and edx, 0xff
add ecx, 4
cmp ecx, 0x103b0d18
mov eax, edx
jl 0x1014e570
mov byte [0x103b03f0], 0x63
mov byte [0x103b2d7b], 0
mov ebx, 1
jmp 0x1014e5b0
mov ecx, dword [ebx*4 + 0x103b2118]
add ecx, ecx
add ecx, ecx
mov edx, 0x103b2d14
sub edx, ecx
mov eax, dword [edx]
mov ecx, eax
sar ecx, 7
lea edx, [eax + eax]
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
and edx, 0xff
xor eax, edx
mov ecx, edx
add edx, edx
sar ecx, 7
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
xor edx, 0x63
and edx, 0xff
xor eax, edx
mov byte [ebx + 0x103b03f0], al
mov byte [eax + 0x103b2d18], bl
inc ebx
cmp ebx, 0x100
jl 0x1014e5b0
xor ecx, ecx
movzx esi, byte [ecx + 0x103b03f0]
mov edx, esi
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea eax, [esi + esi]
xor edx, eax
and edx, 0xff
mov eax, edx
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, edx
mov dword [ecx*4 + 0x103b2518], eax
rol eax, 8
mov dword [ecx*4 + 0x103b1d18], eax
rol eax, 8
mov dword [ecx*4 + 0x103b1918], eax
rol eax, 8
mov dword [ecx*4 + 0x103b1518], eax
movzx eax, byte [ecx + 0x103b2d18]
test eax, eax
je 0x1014e6e2
mov esi, dword [eax*4 + 0x103b2118]
mov edx, dword [0x103b2150]
lea eax, [esi + edx]
cdq
mov edi, 0xff
idiv edi
mov eax, dword [0x103b213c]
add eax, esi
mov ebp, dword [edx*4 + 0x103b2918]
cdq
idiv edi
mov ebx, dword [edx*4 + 0x103b2918]
mov edx, dword [0x103b214c]
lea eax, [esi + edx]
cdq
idiv edi
mov eax, dword [0x103b2144]
add eax, esi
mov esi, 0xff
mov edi, dword [edx*4 + 0x103b2918]
cdq
idiv esi
mov edx, dword [edx*4 + 0x103b2918]
jmp 0x1014e6ea
xor ebp, ebp
xor ebx, ebx
xor edi, edi
xor edx, edx
shl edx, 8
xor edx, edi
shl edx, 8
xor edx, ebx
shl edx, 8
xor edx, ebp
mov dword [ecx*4 + 0x103b1118], edx
rol edx, 8
mov dword [ecx*4 + 0x103b0d18], edx
rol edx, 8
mov dword [ecx*4 + 0x103b08f0], edx
rol edx, 8
mov dword [ecx*4 + 0x103b04f0], edx
inc ecx
cmp ecx, 0x100
jl 0x1014e623
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1014eca0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x118
mov ecx, eax
sub ecx, 0x80
push esi
push edi
je 0x1014ece0
sub ecx, 0x40
je 0x1014ecd4
sub ecx, 0x40
je 0x1014ecc8
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x118
ret
mov dword [0x103b02d8], 0xe
jmp 0x1014ecea
mov dword [0x103b02d8], 0xc
jmp 0x1014ecea
mov dword [0x103b02d8], 0xa
mov ecx, dword [esp + 0x124]
push ecx
lea ecx, [esp + 0xc]
mov dword [0x103b02dc], 0x103b02e0
call fcn.1014e730
add esp, 4
test eax, eax
jne 0x1014eed2
mov eax, dword [esp + 8]
shl eax, 4
add eax, dword [esp + 0xc]
mov edx, dword [eax]
add eax, 4
mov dword [0x103b02e0], edx
mov ecx, dword [eax]
add eax, 4
mov dword [0x103b02e4], ecx
mov edx, dword [eax]
mov dword [0x103b02e8], edx
mov ecx, dword [eax + 4]
mov edx, dword [0x103b02d8]
add eax, 4
dec edx
sub eax, 0x1c
mov dword [0x103b02ec], ecx
mov ecx, 0x103b02f0
test edx, edx
jle 0x1014eeb0
lea esp, [esp]
movzx esi, byte [eax + 3]
movzx esi, byte [esi + 0x103b03f0]
mov esi, dword [esi*4 + 0x103b04f0]
movzx edi, byte [eax + 2]
movzx edi, byte [edi + 0x103b03f0]
xor esi, dword [edi*4 + 0x103b08f0]
movzx edi, byte [eax + 1]
movzx edi, byte [edi + 0x103b03f0]
xor esi, dword [edi*4 + 0x103b0d18]
mov edi, dword [eax]
and edi, 0xff
movzx edi, byte [edi + 0x103b03f0]
xor esi, dword [edi*4 + 0x103b1118]
add eax, 0x10
mov dword [ecx], esi
mov esi, dword [eax - 0xc]
movzx edi, byte [eax - 9]
movzx edi, byte [edi + 0x103b03f0]
and esi, 0xff
movzx esi, byte [esi + 0x103b03f0]
mov esi, dword [esi*4 + 0x103b1118]
xor esi, dword [edi*4 + 0x103b04f0]
movzx edi, byte [eax - 0xa]
movzx edi, byte [edi + 0x103b03f0]
xor esi, dword [edi*4 + 0x103b08f0]
movzx edi, byte [eax - 0xb]
movzx edi, byte [edi + 0x103b03f0]
xor esi, dword [edi*4 + 0x103b0d18]
dec edx
mov dword [ecx + 4], esi
mov esi, dword [eax - 8]
movzx edi, byte [eax - 5]
movzx edi, byte [edi + 0x103b03f0]
and esi, 0xff
movzx esi, byte [esi + 0x103b03f0]
mov esi, dword [esi*4 + 0x103b1118]
xor esi, dword [edi*4 + 0x103b04f0]
movzx edi, byte [eax - 6]
movzx edi, byte [edi + 0x103b03f0]
xor esi, dword [edi*4 + 0x103b08f0]
movzx edi, byte [eax - 7]
movzx edi, byte [edi + 0x103b03f0]
xor esi, dword [edi*4 + 0x103b0d18]
add ecx, 0x10
mov dword [ecx - 8], esi
mov esi, dword [eax - 4]
movzx edi, byte [eax - 1]
movzx edi, byte [edi + 0x103b03f0]
and esi, 0xff
movzx esi, byte [esi + 0x103b03f0]
mov esi, dword [esi*4 + 0x103b1118]
xor esi, dword [edi*4 + 0x103b04f0]
movzx edi, byte [eax - 2]
movzx edi, byte [edi + 0x103b03f0]
xor esi, dword [edi*4 + 0x103b08f0]
movzx edi, byte [eax - 3]
movzx edi, byte [edi + 0x103b03f0]
xor esi, dword [edi*4 + 0x103b0d18]
sub eax, 0x20
mov dword [ecx - 4], esi
test edx, edx
jg 0x1014ed60
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
add eax, 4
add ecx, 4
mov dword [ecx], edx
mov edx, dword [eax + 4]
add eax, 4
add ecx, 4
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
xor eax, eax
pop edi
pop esi
add esp, 0x118
ret
Function at 0x1014f4e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0xc]
push ebx
mov ebx, dword [ecx + 8]
push ebp
mov ebp, dword [ecx + 4]
push esi
push edi
mov edi, dword [ecx]
mov esi, edx
push esi
mov dword [esp + 0x20], eax
call fcn.1014eef0
mov ecx, esi
add esp, 4
mov eax, esi
neg ecx
mov esi, 4
jmp 0x1014f520
movzx edx, byte [ecx + eax + 0x103b3480]
xor byte [eax], dl
movzx edx, byte [ecx + eax + 0x103b3481]
xor byte [eax + 1], dl
movzx edx, byte [ecx + eax + 0x103b3482]
xor byte [eax + 2], dl
movzx edx, byte [ecx + eax + 0x103b3483]
xor byte [eax + 3], dl
add eax, 4
sub esi, 1
jne 0x1014f520
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [0x103b3480], edi
pop edi
pop esi
mov dword [0x103b3484], ebp
pop ebp
mov dword [0x103b3488], ebx
pop ebx
mov dword [0x103b348c], eax
xor ecx, esp
xor eax, eax
call fcn.1016cb16
add esp, 0x14
ret

Function at 0x1014fb40
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov eax, 1
lea esp, [esp]
lea ecx, [eax - 1]
mov edx, ecx
and edx, 3
sar ecx, 2
mov edi, ecx
lea ecx, [edx*8]
lea edx, [edi + edx*4]
add edx, esi
mov dword [esp + 8], edx
lea edx, [edi + ebp*4 + 6]
mov edx, dword [esi + edx*4]
mov edi, 0xff
shl edi, cl
and edx, edi
shr edx, cl
mov ecx, dword [esp + 8]
mov edi, eax
sar edi, 2
xor byte [ecx], dl
mov edx, eax
and edx, 3
lea ecx, [edx*8]
lea edx, [edi + edx*4]
add edx, esi
mov dword [esp + 8], edx
lea edx, [edi + ebp*4 + 6]
mov edx, dword [esi + edx*4]
mov edi, 0xff
shl edi, cl
and edx, edi
shr edx, cl
mov ecx, dword [esp + 8]
lea edi, [eax + 1]
sar edi, 2
xor byte [ecx], dl
lea edx, [eax + 1]
and edx, 3
lea ecx, [edx*8]
lea edx, [edi + edx*4]
add edx, esi
mov dword [esp + 8], edx
lea edx, [edi + ebp*4 + 6]
mov edx, dword [esi + edx*4]
mov edi, 0xff
shl edi, cl
and edx, edi
shr edx, cl
mov ecx, dword [esp + 8]
lea edi, [eax + 2]
sar edi, 2
xor byte [ecx], dl
lea edx, [eax - 2]
and edx, 3
lea ecx, [edx*8]
lea edx, [edi + edx*4]
add edx, esi
mov dword [esp + 8], edx
lea edx, [edi + ebp*4 + 6]
mov edx, dword [esi + edx*4]
mov edi, 0xff
shl edi, cl
add eax, 4
and edx, edi
shr edx, cl
mov ecx, dword [esp + 8]
xor byte [ecx], dl
lea ecx, [eax - 1]
cmp ecx, 0x10
jl 0x1014fb50
pop edi
pop ebp
pop ecx
ret
Function at 0x10150180
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov al, 1
xor ebx, ebx
jmp 0x10150190
movzx ecx, al
mov byte [ebx + 0x103b3018], al
movzx ax, al
mov byte [ecx + 0x103b3118], bl
movzx ecx, ax
mov dl, 3
xor al, al
lea ebx, [ebx]
test dl, 1
je 0x101501b7
xor al, cl
add ecx, ecx
shr dl, 1
test ecx, 0x100
je 0x101501c9
xor ecx, 0x11b
test dl, dl
jne 0x101501b0
inc ebx
cmp ebx, 0xff
jl 0x10150190
xor eax, eax
mov dword [esp + 0x18], eax
lea esp, [esp]
test eax, eax
je 0x101501f6
movzx ecx, byte [eax + 0x103b3118]
mov edx, 0x103b3117
sub edx, ecx
mov cl, byte [edx]
jmp 0x101501f8
xor cl, cl
mov byte [eax + 0x103b2e18], 0
movzx esi, cl
mov byte [esp + 0x13], 0
mov eax, 0xfffffffd
mov dword [esp + 0x14], 8
lea ecx, [eax + 3]
mov dword [esp + 0x1c], ecx
mov edx, 1
shl edx, cl
lea ecx, [eax + 2]
and ecx, 7
mov ebx, 1
shl ebx, cl
lea ecx, [eax - 1]
mov ebp, 1
lea edi, [eax + 1]
test esi, ebx
setne bl
and ecx, 7
shl ebp, cl
test esi, ebp
setne cl
xor bl, cl
mov ecx, edi
and ecx, 7
mov ebp, 1
shl ebp, cl
test esi, ebp
setne cl
xor bl, cl
mov ecx, eax
and ecx, 7
mov eax, 1
shl eax, cl
test esi, eax
setne cl
xor bl, cl
test esi, edx
setne al
xor bl, al
test dl, 0x63
setne cl
xor bl, cl
mov ecx, dword [esp + 0x1c]
shl bl, cl
mov eax, edi
or byte [esp + 0x13], bl
sub dword [esp + 0x14], 1
jne 0x10150214
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
movzx edx, cl
mov byte [eax + 0x103b2e18], cl
mov byte [edx + 0x103b2f18], al
inc eax
cmp eax, 0xff
mov dword [esp + 0x18], eax
jle 0x101501e0
pop edi
pop esi
pop ebp
mov byte [0x103b2e19], 0x7c
mov byte [0x103b2f94], 1
mov byte [0x103b2f7b], 0
pop ebx
add esp, 0x10
ret

Function at 0x10155460
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1018d98b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi], ebx
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0xc], edx
mov eax, dword [eax + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], ebx
mov byte [esi + 0x18], bl
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], ebx
call fcn.100ef680
mov dword [esi + 0x48], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 8
Function at 0x10155730
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1018d98b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
lea eax, [edi + 0x14]
push 0
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push eax
mov byte [ecx + 4], 0
call fcn.10004b90
lea edx, [edi + 0x30]
push edx
lea ecx, [esi + 0x30]
mov dword [esp + 0x1c], 0
call fcn.100ef6e0
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x1015b360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
push ebp
xor eax, eax
mov ebp, ecx
cmp dword [ebp + 0x10], 2
push esi
setne al
mov esi, eax
call fcn.1015b250
mov ecx, ebp
mov byte [esp + 0xc], al
call fcn.1015b250
mov byte [esp + 0xd], al
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
cmp dword [edx + eax + 8], 0
jne 0x1015b4e5
push ebx
movzx ebx, byte [esp + esi + 0x10]
push edi
lea edi, [esp + esi + 0x14]
xor esi, 1
movzx eax, byte [esp + esi + 0x14]
lea esi, [esp + esi + 0x14]
shl ebx, 8
or ebx, eax
lea ecx, [ebx - 0xdc00]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
cmp ecx, 0x3ff
jbe 0x1015b4bd
lea edx, [ebx - 0xd800]
cmp edx, 0x3ff
ja 0x1015b4d6
mov ecx, ebp
call fcn.1015b250
mov ecx, ebp
mov byte [esp + 0x14], al
call fcn.1015b250
mov byte [esp + 0x15], al
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
cmp dword [edx + eax + 8], 0
jne 0x1015b4bd
lea ebx, [ebx]
movzx esi, byte [edi]
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax]
shl esi, 8
or esi, ecx
cmp esi, 0xdc00
jb 0x1015b448
cmp ebx, 0xe000
jae 0x1015b448
and ebx, 0x3ff
shl ebx, 0xa
and esi, 0x3ff
or ebx, esi
add ebx, 0x10000
jmp 0x1015b494
lea edx, [esp + 0x13]
lea edi, [ebp + 0x20]
push edx
mov ecx, edi
mov byte [esp + 0x17], 0xef
call fcn.1015b0c0
lea eax, [esp + 0x13]
push eax
mov ecx, edi
mov byte [esp + 0x17], 0xbf
call fcn.1015b0c0
lea ecx, [esp + 0x13]
push ecx
mov ecx, edi
mov byte [esp + 0x17], 0xbd
call fcn.1015b0c0
cmp esi, 0xd800
jb 0x1015b4d6
cmp ebx, 0xe000
jae 0x1015b4d6
mov edi, dword [esp + 0x1c]
mov ebx, esi
mov ecx, ebp
call fcn.1015b250
mov ecx, ebp
mov byte [esp + 0x14], al
call fcn.1015b250
mov byte [esp + 0x15], al
mov eax, dword [ebp]
mov edx, dword [eax]
mov ecx, dword [edx + 4]
cmp dword [ecx + eax + 8], 0
je 0x1015b410
push 0xfffd
add ebp, 0x20
push ebp
call fcn.1015b130
add esp, 8
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x10
ret
push ebx
add ebp, 0x20
push ebp
call fcn.1015b130
add esp, 8
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x1016a730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.1016855e
mov es, ebx
out dx, al
clc
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x1016a74b
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x1016a74b
call fcn.1016855e
lodsd eax, dword [esi]
out dx, al
push eax
xor al, 0x8b
pop edx
and al, 3
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.1016855e
shr byte [ebx + 0x75ff95d3], 8
push dword [ebp + 4]
push dword [ebp]
call fcn.10168d5e
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
mov ebx, dword [esp + 0x10]
push esi
xor esi, esi
test ebx, ebx
push edi
jle 0x1016a7cd
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
sub edi, eax
mov cx, word [edi + eax]
mov dx, word [eax]
cmp cx, dx
ja 0x1016a7d3
jb 0x1016a7dc
inc esi
add eax, 2
cmp esi, ebx
jl 0x1016a7b7
pop edi
pop esi
xor eax, eax
pop ebx
ret
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret

Function at 0x1016cb16
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10279264]
jne 0x1016cb20
repz ret
jmp fcn.10176c51
Function at 0x10187ac2
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.10176dc9
and dword [ebp - 4], 0
cmp dword [0x1029d5f8], 0
mov ebx, eax
jne 0x10187b73
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10187c24
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10187c24
push eax
call fcn.10176d57
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1029d5f8], eax
call esi
push eax
call fcn.10176d57
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1029d5fc], eax
call esi
push eax
call fcn.10176d57
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1029d600], eax
call esi
push eax
call fcn.10176d57
pop ecx
mov dword [0x1029d608], eax
test eax, eax
je 0x10187b73
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10176d57
pop ecx
mov dword [0x1029d604], eax
mov eax, dword [0x1029d604]
cmp eax, ebx
je 0x10187bcb
cmp dword [0x1029d608], ebx
je 0x10187bcb
push eax
call fcn.10176dd2
push dword [0x1029d608]
mov esi, eax
call fcn.10176dd2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10187bcb
test edi, edi
je 0x10187bcb
call esi
test eax, eax
je 0x10187bc2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10187bc2
test byte [ebp - 0xc], 1
jne 0x10187bcb
or dword [ebp + 0x10], 0x200000
jmp 0x10187c04
mov eax, dword [0x1029d5fc]
cmp eax, ebx
je 0x10187c04
push eax
call fcn.10176dd2
pop ecx
test eax, eax
je 0x10187c04
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10187c04
mov eax, dword [0x1029d600]
cmp eax, ebx
je 0x10187c04
push eax
call fcn.10176dd2
pop ecx
test eax, eax
je 0x10187c04
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1029d5f8]
call fcn.10176dd2
pop ecx
test eax, eax
je 0x10187c24
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10187c26
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a990
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x470e6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00465981
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40aa12
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004632da
mov eax, dword [eax]
push 0x4891e0
push eax
call fcn.00455884
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00465c0c
test bl, bl
je 0x40aa12
push 0x4891e0
lea ecx, [esp + 0xc]
call fcn.00465f9c
push 0x48cd54
lea ecx, [esp + 0xc]
call fcn.00465f9c
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40aa4e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00465c0c
jmp 0x40ab19
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40aad2
lea edx, [esp + 0x7c]
push 0x48cd50
push edx
call fcn.00455884
add esp, 8
test eax, eax
je 0x40aad2
lea eax, [esp + 0x7c]
push 0x48cd4c
push eax
call fcn.00455884
add esp, 8
test eax, eax
je 0x40aad2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40aa62
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00465c0c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40b310
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40b372
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40b380
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x470eeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4933a4]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40b4b8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b3e6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00465c0c
xor eax, eax
jmp 0x40b52f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00465d49
push esi
lea ecx, [esp + 0xc]
call fcn.00465fd8
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40b50d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push connect
call fcn.0040b310
test eax, eax
jne 0x40b50d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push connect
mov ecx, edi
call fcn.0040b310
test eax, eax
jne 0x40b50d
lea eax, [esp + 0x14]
push 0x48cd68
push eax
call fcn.004568c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b4ec
lea ecx, [esp + 0x14]
push 0x48cd64
push ecx
call fcn.00456840
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b4ec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b4ef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00465cf9
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b3fe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00465c0c
xor eax, eax
jmp 0x40b52f
mov byte [esi], 0
push 0x48cd60
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00465c0c
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4