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

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x439384]
mov ecx, dword [0x4380f8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x411d43
push 0x439384
call fcn.00413e6a
add esp, 4
cmp dword [0x439384], 0xffffffff
jne 0x411d43
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x1c]
mov dword [0x439380], eax
push 0x439384
call fcn.00413e20
add esp, 4
mov esi, dword [0x439380]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00414c00
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret

Function at 0x411d60
Capabilities:
Get system information on windows
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x130
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x120]
push 0x110
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi - 0xc], 0x11c
sub esp, 0x10
movaps xmm0, xmmword [0x4310d0]
movups xmmword [esp], xmm0
mov edi, dword [sym.imp.ntdll.dll_VerSetConditionMask]
call edi
mov ebx, 3
push ebx
push 1
push edx
push eax
call edi
push ebx
push 0x20
push edx
push eax
call edi
mov dword [esi - 8], 6
mov dword [esi - 4], 2
mov word [esi + 0x108], 0
lea esi, [ebp - 0x12c]
push edx
push eax
push 0x23
push esi
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x411e0b
push esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x12c], 0
jne 0x411e0b
push 0x800
push 0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x411eac
mov edi, eax
add eax, eax
xor ecx, ecx
dec ecx
test edi, edi
cmovns ecx, eax
push ecx
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov ebx, eax
mov esi, edi
dec esi
push edi
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp esi, eax
jne 0x411e99
xor eax, eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
dec eax
cmp eax, 0x7ffe
ja 0x411e99
mov eax, edi
add eax, edi
push eax
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov esi, eax
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x411e8f
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x12c]
push 0x433dc0
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
lea eax, [ebx + 1]
xor ecx, ecx
dec ecx
cmp eax, 0x40000000
Function at 0x4161c0
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 ebx, ecx
mov eax, dword [0x438014]
xor eax, ebp
mov dword [esp + 0xd0], eax
test edx, edx
je 0x416337
xor edi, edi
inc edi
mov esi, 0x431524
mov ecx, ebx
push 0
push str._TargetNtMapViewOfSection_44
push edi
push str.NtMapViewOfSection
push esi
call fcn.004050e0
mov ecx, ebx
push edi
push str._TargetNtUnmapViewOfSection_12
push edi
push str.NtUnmapViewOfSection
push esi
call fcn.004050e0
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [esp + 4], eax
sub esp, 0x14
movaps xmm0, xmmword [0x431510]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, ebx
mov ebx, eax
mov dword [esp + 0xc], ecx
mov edi, dword [ecx + 8]
shl edi, 6
lea ecx, [edi + 0x50]
mov dword [esp + 8], ecx
call fcn.00405e00
mov esi, eax
and eax, 0xf000
add eax, ebx
and esi, 0xfff
add edi, 0x104f
and edi, 0xfffff000
push 0x40
push 0x1000
push edi
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test eax, eax
je 0x416345
add ebx, esi
lea edi, [esp + 0x18]
mov esi, dword [esp + 8]
mov dword [edi], esi
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 4], 0x10
push 0xac
push eax
push sym.plugin_container.exe_g_originals
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, ebx
push edi
push esi
call fcn.004068e0
add esp, 8
test eax, eax
jne 0x41631d
lea eax, [esp + 0x14]
push eax
push 0x10
push edi
push ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov esi, 0x2a
test eax, eax
je 0x41631f
cmp dword [esp + 0x14], 0x10
mov ecx, dword [esp + 8]
jne 0x41631f
lea eax, [esp + 0x10]
push eax
push 0x20
push ecx
push ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push 0xac
push sym.plugin_container.exe_g_originals
push str.g_originals
call fcn.00406240
mov esi, eax
mov ecx, dword [esp + 0xd0]
xor ecx, ebp
call fcn.00414c00
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebx + 8], 0
jne 0x416218
xor esi, esi
jmp 0x41631f
lea edi, [esp + 0x18]
mov ecx, edi
push str.thunk_base
push 0x188
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_sandbox_win_src_interception.cc
call fcn.0041b030
mov ecx, edi
call fcn.0041b100
jmp 0x41628a
Function at 0x418450
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
call fcn.004062e0
test al, al
je 0x418474
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 0x418492
mov ecx, edi
call fcn.0040ea10
push edi
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esi + 0x30]
test ecx, ecx
jne 0x4184d3
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4184aa
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov edi, dword [esi + 0x20]
test edi, edi
jne 0x418508
lea ecx, [esi + 0x18]
call fcn.00404350
lea ecx, [esi + 0x14]
call fcn.00404350
lea ecx, [esi + 0x10]
call fcn.00404350
mov ecx, esi
pop esi
pop edi
pop ebp
jmp fcn.00404c40
mov eax, dword [esi + 0x38]
sub eax, ecx
cmp eax, 0x1000
jb 0x4184f1
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41851a
add eax, 0x23
mov ecx, edx
push eax
push ecx
call sub.mozglue.dll_void___cdecl_operator_delete_void___unsigned_int_
add esp, 8
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
jmp 0x418499
mov ecx, edi
call fcn.0040ea10
push edi
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4184b1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]

Function at 0x419e60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x24
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0xc], eax
push str.MOZ_ENABLE_HANDLE_VERIFIER
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x419e9a
call fcn.00419f70
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00414c00
add esp, 0x24
pop esi
pop edi
pop ebp
ret
movaps xmm0, xmmword [str.kernel32]
lea esi, [ebp - 0x28]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x64002e
mov dword [esi + 0x14], 0x6c006c
mov word [esi + 0x18], 0
cmp dword [0x439320], 0
jne 0x419ed0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x439320], eax
lea edi, [ebp - 0x2c]
mov dword [edi], 0
mov dword [ebp - 0x28], 0x43936c
mov dword [ebp - 0x24], 0x4392ec
mov dword [ebp - 0x20], 0x432983
mov dword [ebp - 0x1c], 0x42f6b0
mov byte [ebp - 0x18], 0
push edi
push esi
push 0x42f710
push 0x439370
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x419e84
cmp dword [ebp - 0x2c], 0
je 0x419e84
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x439374
mov dword [ebp - 0x24], 0x4392ec
mov dword [ebp - 0x20], 0x432973
mov dword [ebp - 0x1c], 0x42f6d0
mov byte [ebp - 0x18], 0
push edi
push esi
push 0x42f710
push 0x439378
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x419e84
cmp dword [ebp - 0x2c], 0
jne 0x419e89
jmp 0x419e84
Function at 0x41cde0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
call fcn.0041d040
test edi, edi
je 0x41ce24
test al, al
je 0x41ce24
mov ecx, ebx
sar ecx, 0x1f
add edi, ebx
adc ecx, 0
mov eax, ecx
and eax, 1
neg eax
xor ecx, eax
jne 0x41ce24
test eax, eax
js 0x41ce24
cmp dword [esi + 8], edi
jb 0x41ce24
mov ecx, esi
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0041d050
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x424eb0
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 [0x438014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
mov esi, 5
cmp eax, 3
jne 0x424f43
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 8
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
jb 0x424ef4
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 0x424f57
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.00414c00
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
dec edi
jmp 0x424f33

Function at 0x426ab0
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 [0x431960]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, esi
push eax
call fcn.004016a0
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x426afe
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 0x428ea0
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 [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx - 7]
mov edi, 5
cmp eax, 0xfffffffe
jae 0x428ed7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414c00
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], 8
jb 0x428eff
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], 8
jb 0x428f17
mov edi, dword [edi]
mov ebx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
test edx, edx
cmove edi, edx
cmp dword [esi + 0x14], 8
jb 0x428f2a
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 0x428fd7
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 0x428ff1
cmp dword [ebp + 8], 6
mov edi, 0x100c43
mov eax, 0x1fffff
cmove edi, eax
mov esi, dword [ebx + 4]
add ebx, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push edi
push ebx
push dword [ebp - 0x5c]
push esi
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 0x428ec3
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x428ec3
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x428fd7

Function at 0x429000
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 0x42905f
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 0x42fbf0
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 [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4393b8]
mov ecx, dword [0x4380f8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42fc6a
mov eax, dword [esi + 8]
test eax, eax
je 0x42fc51
mov ecx, dword [0x4393b4]
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
jne 0x42fc38
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414c00
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4393b8
call fcn.00413e6a
add esp, 4
cmp dword [0x4393b8], 0xffffffff
jne 0x42fc22
lea edi, [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x4393b4], eax
push 0x4393b8
call fcn.00413e20
add esp, 4
jmp 0x42fc22

Function at 0x42fee0
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 0x42ff66
mov edi, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
and ecx, 0xfffffffc
call fcn.0041a040
test al, al
je 0x42ff66
mov dword [ebp - 0x10], ebx
push edi
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42ff66
mov edi, eax
mov ecx, eax
call fcn.0041a040
test al, al
je 0x42ff66
lea ecx, [esi + 0x18]
mov edx, edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00410fb0
add esp, 8
mov ecx, eax
mov al, 1
test cl, cl
jne 0x42ff68
cmp byte [esi + 0x14], 0
jne 0x42ff56
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.0040a680
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42a0a9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x42a0b8
pop dword [ebp - 0x40]
mov eax, 0x5db07e4c
add eax, 0xa292226c
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x4eefc
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x416be57c
sub ecx, 0x416ba145
xor edx, edx
add edx, eax
mov edi, 0x438295e
sub edi, 0x3efab5e
add edi, dword [ebp - 0x40]
mov esi, 0xc9574c5b
xor dword [ebp - 0x24], edi
mov ebx, dword [edi]
sub dword [ebp - 0x28], ebx
xor ebx, esi
sub dword [ebp - 0x1c], esi
mov dword [edx], ebx
xor dword [ebp - 0x38], 0x938be874
add edx, 4
add edi, 0x82ff7466
sub edi, 0x82ff7462
loop 0x42a10e
add eax, 0x7295a71a
add eax, 0x8d6b5c95
mov ebx, eax
add eax, 0x510f2a22
sub eax, 0x510f2a1d
mov ecx, 0x243f29d1
add ecx, 0xdc00d62f
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x61d82792
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x749753f1
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40a270
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426458]
jne 0x40a27a
repz ret
jmp fcn.0040cf9b

Function at 0x40c3b3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00408529
and dword [ebp - 0x14], 0
cmp dword [0x428a00], 0
mov dword [ebp - 0x18], eax
jne 0x40c466
push 0x403e34
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c50e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e28
push ebx
call edi
test eax, eax
je 0x40c50e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e18
push ebx
mov dword [0x428a00], eax
call edi
push eax
call esi
push 0x403e04
push ebx
mov dword [0x428a04], eax
call edi
push eax
call esi
push 0x403de8
push ebx
mov dword [0x428a08], eax
call edi
push eax
call esi
mov dword [0x428a10], eax
test eax, eax
je 0x40c466
push 0x403dd0
push ebx
call edi
push eax
call esi
mov dword [0x428a0c], eax
mov eax, dword [0x428a0c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c4bf
cmp dword [0x428a10], ecx
je 0x40c4bf
push eax
call esi
push dword [0x428a10]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c4bf
test ebx, ebx
je 0x40c4bf
call edi
test eax, eax
je 0x40c4b6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c4b6
test byte [ebp - 8], 1
jne 0x40c4bf
or dword [ebp + 0x10], 0x200000
jmp 0x40c4f2
mov eax, dword [0x428a04]
cmp eax, dword [ebp - 0x18]
je 0x40c4f2
push eax
call esi
test eax, eax
je 0x40c4f2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c4f2
mov eax, dword [0x428a08]
cmp eax, dword [ebp - 0x18]
je 0x40c4f2
push eax
call esi
test eax, eax
je 0x40c4f2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x428a00]
call esi
test eax, eax
je 0x40c50e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c510
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a270
leave
ret
Function at 0x422590
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0x7aca90], ax
mov word [0x7aca94], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0x7aca90
mov dword [0x7aca9c], 0x320033
mov dword [0x7acaa4], 0x6c006c
mov word [0x7aca96], cx
mov dword [0x7aca98], 0x6c0065
mov dword [0x7acaa0], 0x64002e
mov word [0x7aca92], dx
mov word [0x7acaa8], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x7aca8c]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0x7aca88], eax
mov eax, dword [0x42dadc]
push edx
push eax
mov byte [0x428d53], 0x65
mov dword [0x428d49], 0x75747269
mov word [0x428d4d], 0x6c61
mov byte [0x428d48], 0x56
mov word [0x428d54], 0x7463
mov byte [0x428d56], 0
mov dword [0x428d4f], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret

Function at 0x422680
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1050
call fcn.0040cf70
cmp dword [0x7aca8c], 0x37
jne 0x422754
push 0
call dword [sym.imp.KERNEL32.dll_DebugActiveProcessStop]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4046b4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov ecx, dword [esp]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea edx, [esp + 0x454]
push edx
push 0x4046bc
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 8]
push edx
push 0x4046d0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0x4046e4
push 0x4046f4
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
lea eax, [esp + 0x854]
push eax
push 0
push 0x40471c
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0x404748
push 0x404764
push 0x404774
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0x7ada80]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x42dadc]
mov byte [ecx + esi], al
add esp, 0x1050
ret