joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401480
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x452074]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x40]
mov word [esp + 0x44], 0x500
push eax
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4014fb
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [esp + 0x10]
neg eax
sbb eax, eax
and dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x40152b
push str.permission_denied_n
push 2
call fcn.0041be90
add esp, 4
push eax
call fcn.00401450
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0x28
movaps xmmword [esp + 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401588
lea eax, [esp + 0x24]
push eax
push str.SeSystemEnvironmentPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x401588
push 0
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 1
push eax
push 0
push dword [esp + 0x24]
mov dword [esp + 0x44], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4015c2
push str.SeSystemEnvironmentPrivilege
push str._s_privilege_required_n
push 2
call fcn.0041be90
add esp, 4
push eax
call fcn.00401450
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
push 1
mov dword [0x1a278f8], esi
call fcn.0041be90
mov ecx, dword [0x1a278f8]
mov edi, dword [sym.imp.msvcrt.dll_calloc]
push 0x1b
push 1
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x30], 0
mov byte [ecx + 0x38], 0x7f
call edi
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401680
push 4
push 1
call edi
push 4
push 1
mov dword [esi + 0xc], eax
call edi
push str.NWinfo
mov dword [esi + 4], eax
lea eax, [esi + 0x14]
push 7
push eax
mov dword [esi], eax
call fcn.0041f560
mov eax, dword [0x1a278f8]
add esp, 0x1c
mov dword [esi + 0x10], 0
mov dword [eax + 0x50], esi
call fcn.00413170
mov ecx, dword [0x1a278f8]
mov dword [ecx + 0x4c], eax
call fcn.0040a970
mov ecx, dword [0x1a278f8]
mov dword [ecx + 0x40], eax
call fcn.0040abd0
mov ecx, dword [0x1a278f8]
mov dword [ecx + 0x44], eax
call fcn.0040ad40
mov ecx, dword [0x1a278f8]
pop edi
pop esi
mov dword [ecx + 0x48], eax
mov eax, 1
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
push str.Failed_to_allocate_memory_for_new_node_n
push 2
call fcn.0041be90
add esp, 4
push eax
call fcn.00401450
add esp, 8
push 0xe
call fcn.0041bdf0
int3
Function at 0x401910
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x452074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1a278f8]
push ebx
push esi
push edi
mov ecx, dword [eax + 0x40]
mov edi, dword [sym.imp.msvcrt.dll_free]
test ecx, ecx
je 0x401940
push ecx
call edi
mov eax, dword [0x1a278f8]
add esp, 4
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x401952
push ecx
call edi
mov eax, dword [0x1a278f8]
add esp, 4
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x401964
push ecx
call edi
mov eax, dword [0x1a278f8]
add esp, 4
mov esi, dword [eax + 0x4c]
test esi, esi
je 0x401a2f
mov eax, dword [esi + 0x110]
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x20], xmm0
test eax, eax
je 0x4019d2
cmp eax, 0xffffffff
je 0x4019d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf003f
push 0
push 0
mov dword [esi + 0x110], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [esi + 0x108], eax
test eax, eax
je 0x4019d2
push 0xf01ff
push str.HwRwDrv
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [esi + 0x10c], eax
mov eax, dword [esi + 0x10c]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x401a0d
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
push dword [esi + 0x10c]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push dword [esi + 0x10c]
call ebx
mov dword [esi + 0x10c], 0
mov eax, dword [esi + 0x108]
test eax, eax
je 0x401a24
push eax
call ebx
mov dword [esi + 0x108], 0
push esi
call edi
mov eax, dword [0x1a278f8]
add esp, 4
mov ebx, dword [eax + 0x50]
test ebx, ebx
je 0x401a86
mov esi, dword [ebx + 4]
mov eax, dword [esi]
test eax, eax
je 0x401a50
nop
push eax
call edi
mov eax, dword [esi + 4]
lea esi, [esi + 4]
add esp, 4
test eax, eax
jne 0x401a40
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x401a71
nop dword [eax]
mov ecx, eax
call fcn.00407b90
mov eax, dword [esi + 4]
lea esi, [esi + 4]
test eax, eax
jne 0x401a60
push dword [ebx + 4]
call edi
push dword [ebx + 0xc]
call edi
push ebx
call edi
mov eax, dword [0x1a278f8]
add esp, 0xc
cmp dword [eax + 0x58], 0
je 0x401aac
mov esi, dword [eax + 0x58]
push 1
call fcn.0041be90
add esp, 4
cmp esi, eax
je 0x401aa7
push esi
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
mov eax, dword [0x1a278f8]
push 0x1005c
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov dword [0x1a278f8], 0
pop edi
pop esi
pop ebx
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
Function at 0x40b0e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x452074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push edx
push 0x80000002
mov dword [ebp - 0xc], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b149
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x40b149
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40b15b
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
Function at 0x40b6b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x452074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x1a278f8]
mov ebx, ecx
push 0x104
add edi, 0x5c
mov dword [ebp - 0xc], edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40b841
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b6f0
sub ecx, edx
je 0x40b841
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_strrchr]
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x40b72f
push edi
push str.Invalid_file_path__s_n
push 2
call fcn.0041be90
add esp, 4
push eax
call fcn.00401450
add esp, 0xc
jmp 0x40b859
inc ecx
mov eax, edi
sub eax, ecx
push ebx
add eax, 0x104
push eax
push ecx
call fcn.0041f560
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b76c
push edi
push str.Cannot_open__s_n
jmp 0x40b717
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40b81f
test eax, eax
je 0x40b81f
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x40b7bd
push str.out_of_memory_n
push 2
call fcn.0041be90
add esp, 4
push eax
call fcn.00401450
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b859
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b7fd
push str.pci.ids_read_error_n
push 2
call fcn.0041be90
add esp, 4
push eax
call fcn.00401450
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
jmp 0x40b859
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
push ebx
push str.bad__s_file_n
push 2
call fcn.0041be90
add esp, 4
push eax
call fcn.00401450
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b859
push str.GetModuleFileName_failed_n
push 2
call fcn.0041be90
add esp, 4
push eax
call fcn.00401450
add esp, 8
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
mov dword [ecx], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
Function at 0x40e310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x452074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x228]
mov dword [ebp - 0x244], ecx
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControl
push 0x80000002
mov dword [ebp - 0x214], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e507
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x214]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
push 0
push str.FirmwareBootDevice
push dword [ebp - 0x228]
call edi
test eax, eax
jne 0x40e507
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x40e507
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x40e507
lea eax, [ebp - 0x214]
push eax
push esi
lea eax, [ebp - 0x21c]
push eax
push 0
push str.FirmwareBootDevice
push dword [ebp - 0x228]
call edi
test eax, eax
je 0x40e3e5
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push str.ArcName_s
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040df40
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 0x14
xorps xmm0, xmm0
movups xmmword [ebp - 0x240], xmm0
movq qword [ebp - 0x230], xmm0
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40e43d
or esi, 0xffffffff
jmp 0x40e4e3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCreateFile
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x40e435
push str.RtlInitUnicodeString
push esi
call edi
test eax, eax
je 0x40e435
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x218]
push ecx
call eax
push 0
push 0
push 0
push 1
push 3
push 0x80
lea eax, [ebp - 0x218]
mov dword [ebp - 0x240], 0x18
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x224]
push 0
push eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x23c], 0
push eax
push 0x80000000
lea eax, [ebp - 0x228]
mov dword [ebp - 0x234], 0
push eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
call ebx
xor esi, esi
test eax, eax
cmovns esi, dword [ebp - 0x228]
push 0
mov ecx, esi
call fcn.004119e0
mov ecx, dword [ebp - 0x244]
mov edx, str.Boot_Device
push eax
call fcn.00407d00
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
Function at 0x410d40
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x452074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x124]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
mov dword [ebp - 0x13c], 0
push 0
push eax
mov edi, edx
movq qword [ebp - 0x144], xmm0
mov ebx, ecx
mov dword [ebp - 0x138], 0x11c
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov word [ebp - 0x22], ax
mov dword [ebp - 0x20], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [ebp - 0x138]
mov dword [ebp - 0x134], 6
xor ecx, ecx
mov dword [ebp - 0x130], 1
push eax
mov word [ebp - 0x24], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x410e72
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 8
push eax
push 0xc
lea eax, [ebp - 0x144]
mov dword [ebp - 0xc], 0
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x410e72
cmp byte [ebp - 0x13c], 0
mov ecx, 0x446ae8
mov eax, 0x446ae4
mov edx, str.Trim_Enabled
cmove eax, ecx
mov ecx, ebx
push 0x100
push eax
call fcn.00407d00
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
Function at 0x414390
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x452074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x48]
mov esi, edx
push 0
push eax
mov edi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea edx, [esi + 4]
mov ecx, edi
call fcn.00413b20
mov ebx, eax
mov dword [esi + 0x54], ebx
cmp ebx, 0xffffffff
jne 0x4143e9
mov dword [0x1a37aec], 0xfffffff9
lea eax, [ebx - 6]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
mov dword [esi], 0
cmp dword [edi], 1
jl 0x414450
mov edx, dword [edi + 0x10]
shr edx, 8
and edx, 0xf
mov dword [esi + 0xd8], edx
mov eax, dword [edi + 0x10]
shr eax, 4
and eax, 0xf
mov dword [ebp - 0x70], eax
mov dword [esi + 0xdc], eax
mov eax, dword [edi + 0x10]
and eax, 0xf
mov dword [esi + 0xe0], eax
mov eax, dword [edi + 0x10]
mov ecx, eax
shr ecx, 0x10
shr eax, 0x14
and ecx, 0xf
movzx eax, al
cmp ebx, 1
jne 0x41443c
cmp edx, 0xf
jb 0x41443e
add edx, eax
shl ecx, 4
add ecx, dword [ebp - 0x70]
mov dword [esi + 0xe4], edx
mov dword [esi + 0xe8], ecx
mov eax, dword [edi + 0x200]
sub eax, 0x8000000
cmp eax, 4
jl 0x4144c4
xor eax, eax
mov ecx, dword [edi + eax + 0x220]
mov dword [ebp + eax - 0x48], ecx
mov ecx, dword [eax + edi + 0x224]
mov dword [ebp + eax - 0x44], ecx
mov ecx, dword [eax + edi + 0x228]
mov dword [ebp + eax - 0x40], ecx
mov ecx, dword [eax + edi + 0x22c]
mov dword [ebp + eax - 0x3c], ecx
add eax, 0x10
cmp eax, 0x30
jl 0x414462
xor eax, eax
mov byte [ebp - 0x18], 0
cmp byte [ebp - 0x48], 0x20
jne 0x4144aa
inc eax
cmp byte [ebp + eax - 0x48], 0x20
je 0x4144a2
lea ecx, [ebp - 0x48]
push 0x40
add eax, ecx
push eax
lea eax, [esi + 0x14]
push 0x40
push eax
call fcn.00424990
add esp, 0x10
mov byte [esi + 0x44], 0
mov edx, esi
mov ecx, edi
call fcn.004136b0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x58]
mov ecx, esi
mov dword [esi + 0xf4], eax
call fcn.00413fb0
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x21ec], eax
xor ecx, ebp
pop esi
mov dword [0x1a37aec], 0
xor eax, eax
pop ebx
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
Function at 0x414510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov byte [ebp - 4], 0
mov dword [eax + 0x10], edi
mov esi, edx
mov dword [eax + 0x14], edi
xor edx, edx
mov dword [eax + 0x18], edi
xor bh, bh
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], edi
mov word [eax + 0x26], dx
lea edx, [ebp - 0x18]
mov word [eax + 0x24], cx
mov ecx, esi
mov dword [eax], 0xffffffff
mov dword [eax + 4], 0xffffffff
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], 0xffffffff
call fcn.00413b20
cmp eax, 0xffffffff
je 0x414689
test eax, eax
je 0x41457a
cmp eax, 1
jne 0x414693
cmp dword [esi], 0xb
jb 0x414693
movzx eax, word [esi + 0xb4]
test eax, eax
je 0x414693
mov eax, dword [esi + 0x480]
xor cl, cl
test eax, eax
je 0x4145d2
xor edx, edx
mov eax, edx
add eax, eax
cmp dword [esi + eax*8 + 0x484], edi
je 0x4145cc
cmp cl, 4
jae 0x4145cc
lea eax, [edx + 0x48]
inc cl
add eax, eax
movzx edx, cl
mov bh, byte [esi + eax*8]
lea eax, [edx + 0x48]
add eax, eax
and bh, 0x1f
cmp dword [esi + eax*8], edi
jne 0x4145a0
mov eax, dword [esi + 0x480]
xor bl, bl
or edx, 0xffffffff
test eax, eax
je 0x41466f
movzx eax, bh
xor ecx, ecx
mov dword [ebp - 8], eax
jmp 0x4145f0
mov eax, ecx
add eax, eax
cmp dword [esi + eax*8 + 0x484], 0
je 0x41466c
cmp bl, 4
jae 0x41466c
mov edx, dword [esi + eax*8 + 0x488]
shr edx, 8
mov dword [ebp - 4], edx
mov edx, dword [esi + eax*8 + 0x48c]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp - 4]
movzx eax, al
sub eax, 1
je 0x414642
sub eax, 1
jne 0x41465c
mov ecx, dword [ebp - 8]
or eax, 0xffffffff
shl eax, cl
mov ecx, dword [ebp + 8]
not eax
xor eax, edi
and eax, edx
mov dword [ecx + 8], eax
jmp 0x41465c
lea eax, [ecx + 0x48]
or edi, 0xffffffff
add eax, eax
mov ecx, dword [esi + eax*8]
mov eax, dword [ebp + 8]
and ecx, 0x1f
shl edi, cl
not edi
and edx, edi
mov dword [eax + 0xc], edx
inc bl
movzx ecx, bl
lea eax, [ecx + 0x48]
add eax, eax
cmp dword [esi + eax*8], 0
jne 0x4145f0
or edx, 0xffffffff
mov eax, dword [ebp + 8]
mov cl, bh
shl edx, cl
pop edi
pop esi
and edx, dword [eax]
cmp byte [ebp - 4], 0
mov dword [eax + 4], edx
seta al
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0x1a37aec], 0xfffffff9
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4177d0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x452074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x60], 2
mov dword [ebp - 0x5c], 0x20
mov dword [ebp - 0x58], 4
mov dword [ebp - 0x54], 0x22
cmp dword [edi], 1
mov dword [ebp - 0x50], 5
mov dword [ebp - 0x4c], 0x23
mov dword [ebp - 0x48], 6
mov dword [ebp - 0x44], 0x24
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x3c], 0x25
mov dword [ebp - 0x38], 8
mov dword [ebp - 0x34], 0x26
mov dword [ebp - 0x30], 0xa
mov dword [ebp - 0x2c], 0x28
mov dword [ebp - 0x28], 0xe
mov dword [ebp - 0x24], 0x2a
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x1c], 0x2b
mov dword [ebp - 0x18], 0x12
mov dword [ebp - 0x14], 0x2c
mov dword [ebp - 0x10], 0x15
mov dword [ebp - 0xc], 0x59
jb 0x4178fe
mov eax, dword [edi + 0x1c]
test eax, 0x40000
je 0x417892
mov byte [edx + 0x69], 1
test eax, 0x200000
je 0x41789d
mov byte [edx + 0x6b], 1
test eax, 0x400000
je 0x4178a8
mov byte [edx + 0x6c], 1
test eax, 0x8000000
je 0x4178b3
mov byte [edx + 0x71], 1
test eax, 0x20000000
je 0x4178be
mov byte [edx + 0x73], 1
test eax, 0x40000000
je 0x4178c9
mov byte [edx + 0x74], 1
test eax, eax
jns 0x4178d1
mov byte [edx + 0x75], 1
mov ebx, dword [edi + 0x18]
xor esi, esi
jmp 0x4178e0
mov ecx, dword [ebp + esi*8 - 0x60]
mov eax, 1
shl eax, cl
test ebx, eax
je 0x4178f8
mov eax, dword [ebp + esi*8 - 0x5c]
mov byte [eax + edx + 0x58], 1
inc esi
cmp esi, 0xb
jl 0x4178e0
cmp dword [edi + 0x200], 1
jb 0x41791a
test dword [edi + 0x21c], 0x100000
je 0x41791a
mov byte [edx + 0x88], 1
cmp dword [edi], 7
jb 0x4179d0
mov eax, dword [edi + 0x74]
test al, 4
je 0x417931
mov byte [edx + 0xc3], 1
test al, 0x10
je 0x41793c
mov byte [edx + 0xb9], 1
test eax, 0x800
je 0x41794a
mov byte [edx + 0xba], 1
test eax, 0x10000
je 0x417958
mov byte [edx + 0xbb], 1
test eax, 0x20000
je 0x417966
mov byte [edx + 0xbc], 1
test eax, 0x4000000
je 0x417974
mov byte [edx + 0xbd], 1
test eax, 0x8000000
je 0x417982
mov byte [edx + 0xbe], 1
test eax, 0x10000000
je 0x417990
mov byte [edx + 0xbf], 1
test eax, 0x40000000
je 0x41799e
mov byte [edx + 0xc1], 1
test eax, eax
jns 0x4179a9
mov byte [edx + 0xc2], 1
mov eax, dword [edi + 0x78]
test al, 2
je 0x4179b7
mov byte [edx + 0xc7], 1
test al, 0x40
je 0x4179c2
mov byte [edx + 0xc8], 1
test eax, 0x800
je 0x4179d0
mov byte [edx + 0xc6], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
Function at 0x41b343
Capabilities:
Parse pe header

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

Function at 0x41b750
Capabilities:
Get process heap force flags

Disassembly:
push esi
call sub.msvcrt.dll__errno
lea esi, [eax - 8]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41b772
test eax, eax
je 0x41b772
push 0x10
xor esi, esi
call dword [sym.imp.msvcrt.dll__amsg_exit]
add esp, 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x50001
jae 0x41b797
lea eax, [esi + 0x74]
pop esi
ret
lea eax, [esi + 0x78]
cmp ecx, 0x60000
jb 0x41b7a8
lea eax, [esi + 0x88]
pop esi
ret

Function at 0x41b7b0
Capabilities:
Get process heap force flags

Disassembly:
push esi
call sub.msvcrt.dll__errno
lea esi, [eax - 8]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41b7d2
test eax, eax
je 0x41b7d2
push 0x10
xor esi, esi
call dword [sym.imp.msvcrt.dll__amsg_exit]
add esp, 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
lea eax, [esi + 0x7c]
cmp ecx, 0x60000
jb 0x41b7fb
lea eax, [esi + 0x8c]
pop esi
ret

Function at 0x41bbb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0041bbe0
mov esi, dword [ebp + 8]
test al, al
je 0x41bbce
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0041bbf0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x41bd20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41bd7c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41bd7c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41bd7c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41bd7c
cmp dword [ecx + 0x74], 0xe
jbe 0x41bd7c
cmp dword [ecx + 0xe8], 0
je 0x41bd7c
push dword [ebp + 8]
call fcn.0041bbf0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x457824
call fcn.0041b9c0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x41bdb1
push dword [ebp + 8]
call fcn.0041bbb0
mov esp, ebp
pop ebp
ret