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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 8]
call fcn.100534c0
movzx eax, al
test eax, eax
jne 0x10053413
xor al, al
jmp 0x100534b3
mov ecx, dword [ebp - 8]
call fcn.100518b0
movzx ecx, al
test ecx, ecx
je 0x100534b0
mov ecx, dword [ebp - 8]
call fcn.10051710
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
push eax
call fcn.10054fc0
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.10248ee6
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x2c], eax
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x30]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100534a8
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 8]
call fcn.100519a0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x10054fc0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
je 0x10055002
cmp dword [ebp + 8], 0
je 0x10055002
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10054ff8
xor eax, eax
xor edx, edx
jmp 0x10055006
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
jmp 0x10055006
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret

Function at 0x10055010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0xffffffff
je 0x10055089
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10055061
cmp dword [ebp - 8], 0
je 0x10055061
xor al, al
jmp 0x1005508b
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10055083
mov al, 1
jmp 0x1005508b
xor al, al
jmp 0x1005508b
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x10055090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0xffffffff
je 0x1005510f
cmp dword [ebp + 0x14], 0
je 0x1005510f
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x100550e7
cmp dword [ebp - 8], 0
je 0x100550e7
xor al, al
jmp 0x10055111
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10055109
mov al, 1
jmp 0x10055111
xor al, al
jmp 0x10055111
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x10060a10
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
lea eax, [ebp + 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0
jle 0x10060a48
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 8]
add edx, 8
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 8]
mov edx, dword [eax - 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
jmp 0x10060a50
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
cmp dword [ebp + 0x10], 0
jle 0x10060a85
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 8]
add eax, 8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx - 8]
mov eax, dword [ecx - 4]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
jmp 0x10060a8d
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edx
cmp dword [ebp + 0x10], 0
jle 0x10060ac2
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 8]
add ecx, 8
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx - 8]
mov ecx, dword [edx - 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x10060aca
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], eax
cmp dword [ebp + 0x10], 0
jle 0x10060aff
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 8]
add edx, 8
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 8]
mov edx, dword [eax - 4]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
jmp 0x10060b07
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 8]
add eax, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
sub eax, 8
cdq
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
mov eax, dword [ebp + 0x10]
cdq
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0xc], 0
xor ecx, ecx
mov word [ebp - 4], cx
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 0xc], esp
and esp, 0xfffffff0
push 0x33
call fcn.10060b61

Function at 0x10060bf0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x33
call fcn.10060bfd
Function at 0x100614f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov dword [ebp - 0xac], 0x94
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10061528
push str.WoW64fix:_Failed_to_get_OS_version
call fcn.1003e700
add esp, 4
xor eax, eax
jmp 0x10061695
cmp dword [ebp - 0xa8], 6
jne 0x1006153a
cmp dword [ebp - 0xa4], 1
ja 0x10061543
cmp dword [ebp - 0xa8], 6
jbe 0x10061565
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
push str.WoW64fix:_Windows_version__d._d_not_supported._n
call fcn.1003cfa0
add esp, 0xc
xor eax, eax
jmp 0x10061695
push 0x1065f1e8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [0x1065f1e8], 0
jne 0x10061594
push str.WoW64_not_detected._n
call fcn.1003cfa0
add esp, 4
xor eax, eax
jmp 0x10061695
push 0x103e489c
call fcn.10060ef0
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push str.wow64.dll
call fcn.10060ef0
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push str.Wow64PrepareForException
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10060f30
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push 0x103e45c4
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10060f30
add esp, 0xc
mov dword [0x1065f1d8], eax
mov dword [0x1065f1dc], edx
push str.NtSetContextThread
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10060f30
add esp, 0xc
mov dword [0x1065f1d0], eax
mov dword [0x1065f1d4], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [0x1065f1d4]
push edx
mov eax, dword [0x1065f1d0]
push eax
mov ecx, dword [0x1065f1dc]
push ecx
mov edx, dword [0x1065f1d8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push str.WoW64_detected:_64_bit_ntdll_base:_0x_x__KiUserExceptionDispatcher:_0x_x__NtSetContextThread:_0x_x__Wow64PrepareForException:_0x_x_n
call fcn.1003cfa0
add esp, 0x24
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [0x1065f1d0]
push eax
mov ecx, dword [0x1065f1d8]
push ecx
call fcn.100611c0
add esp, 0xc
mov dword [0x1065f1e0], eax
mov dword [0x1065f1e4], edx
call fcn.10061400
mov edx, dword [0x1065f1e4]
push edx
mov eax, dword [0x1065f1e0]
push eax
push str.WoW64_workaround:_KiUserExceptionDispatcher_hook_installed_at:_0x_x_n
call fcn.1003cfa0
add esp, 0xc
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10066380
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.10249640
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.C:cuckoo__lu.ini
lea eax, [ebp - 0x10c]
push eax
call fcn.100011d0
add esp, 0xc
push 0x275c
push 0
push 0x104f04b8
call fcn.1024a480
add esp, 0xc
mov dword [0x104f2c0c], 1
mov dword [0x104f0c78], 1
mov dword [0x104f0c6c], 0x1065c920
push 0x103e5e04
lea ecx, [ebp - 0x10c]
push ecx
call fcn.1025bf73
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100663ff
or eax, 0xffffffff
jmp 0x10066487
mov edx, dword [ebp - 8]
push edx
push 0x1000
lea eax, [ebp - 0x110c]
push eax
call fcn.1025c148
add esp, 0xc
test eax, eax
je 0x1006646c
push 0xd
lea ecx, [ebp - 0x110c]
push ecx
call fcn.1024c3b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1006643b
mov edx, dword [ebp - 4]
mov byte [edx], 0
push 0xa
lea eax, [ebp - 0x110c]
push eax
call fcn.1024c3b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1006645b
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
lea edx, [ebp - 0x110c]
push edx
call fcn.10062510
add esp, 4
jmp 0x100663ff
mov eax, dword [ebp - 8]
push eax
call fcn.1025c001
add esp, 4
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100664a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x104ff794]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100664d7
push 0x44
call fcn.10073150
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x104ff794]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10067010
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [0x104ffe54], eax
cmp dword [ebp + 8], 0
je 0x10067034
mov ecx, dword [ebp + 8]
push ecx
call fcn.1024e180
add esp, 4
test eax, eax
jne 0x10067039
jmp 0x100670e8
push 0x103e7bf0
mov edx, dword [ebp + 8]
push edx
call fcn.1025bf73
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100670e8
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.1025ca43
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1025c77c
add esp, 4
mov dword [ebp - 8], eax
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.1025ca43
add esp, 0xc
push 4
push 0x3000
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100670d2
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.1025cc44
add esp, 0x10
mov ecx, dword [ebp - 8]
shr ecx, 3
push ecx
push 8
mov edx, dword [ebp - 0xc]
push edx
push 0x104ffa64
call fcn.10073590
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.1025c001
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esp, ebp
pop ebp
ret
Function at 0x1006e640
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x1006e699
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1006e699
push str.python.exe
mov eax, dword [ebp - 4]
push eax
call fcn.10077fc0
add esp, 8
test eax, eax
jne 0x1006e683
push str.pythonw.exe
mov ecx, dword [ebp - 4]
push ecx
call fcn.10077fc0
add esp, 8
test eax, eax
je 0x1006e68f
mov dword [0x10504f4c], 0
jmp 0x1006e699
mov dword [0x10504f4c], 1
mov esp, ebp
pop ebp
ret

Function at 0x1006f010
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0x1065c8c0
call fcn.10072e90
add esp, 4
push 0x1065c8e0
call fcn.10072e90
add esp, 4
mov eax, dword [ebp + 8]
mov dword [0x1065c904], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1007c140
add esp, 4
add eax, dword [0x1065c904]
mov dword [0x1065c864], eax
push 0x103e8d54
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x1065c908], eax
mov edx, dword [0x1065c908]
push edx
call fcn.1007c140
add esp, 4
add eax, dword [0x1065c908]
mov dword [0x1065c8fc], eax
push 0x10504fa8
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.1006ec90
cmp dword [0x104ff2dc], 0
jne 0x1006f0a0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x104ff2dc], eax
xor eax, eax
pop ebp
ret

Function at 0x10072c20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
call fcn.100754f0
mov dword [ebp - 4], eax
push 0x7fff
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x7fff
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x105051f8], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov dword [ebp - 8], 0
push 0x1000
call fcn.100730a0
add esp, 4
push eax
lea ecx, [ebp - 0xb8]
push ecx
call fcn.10034e20
add esp, 8
push str.modules
lea edx, [ebp - 0xb8]
push edx
call fcn.100357d0
add esp, 8
lea eax, [ebp - 0xb8]
push eax
call fcn.10075a30
add esp, 4
lea ecx, [ebp - 0xb8]
push ecx
call fcn.10035930
add esp, 4
lea edx, [ebp - 0xb8]
push edx
call fcn.10035150
add esp, 4
lea eax, [ebp - 0xb8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10075870
push eax
call fcn.10079f40
push eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 1
call fcn.10033250
push eax
call fcn.10071f90
add esp, 0x3c
lea ecx, [ebp - 0xb8]
push ecx
call fcn.10035220
add esp, 4
mov edx, dword [ebp - 4]
push edx
call fcn.10075630
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x100738e0
Capabilities:
Generate random numbers via rtlgenrandom
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.1024a480
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x103ea380
lea edx, [ebp - 0x108]
push edx
call fcn.1025cfa0
add esp, 8
cmp dword [0x1065c454], 0
jne 0x10073940
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1065c454], eax
mov ecx, dword [0x1065c454]
mov dword [ebp - 4], ecx
push str.NtDelayExecution
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x105159d0], eax
push str.NtQuerySystemInformation
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x105159cc], eax
push str.NtQueryInformationProcess
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10505374], eax
push str.NtQueryInformationThread
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10505230], eax
push str.NtQueryObject
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1050523c], eax
push str.NtQueryKey
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1050524c], eax
push str.NtQueryAttributesFile
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1050522c], eax
push str.NtAllocateVirtualMemory
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104ff340], eax
push str.NtProtectVirtualMemory
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104ff348], eax
push str.NtFreeVirtualMemory
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104ff33c], eax
push str.LdrRegisterDllNotification
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104ff344], eax
push str.SystemFunction036
push str.advapi32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x105159c0], eax
push str.NtMapViewOfSection
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104ff328], eax
push str.NtUnmapViewOfSection
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104ff32c], eax
push str.RtlNtStatusToDosError
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104ff334], eax
push str.RtlGetVersion
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104ff338], eax
mov esp, ebp
pop ebp
ret
Function at 0x10073cd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword fs:[0x30]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
add edx, 0xc
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x24]
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x2c]
sub ecx, eax
mov word [ebp - 0x20], cx
mov cx, word [ebp - 0x20]
mov word [ebp - 0x1e], cx
movzx edx, word [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x14], edx
imul eax, dword [ebp - 0x14], 1
push eax
call fcn.100730e0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10073d48
imul ecx, dword [ebp - 0x14], 1
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.1024a480
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
movzx ecx, word [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1024a850
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
jmp 0x10073d7a
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x10]
je 0x10073dd4
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
movzx eax, word [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1024b19c
add esp, 0xc
test eax, eax
jne 0x10073da6
jmp 0x10073d72
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
cmp edx, dword [0x1065c7a4]
jne 0x10073db6
jmp 0x10073d72
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x20]
push ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.10073c70
add esp, 8
jmp 0x10073d72
mov edx, dword [ebp - 0x1c]
push edx
call fcn.100731f0
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x100740c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xa0]
cmp eax, dword [edx + 0xc]
jne 0x100740ec
mov dword [ebp - 4], 1
jmp 0x100740f3
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10075230
Capabilities:
Get disk information
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push 0x104
mov eax, dword [ebp + 8]
push eax
push 0x10505250
call fcn.10259620
add esp, 0xc
push 0x10515778
call fcn.10073230
add esp, 4
push 0x105159a0
call fcn.10073230
add esp, 4
cmp dword [0x10505248], 0x40
jne 0x10075286
push str.CRITICAL:Too_many_aliases_
call fcn.1007b420
add esp, 4
push 1
call fcn.10259a35
push str.SystemRoot_
imul ecx, dword [0x10505248], 0x410
mov edx, 0x208
imul eax, edx, 0
lea ecx, [ecx + eax + 0x10505378]
push ecx
call fcn.1025952d
add esp, 8
push 0x103e9be4
imul edx, dword [0x10505248], 0x410
mov eax, 0x208
shl eax, 0
lea ecx, [edx + eax + 0x10505378]
push ecx
call fcn.1025952d
add esp, 8
mov edx, dword [0x10505248]
add edx, 1
mov dword [0x10505248], edx
mov eax, 0x41
mov word [ebp - 4], ax
jmp 0x100752fa
mov cx, word [ebp - 4]
add cx, 1
mov word [ebp - 4], cx
movzx edx, word [ebp - 4]
cmp edx, 0x5a
jg 0x100753fb
mov eax, 2
imul ecx, eax, 0
mov dx, word [ebp - 4]
mov word [ebp + ecx - 0xc], dx
mov eax, 2
shl eax, 0
mov ecx, 0x3a
mov word [ebp + eax - 0xc], cx
mov edx, 2
shl edx, 1
xor eax, eax
mov word [ebp + edx - 0xc], ax
push 0x104
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x100753f6
push 0x103e9be0
lea eax, [ebp - 0xc]
push eax
call fcn.1025c153
add esp, 8
push 0x103e9bdc
lea ecx, [ebp - 0x214]
push ecx
call fcn.1025c153
add esp, 8
cmp dword [0x10505248], 0x40
jne 0x10075398
push 0x103e9bc0
call fcn.1007b420
add esp, 4
push 1
call fcn.10259a35
lea edx, [ebp - 0x214]
push edx
imul eax, dword [0x10505248], 0x410
mov ecx, 0x208
imul edx, ecx, 0
lea eax, [eax + edx + 0x10505378]
push eax
call fcn.1025952d
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
imul edx, dword [0x10505248], 0x410
mov eax, 0x208
shl eax, 0
lea ecx, [edx + eax + 0x10505378]
push ecx
call fcn.1025952d
add esp, 8
mov edx, dword [0x10505248]
add edx, 1
mov dword [0x10505248], edx
jmp 0x100752ee
call fcn.10075200
xor eax, eax
mov esp, ebp
pop ebp
ret