joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bde1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x44bdf5
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44be29
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0044edec
test al, al
jne 0x44be5c
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004498d3
lea eax, [ebp - 0x4c]
push 0x476aa8
push eax
call fcn.004350f5
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44be5c
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0044403a
lea eax, [ebp - 0x48]
push 0x475860
push eax
call fcn.004350f5
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x44be64
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x44be7a
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44beaf
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0044403a
lea eax, [ebp - 0x48]
push 0x475860
push eax
call fcn.004350f5
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x44beb7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x44becd
mov eax, 0x1ed
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44bf01
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0044edec
test al, al
jne 0x44bf34
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004498d3
lea eax, [ebp - 0x4c]
push 0x476aa8
push eax
call fcn.004350f5
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44bf34
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0044403a
lea eax, [ebp - 0x48]
push 0x475860
push eax
call fcn.004350f5
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x44bf3c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x44bf52
mov eax, 0x28e
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44bf86
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0044edec
test al, al
jne 0x44bfb9
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004498d3
lea eax, [ebp - 0x4c]
push 0x476aa8
push eax
call fcn.004350f5
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44bfb9
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0044403a
lea eax, [ebp - 0x48]
push 0x475860
push eax
call fcn.004350f5
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x44bfc1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x44bfd4
xor eax, eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44c008
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0044edec
test al, al
jne 0x44c03b
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004498d3
lea eax, [ebp - 0x4c]
push 0x476aa8
push eax
call fcn.004350f5
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44c03b
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0044403a
lea eax, [ebp - 0x48]
push 0x475860
push eax
call fcn.004350f5
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x44d205
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x467173
call fcn.00433ae8
sub esp, 0x138
and byte [ebp - 0x144], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x10]
pop ebx
push eax
push 0x482758
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44d2e2
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], 0x104
mov eax, 0x482748
je 0x44d26f
mov eax, 0x482738
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x46baf8
mov esi, 0x46baf0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.004023fe
push 0x47c818
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00445fd0
lea ecx, [ebp - 0x40]
call fcn.0044ce4a
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403e42
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
jmp 0x44d331
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x46baf8
mov esi, 0x46baf0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.004023fe
push 0x47c818
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00445fd0
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403e42
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.00401f95
cmp dword [ebp - 0x10], 0
je 0x44d34a
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x44d34a
push dword [ebp - 0x10]
call eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x44def6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x44df0c
mov dword [ebp + 0xc], 4
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44df41
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0044403a
lea eax, [ebp - 0x48]
push 0x475860
push eax
call fcn.004350f5
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x44df49
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x44df5f
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44df94
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0044403a
lea eax, [ebp - 0x48]
push 0x475860
push eax
call fcn.004350f5
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x44df9c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x44dfb0
push 4
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44dfe4
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0044edec
test al, al
jne 0x44e017
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004498d3
lea eax, [ebp - 0x4c]
push 0x476aa8
push eax
call fcn.004350f5
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44e017
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0044403a
lea eax, [ebp - 0x48]
push 0x475860
push eax
call fcn.004350f5
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x44e8ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push edi
mov edi, ecx
call fcn.0040b21b
xor ebx, ebx
cmp eax, 1
jne 0x44e967
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x482a9c
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44e954
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push 0x482a90
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x44e92b
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x830]
push eax
push ebx
push ebx
push 0x482a80
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x44e954
mov byte [ebp - 0x830], bl
cmp dword [ebp - 4], ebx
je 0x44e967
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x44e967
push dword [ebp - 4]
call eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044e3a6
add esp, 0x14
xor ecx, ecx
cmp eax, ebx
mov dword [edi + 4], eax
setne cl
pop edi
mov al, cl
pop ebx
leave
ret 0x14
Function at 0x44f08c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x44f0c4
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x44f0d0
mov eax, dword [esi + 0x5c]
jmp 0x44f119
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x44f117
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x44f0f5
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x44f0d9
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x44f5fe
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 8]
mov esi, ecx
push eax
push 0x20000013
push dword [esi + 4]
mov dword [ebp - 4], 4
call fcn.0044e582
add esp, 0x14
test eax, eax
je 0x44f63c
mov eax, dword [ebp - 8]
cmp eax, 0xc8
jb 0x44f640
cmp eax, 0x12c
jae 0x44f640
mov al, 1
jmp 0x44f656
add eax, 0xd3c0
or eax, 0x80040000
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
leave
ret

Function at 0x4505cf
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x450621
push eax
call fcn.00433b07
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x450621
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x47cbe4
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x450625
xor al, al
jmp 0x450686
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47e2f4
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x450684
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00433b07
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x450684
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x450672
mov al, 1
pop ebx
leave
ret 4
Function at 0x4542fd
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4543cf
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.00433b07
pop ecx
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
push 0
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp + 8]
jne 0x4543cf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x30]
lea ecx, [esi + 0x28]
push dword [ecx + 4]
call fcn.00454a8d
push dword [esi + 0x20]
lea ecx, [esi + 0x18]
push dword [ecx + 4]
call fcn.00454a37
mov edi, 0x483640
push edi
call fcn.00433e50
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00403ccb
mov edi, dword [ebp - 4]
mov ecx, esi
and byte [edi + ebx], 0
mov dword [esi + 0x38], edi
call fcn.00453e21
push eax
push 0
mov ecx, esi
call fcn.00453f96
test eax, eax
je 0x4543cf
mov ecx, esi
call fcn.00453e21
push eax
push 9
mov ecx, esi
call fcn.00453f96
test eax, eax
je 0x4543cf
push esi
mov ecx, esi
call fcn.00454271
test eax, eax
jne 0x4543d3
xor eax, eax
jmp 0x4543dd
push edi
call fcn.0043311a
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x454502
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x467b4c
call fcn.00433ae8
sub esp, 0x5c
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], ecx
mov edi, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
cmp edi, eax
je 0x4545f3
push ebx
push esi
and dword [ebp - 0x14], 0
mov eax, dword [edi + 4]
and dword [ebp - 4], 0
test eax, eax
jne 0x45453a
mov eax, 0x4695a0
lea ecx, [ebp - 0xd]
push 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040175f
mov ecx, dword [ebp + 0xc]
push 0xf003f
mov byte [ebp - 4], 1
mov esi, dword [ecx]
mov ecx, eax
call fcn.0040198d
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00413899
test eax, eax
setne bl
and byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00401bc2
test bl, bl
jne 0x4545cf
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.00454502
cmp dword [edi + 0x14], 0
jne 0x4545cf
mov eax, dword [edi + 4]
test eax, eax
jne 0x45459c
mov eax, 0x4695a0
lea ecx, [ebp - 0xe]
push 1
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.0040175f
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov esi, dword [ecx]
mov ecx, eax
call fcn.0040198d
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00401bc2
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x4545e2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add edi, 0x38
cmp edi, dword [eax + 0x30]
jne 0x454526
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x456686
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x4566a9
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi], eax
lea edi, [esi + 0x4c]
push edi
push ebx
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.00455998
add esp, 0x18
test eax, eax
je 0x45674e
push dword [edi]
call fcn.00433b07
pop ecx
cmp eax, ebx
setne cl
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov byte [ebp - 0xc], cl
push eax
lea ecx, [esi + 0x44]
call fcn.0044b396
cmp byte [ebp - 0xc], bl
je 0x4566f2
push dword [ebp - 8]
call fcn.0043311a
pop ecx
mov eax, dword [esi + 0x48]
push edi
push eax
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.00455998
add esp, 0x18
test eax, eax
je 0x45674e
lea eax, [ebp - 4]
push ebx
push eax
push 4
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push edi
push dword [edi]
push dword [esi + 0x48]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebp + 0x10], 1
jne 0x45675b
mov eax, dword [esi + 0xc]
push ebx
push dword [ebp + 8]
push 1
push 1
push 0x10001
push eax
call fcn.00455be8
add esp, 0x18
test eax, eax
jne 0x45675b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x54], eax
xor al, al
jmp 0x456775
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x456773
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi]
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x458430
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push 0x483290
push SysFreeString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4584ba
mov esi, dword [esp + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0x48327c
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4584af
mov ecx, dword [esp + 8]
push ebx
cmp ecx, 1
sete bl
test esi, esi
je 0x4584a7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop esi
add esp, 0x10
ret
test esi, esi
je 0x4584ba
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
add esp, 0x10
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x105ae
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0
call sub.ntoskrnl.exe_PsGetCurrentProcessId
push eax
push 2
call fcn.00010522
push 0x1059a
mov esi, eax
call sub.ntoskrnl.exe_DbgPrint
test esi, esi
pop ecx
jne 0x105ff
call fcn.00010406
mov esi, eax
test esi, esi
je 0x1060c
call sub.ntoskrnl.exe_PsGetCurrentProcessId
and dword [esi + 0xc], 0
mov dword [esi], eax
mov eax, dword [ebp + 8]
push esi
mov dword [esi + 4], eax
mov dword [esi + 8], 1
call fcn.00010456
jmp 0x1060c
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], 1
pop esi
pop ebp
ret 4

Function at 0x10f05
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x10e84]
test eax, eax
mov ecx, 0xbb40
je 0x10f1c
cmp eax, ecx
jne 0x10f3f
mov edx, dword [sym.imp.ntoskrnl.exe_KeTickCount]
mov eax, 0x10e84
shr eax, 8
xor eax, dword [edx]
and eax, 0xffff
mov dword [0x10e84], eax
jne 0x10f3f
mov eax, ecx
mov dword [0x10e84], eax
not eax
mov dword [0x10e80], eax
pop ebp
jmp 0x10a32
Function at 0x41f04c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4d853a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f09b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
jmp 0x41f0ba
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f12c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f115
test esi, esi
jbe 0x41f12c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f107
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f12c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0e4
jmp 0x41f12c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f12c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8541
ret