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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, 3
lea ebx, [ebp - 8]
lea esi, [ebp - 0xc]
lea edi, [ebp - 4]
movzx eax, byte [esi]
movzx edx, byte [ebx]
sub eax, edx
imul dword [ebp - 0x10]
push ecx
mov ecx, 0xff
cdq
idiv ecx
pop ecx
movzx edx, byte [ebx]
add eax, edx
mov byte [edi], al
inc edi
inc esi
inc ebx
dec ecx
jne 0x4e5bc5
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x4ed800
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8b000]
push edi
or ebp, 0xffffffff
jmp 0x4ed822
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ed829
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ed818
mov eax, 1
add ebx, ebx
jne 0x4ed83b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ed84c
jne 0x4ed85c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ed85c
dec eax
add ebx, ebx
jne 0x4ed858
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ed830
xor ecx, ecx
sub eax, 3
jb 0x4ed874
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ed8e6
sar eax, 1
mov ebp, eax
jmp 0x4ed87f
add ebx, ebx
jne 0x4ed87f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4ed88c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4ed8b0
inc ecx
add ebx, ebx
jne 0x4ed89c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ed891
jne 0x4ed8ad
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ed891
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ed8d0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ed8c1
jmp 0x4ed81e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ed8d0
add edi, ecx
jmp 0x4ed81e
pop esi
mov edi, esi
mov ecx, 0x36f5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ed8ee
cmp byte [edi], 0x21
jne 0x4ed8ee
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4ed8f3
lea edi, [esi + 0xeb000]
mov eax, dword [edi]
or eax, eax
je 0x4ed96b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xed000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xed078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ed920
mov ecx, edi
jns 0x4ed94f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xed07c]
or eax, eax
je 0x4ed965
mov dword [ebx], eax
add ebx, 4
jmp 0x4ed93d
call dword [esi + 0xed080]
popal
jmp 0x477f6e
Function at 0x5da27c
Capabilities:
Encode data using xor

Disassembly:
push es
mov dl, 0xdd
fstp dword [ecx - 0x4e7e07d7]
xchg dword [ecx + 0x71], edi
and ch, byte [ebx]

Function at 0x5e091d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e0938
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124a5b5d]
pop edx
test eax, eax
je 0x5e0a0a
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e09f9
test dword [ebp - 0x2a8], 1
jne 0x5e09f9
and dword [ebp - 0x2a8], 0x100
jne 0x5e09f9
push esi
push edx
push 4
push esi
call dword [edx + 0x122d3b06]
pop edx
pop esi
test eax, eax
je 0x5e099c
jmp 0x5e09f9
cmp word [esi], 0x5a4d
jne 0x5e09f9
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e09f9
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d3a86]
pop edx
test eax, eax
je 0x5e09f9
lea eax, [ebp - 0x28c]
push eax
call fcn.005e0879
test eax, eax
jne 0x5e09f2
jmp 0x5e09f9
mov eax, esi
jmp 0x5e0a0a
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e0938
pop esi
leave
ret 4
Function at 0x42ee70
Capabilities:
Encode data using xor

Disassembly:
fstp xword [edi]
xor byte [ebp - 4], bh
jg 0x42ee72
mov ch, 0xa5
dec esi
ror dl, 0x50
punpckhwd mm1, qword [ebx]

