joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10187610
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x10187620
xor esi, esi
mov eax, 0x811c9dc5
sub edx, ecx
je 0x10187672
movzx ecx, byte [edi + esi]
inc esi
xor ecx, eax
imul eax, ecx, 0x1000193
cmp esi, edx
jb 0x10187632
cmp eax, 0x7c4a5426
ja 0x1018768c
je 0x101876e3
cmp eax, 0x39c98ba1
ja 0x10187677
je 0x101876e3
cmp eax, 0x2eb1674
je 0x101876e3
cmp eax, 0x19acc50e
je 0x101876e3
cmp eax, 0x2a5bf553
je 0x101876e3
xor al, al
pop edi
pop esi
ret
cmp eax, 0x3a712436
je 0x101876e3
cmp eax, 0x43d6266e
je 0x101876e3
cmp eax, 0x4d7aa8c1
jmp 0x10187670
cmp eax, 0xcb7412ac
ja 0x101876ba
je 0x101876e3
cmp eax, 0x9d08c4c8
ja 0x101876ac
je 0x101876e3
cmp eax, 0x7f11af2d
je 0x101876e3
cmp eax, 0x84ea2fe5
jmp 0x10187670
cmp eax, 0xa7eab73f
je 0x101876e3
cmp eax, 0xc941ff64
jmp 0x10187670
cmp eax, 0xe80bc214
ja 0x101876d1
je 0x101876e3
cmp eax, 0xd614ea2e
je 0x101876e3
cmp eax, 0xe1525a25
jmp 0x10187670
cmp eax, 0xee7a29e8
je 0x101876e3
cmp eax, 0xf8573d98
sete al
pop edi
pop esi
ret
pop edi
mov al, 1
pop esi
ret

Function at 0x101876f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x10187700
xor esi, esi
sub edx, ecx
mov ecx, 0x811c9dc5
je 0x10187745
movzx eax, byte [edi + esi]
inc esi
xor eax, ecx
imul ecx, eax, 0x1000193
cmp esi, edx
jb 0x10187712
cmp ecx, 0x5978b32e
ja 0x1018774a
je 0x1018775e
cmp ecx, 0x1b20e275
je 0x1018775e
cmp ecx, 0x3cb8abb3
je 0x1018775e
cmp ecx, 0x4c849f3c
je 0x1018775e
xor al, al
pop edi
pop esi
ret
cmp ecx, 0x97113ea7
je 0x1018775e
cmp ecx, 0xa8d619ea
sete al
pop edi
pop esi
ret
pop edi
mov al, 1
pop esi
ret

Function at 0x10187770
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x10187780
xor esi, esi
sub edx, ecx
mov ecx, 0x811c9dc5
je 0x101877fb
movzx eax, byte [edi + esi]
inc esi
xor eax, ecx
imul ecx, eax, 0x1000193
cmp esi, edx
jb 0x10187792
cmp ecx, 0x92bbd4c5
ja 0x101877de
je 0x101877d8
cmp ecx, 0x40401f1c
je 0x101877d8
cmp ecx, 0x688917bf
je 0x101877d8
cmp ecx, 0x74386b5b
jne 0x101877fb
mov eax, dword [0x10243e20]
push str.SpellbookFlying_n
push eax
mov ecx, dword [eax]
call dword [ecx + 0x60]
add esp, 8
mov al, 1
pop edi
pop esi
pop ecx
ret
cmp ecx, 0xdd7b05fd
je 0x101877d8
cmp ecx, 0xe5a5eadf
je 0x101877d8
cmp ecx, 0xf51a72ab
sete al
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret
Function at 0x10188120
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10188213
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1018820c
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x101881f2
call ebx
cmp dword [ebp - 0x14], eax
jne 0x101881f2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x101881f2
mov edx, dword [esi]
test edx, edx
jne 0x101881b8
push 0x200
push edx
push dword [0x1024511c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1018820c
jmp 0x101881e3
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x101881e3
shl eax, 3
push eax
push edx
push 0
push dword [0x1024511c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1018820c
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
lea eax, [ecx + 1]
mov dword [esi + 8], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10188177
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10188259
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10188259
nop
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10188253
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.10187fd0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10188220
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10188260
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x10308800]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x101882ad
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x101882ce
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x101882ef
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x101882ef
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x101882e9
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x101882ef
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
shl bl, 2
add cl, cl
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
xor eax, eax
pop edi
mov byte [esi + 0x14], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10188340
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x10308808]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x10188431
mov eax, dword [0x10308800]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x10188385
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x10188368
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10188431
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.10188120
mov ecx, dword [0x10308808]
add esp, 4
cmp esi, ecx
jae 0x101883e5
imul edi, esi, 0x2c
mov eax, dword [0x10308800]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x101883da
mov edx, ebx
mov ecx, esi
call fcn.10188260
mov dword [ebp - 4], eax
test eax, eax
jne 0x101883e2
mov ecx, dword [0x10308808]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x101883b1
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10188431
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10188422
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10188416
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x101883f5
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x1024511c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1018976e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1018974a
pop esi
leave
ret 8
Function at 0x4036f7
Capabilities:
Terminate process

Disassembly:
jmp 0x459e17
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x459e28
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405b32
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403828
Capabilities:
Query environment variable

Disassembly:
jmp 0x49825f
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x498270
pop esi
ret
push ebx
push edi
push esi
call fcn.00498146
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040411f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x498298
push ebx
push esi
push edi
call fcn.0040590c
add esp, 0xc
push 0
call fcn.004064ec
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4059d9
Capabilities:
Parse pe header

Disassembly:
jmp 0x41be88
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41bec7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41bec7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41bec7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41bec7
cmp dword [ecx + 0x74], 0xe
jbe 0x41bec7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x496434
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d8324]
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 0x49647f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004968f6
test al, al
jne 0x496479
sub edx, 2
cmp edx, edi
jne 0x49645f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4964a1
lea eax, [edi + 2]
cmp edx, eax
je 0x4964a1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049602d
add esp, 0x10
jmp 0x49659b
push esi
lea ecx, [ebp - 0x255]
call fcn.004968f6
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 0x4964e4
push dword [ebp - 0x25c]
jmp 0x496491
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 0x496521
cmp word [ebp - 0x226], 0
je 0x496542
cmp word [ebp - 0x226], ax
jne 0x496521
cmp word [ebp - 0x224], 0
je 0x496542
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049602d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49658e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4964fb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x496576
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49659b
push 0x495a15
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405731
add esp, 0x10
jmp 0x49656b
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.00403116
leave
ret
Function at 0x4a16ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dde
mov eax, dword [0x4d8324]
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.004060d2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a16f0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a184c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406230
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 + 0x4dbf90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403346
mov ecx, dword [esi*4 + 0x4dbf90]
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 0x4a1845
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a1845
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 0x4a1845
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403346
add esp, 0x14
test edx, edx
jl 0x4a1845
jg 0x4a17bb
test eax, eax
jb 0x4a1845
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a1845
jl 0x4a17d5
cmp dword [ebp - 0x1008], eax
ja 0x4a1845
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a17f3
test ebx, ebx
je 0x4a182c
cmp ecx, edi
jae 0x4a182c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a180d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a1819
cmp byte [ecx + 1], 0xa
jne 0x4a1819
inc ecx
jmp 0x4a1819
movzx eax, al
movsx eax, byte [eax + 0x4d8c60]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a17f3
cmp edx, ebx
jne 0x4a17f3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a184a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403116
leave
ret
Function at 0x4a20a9
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 + 0x4dbf90]
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 0x4a20e9
cmp byte [ebx], 0xa
jne 0x4a20e9
or byte [eax + edi + 0x28], 4
jmp 0x4a20ee
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a21ec
mov al, byte [edx]
cmp al, 0x1a
je 0x4a21ce
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a211d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a2142
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a214c
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 0x4a20ff
jmp 0x4a21ec
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 0x4a21c9
cmp dword [ebp - 0xc], 0
je 0x4a21c9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4dbf90]
test byte [eax + edi + 0x28], 0x48
je 0x4a21a3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a218e
mov byte [esi], dl
jmp 0x4a219f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4dbf90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a21ec
cmp byte [ebp - 1], 0xa
jne 0x4a21b2
cmp esi, ebx
jne 0x4a21b2
mov byte [esi], 0xa
jmp 0x4a21eb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401979
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a21ec
mov byte [esi], 0xd
jmp 0x4a21eb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4dbf90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a21e8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a21ec
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2248
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 + 0x4dbf90]
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 0x4a228b
cmp word [esi], dx
jne 0x4a228b
or byte [edi + eax + 0x28], 4
jmp 0x4a2290
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 0x4a23e3
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 0x4a23c3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a22d2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a2308
cmp eax, edx
jae 0x4a2314
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 0x4a22aa
jmp 0x4a23e3
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 0x4a23bf
cmp dword [ebp - 0x14], 0
je 0x4a23bf
mov eax, dword [ebx*4 + 0x4dbf90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a2397
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a2360
mov word [esi], cx
jmp 0x4a2393
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4dbf90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4dbf90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4dbf90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a23e3
pop ebx
cmp word [ebp - 4], bx
jne 0x4a23a8
cmp esi, dword [ebp + 0xc]
jne 0x4a23a8
mov word [esi], bx
jmp 0x4a23e0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401979
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a23e3
push 0xd
jmp 0x4a23dc
mov ecx, dword [ebx*4 + 0x4dbf90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a23da
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a23e3
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 0x105ca
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
push esi
call dword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
mov esi, 0x2bd80
push 1
push esi
call dword [sym.imp.ntoskrnl.exe_ExAcquireResourceSharedLite]
mov ebp, dword [esp + 0x14]
and dword [ebp], 0
mov ebx, dword [0x2c0b8]
test ebx, ebx
je 0x106c1
mov eax, dword [ebx + 0x144]
cmp eax, dword [esp + 0x10]
je 0x10609
mov ebx, dword [ebx]
test ebx, ebx
jne 0x105f7
test ebx, ebx
je 0x106c1
push edi
mov edi, dword [ebx + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, 0x155
add ecx, esi
push 0x546b6c42
push ecx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test eax, eax
mov dword [ebp], eax
jne 0x10684
push 0x10580
call sub.ntoskrnl.exe_DbgPrint
mov edi, dword [ebx + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
push 0x10588
call sub.ntoskrnl.exe_DbgPrint
push 0x105c8
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x10
xor bl, bl
mov ecx, 0x2bd80
call dword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call dword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
mov al, bl
pop edi
jmp 0x106d1
push 0x55
mov esi, ebx
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp]
lea ecx, [eax + 0x154]
mov dword [eax + 0x38], ecx
mov edi, dword [ebx + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [ebp]
mov bl, 1
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [edx + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1066e
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call dword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
xor al, al
pop esi
pop ebp
pop ebx
ret 8
Function at 0x109ee
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
push edi
call dword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
push 1
push 0x2c120
call dword [sym.imp.ntoskrnl.exe_ExAcquireResourceSharedLite]
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x10ae3
push dword [ebp + 0x148]
call fcn.00010c18
test al, al
jne 0x10adf
mov edi, dword [ebp + 0x38]
or ecx, 0xffffffff
xor eax, eax
push 0x546b6c42
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x154
push ecx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edx, eax
test edx, edx
jne 0x10a73
push 0x109c0
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x109c8
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x109ec
call sub.ntoskrnl.exe_DbgPrint
pop ecx
xor al, al
jmp 0x10af8
xor al, al
xor ecx, ecx
add al, byte [ecx + ebp + 0x24]
inc ecx
cmp ecx, 0x10
jl 0x10a77
push esi
push 0x55
pop ecx
mov esi, ebp
mov edi, edx
lea ebx, [edx + 0x154]
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0x14], al
mov dword [edx + 0x38], ebx
mov edi, dword [ebp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and dword [edx], 0
mov byte [edx + 0x34], al
mov eax, dword [0x2bba0]
inc dword [0x2b538]
test eax, eax
pop esi
je 0x10ad6
mov dword [edx], eax
jmp 0x10ad9
and dword [edx], 0
mov dword [0x2bba0], edx
mov bl, 1
jmp 0x10ae5
xor bl, bl
mov ecx, 0x2c120
call dword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call dword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
mov al, bl
pop edi
pop ebp
pop ebx
ret 4

Function at 0x10d96
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x10dc1
mov eax, dword [ebp + 0x14]
xor edx, edx
add eax, esi
div dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov al, byte [edx + eax]
xor al, byte [ecx]
add al, 3
mov byte [ecx], al
inc ecx
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x10da4
mov eax, dword [ebp + 0xc]
pop esi
pop ebp
ret 0x18

Function at 0x10dca
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x10df7
mov eax, dword [ebp + 0x14]
xor edx, edx
add eax, esi
div dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov dl, byte [edx + eax]
mov al, byte [ecx]
sub al, 3
xor al, dl
mov byte [ecx], al
inc ecx
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x10dd8
mov eax, dword [ebp + 0xc]
pop esi
pop ebp
ret 0x18

Function at 0x10e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x10e2b
mov eax, dword [ebp + 0x14]
xor edx, edx
add eax, esi
div dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov al, byte [edx + eax]
xor al, byte [ecx]
add al, 7
mov byte [ecx], al
inc ecx
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x10e0e
mov eax, dword [ebp + 0xc]
pop esi
pop ebp
ret 0x18