joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10071b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [ecx + 0x38], 0
je 0x10071c12
mov esi, ecx
cmp byte [ecx + 0x3d], 0
je 0x10071c12
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push 0xffffffffffffffff
call edi
cmp eax, 0xffffffff
je 0x10071c10
mov ebx, dword [esi + 0x38]
lea eax, [esi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [section..00cfg]
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x30]
mov ecx, ebx
mov ebx, edx
push eax
lea eax, [ebp - 0x10]
push eax
push edx
push dword [ebp - 0x38]
call edi
cmp eax, 3
je 0x10071c26
cmp eax, 1
je 0x10071bec
test eax, eax
jne 0x10071c10
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x34]
sub edi, ebx
je 0x10071c07
push dword [esi + 0x4c]
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10071c10
cmp byte [esi + 0x3d], 0
sete bl
jmp 0x10071c12
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004fb50
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi + 0x3d], 0
mov bl, 1
jmp 0x10071c12
Function at 0x10075040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
xor eax, eax
cmp byte [ecx + 0x40], 0
je 0x10075053
pop esi
pop edi
pop ebx
pop ebp
ret
xor edx, edx
cmp dword [ecx + 0x10], 0
je 0x1007508b
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
jb 0x10075065
mov eax, dword [ecx]
mov bl, byte [eax]
test bl, bl
je 0x1007508b
inc eax
xor edx, edx
movzx edi, bl
rol edx, 5
mov esi, edx
xor esi, edi
imul edx, esi, 0x9e3779b9
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x1007506e
imul edx, esi, 0xe35e67b1
movzx eax, byte [ecx + 0x18]
rol edx, 5
xor edx, eax
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, dword [ecx + 0x20]
imul eax, eax, 0x9e3779b9
rol eax, 5
imul eax, eax, 0x9e3779b9
cmp byte [ecx + 0x2c], 0
je 0x100750c1
rol eax, 5
xor eax, dword [ecx + 0x28]
imul eax, eax, 0x9e3779b9
cmp byte [ecx + 0x34], 0
je 0x100750d3
rol eax, 5
xor eax, dword [ecx + 0x30]
imul eax, eax, 0x9e3779b9
cmp byte [ecx + 0x3c], 0
je 0x1007504e
rol eax, 5
xor eax, dword [ecx + 0x38]
imul eax, eax, 0x9e3779b9
jmp 0x1007504e
Function at 0x100759a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, edx
mov edi, ecx
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [esp + 0x20], eax
push ecx
call fcn.100758b0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100759df
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.1004fb50
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ebx, [esp + 0x18]
mov ecx, edi
push 8
push ebx
call fcn.10068c40
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x58], eax
mov dword [esi + 0x64], ecx
mov dword [esi + 0x60], eax
mov ecx, esi
call fcn.10065200
mov ebx, dword [esi + 0x3c]
cmp byte [esi + 0x38], 0
je 0x10075a1f
lea eax, [esi + 0x18]
mov dword [esi + 0x30], 0
push eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
jne 0x10075a65
lea ebx, [esp + 0x14]
lea edx, [esp + 0xc]
mov ecx, ebx
call fcn.1005beb0
mov eax, dword [ebx]
lea ebx, [esp + 0x18]
mov dword [ebx], eax
mov ecx, esi
mov edx, ebx
call fcn.1006c8e0
mov ebx, dword [ebx]
test ebx, ebx
je 0x10075a5f
mov eax, dword [ebx]
mov ecx, dword [eax]
mov dword [esp + 4], ecx
call dword [section..00cfg]
mov ecx, ebx
push 1
call dword [esp + 8]
mov ebx, dword [esp + 0xc]
jmp 0x10075ad4
mov ecx, esi
call fcn.10065200
mov ebx, dword [esi + 0x3c]
xor ecx, ecx
mov eax, 0
test ebx, ebx
je 0x10075a97
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [esp + 4], ecx
call dword [section..00cfg]
mov ecx, ebx
call dword [esp + 4]
movzx ecx, al
and eax, 0xffffff00
cmp byte [esi + 0x38], 0
je 0x10075abe
mov dword [esp + 8], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x30], 0
push eax
mov dword [esp + 8], ecx
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test ebx, ebx
je 0x10075b6a
or eax, ecx
mov ebx, dword [esp + 0xc]
cmp eax, ebx
jb 0x10075b7f
mov dword [esp + 0x18], edi
lea eax, [esp + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
mov dword [eax], esi
mov ecx, esi
call fcn.10065200
lea edx, [esp + 0x10]
mov dword [edx], ebx
mov ecx, esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.10075ba0
add esp, 8
lea eax, [esp + 0x14]
mov eax, dword [eax]
cmp byte [eax + 0x38], 0
je 0x10075b24
mov dword [eax + 0x30], 0
add eax, 0x18
push eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, 8
mov ecx, edi
push eax
lea ebx, [esp + 0x1c]
push ebx
call fcn.10068c40
movsd xmm0, qword [esp + 0x18]
movsd qword [esi + 0x68], xmm0
mov ecx, edi
mov eax, 8
push eax
push ebx
call fcn.10068c40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x74], ecx
mov dword [esi + 0x70], eax
xor eax, eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], eax
jmp 0x100759cc
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_isSome___
int3
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_aBuffer.BufferLength__.value_____len_
int3
Function at 0x1007aa00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 4
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionThemesPersonalize
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x1007aa62
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
lea edi, [ebp - 0x1c]
push eax
push edi
push ebx
push 0x10
push str.AppsUseLightTheme
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
or eax, dword [edi]
sete bl
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004fb50
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1007b480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov ebx, edx
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x24], eax
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x1007b4ae
mov ecx, dword [edi]
lea edx, [esp + 0x24]
push edx
push eax
push eax
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1007b4e1
mov byte [esi + 0xc], 1
mov dword [esi], 7
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.1004fb50
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x24]
test al, 0xf
je 0x1007b4f5
mov byte [esi + 0xc], 1
mov dword [esi], 0xd
jmp 0x1007b4cc
lea ecx, [eax + eax]
xor edx, edx
dec edx
test eax, eax
cmovns edx, ecx
mov dword [esp], edx
push edx
call sym.mozglue.dll_malloc
add esp, 4
test eax, eax
je 0x1007b561
xor ecx, ecx
push dword [esp]
push ecx
mov dword [esp + 0xc], eax
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x1007b52b
mov edi, dword [edi]
lea eax, [esp + 0x24]
push eax
push dword [esp + 8]
xor eax, eax
push eax
push 8
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1007b570
mov byte [esi + 0xc], 1
mov dword [esi], 7
push dword [esp + 4]
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x1007b4cc
mov byte [esi + 0xc], 1
mov dword [esi], 3
jmp 0x1007b4cc
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0x10
mov ecx, dword [esp + 0x24]
mov dword [esp], ecx
cmp ecx, 0x10
jae 0x1007b5a2
mov byte [esi + 0xc], 0
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi], 0x10
jmp 0x1007b550
mov ecx, 0x10
xor edi, edi
mov ebx, dword [esp + 4]
movsd xmm0, qword [ebx]
movsd xmm1, qword [ebx + 8]
cmp eax, dword [esp + 0x20]
je 0x1007b5e3
shl eax, 4
movsd qword [ecx + eax], xmm0
movsd qword [ecx + eax + 8], xmm1
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
inc edi
mov edx, dword [esp]
shr edx, 4
add ebx, 0x10
cmp edi, edx
jb 0x1007b5ad
jmp 0x1007b619
movsd qword [esp + 8], xmm1
movsd qword [esp + 0x10], xmm0
lea ecx, [esp + 0x18]
call fcn.1007bbe0
test al, al
je 0x1007b637
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [esp], edx
movsd xmm0, qword [esp + 0x10]
movsd xmm1, qword [esp + 8]
jmp 0x1007b5bc
mov edx, dword [esp + 0x20]
mov byte [esi + 0xc], 0
mov dword [esi + 4], eax
mov dword [esi + 8], edx
cmp ecx, 0x10
je 0x1007b59a
mov dword [esi], ecx
jmp 0x1007b550
mov byte [esi + 0xc], 1
mov dword [esi], 3
mov eax, dword [esp + 0x18]
cmp eax, 0x10
je 0x1007b550
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x1007b550
Function at 0x1007bae0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x818
mov edi, dword [ebp + 8]
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007bb57
lea edi, [ebp + 0xc]
mov dword [ebp - 0x824], edi
lea esi, [ebp - 0x820]
mov ecx, esi
call sym.mozglue.dll_protected:_void___thiscall_mozilla::PrintfTarget::constructor_void_
mov dword [esi], 0x100938ec
lea ebx, [ebp - 0x810]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 0x800
mov ecx, esi
push edi
mov edi, dword [ebp + 8]
push edi
call sym.mozglue.dll_public:_bool___thiscall_mozilla::PrintfTarget::vprint_char_const___char__
mov eax, dword [esi + 4]
mov ecx, 0x7ff
cmp eax, ecx
cmovb ecx, eax
mov byte [ebp + ecx - 0x810], 0
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
add esp, 4
cmp eax, 0xfffffffe
je 0x1007bbbd
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup]
add esp, 4
push 0x1009794f
push eax
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
add esp, 8
test eax, eax
je 0x1007bbbd
mov esi, eax
mov ebx, edi
lea edi, [ebp + 0xc]
mov dword [ebp - 0x810], edi
call fcn.10005c20
push edi
push 0
push ebx
push esi
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfprintf]
add esp, 0x18
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004fb50
add esp, 0x818
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1007cde0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100a6868]
mov ecx, dword [0x100a53c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1007ce07
mov al, byte [0x100a6866]
pop ebp
ret
push 0x100a6868
call fcn.1004fb5e
add esp, 4
cmp dword [0x100a6868], 0xffffffff
jne 0x1007ce00
push str.MOZ_DISABLE_WALKTHESTACK
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x1007ce49
cmp byte [eax], 0
sete al
mov byte [0x100a6866], al
push 0x100a6868
call fcn.1004fb5e
add esp, 4
jmp 0x1007ce00
mov al, 1
jmp 0x1007ce35
Function at 0x10080f60
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
movaps xmm0, xmmword [0x100940f0]
movups xmmword [esp + 4], xmm0
mov dword [esp], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x100810a0
mov esi, eax
movaps xmm0, xmmword [0x10094100]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
sub esp, 0x18
xor edi, edi
test eax, eax
je 0x10081080
mov ebx, eax
lea eax, [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
sub esp, 4
movaps xmm0, xmmword [0x10094110]
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
test eax, eax
je 0x100810a4
mov dword [ebp - 0x3c], eax
mov edi, dword [eax + 0x3c]
lea eax, [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
sub esp, 4
mov eax, edi
xor edx, edx
div dword [ebp - 0x18]
sub edi, edx
mov dword [ebp - 0x38], edx
lea eax, [edx + 0xf8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
xor edi, edi
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 4
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
test eax, eax
je 0x10081065
mov ecx, dword [ebp - 0x38]
mov edi, dword [eax + ecx + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004fb50
mov eax, edi
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
jmp 0x1008108c
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x1008107d
Function at 0x100810b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, edx
mov esi, ecx
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x1008115d
mov edi, eax
mov dword [ebp - 0x20], esi
push eax
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov esi, eax
xor eax, eax
push edi
push eax
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], esi
push esi
push edi
xor edi, edi
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1008117d
lea eax, [ebp - 0x18]
mov dword [eax], 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0x1009b75c
mov esi, dword [ebp - 0x1c]
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
mov edx, esi
je 0x100811a3
mov eax, dword [ebp - 0x18]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov esi, dword [ebp - 0x20]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 0
push edx
call sym.mozglue.dll__aligned_free
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004fb50
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], ecx
jmp 0x10081149
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
xor eax, eax
mov esi, dword [ebp - 0x20]
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], ecx
mov edx, dword [ebp - 0x1c]
jmp 0x10081140
xor eax, eax
jmp 0x10081131

Function at 0x100814e0
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 [0x100a500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x100a6a5c]
mov ecx, dword [0x100a53c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1008155a
mov eax, dword [esi + 8]
test eax, eax
je 0x10081541
mov ecx, dword [0x100a6a58]
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 0x10081528
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004fb50
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100a6a5c
call fcn.1004fb5e
add esp, 4
cmp dword [0x100a6a5c], 0xffffffff
jne 0x10081512
lea edi, [ebp - 0x34]
push edi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x100a6a58], eax
push 0x100a6a5c
call fcn.1004fb5e
add esp, 4
jmp 0x10081512
Function at 0x10081c30
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 0x10081cb6
mov edi, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
and ecx, 0xfffffffc
call fcn.10053160
test al, al
je 0x10081cb6
mov dword [ebp - 0x10], ebx
push edi
push dword [esi + 0x34]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x10081cb6
mov edi, eax
mov ecx, eax
call fcn.10053160
test al, al
je 0x10081cb6
lea ecx, [esi + 0x18]
mov edx, edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.1001c360
add esp, 8
mov ecx, eax
mov al, 1
test cl, cl
jne 0x10081cb8
cmp byte [esi + 0x14], 0
jne 0x10081ca6
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.10012840
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402bc6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40de4c], esi
push edi
jne 0x402be6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40de48], esi
mov byte [0x40de44], al
jne 0x402c4c
mov ecx, dword [0x40e3cc]
test ecx, ecx
je 0x402c2d
mov eax, dword [0x40e3c8]
sub eax, 4
cmp eax, ecx
jmp 0x402c26
mov eax, dword [eax]
test eax, eax
je 0x402c18
call eax
mov eax, dword [0x40e3c8]
sub eax, 4
cmp eax, dword [0x40e3cc]
mov dword [0x40e3c8], eax
jae 0x402c10
mov eax, 0x40d024
mov esi, 0x40d02c
cmp eax, esi
mov edi, eax
jae 0x402c4c
mov eax, dword [edi]
test eax, eax
je 0x402c45
call eax
add edi, 4
cmp edi, esi
jb 0x402c3d
mov eax, 0x40d030
mov esi, 0x40d038
cmp eax, esi
mov edi, eax
jae 0x402c6b
mov eax, dword [edi]
test eax, eax
je 0x402c64
call eax
add edi, 4
cmp edi, esi
jb 0x402c5c
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x402c85
push dword [ebp + 8]
mov dword [0x40de4c], 1
call fcn.00402ae2
pop ebp
ret
Function at 0x40388b
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x40b7c8
call fcn.00403c88
mov edi, 0x94
mov eax, edi
call fcn.00406090
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40de0c], ecx
mov eax, dword [esi + 4]
mov dword [0x40de18], eax
mov edx, dword [esi + 8]
mov dword [0x40de1c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40de10], esi
cmp ecx, 2
je 0x4038eb
or esi, 0x8000
mov dword [0x40de10], esi
shl eax, 8
add eax, edx
mov dword [0x40de14], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x403924
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403924
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40393c
cmp eax, 0x20b
je 0x403929
mov dword [ebp - 0x1c], edi
jmp 0x403950
cmp dword [ecx + 0x84], 0xe
jbe 0x403924
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40394a
cmp dword [ecx + 0x74], 0xe
jbe 0x403924
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00406adf
pop ecx
test eax, eax
jne 0x40397c
cmp dword [0x40de5c], 2
je 0x403969
call fcn.004064a5
push 0x1c
call fcn.004062fd
push 0xff
call fcn.00402ae2
pop ecx
pop ecx
call fcn.00404b49
mov dword [ebp - 4], edi
call fcn.00404736
test eax, eax
jge 0x403995
push 0x1b
call fcn.004037dd
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40e3c0], eax
call fcn.00406999
mov dword [0x40de54], eax
call fcn.004068f2
test eax, eax
jge 0x4039bb
push 8
call fcn.004037dd
pop ecx
call fcn.004066b5
test eax, eax
jge 0x4039cc
push 9
call fcn.004037dd
pop ecx
push 1
call fcn.00402b57
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x4039e2
push eax
call fcn.004037dd
pop ecx
mov eax, dword [0x40de2c]
mov dword [0x40de30], eax
push eax
push dword [0x40de24]
push dword [0x40de20]
call fcn.00401ff0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x403a11
push esi
call fcn.00402c8c
call fcn.00402cb8
jmp 0x403a43
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00403cc3
ret
Function at 0x405bbd
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00406090
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405c58
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40de0c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x405c58
cmp eax, 1
je 0x405c79
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405c58
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405c25
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405c54
xor eax, eax
inc eax
jmp 0x405c98
cmp edi, eax
jae 0x405c5c
xor eax, eax
jmp 0x405c98
cmp eax, esi
jae 0x405c63
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40de0c]
jmp 0x405c7c
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret