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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48f718
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x44a6d9
inc eax
mov dword [esi + 0x10], eax
jmp 0x44a7ec
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x44a6ed
mov eax, 0xffffffc7
jmp 0x44a7ee
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x44a6fe
cmp dword [esi + 8], eax
jne 0x44a6ed
cmp dword [esi + 8], eax
jne 0x44a717
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x44a717
mov eax, 0xffffffc7
jmp 0x44a7ee
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x44a72b
push eax
mov ecx, ebx
call fcn.00449ed0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00419820
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x44a75c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00419840
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00449640
test eax, eax
mov dword [esp + 0x38], eax
je 0x44a78f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x496b98
call fcn.00419a20
mov eax, dword [esp + 0x38]
jmp 0x44a7ee
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0044a500
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x44a7d3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0044a520
mov esi, eax
test esi, esi
jne 0x44a803
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0044a500
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x44a7a5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x496b98
call fcn.00419a20
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x496b98
call fcn.00419a20
mov eax, esi
jmp 0x44a7ee

Function at 0x44d910
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x44d970
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x44d970
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x44d970
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x44d970
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x44d9b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x453900
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48fd48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004868ee
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004532a0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0048681c
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00483006
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00483006
push 1
push 0
push 0
mov ecx, esi
call fcn.00482fae
push 1
push 0
push 1
mov ecx, esi
call fcn.00482fae
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00486960
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x453a80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48fd68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004868ee
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004532a0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0048681c
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x453b44
cmp dword [esp + 0x40], 1
jne 0x453b42
cmp ecx, eax
jge 0x453b44
mov eax, ecx
cmp eax, 0xc8
jge 0x453b50
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00453900
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00486960
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4542c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48fdd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00481423
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00486b96
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004880ee
test eax, eax
je 0x4543dc
mov ecx, dword [esp + 0x3c]
call fcn.00486bc3
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4543a0
push edi
mov ecx, esi
call fcn.00484181
mov ecx, esi
call fcn.00454540
cmp dword [esp + 0x38], 1
jne 0x4543d5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004842eb
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x456e00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x456e33
push esi
call fcn.00459ef0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x456e2c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x456eb9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x456ea2
mov eax, dword [esi + 8]
test eax, eax
je 0x456e57
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x456e9e
cmp eax, 2
je 0x456ea2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x456e4a
cmp eax, 3
je 0x456e7d
cmp eax, 1
jne 0x456e4a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x456e4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x456e4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00456ee0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x456ec8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00456ee0
add esp, 4
pop esi
ret

Function at 0x4653d0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x465473
test eax, eax
jbe 0x465473
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x465473
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46541e
xor esi, esi
jmp 0x465424
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46544f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0041a220
add esi, eax
push esi
mov ebx, esi
call fcn.0041a220
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x465430
pop ebp
test edi, edi
pop edi
jne 0x465473
test ebx, ebx
je 0x465473
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004708e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4655b5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4656cd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4656cd
mov eax, dword [esi + 0x3c]
push eax
call fcn.00481875
mov esi, eax
test esi, esi
je 0x4656cd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4656cd
mov ecx, esi
call fcn.00465520
cmp edi, eax
jge 0x4656cd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x465653
mov dword [esp + 0x34], 1
jmp 0x4656ae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4656cd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00463dc0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x482219
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x482251
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004802a6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048027e
jmp 0x48225d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48390a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48394c
call fcn.004895fa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48394c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x483943
xor eax, eax
jmp 0x483954
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048395a
pop edi
pop esi
pop ebx
ret 4
Function at 0x489b2a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x489b58
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x489b76
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00489a90
jmp 0x489b76
mov eax, dword [esi + 0x14]
test eax, eax
je 0x489b76
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00489a90
test edi, edi
mov eax, edi
jne 0x489b60
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100bdaa
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x105e004]
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 4], eax
push 0x1001258
lea eax, [ebp - 0x448]
push eax
call esi
and dword [ebp - 0x43c], 0
and dword [ebp - 0x430], 0
and dword [ebp - 0x42c], 0
lea eax, [ebp - 0x448]
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x440]
push eax
push 0x20019
lea eax, [ebp - 0x428]
push eax
mov dword [ebp - 0x440], 0x18
mov dword [ebp - 0x434], 0x40
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x100be9a
push 0x1001230
lea eax, [ebp - 0x454]
push eax
call esi
lea eax, [ebp - 0x44c]
push eax
push 0x210
lea eax, [ebp - 0x424]
push eax
push 2
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x428]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
push dword [ebp - 0x428]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jl 0x100be9a
mov esi, dword [sym.imp.ntdll.dll_wcsstr]
lea eax, [ebp - 0x418]
push 0x1001228
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100be9e
lea eax, [ebp - 0x418]
push 0x1001220
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100be9e
xor al, al
jmp 0x100bea0
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100d6cf
leave
ret

Function at 0x100d520
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.0100d6a2
pop ebp
jmp fcn.0100dbb9

Function at 0x100d6cf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x105e004]
jne 0x100d6e0
test ecx, 0xffff0000
jne 0x100d6e0
ret
jmp fcn.0100d535
Function at 0x100e8c2
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
push 0xc
xor ebx, ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 0x2d1080
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
mov esi, ecx
push ebx
push dword [esi + 0x24]
mov dword [ebp - 8], 0x36c0
mov byte [esi + 0x106], bl
call edi
cmp eax, ebx
mov dword [esi + 0x34], eax
jl 0x100e9d4
cmp dword [ebp - 0x1c], 7
jne 0x100e9d4
cmp dword [ebp - 0x14], 0xffffffff
je 0x100e9d4
cmp dword [ebp - 0x14], ebx
je 0x100e9d4
push 0x36c0
call fcn.01013ebd
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100e9c3
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push dword [ebp - 4]
push ebx
push ebx
push 0x70050
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x24]
call edi
cmp eax, ebx
mov dword [esi + 0x34], eax
jge 0x100e980
cmp eax, 0xc0000023
jne 0x100e9b6
add dword [ebp - 8], 0x3600
je 0x100e9b6
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.010140bd
cmp eax, ebx
je 0x100e9b6
mov ecx, eax
mov dword [ebp - 4], ecx
jmp 0x100e983
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x34], 0xc0000023
je 0x100e93a
cmp dword [ecx], ebx
jne 0x100e9ce
mov eax, dword [ecx + 4]
push 4
pop edx
cmp eax, edx
ja 0x100e99c
mov edx, eax
cmp edx, ebx
jbe 0x100e9ce
lea eax, [ecx + 0x48]
mov edi, dword [eax]
cmp edi, dword [ebp - 0x14]
je 0x100e9c7
inc ebx
add eax, 0x90
cmp ebx, edx
jb 0x100e9a3
jmp 0x100e9ce
cmp dword [ebp - 4], ebx
je 0x100e9c3
push dword [ebp - 4]
call fcn.01013ffa
xor al, al
jmp 0x100e9d6
mov byte [esi + 0x106], 1
push ecx
call fcn.01013ffa
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100ef26
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
mov ax, word [ecx + 0xc]
shl ax, 1
mov word [ebp - 8], ax
mov word [ebp - 6], ax
mov eax, dword [ecx + 8]
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 8]
mov dword [ebp - 0x20], eax
mov al, byte [ebp + 0x10]
xor esi, esi
neg al
push edi
mov edi, dword [ebp + 0x14]
push 0x10
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], 0x40
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
or eax, 1
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
push edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov ebx, eax
cmp ebx, esi
jge 0x100efb8
mov ecx, dword [ebp + 0x1c]
cmp ecx, esi
je 0x100f02c
xor eax, eax
cmp ebx, 0xc0000022
setne al
dec eax
and eax, 0x3fe
add eax, 0x7d7
jmp 0x100f004
push 0x11
push 4
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [edi]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ebx, eax
cmp ebx, esi
jge 0x100f00c
cmp ebx, 0x80000010
je 0x100eff8
cmp ebx, 0x80000011
je 0x100eff1
cmp ebx, 0xc00000a3
je 0x100eff1
mov eax, 0x7d6
jmp 0x100effd
mov eax, 0x830
jmp 0x100effd
mov eax, 0xbe7
mov ecx, dword [ebp + 0x1c]
cmp ecx, esi
je 0x100f02c
push eax
call fcn.0100bd8b
jmp 0x100f02c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
push esi
push esi
push esi
push esi
push 0x90083
mov dword [eax], ecx
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push dword [edi]
call dword [sym.imp.ntdll.dll_NtFsControlFile]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x18
Function at 0x100f343
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 8]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
add eax, ebx
adc ecx, esi
mov dword [ebp - 0xc], eax
mov eax, 0x10000
xor edx, edx
div dword [ebp - 4]
push ecx
push dword [ebp - 0xc]
mov dword [ebp - 8], ecx
push esi
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], esi
push ebx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x14], eax
jmp 0x100f44b
mov esi, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push dword [ebp + 8]
push eax
call fcn.0100e7b8
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
push dword [ebp - 0xc]
xor ecx, ecx
add eax, dword [ebp + 8]
adc ecx, dword [ebp + 0xc]
push ecx
push eax
call fcn.0100e878
test al, al
je 0x100f3dc
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sbb ecx, dword [ebp + 0xc]
imul esi, eax
mov dword [ebp - 0x30], ecx
jmp 0x100f3e3
mov esi, dword [ebp + 0x10]
imul esi, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], ebx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 0x14]
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push dword [edi + 0x24]
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0xc0000017
mov dword [edi + 0x34], eax
jne 0x100f41f
shr dword [ebp + 0x10], 1
mov eax, dword [ebp + 0x10]
sub dword [ebp + 8], eax
sbb dword [ebp + 0xc], ebx
jmp 0x100f434
mov ecx, 0xc0000000
mov edx, eax
and edx, ecx
cmp edx, ecx
je 0x100f461
cmp dword [ebp - 0x18], esi
jne 0x100f461
add dword [ebp + 0x14], esi
push dword [ebp - 8]
mov eax, dword [ebp + 0x10]
push dword [ebp - 0xc]
xor ecx, ecx
add dword [ebp + 8], eax
adc dword [ebp + 0xc], ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100e82c
test al, al
jne 0x100f391
inc al
pop edi
pop esi
pop ebx
leave
ret 0x10
mov edx, dword [edi + 0x124]
cmp edx, ebx
je 0x100f4a3
mov ebx, eax
and ebx, ecx
cmp ebx, ecx
push esi
jne 0x100f487
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push eax
push 0x1001480
push 0x69a4
jmp 0x100f49a
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x1001474
push 0x69a5
push edx
call fcn.0100e21b
add esp, 0x1c
cmp byte [edi + 0x128], 0
je 0x100f4c2
mov esi, dword [edi + 0x34]
push esi
mov ecx, edi
call fcn.0100ec5b
test al, al
je 0x100f4c2
push esi
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
xor al, al
jmp 0x100f45a
Function at 0x1012750
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push 4
push 0x28
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jge 0x1012775
xor al, al
jmp 0x101279d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
push 4
mov dword [ebp - 0x10], eax
push 0x28
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
setge al
leave
ret 0xc

Function at 0x10127a6
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [ebp + 0x14], bl
je 0x10127c2
cmp dword [ebp + 0x10], ebx
jne 0x10127c2
mov al, 1
jmp 0x1012882
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov ax, word [eax + 0xc]
shl ax, 1
cmp byte [ebp + 0x14], bl
mov word [ebp - 8], ax
mov word [ebp - 6], ax
lea eax, [ebp - 8]
push esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov esi, 0x12019f
je 0x1012826
push ebx
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.ntdll.dll_NtOpenFile]
cmp eax, 0xc000000f
je 0x1012826
cmp eax, 0xc0000034
jne 0x1012846
push ebx
push ebx
push 0x40
push 5
push ebx
push 0x80
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.ntdll.dll_NtCreateFile]
cmp eax, ebx
jge 0x101284e
xor al, al
jmp 0x1012881
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0xc], 0xffffffff
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push dword [ebp + 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.ntdll.dll_NtWriteFile]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp esi, ebx
setge al
pop esi
pop ebx
leave
ret 0x10

Function at 0x101325f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.01017ad2