joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e4f34
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa0
mov dword [esp], eax
mov eax, dword [esp]
xor ecx, ecx
mov edx, 0x10
call fcn.00403734
lea eax, [esp + 0x3c]
push eax
call sub.kernel32.dll_GetSystemInfo
call fcn.004080b4
test eax, eax
je 0x4e513d
push 0
push 0x4e5148
push 0
push eax
call fcn.00408044
test eax, eax
je 0x4e513d
push 0
push 0x4e5158
push 0
push eax
call fcn.00408044
test eax, eax
je 0x4e513d
push 0
push 0x4e5168
push 0
push eax
call fcn.00408044
test eax, eax
je 0x4e513d
push 0
push 0x4e5178
push 0
push eax
call fcn.00408044
mov edi, eax
test edi, edi
je 0x4e513d
push 0
push 0
push 0x418
push edi
call fcn.004083ac
mov dword [esp + 4], eax
cmp dword [esp + 4], 1
jl 0x4e513d
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push edi
call fcn.00408214
cmp dword [esp + 8], 0
je 0x4e513d
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call fcn.004079d4
mov esi, eax
test esi, esi
je 0x4e513d
push 0x40
push 0x1000
push 0x1000
push 0
push esi
call fcn.00407a74
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x4e513d
or ebx, 0xffffffff
cmp ebx, dword [esp + 4]
jge 0x4e5125
inc ebx
mov eax, dword [esp + 0xc]
push eax
push ebx
push 0x417
push edi
call fcn.004083ac
test eax, eax
je 0x4e511b
lea eax, [esp + 0x10]
push eax
push 0x18
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push eax
push esi
call fcn.004079f4
test eax, eax
je 0x4e511b
test byte [esp + 0x21], 0xd
jne 0x4e511b
mov al, byte [esp + 0x20]
and al, 8
cmp al, 8
je 0x4e511b
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x30]
push eax
push esi
call fcn.004079f4
test eax, eax
je 0x4e511b
cmp dword [esp + 0x10], 0
je 0x4e511b
mov eax, dword [0x724f40]
mov eax, dword [eax]
mov ebp, dword [eax + 0x30]
cmp ebp, dword [esp + 0x14]
jne 0x4e511b
mov eax, dword [esp + 0xc]
push eax
push ebx
push 0x41d
push edi
call fcn.004083ac
test eax, eax
je 0x4e50f7
lea eax, [esp + 0x10]
push eax
push 0x10
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x18]
push eax
push esi
call fcn.004079f4
cmp dword [esp + 0x10], 0
je 0x4e5125
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.004081ec
mov eax, dword [esp]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
call fcn.0040757c
jmp 0x4e5125
cmp ebx, dword [esp + 4]
jl 0x4e5047
push 0x8000
push 0
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.00407a7c
push esi
call sub.kernel32.dll_CloseHandle_1
add esp, 0x60
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5597f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405148
mov eax, dword [ebp - 8]
call fcn.00405148
mov eax, dword [ebp + 8]
call fcn.00405148
lea esi, [ebp - 0x48]
xor eax, eax
push ebp
push 0x5599be
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x559984
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor ecx, ecx
mov edx, 0x3c
call fcn.00403734
mov dword [esi], 0x3c
mov dword [esi + 4], 0x440
mov eax, dword [0x724f40]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
call fcn.00405158
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.00405158
mov dword [esi + 0x14], eax
cmp dword [ebp + 8], 0
je 0x55989c
mov eax, dword [ebp + 8]
call fcn.00405158
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
push esi
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x55991b
cmp dword [esi + 0x20], 0x20
jbe 0x55991b
xor ebx, ebx
jmp 0x5598c0
inc ebx
mov eax, dword [0x724f40]
mov eax, dword [eax]
call fcn.0046f1bc
cmp ebx, 0xa0
jge 0x5598da
push 0x24
mov eax, dword [esi + 0x38]
push eax
call fcn.00408514
cmp eax, 0x102
je 0x5598b3
mov ebx, dword [esi + 0x38]
test ebx, ebx
jbe 0x559905
push ebx
call sub.kernel32.dll_GetProcessId
mov edx, dword [0x7270e0]
mov dword [edx + 0x32c], eax
mov dword [ebp - 0xc], 1
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x55997a
mov eax, dword [0x7270e0]
xor edx, edx
mov dword [eax + 0x32c], edx
mov dword [ebp - 0xc], 1
jmp 0x55997a
mov dword [ebp - 0xc], 0xffffffff
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0x41030
push 0x5599dc
push dword [ebp - 4]
push 0x559a2c
push 0x559a38
push 0x559a38
lea edx, [ebp - 0x50]
mov eax, ebx
call fcn.0040daa4
push dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov edx, 6
call fcn.00405018
mov eax, dword [ebp - 0x4c]
call fcn.00405158
mov edx, eax
mov ecx, 0x559a3c
mov eax, dword [0x724f40]
mov eax, dword [eax]
call fcn.0046f508
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x55998e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5599c5
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.00404cac
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404cac
lea eax, [ebp + 8]
call fcn.00404c88
ret
Function at 0x55bc04
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405148
mov eax, dword [ebp - 8]
call fcn.00405148
mov eax, dword [ebp + 8]
call fcn.00405148
lea esi, [ebp - 0x48]
xor eax, eax
push ebp
push 0x55bdca
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x55bd90
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor ecx, ecx
mov edx, 0x3c
call fcn.00403734
mov dword [esi], 0x3c
mov dword [esi + 4], 0x440
mov eax, dword [0x724f40]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
call fcn.00405158
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.00405158
mov dword [esi + 0x14], eax
cmp dword [ebp + 8], 0
je 0x55bca8
mov eax, dword [ebp + 8]
call fcn.00405158
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
push esi
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x55bd27
cmp dword [esi + 0x20], 0x20
jbe 0x55bd27
xor ebx, ebx
jmp 0x55bccc
inc ebx
mov eax, dword [0x724f40]
mov eax, dword [eax]
call fcn.0046f1bc
cmp ebx, 0xa0
jge 0x55bce6
push 0x24
mov eax, dword [esi + 0x38]
push eax
call fcn.00408514
cmp eax, 0x102
je 0x55bcbf
mov ebx, dword [esi + 0x38]
test ebx, ebx
jbe 0x55bd11
push ebx
call sub.kernel32.dll_GetProcessId_1
mov edx, dword [0x727134]
mov dword [edx + 0x35c], eax
mov dword [ebp - 0xc], 1
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x55bd86
mov eax, dword [0x727134]
xor edx, edx
mov dword [eax + 0x35c], edx
mov dword [ebp - 0xc], 1
jmp 0x55bd86
mov dword [ebp - 0xc], 0xffffffff
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0x41030
push 0x55bde8
push dword [ebp - 4]
push 0x55be38
push 0x55be44
push 0x55be44
lea edx, [ebp - 0x50]
mov eax, ebx
call fcn.0040daa4
push dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov edx, 6
call fcn.00405018
mov eax, dword [ebp - 0x4c]
call fcn.00405158
mov edx, eax
mov ecx, 0x55be48
mov eax, dword [0x724f40]
mov eax, dword [eax]
call fcn.0046f508
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x55bd9a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55bdd1
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.00404cac
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404cac
lea eax, [ebp + 8]
call fcn.00404c88
ret
Function at 0x5ce648
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x5ce6ac
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404f08
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040a280
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ce6b3
lea eax, [ebp - 0xc]
call fcn.00404c88
ret

Function at 0x6c8d0c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
or ecx, 0xffffffff
dec edx
test edx, edx
jl 0x6c8d37
inc edx
xor ebx, ebx
mov bl, byte [eax]
mov esi, ecx
and esi, 0xff
xor ebx, esi
mov ebx, dword [ebx*4 + 0x724370]
shr ecx, 8
xor ebx, ecx
mov ecx, ebx
inc eax
dec edx
jne 0x6c8d17
not ecx
mov eax, ecx
pop esi
pop ebx
ret
Function at 0x10004d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10004de1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x10004daf
cmp eax, 2
jne 0x10004dcb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x10004ddb
test ecx, ecx
je 0x10004dd6
test cl, 1
jne 0x10004dcb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x10004ddb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10016910
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x101ca26c], 0
push esi
jne 0x10016ae1
mov eax, dword [0x101ca268]
test eax, eax
jne 0x10016ae3
xorps xmm0, xmm0
mov dword [0x101ca79c], eax
movdqu xmmword [0x101ca77c], xmm0
movdqu xmmword [0x101ca78c], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push str.dbghelp.dll
mov dword [0x101ca77c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x101ca780], eax
test eax, eax
je 0x10016a86
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImagehlpApiVersionEx
push eax
call esi
push str.SymInitialize
push dword [0x101ca780]
mov dword [0x101ca784], eax
call esi
push str.SymSetOptions
push dword [0x101ca780]
mov dword [0x101ca788], eax
call esi
push str.SymGetOptions
push dword [0x101ca780]
mov dword [0x101ca78c], eax
call esi
push str.SymLoadModule64
push dword [0x101ca780]
mov dword [0x101ca790], eax
call esi
push str.SymGetModuleInfo64
push dword [0x101ca780]
mov dword [0x101ca794], eax
call esi
push str.SymFromName
push dword [0x101ca780]
mov dword [0x101ca798], eax
call esi
xorps xmm0, xmm0
mov dword [0x101ca79c], eax
mov ecx, 0xc
movq qword [ebp - 8], xmm0
mov word [ebp - 8], cx
mov ecx, dword [0x101ca784]
test ecx, ecx
je 0x10016a81
cmp dword [0x101ca788], 0
je 0x10016a81
cmp dword [0x101ca794], 0
je 0x10016a81
cmp dword [0x101ca798], 0
je 0x10016a81
test eax, eax
je 0x10016a81
lea eax, [ebp - 8]
push eax
call ecx
cmp word [ebp - 8], 0xc
jb 0x10016a81
push 0
push 0
push dword [0x101ca77c]
call dword [0x101ca788]
test eax, eax
je 0x10016a81
mov eax, dword [0x101ca790]
test eax, eax
je 0x10016a6d
cmp dword [0x101ca78c], 0
je 0x10016a6d
call eax
and eax, 0xfffffffc
or eax, 0x2704
push eax
call dword [0x101ca78c]
mov dword [0x101ca268], 0x101ca77c
mov eax, 0x101ca77c
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x101ca780]
mov dword [0x101ca26c], 1
test eax, eax
je 0x10016a9b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x101ca784], 0
mov dword [0x101ca788], 0
mov dword [0x101ca78c], 0
mov dword [0x101ca790], 0
mov dword [0x101ca794], 0
mov dword [0x101ca798], 0
mov dword [0x101ca79c], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10016d60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10195b18
push 0x10120d50
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x101ba518]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
test ecx, ecx
mov esi, 0x10000
je 0x10016da2
lea esi, [ecx + 0x10000]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x34], xmm0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov edi, 0x5a4d
jmp 0x10016dc0
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10016de3
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x24], 0x1000
jne 0x10016e69
cmp byte [ebp - 0x20], 1
je 0x10016e69
test dword [ebp - 0x20], 0x100
jne 0x10016e69
mov dword [ebp - 4], 0
cmp word [esi], di
jne 0x10016e1d
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x28]
ja 0x10016e1d
cmp eax, 0x40
jb 0x10016e1d
cmp dword [eax + esi], 0x4550
je 0x10016e2c
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x28]
add esi, dword [ebp - 0x34]
jmp 0x10016dc0
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x28]
add esi, dword [ebp - 0x34]
jmp 0x10016dc0
Function at 0x10017140
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10195b78
push 0x10120d50
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x101ba518]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x38], edx
mov edx, ecx
mov dword [ebp - 0x1c], edx
test edx, edx
jne 0x1001718b
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [edx], ax
je 0x100171a6
push 0xc1
jmp 0x100172d8
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
je 0x100171bd
push 0xbf
jmp 0x100172d8
cmp word [eax + 0x14], 0
je 0x100172d3
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x100172d3
lea ebx, [ecx + edx]
test ebx, ebx
je 0x100172d3
mov eax, dword [eax + 0x7c]
add eax, ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x100171f2
lea edi, [eax + edx]
jmp 0x100171f4
xor edi, edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10017202
add eax, edx
jmp 0x10017204
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x10017213
lea ecx, [eax + edx]
jmp 0x10017215
xor ecx, ecx
mov dword [ebp - 0x20], ecx
xor esi, esi
mov dword [ebp - 0x3c], esi
cmp esi, dword [ebx + 0x14]
jae 0x10017295
test edi, edi
je 0x10017232
mov eax, dword [edi + esi*4]
test eax, eax
je 0x10017232
lea edi, [eax + edx]
jmp 0x10017234
xor edi, edi
mov dword [ebp - 0x30], edi
xor edx, edx
cmp edi, ebx
jbe 0x10017248
xor eax, eax
cmp edi, dword [ebp - 0x2c]
cmovb edi, eax
mov dword [ebp - 0x30], edi
xor eax, eax
mov dword [ebp - 0x34], eax
cmp eax, dword [ebx + 0x18]
jae 0x1001726d
movzx ecx, word [ecx + eax*2]
cmp ecx, esi
jne 0x1001728f
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1001728b
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x1001728b
mov edx, dword [ebp - 0x1c]
add edx, eax
mov eax, dword [ebx + 0x10]
add eax, esi
push edi
push edx
push eax
push dword [ebp - 0x38]
call dword [ebp + 8]
test eax, eax
je 0x10017295
inc esi
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x28]
jmp 0x1001721a
xor edx, edx
jmp 0x1001726d
inc eax
mov ecx, dword [ebp - 0x20]
jmp 0x1001724a
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10017300
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10195b98
push 0x10120d50
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x101ba518]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x1c], esi
mov ebx, ecx
test ebx, ebx
jne 0x1001735b
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x1001735b
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100174e4
mov dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x10017376
push 0xc1
jmp 0x100174d7
mov eax, dword [ebx + 0x3c]
cmp dword [eax + ebx], 0x4550
je 0x1001738c
push 0xbf
jmp 0x100174d7
cmp word [eax + ebx + 0x14], 0
je 0x100174d2
mov eax, dword [eax + ebx + 0x80]
test eax, eax
je 0x100174b3
lea edi, [eax + ebx]
mov dword [ebp - 0x28], edi
test edi, edi
je 0x100174d2
mov ecx, dword [edi]
test ecx, ecx
je 0x1001747d
mov eax, dword [edi + 0xc]
test eax, eax
je 0x100174d2
lea esi, [eax + ebx]
test esi, esi
je 0x100174d2
lea eax, [ecx + ebx]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x10]
test eax, eax
je 0x100173e6
add eax, ebx
jmp 0x100173e8
xor eax, eax
mov dword [ebp - 0x20], eax
mov ecx, dword [eax]
call fcn.10017030
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10017405
push esi
push eax
mov esi, dword [ebp - 0x1c]
push esi
call ecx
test eax, eax
je 0x1001747d
xor esi, esi
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1001746f
mov eax, dword [eax + esi*4]
test eax, eax
je 0x10017457
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
xor edx, edx
test eax, eax
jns 0x1001742b
movzx ecx, ax
mov dword [ebp - 0x2c], ecx
jmp 0x10017437
add eax, 2
je 0x10017435
lea edx, [eax + ebx]
jmp 0x10017437
xor edx, edx
xor eax, eax
je 0x1001744e
mov eax, dword [ebp - 0x20]
push dword [eax + esi*4]
push edx
push ecx
push dword [ebp - 0x1c]
xor eax, eax
call eax
test eax, eax
je 0x10017457
inc esi
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x24]
jmp 0x10017411
mov esi, dword [ebp - 0x1c]
xor edx, edx
je 0x10017472
push edx
push edx
push edx
push esi
call edx
add edi, 0x14
mov dword [ebp - 0x28], edi
jmp 0x100173b5
mov esi, dword [ebp - 0x1c]
add edi, 0x14
mov dword [ebp - 0x28], edi
jmp 0x100173b5
mov eax, dword [ebp + 8]
test eax, eax
je 0x1001748b
push 0
push 0
push esi
call eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x28], 0
jmp 0x100174d2
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001a7f0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10132260
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x101ba518]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x101ba518]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebx], 0
mov dword [esp + 0x2c], edx
mov dword [eax], 0
mov byte [edx], 0
mov edx, ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], eax
call fcn.1001a100
mov dword [esp + 0x58], 0
cmp dword [eax + 0x14], 8
jb 0x1001a861
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x44], 8
jb 0x1001a897
push dword [esp + 0x30]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
cmp esi, 0xffffffff
jne 0x1001a8ba
xor al, al
jmp 0x1001a9f0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
call fcn.1001d070
mov dword [esp + 0x58], 1
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
jne 0x1001a8fc
xor bl, bl
jmp 0x1001a9dd
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edi
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], esi
call fcn.1001d070
mov byte [esp + 0x58], 2
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x1001a933
xor bl, bl
jmp 0x1001a9cf
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], edi
call fcn.1001d100
mov byte [esp + 0x58], 3
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x1001a984
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
je 0x1001a972
mov dword [ebx], 1
jmp 0x1001a9bf
movzx eax, word [esi + 4]
cmp eax, 0x14c
je 0x1001a990
cmp eax, 0x8664
je 0x1001a988
xor bl, bl
jmp 0x1001a9c1
mov dword [ebx], 3
jmp 0x1001a9b5
mov edx, edi
mov dword [ebx], 2
mov ecx, esi
call fcn.1001aa10
test eax, eax
je 0x1001a9b5
mov eax, dword [eax + 0x10]
test al, 1
je 0x1001a9b5
test al, 2
jne 0x1001a9b5
mov eax, dword [esp + 0x2c]
mov byte [eax], 1
mov ecx, dword [esp + 0x1c]
movzx eax, word [esi + 0x5c]
mov dword [ecx], eax
mov bl, 1
mov byte [esp + 0x58], 2
lea ecx, [esp + 0x28]
call fcn.10019f30
mov byte [esp + 0x58], 1
lea ecx, [esp + 0x20]
call fcn.10019f30
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.10019f30
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10115289
mov esp, ebp
pop ebp
ret
Function at 0x1001aa10
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
test esi, esi
jne 0x1001aa25
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xec]
push edi
test eax, eax
je 0x1001aa89
mov edi, dword [esi + 0xe8]
test edi, edi
je 0x1001aa89
cmp eax, 0x48
jne 0x1001aa89
movzx eax, word [esi + 0x14]
lea edx, [esi + 0x18]
push ebx
movzx ebx, word [esi + 6]
add edx, eax
xor ecx, ecx
test ebx, ebx
je 0x1001aa6b
mov esi, dword [edx + 0xc]
cmp edi, esi
jb 0x1001aa63
mov eax, dword [edx + 0x10]
add eax, esi
cmp edi, eax
jb 0x1001aa6b
inc ecx
add edx, 0x28
cmp ecx, ebx
jb 0x1001aa53
cmp ebx, ecx
pop ebx
je 0x1001aa89
mov ecx, dword [edx + 0x14]
xor eax, eax
sub ecx, dword [edx + 0xc]
add ecx, edi
add ecx, dword [ebp - 4]
pop edi
pop esi
cmp dword [ecx], 0x48
cmove eax, ecx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001b530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101325e9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x101ba518]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push 0x105
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.1001cc70
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x24]
push esi
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x1001b5de
cmp ebx, 0x104
jbe 0x1001b5d4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ebx
lea ecx, [ebp - 0x24]
call fcn.1001c830
mov esi, dword [ebp - 0x24]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
mov ecx, edi
call fcn.10010df0
jmp 0x1001b5f5
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
test esi, esi
je 0x1001b622
push esi
call fcn.10115284
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret