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

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [0x438160]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x413493
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.0040a740
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x438160
call fcn.00409b1a
add esp, 4
cmp dword [0x438160], 0xffffffff
jne 0x413482
xorps xmm0, xmm0
mov esi, esp
movaps xmmword [esi + 0x10], xmm0
movaps xmmword [esi], xmm0
mov dword [esi + 0x20], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [esi + 0x20]
mov dword [0x43815c], eax
movaps xmm0, xmmword [esi]
movaps xmm1, xmmword [esi + 0x10]
movups xmmword [0x43814c], xmm1
movups xmmword [0x43813c], xmm0
push 0x438160
call fcn.00409ad0
add esp, 4
jmp 0x413482
Function at 0x416450
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
call fcn.0042d4b0
test al, al
je 0x416474
push 0x32
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [esi + 0x20]
mov dword [esi + 0x20], 0
test edi, edi
je 0x416492
mov ecx, edi
call fcn.0042b5c0
push edi
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esi + 0x30]
call fcn.0040e270
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4164ab
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov edi, dword [esi + 0x20]
test edi, edi
je 0x4164c2
mov ecx, edi
call fcn.0042b5c0
push edi
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esi + 0x18]
call fcn.004065e0
lea ecx, [esi + 0x14]
call fcn.004065e0
lea ecx, [esi + 0x10]
call fcn.004065e0
mov ecx, esi
pop esi
pop edi
pop ebp
jmp fcn.00413220
Function at 0x41a3f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov edi, dword [ebp + 8]
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x1126
push edi
call fcn.0041abd0
add esp, 4
test al, al
je 0x41a432
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x28]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], 0
mov ecx, edi
mov edx, esi
call fcn.0042d9a0
mov ebx, eax
mov ecx, esi
call fcn.0042da60
mov bh, al
mov ecx, esi
mov edx, esi
call fcn.0042daa0
mov cl, bh
test bl, bl
jne 0x41a482
test cl, cl
jne 0x41a482
mov ebx, 0x7b
test al, al
jne 0x41a482
lea ecx, [ebp - 0x28]
call fcn.004027f0
jmp 0x41a41b
test cl, cl
mov ebx, eax
je 0x41a5cc
cmp dword [ebp - 0x14], 7
jbe 0x41a495
mov esi, dword [ebp - 0x28]
lea edi, [ebp - 0x230]
push 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x41a4c3
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov esi, eax
dec esi
cmp dword [ebp - 0x14], 7
jbe 0x41a4d4
mov eax, dword [ebp - 0x28]
jmp 0x41a4d7
test bl, bl
mov eax, 0x1126
mov ebx, 0x7b
cmovne ebx, eax
jmp 0x41a478
lea eax, [ebp - 0x28]
push esi
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
mov ebx, 0x7b
test eax, eax
jne 0x41a478
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
jbe 0x41a4f8
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a559
bt eax, 0xa
jb 0x41a5c5
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
jbe 0x41a51a
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
xor edx, edx
dec edx
test ecx, ecx
je 0x41a536
lea ebx, [eax + ecx*2]
add ebx, 0xfffffffe
cmp word [ebx], 0x5c
jne 0x41a57a
mov edx, ebx
sub edx, eax
sar edx, 1
mov edi, edx
sub edi, ecx
jbe 0x41a549
lea ecx, [ebp - 0x28]
push 0
push edi
call fcn.00402d70
jmp 0x41a552
mov dword [ebp - 0x18], edx
mov word [eax + edx*2], 0
cmp dword [ebp - 0x18], esi
ja 0x41a4ec
jmp 0x41a5bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 1]
cmp ecx, 3
jae 0x41a59e
mov ebx, dword [ebp - 0x234]
cmp ecx, 3
jae 0x41a5a7
mov dword [ebp - 0x234], ebx
jmp 0x41a50e
lea edx, [ecx + ecx]
mov edi, 2
sub edi, edx
test edi, edi
je 0x41a599
lea edx, [ebx - 2]
add edi, 2
cmp word [ebx - 2], 0x5c
mov ebx, edx
jne 0x41a584
jmp 0x41a532
xor edx, edx
dec edx
jmp 0x41a536
mov ebx, eax
cmp eax, 0x7b
je 0x41a567
jmp 0x41a56d
mov dword [ebp - 0x234], ebx
cmp eax, 0x7b
je 0x41a50e
jmp 0x41a478
mov ebx, 0x1126
jmp 0x41a478
xor ebx, ebx
jmp 0x41a478
lea ecx, [ebp - 0x28]
push 4
push str.._
push 0
call fcn.0041a960
jmp 0x41a48c
Function at 0x41e950
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov esi, ecx
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [esp + 0xd0], eax
test edx, edx
jne 0x41e993
xor edi, edi
cmp dword [esi + 8], 0
jne 0x41e9c4
mov ecx, dword [esp + 0xd0]
xor ecx, ebp
call fcn.0040a740
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
inc edi
mov ebx, 0x430476
mov ecx, esi
push 0
push str._TargetNtMapViewOfSection_44
push edi
push str.NtMapViewOfSection
push ebx
call fcn.00418010
mov ecx, esi
push edi
push str._TargetNtUnmapViewOfSection_12
push edi
push str.NtUnmapViewOfSection
push ebx
call fcn.00418010
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esp + 8], eax
sub esp, 0x14
movaps xmm0, xmmword [0x430460]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 4], eax
mov ebx, dword [esi + 8]
shl ebx, 6
lea ecx, [ebx + 0x50]
mov dword [esp + 0xc], ecx
call fcn.0041e2d0
mov edi, eax
mov eax, 0xfffff000
mov ecx, edi
and ecx, eax
add ecx, dword [esp + 4]
and edi, 0xfff
add ebx, 0x104f
and ebx, eax
push 0x40
push 0x1000
push ebx
push ecx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test eax, eax
jne 0x41ea51
lea ecx, [esp + 0x18]
push str.thunk_base
push 0x188
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_sandbox_win_src_interception.cc
call fcn.0040d320
lea ecx, [esp + 0x18]
call fcn.0040d3c0
add ebx, edi
lea edi, [esp + 0x18]
mov eax, dword [esp + 0xc]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 4], 0x10
push 0xa8
push eax
push sym.plugin_container.exe_g_originals
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
mov dword [esp + 4], ebx
mov edx, ebx
push edi
push dword [esp + 0x10]
call fcn.0041ed10
add esp, 8
mov edi, eax
test eax, eax
jne 0x41e97b
lea eax, [esp + 0x14]
push eax
push 0x10
lea eax, [esp + 0x20]
push eax
mov ebx, dword [esp + 0x10]
push ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, 0x2a
test eax, eax
je 0x41e97b
cmp dword [esp + 0x14], 0x10
jne 0x41e97b
lea eax, [esp + 0x10]
push eax
push 0x20
push dword [esp + 0x14]
push ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [esi]
push 0xa8
push sym.plugin_container.exe_g_originals
push str.g_originals
call fcn.0041bdf0
mov edi, eax
jmp 0x41e97b
Function at 0x41fc60
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [0x43700c]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
cmp eax, 3
jne 0x41fcfc
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 7
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
jbe 0x41fc9f
mov esi, dword [esi]
mov ebx, dword [ebx]
push 0
push edx
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x41fd13
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
lea ecx, [ebp - 0x14]
push 3
push edi
push edi
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb edi, edi
lea eax, [ebp - 0x14]
or edi, dword [eax]
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
xor eax, eax
cmp edi, 0xffffffff
sete al
lea esi, [eax + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
mov eax, esi
jmp 0x41fd0b
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
mov eax, 5
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
dec edi
jmp 0x41fcde

Function at 0x424090
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, edx
mov esi, ecx
xor ebx, ebx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
sub esp, 0x18
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
movaps xmm0, xmmword [0x4308c0]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, esi
push eax
call fcn.00403330
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4240de
push edi
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x425bb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov ecx, dword [ebp + 8]
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx - 5]
mov edi, 5
cmp eax, 1
jbe 0x425be7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
mov eax, edi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x54], 0x44
cmp dword [eax + 0x14], 7
jbe 0x425c0f
mov eax, dword [eax]
mov esi, dword [ebp + 0x10]
push eax
call dword [sym.imp.mozglue.dll__wcsdup]
add esp, 4
mov edx, dword [edi + 0x10]
cmp dword [edi + 0x14], 7
jbe 0x425c27
mov edi, dword [edi]
mov ebx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
test edx, edx
cmove edi, edx
cmp dword [esi + 0x14], 7
jbe 0x425c3a
mov esi, dword [esi]
mov ecx, dword [ecx]
mov dword [ebp - 0x5c], ecx
sub esp, 0x28
mov dword [esp + 0x24], ebx
lea ecx, [ebp - 0x54]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edi
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [ebp - 0x58], eax
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, 5
test eax, eax
je 0x425ce7
mov eax, dword [ebp + 8]
cmp eax, 6
mov eax, 0x1fffff
mov esi, 0x101c01
cmove esi, eax
mov eax, dword [ebx]
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push esi
push ebx
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x425d01
cmp dword [ebp + 8], 6
mov esi, 0x100c43
mov eax, 0x1fffff
cmove esi, eax
mov edi, dword [ebx + 4]
add ebx, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push esi
push ebx
push dword [ebp - 0x5c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea edi, [ecx + ecx*4]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x425bd3
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x425bd3
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x425ce7

Function at 0x425d70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x20]
mov ebx, dword [ebp + 8]
movups xmm0, xmmword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
xor edx, edx
mov dword [edi], edx
mov ecx, dword [ebx]
sub esp, 0x1c
mov dword [esp + 0x18], eax
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x425dcf
mov esi, eax
mov ebx, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 3
xor ecx, ecx
push ecx
push ecx
push edi
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [ecx + ecx*4]
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x427b00
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, 0x3f0
cmp byte [ecx + 0x38], 0
jne 0x427b34
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
mov eax, edi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, ecx
lea edx, [ecx + 0x30]
lea eax, [ebp - 0x58]
lea edi, [ebp - 0x5c]
mov ecx, edi
push eax
push 2
call fcn.00427c30
add esp, 8
mov edi, dword [edi]
test edi, edi
je 0x427c26
mov dword [ebp - 0x60], esi
cmp dword [edi], 0
je 0x427c16
xor edx, edx
mov eax, dword [ebp - 0x60]
add eax, 0x18
mov dword [ebp - 0x64], eax
test dword [edi + edx*8 + 8], 0xc0000020
je 0x427b81
inc edx
cmp edx, dword [edi]
jb 0x427b6d
jmp 0x427c16
cmp dword [ebp + 8], 0
je 0x427bd2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [eax + 4], ecx
je 0x427bd2
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x68], edx
mov eax, dword [edi + edx*8 + 4]
mov dword [ebp - 0x6c], eax
add ecx, esi
call fcn.0040bf10
push dword [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov edx, dword [ebp - 0x68]
test eax, eax
jne 0x427b77
inc ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
imul eax, eax, 0xf0f0f0f1
add esi, 0x44
cmp ebx, eax
jb 0x427b98
lea ecx, [ebp - 0x54]
mov ebx, edx
push dword [edi + edx*8 + 4]
call fcn.00413a90
mov esi, dword [ebp - 0x60]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
cmp edx, eax
je 0x427c07
push 0x44
lea ecx, [ebp - 0x54]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x1c], 0x44
mov edx, ebx
jmp 0x427b77
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x54]
push eax
push edx
call fcn.00414650
jmp 0x427c00
push edi
call sub.mozglue.dll_void___cdecl_operator_delete___void__
add esp, 4
xor edi, edi
jmp 0x427b1e
mov edi, dword [ebp - 0x58]
jmp 0x427b1e

Function at 0x42de40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov ecx, dword [ecx + 0x34]
test ecx, ecx
je 0x42dec6
mov edi, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
and ecx, 0xfffffffc
call fcn.0042ded0
test al, al
je 0x42dec6
mov dword [ebp - 0x10], ebx
push edi
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42dec6
mov edi, eax
mov ecx, eax
call fcn.0042ded0
test al, al
je 0x42dec6
lea ecx, [esi + 0x18]
mov edx, edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.004067c0
add esp, 8
mov ecx, eax
mov al, 1
test cl, cl
jne 0x42dec8
cmp byte [esi + 0x14], 0
jne 0x42deb6
mov dword [esi + 0x14], 1
mov dword [esi + 0x10], 0
mov ecx, esi
mov edx, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00404cf0
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42e380
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, ecx
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x438438]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42e3fc
mov eax, dword [esi + 8]
test eax, eax
jne 0x42e3d2
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [0x438434]
mov dword [ebp - 0x38], ecx
mov ebx, dword [esi + 4]
lea edi, [ebx + eax*8]
lea eax, [ebp - 0x34]
push eax
push dword [ebx]
push dword [ebp - 0x38]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add ebx, 8
cmp ebx, edi
je 0x42e3b9
jmp 0x42e3e1
push 0x438438
call fcn.00409b1a
add esp, 4
cmp dword [0x438438], 0xffffffff
jne 0x42e3b2
lea edi, [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x438434], eax
push 0x438438
call fcn.00409ad0
add esp, 4
jmp 0x42e3b2
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408951
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov esi, 0x4085d8
dec edx
sub esp, 4
mov dword [esp], 0x41ec84ec
mov edx, dword [esp]
add esp, 4
call fcn.00408984
xor dword [ecx], esi
inc ecx
cmp ecx, edi
jne fcn.00408951
add edx, eax
push 0xc9d7b636
pop edx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1ac70b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01ac7200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1ac70d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1ac70c2
add dl, dl
jne 0x1ac70e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1ac7134
xor eax, eax
add dl, dl
jne 0x1ac70ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1ac71d5
add dl, dl
jne 0x1ac70fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ac7108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ac7113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ac711e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1ac712a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1ac70cd
mov eax, 1
add dl, dl
jne 0x1ac7142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ac714d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1ac7139
sub eax, ebx
mov ebx, 1
jne 0x1ac7180
mov ecx, 1
add dl, dl
jne 0x1ac7166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1ac7171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1ac715d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1ac70cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1ac7197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1ac71a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1ac718e
cmp eax, 0x7d00
jae 0x1ac71c5
cmp eax, 0x500
jb 0x1ac71c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1ac70cd
cmp eax, 0x7f
ja 0x1ac71c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1ac70cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1ac71f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1ac70cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412d00
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412eaa
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x71
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x41
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x61
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x3f
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x4b
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0xde
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x8b
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x33
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xec
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x74
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xac
add esp, 0x40
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd7
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x52
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x74
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d20
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451ba9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451bba
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405907
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b052
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b063
pop esi
ret
push ebx
push edi
push esi
call fcn.0049af39
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b08b
push ebx
push esi
push edi
call fcn.004056fa
add esp, 0xc
push 0
call fcn.00406244
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret