joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100042e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1002b380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x220], eax
push esi
push edi
test eax, eax
je 0x100044a0
xor eax, eax
mov dword [ebp - 0x218], 0
xor edx, edx
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], edx
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
pushal
mov eax, dword fs:[0x30]
mov dword [ebp - 0x218], eax
popal
mov eax, dword [ebp - 0x218]
xor edi, edi
mov ecx, dword [eax + 0xc]
xor eax, eax
mov dword [ebp - 0x224], ecx
sub eax, 0
je 0x1000439a
sub eax, 1
je 0x1000437e
sub eax, 1
jne 0x100043b3
lea ebx, [ecx + 0x1c]
mov ecx, 0x10
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x208], ecx
jmp 0x100043bf
lea ebx, [ecx + 0x14]
mov ecx, 8
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x208], ecx
jmp 0x100043bf
lea ebx, [ecx + 0xc]
xor ecx, ecx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x208], ecx
jmp 0x100043bf
mov ebx, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x208]
mov esi, dword [ebx]
mov ebx, dword [ebp - 0x210]
cmp esi, ebx
je 0x10004468
nop
mov edx, esi
mov dword [ebp - 0x20c], esi
sub edx, ecx
xor eax, eax
movzx ecx, word [edx + 0x24]
test ecx, 0xfffffffe
jbe 0x10004407
cmp eax, 0x200
jge 0x1000440c
mov ecx, dword [edx + 0x28]
mov cl, byte [ecx + eax*2]
mov byte [ebp + eax - 0x204], cl
inc eax
movzx ecx, word [edx + 0x24]
shr ecx, 1
cmp eax, ecx
jl 0x100043e8
cmp eax, 0x200
jae 0x100044b1
push dword [ebp - 0x220]
mov byte [ebp + eax - 0x204], 0
lea eax, [ebp - 0x204]
push eax
call fcn.100092e0
add esp, 8
test eax, eax
je 0x10004456
test edi, edi
jne 0x10004447
mov eax, esi
sub eax, dword [ebp - 0x208]
mov dword [ebp - 0x214], eax
mov edi, eax
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi]
mov esi, eax
mov ecx, dword [ebp - 0x208]
cmp eax, ebx
jne 0x100043d0
mov eax, dword [ebp - 0x21c]
inc eax
mov dword [ebp - 0x21c], eax
cmp eax, 3
jge 0x10004485
mov ecx, dword [ebp - 0x224]
jmp 0x10004353
mov edx, dword [ebp - 0x214]
test edx, edx
je 0x100044a0
mov ecx, dword [edx + 0x40]
mov eax, dword [edx + 0x3c]
mov dword [ecx], eax
mov ecx, dword [edx + 0x3c]
mov eax, dword [edx + 0x40]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007487
mov esp, ebp
pop ebp
ret
call fcn.10007a25
int3
Function at 0x100044c0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002b380]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x10004655
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x10004655
movzx eax, word [eax + ecx + 0x14]
test ax, ax
je 0x10004655
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 8], 0
push ebx
push esi
mov eax, dword [eax + 0xc]
push edi
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x10], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0xc], ecx
cmp ecx, esi
je 0x10004574
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x10004574
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0x811c9dc5
mov cl, byte [edx]
inc edx
test cl, cl
je 0x1000456d
nop dword [eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x10004550
cmp esi, 0x820621f3
je 0x10004578
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x10004537
mov eax, dword [eax]
jmp 0x10004512
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
mov esi, dword [ebp - 0x18]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + edx]
movzx ebx, cx
add eax, edx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], ebx
push ecx
push 0x40
push ebx
push esi
call eax
push ebx
push 0
push esi
call fcn.10009ad0
mov eax, dword fs:[0x30]
add esp, 0xc
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x10], edx
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
add ecx, edx
mov dword [ebp - 0x14], ecx
cmp ecx, edx
je 0x10004624
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x10004624
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, edx
mov ecx, dword [ebx - 4]
lea ebx, [ebx - 4]
add ecx, edx
dec edi
mov esi, 0x811c9dc5
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0x1000461d
nop dword [eax + eax]
movsx edx, dl
lea ecx, [ecx + 1]
xor edx, esi
imul esi, edx, 0x1000193
mov dl, byte [ecx - 1]
test dl, dl
jne 0x10004600
cmp esi, 0x820621f3
je 0x10004628
mov edx, dword [eax + 0x18]
test edi, edi
jne 0x100045e6
mov eax, dword [eax]
jmp 0x100045c1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 8]
add eax, edx
push dword [ebp - 0xc]
push dword [ebp - 0x18]
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007487
mov esp, ebp
pop ebp
ret
Function at 0x10005390
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea edi, [ebp - 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1002b380]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x10005536
mov dword [ebp - 0x28], 0x1c
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10005523
cmp dword [ebp - 0x28], 0x10
jb 0x10005507
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.10007eb7
cmp dword [ebp - 0x1c], eax
jne 0x10005507
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.10007eb7
cmp dword [ebp - 0x20], eax
je 0x10005507
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x10005467
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 2
mov esi, esp
push edx
push 0
mov eax, dword [0x1002bf14]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.10007eb7
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x10005462
jmp 0x10005523
jmp 0x100054e7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x100054e7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
shl ecx, 2
mov esi, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x1002bf14]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp esi, esp
call fcn.10007eb7
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x100054d1
mov esi, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x1002bf14]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.10007eb7
mov edx, dword [ebp + 8]
mov dword [edx], 0
jmp 0x10005523
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov dword [edx + eax*4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov dword [ebp - 0x28], 0x1c
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x100053e3
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10007eb7
push edx
mov ecx, ebp
push eax
lea edx, [0x10005564]
call fcn.10007e63
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007487
add esp, 0x30
cmp ebp, esp
call fcn.10007eb7
mov esp, ebp
pop ebp
ret
Function at 0x10005580
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.10005390
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x1000565b
mov dword [ebp - 8], 0
jmp 0x100055ea
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 8]
jae 0x10005659
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov esi, esp
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
push edx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.10007eb7
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10005657
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.10007eb7
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.100051b0
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10007eb7
jmp 0x100055e1
jmp 0x10005662
mov dword [ebp - 4], 9
mov eax, dword [ebp - 4]
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.10007eb7
mov esp, ebp
pop ebp
ret

Function at 0x10005680
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0
jmp 0x100056a7
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 8]
jae 0x10005702
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov esi, esp
mov edx, dword [ebp - 4]
mov eax, dword [ecx + edx*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.10007eb7
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10005700
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.10007eb7
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10007eb7
jmp 0x1000569e
mov esi, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x1002bf14]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.10007eb7
pop esi
add esp, 8
cmp ebp, esp
call fcn.10007eb7
mov esp, ebp
pop ebp
ret
Function at 0x10005730
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x1002ca90]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x10005793
mov eax, dword [ebp - 0x18]
sub eax, 5
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov esi, esp
lea edx, [ebp - 0xc]
push edx
push 0x40
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.10007eb7
test eax, eax
jne 0x100057be
mov eax, 0xa
jmp 0x100058c0
cmp dword [ebp + 0xc], 0
je 0x1000580a
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0xe9
mov ecx, dword [ebp - 0x18]
add ecx, 5
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 1], eax
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 1
movzx ecx, al
test ecx, ecx
je 0x10005808
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx], 0xeb
mov edx, dword [ebp - 0x20]
mov byte [edx + 1], 0xf9
jmp 0x10005846
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x10005831
push 7
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10009550
add esp, 0xc
jmp 0x10005846
push 5
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.10009550
add esp, 0xc
mov esi, esp
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.10007eb7
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.10007eb7
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp esi, esp
call fcn.10007eb7
mov cl, byte [ebp + 0xc]
and cl, 1
shl cl, 1
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 0xfd
or al, cl
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x14], al
mov dl, byte [ebp + 0xc]
and dl, 1
shl dl, 2
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 0xfb
or cl, dl
mov edx, dword [ebp - 4]
mov byte [edx + 0x14], cl
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x100058e4]
call fcn.10007e63
pop eax
pop edx
pop edi
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.10007eb7
mov esp, ebp
pop ebp
ret
Function at 0x10005f90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [0x1002ca84]
mov dword [ebp - 4], eax
jmp 0x10005fb7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10005fd0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10005fce
mov eax, dword [ebp - 4]
jmp 0x10006054
jmp 0x10005faf
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.10007eb7
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10006051
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x10006013
mov edx, dword [ebp - 4]
mov eax, dword [0x1002ca84]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1002ca84], ecx
mov eax, dword [ebp - 4]
pop esi
add esp, 8
cmp ebp, esp
call fcn.10007eb7
mov esp, ebp
pop ebp
ret

Function at 0x10006540
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x10006589
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x10006589
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x10006589
xor eax, eax
jmp 0x100065ca
mov dword [ebp - 4], 1
jmp 0x1000659b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100065c5
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x100065c3
xor eax, eax
jmp 0x100065ca
jmp 0x10006592
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1000e70c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1002b380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1000e74f
call fcn.100108fc
mov dword [eax], 0xf
call fcn.1001090f
mov dword [eax], 0xd
call fcn.1000ed81
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007487
leave
ret
test eax, eax
jne 0x1000e756
inc eax
jmp 0x1000e743
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1000e741
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1000e743

Function at 0x1000f2eb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000f32a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000f32a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000f32a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000f32a
cmp dword [ecx + 0x74], 0xe
jbe 0x1000f32a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x100137a1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100232d8
push 0x100232d0
push str.FlsAlloc
push 0x1f
call fcn.10013660
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100137d5
push dword [ebp + 8]
mov ecx, esi
call dword [0x100211a0]
call esi
jmp 0x100137db
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001381f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100232e8
push 0x100232e0
push str.FlsGetValue
push 0x21
call fcn.10013660
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013856
push dword [ebp + 8]
mov ecx, esi
call dword [0x100211a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001385e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100232f0
push 0x100232e8
push str.FlsSetValue
push 0x22
call fcn.10013660
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013898
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100211a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10015946
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 0x100159e3
push ebx
push esi
call fcn.1001590f
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.100134c1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015990
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100159e2
push edi
push eax
call fcn.10011efe
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100159b0
call fcn.100119a9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100159e1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100134c1
add esp, 0x20
test eax, eax
jne 0x100159cf
push edi
call fcn.100119a9
jmp 0x100159d7
push ebx
call fcn.100119a9
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 0x100159e6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100159f7
pop esi
ret
push ebx
push edi
push esi
call fcn.1001590f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10011efe
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10015a1f
push ebx
push esi
push edi
call fcn.10009550
add esp, 0xc
push 0
call fcn.100119a9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10015def
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10015a34
Function at 0x1001b551
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001b4cd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001b6c0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001b6c0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001b675
jg 0x1001b5ad
test eax, eax
je 0x1001b66b
push 1
push 0x1000
call fcn.100148cc
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001b5d0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001b662
push 0x8000
push ebx
call fcn.1001b3fe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001b5f9
jg 0x1001b5f4
cmp ecx, 0x1000
jb 0x1001b5f9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10018525
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001b63e
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 0x1001b5f4
jl 0x1001b625
test ecx, ecx
jne 0x1001b5e6
push dword [ebp - 0xc]
push ebx
call fcn.1001b3fe
push esi
call fcn.100119a9
add esp, 0xc
xor ebx, ebx
jmp 0x1001b6ce
cmp byte [edi + 0x24], 0
je 0x1001b655
cmp dword [edi + 0x20], 5
jne 0x1001b655
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001b660
mov ebx, dword [edi + 0x18]
jmp 0x1001b662
xor ebx, ebx
push esi
call fcn.100119a9
pop ecx
jmp 0x1001b6ce
test ecx, ecx
jg 0x1001b637
jl 0x1001b675
test eax, eax
jae 0x1001b637
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001c13a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001b695
cmp byte [edi + 0x1c], 0
je 0x1001b637
jmp 0x1001b6c6
push ebx
call fcn.10017ab2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001b637
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001b6ce
cmp byte [edi + 0x1c], 0
je 0x1001b6cb
mov ebx, dword [edi + 0x18]
jmp 0x1001b6ce
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001c13a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret