joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100518c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a634d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x100b7464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [esi], 0x100aa038
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x100a3390
mov dword [esi], 0x100aa04c
mov dword [esi + 4], 0x20
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
push 0x80000002
mov dword [0x100b8174], esi
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005196b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x100a33c0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov dword [esi + 0x10], eax
test eax, eax
cmovne ecx, dword [0x100b8174]
mov dword [0x100b8170], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10051a00
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a638c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100b7464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100b73a0], 0xffffffff
mov ebx, 4
jne 0x10051aa0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100b73a0], eax
cmp eax, 0xffffffff
je 0x10051b88
mov eax, dword [esi + 4]
xor ecx, ecx
mov dword [esi + 8], eax
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10053308
xor ecx, ecx
mov dword [esi + 0xc], eax
add esp, 4
cmp dword [esi + 8], ecx
jbe 0x10051aa0
nop dword [eax + eax]
mov eax, dword [esi + 0xc]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, dword [esi + 8]
jb 0x10051a90
push 0xc
call fcn.100532d8
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x10051ac9
mov eax, dword [ebp + 8]
mov dword [edi], 0
mov byte [edi + 4], 0
mov dword [edi + 8], eax
jmp 0x10051acb
xor edi, edi
mov byte [ebp - 4], 0
test edi, edi
je 0x10051b88
push edi
push dword [0x100b73a0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
xor eax, eax
test ecx, ecx
je 0x10051b00
mov edx, dword [esi + 0xc]
cmp dword [edx + eax*4], 0
je 0x10051afd
inc eax
cmp eax, ecx
jb 0x10051af0
jmp 0x10051b00
mov dword [edx + eax*4], edi
mov ecx, dword [esi + 8]
cmp eax, ecx
jne 0x10051b7c
mov eax, dword [esi + 4]
add eax, ecx
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10053308
mov ecx, dword [esi + 8]
add esp, 4
xor edx, edx
mov ebx, eax
test ecx, ecx
je 0x10051b41
nop dword [eax + eax]
mov eax, dword [esi + 0xc]
mov eax, dword [eax + edx*4]
mov dword [ebx + edx*4], eax
inc edx
mov ecx, dword [esi + 8]
cmp edx, ecx
jb 0x10051b30
mov eax, dword [esi + 4]
add eax, ecx
cmp ecx, eax
jae 0x10051b62
nop word [eax + eax]
mov dword [ebx + ecx*4], 0
inc ecx
mov eax, dword [esi + 4]
add eax, dword [esi + 8]
cmp ecx, eax
jb 0x10051b50
push dword [esi + 0xc]
call fcn.10053311
mov eax, dword [esi + 8]
add esp, 4
mov dword [ebx + eax*4], edi
mov eax, dword [esi + 4]
add dword [esi + 8], eax
mov dword [esi + 0xc], ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10051b8a
xor edi, edi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
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 4
Function at 0x10051bc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a63bd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x100b7464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x100b73a0]
cmp eax, 0xffffffff
je 0x10051cb2
cmp dword [esi + 0xc], 0
je 0x10051cb2
cmp byte [ebp + 8], 0
push eax
je 0x10051c5d
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [esi + 8]
xor ecx, ecx
mov edx, eax
test edi, edi
je 0x10051c4c
mov esi, dword [esi + 0xc]
cmp dword [esi + ecx*4], edx
lea eax, [esi + ecx*4]
je 0x10051c46
inc ecx
cmp ecx, edi
jb 0x10051c37
jmp 0x10051c4c
mov dword [eax], 0
test edx, edx
je 0x10051cb2
push 0xc
push edx
call fcn.100530fa
add esp, 8
jmp 0x10051cb2
call dword [sym.imp.KERNEL32.dll_TlsFree]
xor edi, edi
mov dword [0x100b73a0], 0xffffffff
cmp dword [esi + 8], edi
jbe 0x10051c99
mov eax, dword [esi + 0xc]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x10051c93
push 0xc
push eax
call fcn.100530fa
mov eax, dword [esi + 0xc]
add esp, 8
mov dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jb 0x10051c74
push dword [esi + 0xc]
call fcn.10053311
add esp, 4
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1008366a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100acddc
push 0x100acdd4
push str.FlsAlloc
push 0x1e
call fcn.1008333a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008369e
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a71f0]
call esi
jmp 0x100836a4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100836e8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100acdec
push 0x100acde4
push str.FlsGetValue
push 0x20
call fcn.1008333a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008371f
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a71f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10089b53
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100b7464]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x10089b9e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.10089f69
test al, al
jne 0x10089b98
sub edx, 2
cmp edx, edi
jne 0x10089b7e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x10089bc0
lea eax, [edi + 2]
cmp edx, eax
je 0x10089bc0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.1008981a
add esp, 0x10
jmp 0x10089cba
push esi
lea ecx, [ebp - 0x255]
call fcn.10089f69
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10089c03
push dword [ebp - 0x25c]
jmp 0x10089bb0
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x10089c40
cmp word [ebp - 0x226], 0
je 0x10089c61
cmp word [ebp - 0x226], ax
jne 0x10089c40
cmp word [ebp - 0x224], 0
je 0x10089c61
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1008981a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x10089cad
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x10089c1a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x10089c95
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10089cba
push 0x1008926a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10096cc0
add esp, 0x10
jmp 0x10089c8a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10053108
leave
ret
Function at 0x1008b649
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1008b6e6
push ebx
push esi
call fcn.1008b605
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1008b4f7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1008b693
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008b6e5
push edi
push eax
call fcn.10082c37
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1008b6b3
call fcn.10082ce8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008b6e4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1008b4f7
add esp, 0x20
test eax, eax
jne 0x1008b6d2
push edi
call fcn.10082ce8
jmp 0x1008b6da
push ebx
call fcn.10082ce8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1008b6e9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1008b6fa
pop esi
ret
push ebx
push edi
push esi
call fcn.1008b605
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10082c37
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1008b722
push ebx
push esi
push edi
call fcn.10055530
add esp, 0xc
push 0
call fcn.10082ce8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1008bff8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008b995
Function at 0x10095c12
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 + 0x100b89f8]
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 0x10095c52
cmp byte [ebx], 0xa
jne 0x10095c52
or byte [eax + edi + 0x28], 4
jmp 0x10095c57
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10095d55
mov al, byte [edx]
cmp al, 0x1a
je 0x10095d37
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10095c86
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10095cab
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10095cb5
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 0x10095c68
jmp 0x10095d55
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 0x10095d32
cmp dword [ebp - 0xc], 0
je 0x10095d32
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100b89f8]
test byte [eax + edi + 0x28], 0x48
je 0x10095d0c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10095cf7
mov byte [esi], dl
jmp 0x10095d08
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100b89f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10095d55
cmp byte [ebp - 1], 0xa
jne 0x10095d1b
cmp esi, ebx
jne 0x10095d1b
mov byte [esi], 0xa
jmp 0x10095d54
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10095a64
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10095d55
mov byte [esi], 0xd
jmp 0x10095d54
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100b89f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10095d51
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10095d55
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10095d5e
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 + 0x100b89f8]
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 0x10095da1
cmp word [esi], dx
jne 0x10095da1
or byte [edi + eax + 0x28], 4
jmp 0x10095da6
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 0x10095ef9
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 0x10095ed9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10095de8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10095e1e
cmp eax, edx
jae 0x10095e2a
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 0x10095dc0
jmp 0x10095ef9
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 0x10095ed5
cmp dword [ebp - 0x14], 0
je 0x10095ed5
mov eax, dword [ebx*4 + 0x100b89f8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10095ead
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10095e76
mov word [esi], cx
jmp 0x10095ea9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100b89f8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100b89f8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100b89f8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10095ef9
pop ebx
cmp word [ebp - 4], bx
jne 0x10095ebe
cmp esi, dword [ebp + 0xc]
jne 0x10095ebe
mov word [esi], bx
jmp 0x10095ef6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10095a64
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10095ef9
push 0xd
jmp 0x10095ef2
mov ecx, dword [ebx*4 + 0x100b89f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10095ef0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10095ef9
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 0x10096be7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100967ce

Function at 0x10096bf2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1009695d

Function at 0x10099ef1
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.10099d11
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1009a069
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1009a069
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1009a018
jg 0x10099f4a
test eax, eax
je 0x1009a00e
push 1
push 0x1000
call fcn.10082c85
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10099f70
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1009a005
push 0x8000
push ebx
call fcn.10099b46
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 0x10099f9c
jg 0x10099f97
cmp ecx, 0x1000
jb 0x10099f9c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100884ac
add esp, 0x10
cmp eax, 0xffffffff
je 0x10099fe1
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 0x10099f97
jl 0x10099fc8
test ecx, ecx
jne 0x10099f89
push dword [ebp - 0xc]
push ebx
call fcn.10099b46
push esi
call fcn.10082ce8
add esp, 0xc
xor edi, edi
jmp 0x1009a07a
cmp byte [edi + 0x24], 0
je 0x10099ff8
cmp dword [edi + 0x20], 5
jne 0x10099ff8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1009a003
mov edi, dword [edi + 0x18]
jmp 0x1009a005
xor edi, edi
push esi
call fcn.10082ce8
pop ecx
jmp 0x1009a07a
test ecx, ecx
jg 0x10099fda
jl 0x1009a018
test eax, eax
jae 0x10099fda
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10095a64
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1009a03b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10099fda
jmp 0x1009a072
push ebx
call fcn.10090203
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10099fda
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 0x1009a07a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1009a077
mov edi, dword [edi + 0x18]
jmp 0x1009a07a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10095a64
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1009a7b2
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1009a686
Function at 0x1009d610
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1009d63d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1009d63d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x408b8e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x408b9d
pop dword [ebp - 0x50]
mov eax, 0xdd3f1f6
add eax, 0xf26c99a7
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3862c
push 0
mov eax, 0xecae5f58
sub eax, 0xec6d7e80
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x3dcd83c9
add ecx, 0xc232c0ef
xor ebx, ebx
add ebx, eax
mov esi, 0x4ba8a97d
sub esi, 0x4b676db9
add esi, dword [ebp - 0x50]
mov edi, 0xa5e35779
add edi, 0x159c7687
xor dword [ebp - 0x44], esi
mov edx, dword [esi]
mov dword [ebp - 0x28], 0x6486e8c3
xor edx, edi
add dword [ebp - 0x2c], ebx
mov dword [ebx], edx
sub dword [ebp - 4], ecx
add ebx, 0xf6a9f047
sub ebx, 0xf6a9f043
add esi, 0x77358a9c
sub esi, 0x77358a98
loop 0x408bfe
add eax, 0xbe17a3a0
sub eax, 0xbe169ded
mov ebx, eax
add eax, 5
mov ecx, 0xb44219b5
add ecx, 0x4bfde64b
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
xor ecx, ecx
mov al, 1
push edi
movzx edx, al
mov byte [ebp + edx - 0x104], cl
mov dl, al
and dl, 0x80
mov byte [ebp + ecx - 0x204], al
inc ecx
neg dl
sbb dl, dl
mov bl, al
and dl, 0x1b
add bl, bl
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x401010
mov al, 1
mov ecx, 0x40ec50
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
and dl, 0x1b
add al, al
xor al, dl
cmp ecx, 0x40ec78
jl 0x401045
mov dword [0x40e050], 0x63
mov dword [0x411204], 0
mov edx, 1
jmp 0x401090
movzx eax, byte [ebp + edx - 0x104]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
movzx eax, al
mov dword [edx*4 + 0x40e050], eax
mov dword [eax*4 + 0x411078], edx
inc edx
cmp edx, 0x100
jl 0x401090
xor ecx, ecx
mov dl, byte [ecx + 0x40e050]
mov al, dl
and al, 0x80
neg al
sbb al, al
and al, 0x1b
mov bl, dl
add bl, bl
xor al, bl
movzx esi, al
movzx edx, dl
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx + 0x410c78], eax
ror eax, 8
mov dword [ecx + 0x410878], eax
ror eax, 8
mov dword [ecx + 0x410478], eax
ror eax, 8
mov dword [ecx + 0x410078], eax
mov al, byte [ecx + 0x411078]
test al, al
je 0x401199
movzx edx, al
movzx esi, byte [ebp + edx - 0x104]
movzx eax, byte [ebp - 0xf9]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [ebp + edx - 0x204]
mov dword [ebp - 4], eax
movzx eax, byte [ebp - 0xf7]
add eax, esi
cdq
idiv edi
movzx eax, byte [ebp - 0xfb]
add eax, esi
movzx ebx, byte [ebp + edx - 0x204]
cdq
idiv edi
movzx eax, byte [ebp - 0xf6]
add eax, esi
mov esi, 0xff
movzx edi, byte [ebp + edx - 0x204]
cdq
idiv esi
movzx eax, byte [ebp + edx - 0x204]
mov edx, dword [ebp - 4]
jmp 0x4011a1
xor edx, edx
xor ebx, ebx
xor edi, edi
xor eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, edx
mov dword [ecx + 0x40fc78], eax
ror eax, 8
mov dword [ecx + 0x40f878], eax
ror eax, 8
mov dword [ecx + 0x40e850], eax
ror eax, 8
mov dword [ecx + 0x40e450], eax
add ecx, 4
cmp ecx, 0x400
jl 0x4010d2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4028e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret