joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100be84b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100f84d0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100be88b
cmp byte [ebx], 0xa
jne 0x100be88b
or byte [eax + edi + 0x28], 4
jmp 0x100be890
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100be98e
mov al, byte [edx]
cmp al, 0x1a
je 0x100be970
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100be8bf
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100be8e4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100be8ee
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100be8a1
jmp 0x100be98e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100be96b
cmp dword [ebp - 0xc], 0
je 0x100be96b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100f84d0]
test byte [eax + edi + 0x28], 0x48
je 0x100be945
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100be930
mov byte [esi], dl
jmp 0x100be941
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100f84d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100be98e
cmp byte [ebp - 1], 0xa
jne 0x100be954
cmp esi, ebx
jne 0x100be954
mov byte [esi], 0xa
jmp 0x100be98d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100bbd62
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100be98e
mov byte [esi], 0xd
jmp 0x100be98d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100f84d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100be98a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100be98e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100be997
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100f84d0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100be9da
cmp word [esi], dx
jne 0x100be9da
or byte [edi + eax + 0x28], 4
jmp 0x100be9df
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x100beb18
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x100beaf8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100bea21
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100bea57
cmp eax, edx
jae 0x100bea63
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100be9f9
jmp 0x100beb18
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100beaf4
cmp dword [ebp - 0x14], 0
je 0x100beaf4
mov eax, dword [ebx*4 + 0x100f84d0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100beacc
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x100beb12
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100f84d0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x100f84d0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100f84d0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x100beb15
pop ebx
cmp word [ebp - 4], bx
jne 0x100beadd
cmp esi, dword [ebp + 0xc]
jne 0x100beadd
mov word [esi], bx
jmp 0x100beb15
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100bbd62
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100beb18
push 0xd
jmp 0x100beb11
mov ecx, dword [ebx*4 + 0x100f84d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100beb0f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100beb18
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100c6e84
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100c7027
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100c6ffc
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100c6ffc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100c6fab
jg 0x100c6edd
test eax, eax
je 0x100c6fa1
push 1
push 0x1000
call fcn.100b8a19
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100c6f03
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100c6f98
push 0x8000
push ebx
call fcn.100c6d7e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100c6f2f
jg 0x100c6f2a
cmp ecx, 0x1000
jb 0x100c6f2f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100bd31e
add esp, 0x10
cmp eax, 0xffffffff
je 0x100c6f74
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100c6f2a
jl 0x100c6f5b
test ecx, ecx
jne 0x100c6f1c
push dword [ebp - 0xc]
push ebx
call fcn.100c6d7e
push esi
call fcn.100b5907
add esp, 0xc
xor edi, edi
jmp 0x100c700d
cmp byte [edi + 0x24], 0
je 0x100c6f8b
cmp dword [edi + 0x20], 5
jne 0x100c6f8b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100c6f96
mov edi, dword [edi + 0x18]
jmp 0x100c6f98
xor edi, edi
push esi
call fcn.100b5907
pop ecx
jmp 0x100c700d
test ecx, ecx
jg 0x100c6f6d
jl 0x100c6fab
test eax, eax
jae 0x100c6f6d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100bbd62
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100c6fce
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100c6f6d
jmp 0x100c7005
push ebx
call fcn.100c3068
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100c6f6d
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100c700d
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100c700a
mov edi, dword [edi + 0x18]
jmp 0x100c700d
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100bbd62
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10012cb0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x10076098]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.10034760
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10012df7
cmp dword [esi + 4], 6
push edi
ja 0x10012d0b
jne 0x10012d93
cmp dword [esi + 8], 2
jb 0x10012d93
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x10012d93
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10012d93
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10012d93
movups xmm0, xmmword [0x1006c798]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x1006c7a8]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10012d93
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10012d93
cmp word [edi + 2], ax
jbe 0x10012d93
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10012dde
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10034760
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x10012dde
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.100325c7
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.100325c7
add esp, 0x140
ret
Function at 0x6e1110
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1ba000]
lea eax, [edi + 0x2c9670]
push dword [eax]
mov dword [eax], 0xb5753e75
push eax
push edi
jmp 0x6e113a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6e1141
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e1130
mov eax, 1
add ebx, ebx
jne 0x6e1153
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6e1164
jne 0x6e1183
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e1183
dec eax
add ebx, ebx
jne 0x6e1170
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6e1148
add ebx, ebx
jne 0x6e117f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6e11d5
xor ecx, ecx
sub eax, 3
jb 0x6e119b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6e120a
sar eax, 1
mov ebp, eax
jmp 0x6e11a6
add ebx, ebx
jne 0x6e11a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e1174
inc ecx
add ebx, ebx
jne 0x6e11b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e1174
add ebx, ebx
jne 0x6e11c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6e11b6
jne 0x6e11d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6e11b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6e11f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6e11e6
jmp 0x6e1136
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6e11f4
add edi, ecx
jmp 0x6e1136
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x7639
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6e1216
cmp byte [edi], 0x26
jne 0x6e1216
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 0x6e121b
lea edi, [esi + 0x2d8000]
mov eax, dword [edi]
or eax, eax
je 0x6e1293
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e12dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e1500]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6e1248
mov ecx, edi
jns 0x6e1277
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 + 0x2e1508]
or eax, eax
je 0x6e128d
mov dword [ebx], eax
add ebx, 4
jmp 0x6e1265
call dword [esi + 0x2e1504]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6e12c4
cmp al, 0xef
ja 0x6e12b7
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6e1299
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6e12a6
mov ebp, dword [esi + 0x2e150c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0x6e12f8
sub esp, 0xffffff80
jmp 0x52e62d
Function at 0x1001ee42
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x1001ee7a
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x1001ee68
mov al, 1
jmp 0x1001eed9
cmp dword [ebx + 0x54], ecx
jne 0x1001ee71
mov al, 2
jmp 0x1001eed9
cmp dword [ebx + 0x7c], ecx
jne 0x1001eed9
mov al, 3
jmp 0x1001eed9
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x1001ee8f
mov al, 4
jmp 0x1001eed9
cmp ecx, 5
jne 0x1001eeaf
cmp ebx, 0
jne 0x1001ee9d
mov al, 5
jmp 0x1001eed9
cmp ebx, 1
jne 0x1001eea6
mov al, 6
jmp 0x1001eed9
cmp ebx, 2
jne 0x1001eeaf
mov al, 7
jmp 0x1001eed9
cmp ecx, 6
jne 0x1001eed7
cmp ebx, 0
jne 0x1001eebd
mov al, 8
jmp 0x1001eed9
cmp ebx, 1
jne 0x1001eec4
mov al, 9
cmp ebx, 2
jne 0x1001eecb
mov al, 0xa
cmp ebx, 3
jne 0x1001eed2
mov al, 0xb
cmp ebx, 4
jne 0x1001eed9
mov al, 0xc
pop ebx
leave
ret

Function at 0x10028337
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x10028341
add dword [esp], 5
retf

Function at 0x100284ff
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x10028509
add dword [esp], 5
retf

Function at 0x10028594
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor eax, eax
cmp word [ecx], 0x5a4d
jne 0x10028614
dec esp
arpl word [ecx + 0x3c], ax
dec ecx
add eax, ecx
inc ecx
cmp dword [eax], 0x4550
jne 0x10028614
inc ebp
mov eax, dword [eax + 0x88]
inc ebp
test eax, eax
je 0x10028614
dec edx
lea edi, [ecx + eax]
inc esp
mov eax, dword [edi + 0x20]
mov esi, dword [edi + 0x14]
test esi, esi
dec esi
lea edx, [ecx + eax]
je 0x10028614
movzx ebx, byte [edx]
inc ebp
xor ebx, ebx
inc ebp
mov ecx, dword [edx]
dec ecx
add ecx, ecx
inc ecx
cmp byte [ecx], bl
jne 0x10028605
test bl, bl
je 0x10028618
dec eax
mov eax, edx
jmp 0x100285f1
inc ebp
test al, al
je 0x10028618
dec eax
add eax, 1
dec ecx
mov eax, eax
dec ecx
sub eax, edx
inc edi
movzx eax, byte [eax + ecx]
inc esp
cmp al, byte [eax]
je 0x100285ec
inc ecx
add ebx, 1
dec ecx
add edx, 4
inc ecx
cmp ebx, esi
jne 0x100285d8
xor eax, eax
pop ebx
pop esi
pop edi
ret
inc esp
cmp esi, ebx
je 0x10028612
mov edx, dword [edi + 0x24]
dec esi
lea eax, [ecx + ebx*2]
mov eax, dword [edi + 0x1c]
inc ecx
movzx edx, word [eax + edx]
dec eax
lea edx, [ecx + edx*4]
mov eax, dword [edx + eax]
dec eax
add eax, ecx
pop ebx
pop esi
pop edi
ret

Function at 0x10028665
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x1002866f
add dword [esp], 5
retf

Function at 0x100287fc
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x10028806
add dword [esp], 5
retf
Function at 0x10081430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10106080
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.100fb4c5
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.100863a0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10081484
jmp dword [ecx*4 + 0x100815ec]
mov al, byte [esi]
test al, al
je 0x100814b2
cmp al, 0x20
je 0x1008149e
cmp al, 0xa1
jne 0x100814b2
cmp byte [esi + 1], al
jne 0x100814b2
test al, 0x80
je 0x100814aa
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100814b2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10081491
test ecx, ecx
je case.default.0x10081484
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10081484
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x100814f8
cmp dl, 0xa1
jne 0x100814ec
cmp byte [eax + 1], 0xa1
jne 0x100814ec
test ecx, ecx
jne 0x100814e4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1008150c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10081526
jmp 0x1008150c
cmp dl, 0x20
jne 0x1008150a
test ecx, ecx
jne 0x10081503
mov edi, eax
mov ecx, 1
jmp 0x1008150c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x100814cc
cmp ecx, 1
jne case.default.0x10081484
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10081484
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10081484
mov al, byte [esi]
test al, al
je 0x1008157e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10081564
mov cl, byte [esi + 1]
test cl, cl
je 0x1008157e
cmp al, 0xa1
jne 0x10081554
cmp cl, al
je 0x10081561
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10086630
inc esi
jmp 0x10081576
cmp al, 0x20
je 0x10081576
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10086670
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1008153d
push 0
lea ecx, [esp + 0x14]
call fcn.10086670
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10091510
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x100815b1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x102cad98
call fcn.100865a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100fb457
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1008be90
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1010672b
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.100fb1cc
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1008bf12
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.100f90de
mov eax, dword [eax]
push 0x102e1e4c
push eax
call fcn.100eba84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100fb457
test bl, bl
je 0x1008bf12
push 0x102e1e4c
lea ecx, [esp + 0xc]
call fcn.100fb7e7
push 0x102e1e58
lea ecx, [esp + 0xc]
call fcn.100fb7e7
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 0x1008bf4e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100fb457
jmp 0x1008c019
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 0x1008bfd2
lea edx, [esp + 0x7c]
push 0x102e1e54
push edx
call fcn.100eba84
add esp, 8
test eax, eax
je 0x1008bfd2
lea eax, [esp + 0x7c]
push 0x102e1e50
push eax
call fcn.100eba84
add esp, 8
test eax, eax
je 0x1008bfd2
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 0x1008bf62
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.100fb457
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 0x1008c810
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 0x1008c872
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 0x1008c880
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x101067ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x102edf18]
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 0x1008c9b8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1008c8e6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100fb457
xor eax, eax
jmp 0x1008ca2f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.100fb594
push esi
lea ecx, [esp + 0xc]
call fcn.100fb823
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 0x1008ca0d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.1008c810
test eax, eax
jne 0x1008ca0d
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 closesocket
mov ecx, edi
call fcn.1008c810
test eax, eax
jne 0x1008ca0d
lea eax, [esp + 0x14]
push 0x102e1e68
push eax
call fcn.100ecc60
mov esi, eax
add esp, 8
test esi, esi
jne 0x1008c9ec
lea ecx, [esp + 0x14]
push 0x102e1e64
push ecx
call fcn.100ecbe0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1008c9ec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1008c9ef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.100fb544
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1008c8fe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100fb457
xor eax, eax
jmp 0x1008ca2f
mov byte [esi], 0
push 0x102e1e60
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.100fb457
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

Function at 0x10092ee0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x10092f0e
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3a0], eax
pop esi
add esp, 0x190
ret