Function at 0x4bb611
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33b0
cmp edx, dword [eax]
je 0x4bb633
add eax, 8
inc ecx
cmp eax, 0x4c3440
jl 0x4bb624
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33b0]
jne 0x4bb761
mov eax, dword [0x4c8de0]
cmp eax, 1
je 0x4bb73b
test eax, eax
jne 0x4bb664
cmp dword [0x4c32d8], 1
je 0x4bb73b
cmp edx, 0xfc
je 0x4bb761
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb69b
lea eax, [ebp - 0x1a4]
push 0x4c09a0
push eax
call fcn.004bbff0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc480
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb6de
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc480
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c099c
push edi
call fcn.004be350
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0980
push eax
call fcn.004bbff0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc000
lea eax, [ebp - 0xa0]
push 0x4c097c
push eax
call fcn.004bc000
push dword [esi + 0x4c33b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc000
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c0954
push eax
call fcn.004be2c4
add esp, 0x2c
pop edi
jmp 0x4bb761
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33b4]
push 0
push eax
push dword [esi]
call fcn.004bc480
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 0x4859a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x75000]
push edi
jmp 0x4859ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4859c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4859b0
mov eax, 1
add ebx, ebx
jne 0x4859d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4859e4
jne 0x485a03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x485a03
dec eax
add ebx, ebx
jne 0x4859f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4859c8
add ebx, ebx
jne 0x4859ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x485a55
xor ecx, ecx
sub eax, 3
jb 0x485a1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x485a8a
sar eax, 1
mov ebp, eax
jmp 0x485a26
add ebx, ebx
jne 0x485a26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4859f4
inc ecx
add ebx, ebx
jne 0x485a34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4859f4
add ebx, ebx
jne 0x485a41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x485a36
jne 0x485a52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x485a36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x485a74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x485a66
jmp 0x4859b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x485a74
add edi, ecx
jmp 0x4859b6
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x485a92
cmp byte [edi], 0x12
jne 0x485a92
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x485a97
lea edi, [esi + 0x83000]
mov eax, dword [edi]
or eax, eax
je 0x485b0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe5c68]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe5d48]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x485ac4
mov ecx, edi
jns 0x485af3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe5d50]
or eax, eax
je 0x485b09
mov dword [ebx], eax
add ebx, 4
jmp 0x485ae1
call dword [esi + 0xe5d4c]
mov ebp, dword [esi + 0xe5d54]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x485b43
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7cb71b11
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x60cb15b8
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x864a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x88b010]
push edi
push 0x8949e8
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x7403fa
nop
push eax
call 0x7704e026
nop
mov ebx, eax
push 0x8949e8
mov dword [ebp - 4], ebx
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
push 0x8949e8
mov byte [ebx + edi], 0
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x864b7a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0x8949e8
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x755c43d3
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0x8949e8
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x864b06
push 0x8949e8
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
push 0x8949e8
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x7403ff
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x866ef0
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0x866f91
mov eax, dword [ebx]
push 0x40
push eax
push esi
nop
call 0x755b9910
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0x866fc0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x866fc0
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0x866f91
mov ecx, dword [ebx]
push edi
push pe_nt_image_headers32
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
nop
call 0x755b9910
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0x866fc0
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0x866fc0
movzx eax, word [esi + 0x46]
test ax, ax
je 0x866fc0
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.00a990f4]
push eax
call dword [fcn.00a99088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x866f97
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.00867590
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0xd64af0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0xa990e0]
test esi, esi
jne 0xd64b08
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0xd64b01
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0xd64b01
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
add eax, esi
add ecx, esi
push ebx
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0xd64b6a
jmp 0xd64b50
mov eax, dword [ebx + edi*4]
mov ecx, dword [0xa98bf0]
add eax, esi
call fcn.00d62610
test eax, eax
je 0xd64b73
inc edi
cmp edi, dword [ebp - 4]
jb 0xd64b50
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
pop ebx
add eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001640
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x240]
lea edi, [ebp - 0x23c]
push ebx
sub esp, 0x254
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x240], 0x104
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.shlwapi.dll_PathCreateFromUrlA]
mov dword [ebp - 0x244], eax
sub esp, 0x10
test byte [0x10003018], 8
jne 0x100016e0
mov edx, dword [ebp - 0x244]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
test edx, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
cmove ebx, edi
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ebx
call dword [sym.imp.shell32.dll_ShellExecuteA]
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
test ebx, ebx
je 0x100018c8
mov eax, ebx
shr eax, 0x10
je 0x100017b0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x100017c5
movzx edx, byte [ebx]
test dl, dl
je 0x100018d8
nop
mov ecx, eax
lea eax, [eax + 1]
cmp byte [ebx + ecx + 1], 0
jne 0x10001720
mov byte [ebp - 0x138], 0x22
mov esi, ebx
lea eax, [ebp - 0x137]
mov dword [ebp + 0x10], ebx
jmp 0x1000177b
cmp dl, 9
je 0x10001800
cmp dl, 0xa
jne 0x10001835
mov edx, 0x6e5c
add eax, 2
mov word [eax - 2], dx
nop
lea edx, [ebp - 0x15]
lea ebx, [ecx - 1]
cmp eax, edx
ja 0x10001880
test ecx, ecx
jle 0x10001880
movzx edx, byte [esi]
mov ecx, ebx
add esi, 1
cmp dl, 0xd
je 0x10001818
jle 0x10001740
cmp dl, 0x22
je 0x10001868
cmp dl, 0x5c
jne 0x10001829
mov edx, 0x5c5c
add eax, 2
mov word [eax - 2], dx
jmp 0x10001760
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.__p___s___d__n
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x10005094
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001690
mov edx, 0x745c
add eax, 2
mov word [eax - 2], dx
jmp 0x10001760
mov ebx, 0x725c
add eax, 2
mov word [eax - 2], bx
jmp 0x10001760
lea ebx, [edx - 0x20]
cmp bl, 0x5e
jbe 0x100018b8
mov ebx, 0x785c
add eax, 4
mov word [eax - 4], bx
mov ebx, edx
and edx, 0xf
shr bl, 4
movzx edx, byte [edx + str.0123456789abcdefFileProtocolHandlerA]
movzx ebx, bl
movzx ebx, byte [ebx + str.0123456789abcdefFileProtocolHandlerA]
mov byte [eax - 1], dl
mov byte [eax - 2], bl
jmp 0x10001760
mov ebx, 0x225c
add eax, 2
mov word [eax - 2], bx
jmp 0x10001760
mov esi, ebx
mov byte [eax], 0x22
mov ebx, dword [ebp + 0x10]
test esi, esi
jle 0x100018ea
mov ecx, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], cx
lea eax, [ebp - 0x138]
mov byte [edx], 0
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x100017c5
mov byte [eax], dl
add eax, 1
jmp 0x10001760
mov edx, str._null_
jmp 0x100017c5
mov eax, 0x2222
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x137]
lea edx, [eax + 1]
jmp 0x1000189c
Function at 0x10001a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10001a58
cmp byte [esi + ebx - 1], 0xa
je 0x10001a2c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10007084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x100020a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10002278
mov edi, dword [0x10007084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10002187
test byte [0x10003030], 8
jne 0x10002220
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10003040], 8
jne 0x100021e0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10002129
cmp esi, 3
jbe 0x10002198
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x1000213a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10005178]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10002129
mov dword [esp], 0x10003040
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10002100
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10002100
mov dword [esp], 0x10003030
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100020eb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x100020f3
mov eax, 0xffffffff
jmp 0x10002187
Function at 0x401460
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4015c0
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualAllocEx
sub esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4014db
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x4015c1
mov dword [ebp - 0x4b], 0x7373654d
mov dword [ebp - 0x47], 0x42656761
mov dword [ebp - 0x43], 0x2841786f
mov dword [ebp - 0x3f], 0x27202c30
mov dword [ebp - 0x3b], 0x6b636148
mov dword [ebp - 0x37], 0x62206465
mov dword [ebp - 0x33], 0x69562079
mov dword [ebp - 0x2f], 0x27737572
mov dword [ebp - 0x2b], 0x4d27202c
mov dword [ebp - 0x27], 0x61776c61
mov dword [ebp - 0x23], 0x41206572
mov dword [ebp - 0x1f], 0x7472656c
mov dword [ebp - 0x1b], 0x4d202c27
mov dword [ebp - 0x17], 0x4b4f5f42
mov word [ebp - 0x13], 0x3b29
mov byte [ebp - 0x11], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x3b
lea eax, [ebp - 0x4b]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_WriteProcessMemory
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateRemoteThread
sub esp, 0x1c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x4015c1
nop
leave
ret

Function at 0x4015c3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x5c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.C:WindowsSystem32calc.exe
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x40168e
mov dword [esp], str.Remote_process_created_successfully__suspicious_
call sub.msvcrt.dll_puts
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call fcn.00401460
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
nop
leave
ret