joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e57f7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x100e598a
je 0x100e59b0
cmp eax, 0xa1
jb 0x100e59ee
cmp eax, 0xa2
jbe 0x100e59b0
cmp eax, 0xa3
jbe 0x100e59ee
cmp eax, 0xa5
jbe 0x100e59b0
cmp eax, 0xa6
jbe 0x100e59ee
cmp eax, 0xa8
jbe 0x100e59b0
cmp eax, 0x100
jne 0x100e59ee
cmp dword [edi + 0xc0], 0xffffffff
je 0x100e59b0
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x100e59b0
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x100e58df
sub eax, 1
jne 0x100e59b0
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x100e58ce
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x101e0a88]
mov ecx, edi
call esi
test eax, eax
jne 0x100e592b
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x100e58a4
jmp 0x100e5a08
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x100e5a08
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x101e0a88]
mov ecx, edi
call esi
test eax, eax
jne 0x100e592b
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x100e58f6
jmp 0x100e5a08
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x101e0a88]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x101e0a88]
mov ecx, edi
call esi
mov ecx, eax
call fcn.10075744
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x101e0a88]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x100e5a08
cmp eax, 0x200
jb 0x100e59ee
cmp eax, 0x202
jbe 0x100e59b0
cmp eax, 0x203
jbe 0x100e59ee
cmp eax, 0x205
jbe 0x100e59b0
add eax, 0xfffffdf9
cmp eax, 1
ja 0x100e59ee
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x100e59cf
cmp dword [eax + 0x20], ebx
je 0x100e59cf
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x100e59ee
cmp dword [eax + 0x20], ebx
je 0x100e59ee
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 4], 0x203
jne 0x100e5a0d
lea eax, [edi + 0x2250]
test eax, eax
je 0x100e5a04
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x100e5a0d
xor eax, eax
inc eax
jmp 0x100e5a15
push esi
mov ecx, edi
call fcn.100dfe15
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10129316
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10066786
call fcn.10066a9b
cmp dword [eax + 0x14], 0
jne 0x10129331
mov ecx, esi
pop esi
jmp fcn.10128b8b
pop esi
ret
Function at 0x10166815
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x101668c9
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x101668c5
mov eax, dword [eax + 0x20]
test eax, eax
je 0x101668c5
cmp dword [ebx], eax
jne 0x101668c5
mov eax, dword [ebx + 4]
sub eax, 1
je 0x10166894
sub eax, 1
je 0x10166862
sub eax, 1
jne 0x101668c5
mov edi, 0x428e
jmp 0x10166899
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x10166899
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x101e0a88]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x10166899
add edi, 3
jmp 0x10166899
mov edi, 0x3ea0
push edi
call fcn.1006b771
test eax, eax
je 0x101668c9
push edi
push eax
mov ecx, 0x1024f6f4
call fcn.10015f80
test eax, eax
je 0x101668c9
mov eax, dword [0x1024f6f4]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x101668be
call fcn.100644cd
int3

Function at 0x1016ffeb
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.101bb630
pop ecx
test eax, eax
jne 0x1017002d
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10069bb1
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1016fff3
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret
Function at 0x101969ca
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x101d6899
call fcn.101a72dc
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x10196aaa
mov edi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x10196aaa
cmp edi, 0x43
je 0x10196a0f
cmp edi, 0x2d
jne 0x10196aaa
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10196aaa
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.1006591e
push eax
lea ecx, [ebp - 0x10]
call fcn.10009460
movzx eax, byte [esi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [esi + 0xe5]
push eax
movzx eax, byte [esi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.100145f0
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.100096e0
mov esi, dword [ebp - 0x14]
push ebx
mov ecx, esi
call fcn.10077200
call fcn.101a72a5
ret 4

Function at 0x101c21b8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101c202e
Function at 0x103fc058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x103fc1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x103fc07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103fc06a
add dl, dl
jne 0x103fc089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103fc0dc
xor eax, eax
add dl, dl
jne 0x103fc096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103fc17d
add dl, dl
jne 0x103fc0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103fc0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103fc0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103fc0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x103fc0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x103fc075
mov eax, 1
add dl, dl
jne 0x103fc0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103fc0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103fc0e1
sub eax, ebx
mov ebx, 1
jne 0x103fc128
mov ecx, 1
add dl, dl
jne 0x103fc10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103fc119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103fc105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103fc075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x103fc13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103fc14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103fc136
cmp eax, 0x7d00
jae 0x103fc16d
cmp eax, 0x500
jb 0x103fc168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103fc075
cmp eax, 0x7f
ja 0x103fc170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103fc075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x103fc19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x103fc075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1000a405
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x218
mov eax, 0x1001334e
call fcn.100128a4
push 0x200
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x220]
call fcn.10009a81
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x220]
push eax
call fcn.10009db4
push 0x100019a4
lea ecx, [ebp - 0x220]
call fcn.10009c3a
lea ecx, [ebp - 0x220]
call fcn.1000d0fd
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000a486
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x218], 8
je 0x1000a482
push dword [ebp - 0x214]
call fcn.1000bf2a
pop ecx
xor al, al
jmp 0x1000a4d3
and dword [ebp - 0x224], 0
push 0
lea eax, [ebp - 0x224]
push eax
push 0x10001994
push 0x10001928
push 0x80000002
call fcn.1000c4dc
test eax, eax
je 0x1000a4b8
cmp dword [ebp - 0x224], ebx
jne 0x1000a4b8
xor bl, bl
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x218], 8
je 0x1000a4d1
push dword [ebp - 0x214]
call fcn.1000bf2a
pop ecx
mov al, bl
call fcn.10012927
ret
Function at 0x1000c4dc
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x10013e50
call fcn.1001283b
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov ebx, 0x20019
cmp dword [ebp + 0x18], edi
je 0x1000c557
cmp dword [0x100180c8], 0xffffffff
jne 0x1000c549
push 0x1000143c
mov dword [0x100180c8], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x1000c549
push 0x10001458
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x1000c549
lea eax, [ebp + 0x18]
push eax
mov dword [ebp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp + 0x18], edi
je 0x1000c549
mov dword [0x100180c8], 1
cmp dword [0x100180c8], 1
jne 0x1000c557
mov ebx, 0x20119
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x1000c5bc
push 4
pop esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x1000c5bc
cmp dword [ebp - 0x14], esi
jne 0x1000c5bc
cmp dword [ebp - 0x18], esi
jne 0x1000c5bc
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x1000c5b7
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x1000c5d0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x1000c5ce
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
call fcn.10012913
ret 0x14

Function at 0x1001037f
Capabilities:
Hash data using djb2

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x1505
jmp 0x100103a3
push eax
call dword [sym.imp.MSVCR100_CLR0400.dll_towupper]
imul edi, edi, 0x21
movzx eax, ax
xor edi, eax
pop ecx
add esi, 2
movzx eax, word [esi]
test ax, ax
jne 0x10010390
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x1001044c
Capabilities:
Query environment variable

Disassembly:
push 0x8c
mov eax, 0x10014510
call fcn.100128a4
mov esi, dword [ebp + 8]
mov eax, esi
lea edx, [eax + 2]
xor ebx, ebx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10010465
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
neg ecx
sbb ecx, ecx
push 0x3f
and ecx, 8
pop edx
sub edx, ecx
cmp eax, edx
jbe 0x1001048e
xor eax, eax
jmp 0x1001055a
cmp dword [ebp + 0xc], ebx
je 0x100104b6
push esi
call fcn.10010426
test eax, eax
je 0x10010487
push 0x10004244
lea eax, [ebp - 0x90]
push 0x40
push eax
call dword [sym.imp.MSVCR100_CLR0400.dll_wcscpy_s]
add esp, 0xc
jmp 0x100104bf
xor eax, eax
mov word [ebp - 0x90], ax
push esi
lea eax, [ebp - 0x90]
push 0x40
push eax
call dword [sym.imp.MSVCR100_CLR0400.dll_wcscat_s]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0x90]
push eax
call esi
mov edi, eax
cmp edi, ebx
je 0x10010487
push 0x10002538
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000c00e
pop ecx
pop ecx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], ebx
cmp eax, ebx
je 0x1001051e
mov dword [ebp - 0x94], 1
mov dword [ebp - 4], 3
cmp dword [ebp - 0x98], ebx
je 0x1001053d
push edi
push dword [ebp - 0x98]
lea eax, [ebp - 0x90]
push eax
call esi
mov esi, dword [ebp - 0x98]
mov dword [ebp - 0x94], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.10011a47
mov eax, esi
call fcn.10012927
ret 8
Function at 0x10010562
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
and dword [ebp - 8], 0
and dword [ebp - 4], 0
test byte [ebp + 0x14], 1
mov dword [ebp - 0x14], 4
je 0x100105c5
push dword [ebp + 0x18]
push dword [ebp + 8]
call fcn.1001044c
mov esi, eax
test esi, esi
je 0x100105c5
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.MSVCR100_CLR0400.dll_wcstoul]
mov ebx, eax
xor eax, eax
cmp dword [ebp - 0x10], esi
push esi
setne al
mov edi, eax
call fcn.1000bf2a
add esp, 0x10
test edi, edi
je 0x100105c5
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
xor eax, eax
jmp 0x100106e5
cmp dword [0x10018128], 0
je 0x100106d8
test byte [ebp + 0x14], 0xe
je 0x100106d8
push dword [ebp + 8]
call fcn.100103e6
test eax, eax
je 0x100106d8
test byte [ebp + 0x14], 2
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 0x20019
mov edi, 0x10004200
je 0x10010672
mov eax, dword [0x10018124]
and dword [ebp - 0x10], 0
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
jne 0x1001062d
lea eax, [ebp + 0x18]
push eax
push ebx
push 0
push edi
push 0x80000001
call esi
mov dword [ebp - 0x10], 1
test eax, eax
jne 0x10010672
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x18], eax
je 0x10010659
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 0
jne 0x10010672
cmp dword [ebp - 4], 4
jne 0x10010672
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
jmp 0x100105be
test byte [ebp + 0x14], 4
je 0x100106d8
mov eax, dword [0x10018120]
and dword [ebp + 0x14], 0
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x100106a3
lea eax, [ebp - 0xc]
push eax
push ebx
push 0
push edi
push 0x80000002
call esi
mov dword [ebp + 0x14], 1
test eax, eax
jne 0x100106d8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], 0
mov esi, eax
je 0x100106ce
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100106d8
cmp dword [ebp - 4], 4
je 0x10010665
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1001282c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001c04c]
jne 0x10012836
repz ret
jmp fcn.10012ddb
Function at 0x1000c334
Capabilities:
Hash data with md5

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

Function at 0x1000d23e
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x1000d25f
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x1000d23a
and eax, 0xffff
push eax
jmp fcn.1000d23e
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000cbee
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x1000d418
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x1000d21f
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
Function at 0x1000d26c
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x1000d1ce
cmp dword [eax + 0xc], ebx
je 0x1000d271
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
jmp 0x1000d1c0
call fcn.1000cc29
cdq
add edx, dword [eax]
outsd dx, dword [esi]
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x1000d2dd
add eax, esi
cmp dword [eax], ebx
je 0x1000d2dd
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1000d2d8
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1000d2c2
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1000d2ca
cmp edx, ebx
jne 0x1000d418
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1000d299
add eax, dword [eax + 4]
jmp 0x1000d286
mov dword [ebp + 0xc], ebx
jmp 0x1000d2e8
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000d300
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000d31e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
js 0x1000d342
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000d37c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000d363
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000d36c
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000d376
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000d358
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000d2e2
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000d3c9
dec eax
je 0x1000d3c0
sub eax, 3
je 0x1000d3b7
mov dword [ebp - 4], 0x40
jmp 0x1000d3e6
mov dword [ebp - 4], 4
jmp 0x1000d3cc
mov dword [ebp - 4], 0x20
jmp 0x1000d3cc
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push esp
invalid
invalid
invalid
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1000d418
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000d398
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1000cc29
or dword gs:[eax], edx
in al, 0xff
jne 0x1000d423
push 1
push esi
call edi
mov eax, esi
jmp 0x1000d424
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000d2d9
Capabilities:
Inspect section memory permissions

Disassembly:
inc eax
add al, 0xeb
test eax, 0xeb0c5d89
push es
Function at 0x1000d31c
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x1000d1ce
cmp dword [eax + 0xc], ebx
je 0x1000d271
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
jmp 0x1000d1c0
call fcn.1000cc29
cdq
add edx, dword [eax]
outsd dx, dword [esi]
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x1000d2dd
add eax, esi
cmp dword [eax], ebx
je 0x1000d2dd
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1000d2d8
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1000d2c2
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1000d2ca
cmp edx, ebx
jne 0x1000d418
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1000d299
add eax, dword [eax + 4]
jmp 0x1000d286
mov dword [ebp + 0xc], ebx
jmp 0x1000d2e8
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000d300
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000d31e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
js 0x1000d342
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000d37c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000d363
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000d36c
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000d376
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000d358
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000d2e2
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000d3c9
dec eax
je 0x1000d3c0
sub eax, 3
je 0x1000d3b7
mov dword [ebp - 4], 0x40
jmp 0x1000d3e6
mov dword [ebp - 4], 4
jmp 0x1000d3cc
mov dword [ebp - 4], 0x20
jmp 0x1000d3cc
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push esp
invalid
invalid
invalid
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1000d418
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000d398
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1000cc29
or dword gs:[eax], edx
in al, 0xff
jne 0x1000d423
push 1
push esi
call edi
mov eax, esi
jmp 0x1000d424
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret