joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100485a0
Capabilities:
Access peb ldr_data
Get ntdll base address
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100afafc
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100d8180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
movss xmm0, dword [0x100b49d4]
subss xmm0, dword [ebp + 0xc]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov byte [edi + 0x54], 1
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 4
movss dword [0x100df9dc], xmm0
jbe 0x10048691
mov eax, dword [eax]
push 0x100b6c34
push eax
call fcn.1008e021
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100487d4
push ebx
push 1
push 0x90
push 0x100dfb50
call fcn.1008d4af
add esp, 0x10
cmp dword [0x100dfb50], 0x50534249
jne 0x100487cb
cmp dword [0x100dfb54], 0x2e
jne 0x100487cb
mov esi, 0x100dfb58
mov eax, dword [esi]
test eax, eax
je 0x10048710
cmp dword [esi + 4], 0
je 0x10048710
push 0
push eax
push ebx
call fcn.1008d8b9
push dword [esi + 4]
call fcn.1007f9fa
push ebx
push 1
push dword [esi + 4]
mov dword [esi], eax
push eax
call fcn.1008d4af
add esp, 0x20
jmp 0x10048716
mov dword [esi], 0
add esi, 8
cmp esi, 0x100dfbe0
jl 0x100486e0
push 0
mov ecx, edi
call fcn.10049720
mov ecx, edi
mov dword [edi], eax
call fcn.10048dd0
mov ecx, edi
call fcn.10049da0
mov ecx, edi
call fcn.10049530
mov ecx, edi
call fcn.100498f0
mov ecx, edi
call fcn.1004a660
mov esi, 0x100dfb58
push dword [esi]
call fcn.1007f347
add esi, 8
add esp, 4
cmp esi, 0x100dfbe0
jl 0x10048754
push ebx
call fcn.1008cbff
add esp, 4
mov byte [edi + 0x54], 0
mov ecx, edi
push 1
call fcn.1004ba00
mov ebx, dword [0x100dfaac]
mov esi, dword [ebx + 4]
cmp byte [esi + 0xd], 0
jne 0x100487b7
nop
push dword [esi + 8]
mov ecx, 0x100dfaac
push 0x100dfaac
call fcn.10001d60
mov eax, esi
mov esi, dword [esi]
push 0x18
push eax
call fcn.1007f339
add esp, 8
cmp byte [esi + 0xd], 0
je 0x10048790
mov dword [ebx + 4], ebx
mov dword [ebx], ebx
mov dword [ebx + 8], ebx
mov dword [0x100dfab0], 0
jmp 0x100487d4
push ebx
call fcn.1008cbff
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1004fdb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [0x100dfddc]
mov esi, ecx
test edi, edi
je 0x1004fe23
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageA]
cmp byte [0x100dfd45], 0
jne 0x1004fe17
cmp dword [0x100dfdc4], 3
jne 0x1004fe10
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
call esi
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 5
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi]
mov ecx, edi
push 0
push dword [ebp + 8]
call dword [eax + 0x18]
pop edi
pop esi
pop ebp
ret 4
mov ecx, esi
call fcn.10051e40
mov eax, dword [edi]
mov ecx, edi
push 0
push dword [ebp + 8]
call dword [eax + 0x18]
pop edi
pop esi
pop ebp
ret 4
Function at 0x100536b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b0130
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x100d8180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
push 0x104
mov dword [ebp - 0x134], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xorps xmm0, xmm0
test eax, eax
jne 0x10053719
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
jmp 0x100538f5
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x11c], 0
movups xmmword [ebp - 0x12c], xmm0
mov dword [ebp - 0x118], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10053740
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.10001c40
mov edi, dword [ebp - 0x11c]
mov dword [ebp - 4], 0
test edi, edi
je 0x100538ca
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x12c]
mov ecx, dword [ebp - 0x12c]
cmp edx, 0xf
mov dword [ebp - 0x138], edx
cmova eax, ecx
cmp byte [edi + eax - 1], 0x5c
je 0x100538ca
cmp edi, edx
jae 0x100537be
lea eax, [edi + 1]
cmp edx, 0xf
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x12c]
cmova eax, ecx
mov word [eax + edi], 0x5c
jmp 0x100538ca
mov eax, bind
sub eax, edi
cmp eax, 1
jb 0x10053914
lea ecx, [edi + 1]
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x100537e3
mov ecx, bind
jmp 0x10053810
mov eax, edx
shr eax, 1
mov dword [ebp - 0x130], eax
mov eax, bind
sub eax, dword [ebp - 0x130]
cmp edx, eax
jbe 0x10053803
mov ecx, bind
jmp 0x10053810
mov eax, dword [ebp - 0x130]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], ecx
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.10001be0
cmp dword [ebp - 0x138], 0xf
lea ecx, [edi + 1]
mov dword [ebp - 0x11c], ecx
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x118], ecx
lea ecx, [edi + eax]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], ecx
push edi
jbe 0x100538a3
mov edi, dword [ebp - 0x12c]
push edi
push eax
call fcn.10080ec0
mov eax, dword [ebp - 0x130]
add esp, 0xc
mov ecx, dword [ebp - 0x138]
inc ecx
mov word [eax], 0x5c
mov eax, edi
cmp ecx, 0x1000
jb 0x10053897
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10053919
push ecx
push edi
call fcn.1007f339
add esp, 8
jmp 0x100538be
lea ecx, [ebp - 0x12c]
push ecx
push eax
call fcn.10080ec0
mov eax, dword [ebp - 0x130]
add esp, 0xc
mov word [eax], 0x5c
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x12c], eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x12c]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x11c]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007f9c9
mov esp, ebp
pop ebp
ret 4
call fcn.10003220
call fcn.1008498a
int3
Function at 0x100539a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xf
jbe 0x100539ae
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100539c0
xor eax, eax
pop ebp
ret 4
test al, 0x10
mov eax, 0
setne al
inc eax
pop ebp
ret 4

Function at 0x100545b0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [esi - 0xc7]
cmp eax, 0xc
ja case.0x100545c2.202
jmp dword [eax*4 + 0x10054718]
mov eax, 3
pop esi
pop ebp
ret 4
mov eax, 4
pop esi
pop ebp
ret 4
mov eax, 1
pop esi
pop ebp
ret 4
mov eax, 2
pop esi
pop ebp
ret 4
mov eax, 5
pop esi
pop ebp
ret 4
mov eax, 6
pop esi
pop ebp
ret 4
mov eax, 0x1c
pop esi
pop ebp
ret 4
mov eax, 0x1d
pop esi
pop ebp
ret 4
mov eax, 0x1f
pop esi
pop ebp
ret 4
mov eax, 0x1e
pop esi
pop ebp
ret 4
push edi
push 1
and esi, 0x7f
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edi, eax
test edi, edi
je 0x1005470e
mov ecx, dword [0x100dfdfc]
push 0x2a
call fcn.10053d80
mov ecx, dword [0x100dfdfc]
shl al, 7
push 0x36
mov byte [0x100dfea8], al
call fcn.10053d80
mov ecx, dword [0x100dfdfc]
shl al, 7
mov byte [0x100dfea9], al
or al, byte [0x100dfea8]
push 0x1d
mov byte [0x100dfe18], al
call fcn.10053d80
mov ecx, dword [0x100dfdfc]
shl al, 7
push 0x9d
mov byte [0x100dfeaa], al
call fcn.10053d80
mov ecx, dword [0x100dfdfc]
shl al, 7
mov byte [0x100dfeab], al
or al, byte [0x100dfeaa]
push 0x38
mov byte [0x100dfe19], al
call fcn.10053d80
mov ecx, dword [0x100dfdfc]
shl al, 7
push 0xb8
mov byte [0x100dfeac], al
call fcn.10053d80
shl al, 7
mov byte [0x100dfead], al
or al, byte [0x100dfeac]
push 0
mov byte [0x100dfe1a], al
lea eax, [ebp + 8]
push eax
push 0x100dfe08
push esi
push edi
call dword [sym.imp.USER32.dll_ToAscii]
cmp eax, 1
jne 0x1005470e
movzx eax, word [ebp + 8]
pop edi
movzx eax, al
pop esi
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x1005f280
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x100d8180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push 0x100b6c34
push eax
mov dword [ebp - 0x11c], ecx
call fcn.1008e021
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1005f2c5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007f9c9
mov esp, ebp
pop ebp
ret 8
push esi
push edi
push ebx
push 4
lea eax, [ebp - 0x118]
push 1
push eax
call fcn.1008d4af
push 4
lea eax, [ebp - 0x118]
push str.DDS
push eax
call fcn.1008e750
add esp, 0x1c
test eax, eax
jne 0x1005f4ae
push ebx
push 1
lea eax, [ebp - 0x90]
push 0x7c
push eax
call fcn.1008d4af
add esp, 0x10
cmp dword [ebp - 0x90], 0x7c
jne 0x1005f4ae
mov eax, dword [ebp - 0x40]
lea esi, [ebp - 0x90]
mov ecx, 0x1f
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov ecx, 8
cmp eax, 0x31545844
cmove edi, ecx
cmp eax, 0x33545844
mov ecx, 0x10
cmove edi, ecx
cmp eax, 0x35545844
jne 0x1005f354
mov edi, ecx
jmp 0x1005f35c
test edi, edi
je 0x1005f4ae
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x110]
or eax, 0x10
mov dword [ebp - 0x110], 0
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x11c]
push 0
push edx
lea edx, [ebp - 0x10c]
mov eax, dword [eax]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
js 0x1005f4ae
mov esi, dword [ebp - 0x110]
xorps xmm0, xmm0
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x14], 0x401008
mov dword [ebp - 0x114], 0
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [esi]
lea ecx, [ebp - 0x10c]
push 0
push 1
push ecx
push 0
push esi
call dword [eax + 0x64]
test eax, eax
js 0x1005f45d
nop word [eax + eax]
mov ecx, dword [ebp - 0x104]
mov eax, dword [ebp - 0x100]
add eax, 3
shr eax, 2
lea ecx, [ecx + 3]
shr ecx, 2
imul ecx, eax
push ebx
push 1
imul ecx, edi
push ecx
push dword [ebp - 0xe8]
call fcn.1008d4af
add esp, 0x10
test eax, eax
je 0x1005f45d
mov eax, dword [esi]
push 0
push esi
call dword [eax + 0x80]
mov eax, dword [esi]
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push esi
call dword [eax + 0x30]
test eax, eax
js 0x1005f486
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, dword [ebp - 0x114]
push esi
mov eax, dword [esi]
call dword [eax + 8]
mov eax, dword [esi]
lea ecx, [ebp - 0x10c]
push 0
push 1
push ecx
push 0
push esi
call dword [eax + 0x64]
test eax, eax
jns 0x1005f3e0
push ebx
call fcn.1008cbff
mov eax, dword [esi]
add esp, 4
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x1005f4b7
push ebx
call fcn.1008cbff
mov eax, dword [esi]
add esp, 4
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x110]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007f9c9
mov esp, ebp
pop ebp
ret 8
push ebx
call fcn.1008cbff
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007f9c9
mov esp, ebp
pop ebp
ret 8
Function at 0x1005fb50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1005fb6c
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
push 0x40
push 0x3000
push 0x80
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp + 8]
mov dword [esi + 0x2c], eax
add eax, 0x40
mov dword [esi + 0x30], eax
mov eax, dword [edx + 0xc]
mov dword [esi], eax
mov ebx, dword [edx + 0x1c]
mov dword [esi + 8], ebx
mov ecx, dword [edx + 0x10]
mov dword [esi + 0xc], ecx
mov edi, dword [edx + 0x14]
mov dword [esi + 0x10], edi
mov edx, dword [edx + 0x18]
mov dword [ebp + 8], edx
mov dword [esi + 0x14], edx
cdq
and edx, 7
mov dword [esi + 0x18], 0
add eax, edx
sar eax, 3
mov dword [esi + 4], eax
xor eax, eax
test ebx, ebx
jne 0x1005fbd2
mov dword [esi + 0x18], 0xff000000
mov eax, 0xff000000
test ecx, ecx
jne 0x1005fbde
or eax, 0xff0000
mov dword [esi + 0x18], eax
test edi, edi
jne 0x1005fbea
or eax, 0xff00
mov dword [esi + 0x18], eax
cmp dword [ebp + 8], 0
jne 0x1005fbf8
or eax, 0xff
mov dword [esi + 0x18], eax
mov byte [esi + 0x1d], 0
test ebx, ebx
je 0x1005fc2e
test bl, 1
jne 0x1005fc13
xor al, al
shr ebx, 1
inc al
test bl, 1
je 0x1005fc07
mov byte [esi + 0x1d], al
mov al, 8
test bl, 1
je 0x1005fc30
nop word [eax + eax]
shr ebx, 1
dec al
test bl, 1
jne 0x1005fc20
mov ecx, dword [esi + 0xc]
jmp 0x1005fc30
xor al, al
add al, 0x18
mov byte [esi + 0x1c], al
mov byte [esi + 0x1f], 0
pop ebx
test ecx, ecx
je 0x1005fc63
test cl, 1
jne 0x1005fc51
xor al, al
shr ecx, 1
inc al
test cl, 1
je 0x1005fc45
mov byte [esi + 0x1f], al
mov al, 8
test cl, 1
je 0x1005fc65
shr ecx, 1
dec al
test cl, 1
jne 0x1005fc58
jmp 0x1005fc65
xor al, al
add al, 0x10
mov byte [esi + 0x1e], al
mov eax, edi
mov byte [esi + 0x21], 0
test eax, eax
je 0x1005fc9b
test al, 1
jne 0x1005fc8b
xor cl, cl
nop word [eax + eax]
shr eax, 1
inc cl
test al, 1
je 0x1005fc80
mov byte [esi + 0x21], cl
mov cl, 8
test al, 1
je 0x1005fc9d
shr eax, 1
dec cl
test al, 1
jne 0x1005fc91
jmp 0x1005fc9d
xor cl, cl
mov edx, dword [esi + 0x14]
add cl, 8
mov eax, edx
mov byte [esi + 0x20], cl
mov byte [esi + 0x23], 0
test eax, eax
je 0x1005fcdd
test al, 1
jne 0x1005fcc1
xor cl, cl
shr eax, 1
inc cl
test al, 1
je 0x1005fcb6
mov byte [esi + 0x23], cl
mov byte [esi + 0x22], 8
test al, 1
je 0x1005fce1
mov cl, 8
nop dword [eax + eax]
shr eax, 1
dec cl
test al, 1
jne 0x1005fcd0
mov byte [esi + 0x22], cl
jmp 0x1005fce1
mov byte [esi + 0x22], 0
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
push edx
push edi
push dword [esi + 0xc]
mov dword [esi + 0x24], ecx
push dword [esi + 8]
mov dword [esi + 0x28], eax
push dword [esi]
push ecx
mov ecx, 0x100dffe8
call fcn.1005df30
push dword [esi + 0x14]
mov ecx, 0x100dffe8
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
push dword [esi + 0x30]
call fcn.1005e340
pop edi
pop esi
pop ebp
ret 4
Function at 0x10068520
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x14]
cmp eax, 0xca
jne 0x10068557
push esi
call fcn.10071d10
add esp, 4
cmp byte [esi + 0x40], 0
je 0x1006854e
pop edi
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
pop ebp
ret
mov dword [esi + 0x14], 0xcb
jmp 0x10068562
cmp eax, 0xcb
jne 0x100685de
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x100685c8
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x1006857f
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x100685c2
cmp eax, 2
je 0x100685c8
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10068570
cmp eax, 3
je 0x100685a7
cmp eax, 1
jne 0x10068570
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x10068570
mov eax, dword [esi + 0x11c]
add eax, edi
mov dword [edx + 8], eax
jmp 0x10068570
pop edi
xor al, al
pop esi
pop ebp
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.10068610
add esp, 4
pop edi
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x10068600
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.10068610
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x10068610
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x1006863d
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x180]
cmp byte [eax + 8], 0
je 0x1006866f
nop dword [eax]
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x30
mov eax, dword [esi]
mov eax, dword [eax]
call eax
mov eax, dword [esi + 0x180]
add esp, 4
cmp byte [eax + 8], 0
jne 0x10068650
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebp
ret
Function at 0x1006f070
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100d8180]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov al, byte [edi + 8]
mov byte [ebp - 0x15], al
cmp al, 3
je 0x1006f258
movzx edx, byte [edi + 9]
test al, 2
mov eax, dword [ebp + 0x10]
mov ecx, edx
push ebx
mov ebx, dword [edi]
je 0x1006f0d1
movzx eax, byte [eax]
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, edx
movzx eax, byte [eax + 1]
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, edx
movzx eax, byte [eax + 2]
sub ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, 3
jmp 0x1006f0df
movzx eax, byte [eax + 3]
sub ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, 1
test byte [ebp - 0x15], 4
mov dword [ebp - 0x1c], ecx
je 0x1006f0f9
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax + 4]
sub edx, eax
mov dword [ebp + ecx*4 - 0x14], edx
inc ecx
mov dword [ebp - 0x1c], ecx
xor eax, eax
test ecx, ecx
je case.0x1006f143.3
xor edi, edi
cmp dword [ebp + eax*4 - 0x14], 0
jg 0x1006f116
mov dword [ebp + eax*4 - 0x14], 0
jmp 0x1006f11b
mov edi, 1
inc eax
cmp eax, ecx
jl 0x1006f105
test di, di
mov edi, dword [ebp + 8]
je case.0x1006f143.3
movzx eax, byte [edi + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x1006f143.3
movzx eax, byte [eax + 0x1006f27c]
jmp dword [eax*4 + 0x1006f268]
mov ecx, dword [edi + 4]
test ecx, ecx
je case.0x1006f143.3
mov al, byte [esi]
lea esi, [esi + 1]
shr al, 1
and al, 0x55
mov byte [esi - 1], al
sub ecx, 1
jne 0x1006f155
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007f9c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov ebx, 0xf0
mov edx, dword [edi + 4]
mov eax, 0xf
sar ebx, cl
and bl, 0xf0
sar eax, cl
or bl, al
test edx, edx
je case.0x1006f143.3
mov al, byte [esi]
lea esi, [esi + 1]
shr al, cl
mov ecx, dword [ebp - 0x14]
and al, bl
mov byte [esi - 1], al
sub edx, 1
jne 0x1006f198
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007f9c9
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor edi, edi
test ebx, ebx
je case.0x1006f143.3
nop word [eax + eax]
mov eax, edi
lea esi, [esi + 1]
xor edx, edx
inc edi
div ecx
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
cmp edi, ebx
jb 0x1006f1d0
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007f9c9
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je case.0x1006f143.3
mov edi, 0x100
nop dword [eax]
xor edx, edx
lea esi, [esi + 1]
div ecx
movzx ecx, byte [esi - 1]
lea esi, [esi + 1]
movzx eax, di
mov edi, ecx
imul edi, eax
movzx eax, byte [esi - 1]
movzx ecx, word [ebp + edx*4 - 0x14]
add di, ax
shr di, cl
movzx ecx, di
mov edi, 0x100
mov eax, ecx
mov byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
shr eax, 8
mov byte [esi - 2], al
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x24]
jb 0x1006f210
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1007f9c9
mov esp, ebp
pop ebp
ret
Function at 0x10072a10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x10072a1e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x10072add
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100b9520]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100b9520]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100b9520]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100b9520]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100b9520]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100b9520]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100b9520]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100b9520]
sub edi, 1
jne 0x10072a36
pop edi
test esi, esi
je 0x10072afb
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100b9520]
sub esi, 1
jne 0x10072ae1
not eax
pop esi
pop ebp
ret
Function at 0x1008e4d9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10080720
mov eax, dword [0x100d8180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1009cb44
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1008e51b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1008e677
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100ac130
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100e0bb0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1009ea1d
mov ecx, dword [esi*4 + 0x100e0bb0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1008e670
cmp eax, dword [edi + ecx + 0x24]
jne 0x1008e670
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1008e670
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009ea1d
add esp, 0x14
test edx, edx
jl 0x1008e670
jg 0x1008e5e6
test eax, eax
jb 0x1008e670
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1008e670
jl 0x1008e600
cmp dword [ebp - 0x1008], eax
ja 0x1008e670
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1008e61e
test ebx, ebx
je 0x1008e657
cmp ecx, edi
jae 0x1008e657
mov al, byte [ecx]
cmp al, 0xd
jne 0x1008e638
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1008e644
cmp byte [ecx + 1], 0xa
jne 0x1008e644
inc ecx
jmp 0x1008e644
movzx eax, al
movsx eax, byte [eax + 0x100d8600]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1008e61e
cmp edx, ebx
jne 0x1008e61e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1008e675
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1007f9c9
leave
ret

Function at 0x1009c418
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c9428
push 0x100c9420
push str.FlsAlloc
push 0x1e
call fcn.1009c285
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009c44c
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b23e4]
call esi
jmp 0x1009c452
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4