joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416f40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435555
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4b3040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edx
cmp dword [edx + 0x14], 0xf
mov dword [ebp - 0x14], edx
jbe 0x416f84
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x416fa8
mov edi, dword [ebp - 0x14]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x416f93
mov edi, dword [ebp - 0x1c]
push esi
push edx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004173a0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x416fd8
mov dword [edi], eax
mov eax, edi
mov byte [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x71c71c7
jne 0x416fec
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ebx + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x20], 0
call fcn.00432cbf
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
push dword [ebp - 0x10]
lea ecx, [edi + 8]
call fcn.00407a70
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov dword [edi + 0x20], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4ab590]
mov eax, dword [ebx + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x4ab590]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x4170bc
divss xmm0, xmm3
call fcn.004153c0
call fcn.00433b90
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x4170a0
cmp eax, 0x200
jae 0x41709e
shl eax, 3
cmp eax, ecx
jae 0x4170a0
mov eax, ecx
push eax
mov ecx, ebx
call fcn.004171b0
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004173a0
mov edx, dword [eax]
jmp 0x4170bf
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x4170e7
mov dword [ecx + eax*8], edi
jmp 0x4170f9
cmp esi, edx
jne 0x4170f0
mov dword [ecx + eax*8], edi
jmp 0x4170fd
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x4170fd
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x417f70
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4355fb
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x4b3040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xb
xorps xmm0, xmm0
mov dword [ebp - 0x138], 0
push str.adb_adb.exe
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x134], 0
movups xmmword [ebp - 0x148], xmm0
call fcn.00405d80
lea eax, [ebp - 0x148]
mov dword [ebp - 4], 0
push eax
call fcn.0041f6c0
lea edi, [esi + 4]
cmp edi, eax
je 0x417ffd
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x417ff4
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.00406160
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x134]
cmp ecx, 0xf
jbe 0x418040
mov edx, dword [ebp - 0x148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x418036
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418036
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00432cef
add esp, 8
mov eax, dword [0x4b4214]
mov byte [esi + 0x1c], 1
cmp dword [eax + 0x34], 3
jne 0x418175
push 0
push 0x26
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xorps xmm0, xmm0
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x118], 0
movups xmmword [ebp - 0x12c], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418090
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.00405d80
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x118]
mov eax, edx
mov ecx, dword [ebp - 0x11c]
sub eax, ecx
push 0x2c
push str.NeteaseMuMuPlayerGlobal_12.0_shell_adb.exe
cmp eax, 0x2c
jb 0x4180f9
cmp edx, 0xf
lea esi, [ebp - 0x12c]
lea eax, [ecx + 0x2c]
cmova esi, dword [ebp - 0x12c]
add esi, ecx
mov dword [ebp - 0x11c], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0x2c], 0
jmp 0x418113
mov byte [ebp - 0x130], 0
lea ecx, [ebp - 0x12c]
push dword [ebp - 0x130]
push 0x2c
call fcn.0040a2e0
lea eax, [ebp - 0x12c]
cmp edi, eax
je 0x418139
cmp dword [ebp - 0x118], 0xf
mov ecx, edi
push dword [ebp - 0x11c]
cmova eax, dword [ebp - 0x12c]
push eax
call fcn.00406160
mov ecx, dword [ebp - 0x118]
cmp ecx, 0xf
jbe 0x418175
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41816b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41816b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00432cef
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret
Function at 0x41b7b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435c4d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x4b3040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push 0x439668
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
call fcn.00405d80
mov dword [ebp - 4], 0
cmp dword [esi + 0xc], 0
je 0x41b899
mov edx, dword [ebx + 8]
lea eax, [esi + 4]
mov dword [ebp - 0x30], eax
mov edi, edx
cmp dword [edx + 0x14], 0xf
jbe 0x41b837
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x41b858
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x41b843
mov eax, dword [ebp - 0x30]
push esi
push edx
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.004173a0
mov eax, dword [eax + 4]
test eax, eax
jne 0x41b872
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x34]
cmp eax, dword [ecx + 8]
je 0x41b899
add eax, 0x20
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x41b899
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x41b88f
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406160
lea ecx, [ebp - 0x2c]
call fcn.004175d0
mov ecx, dword [ebp - 0x18]
mov esi, eax
cmp ecx, 0xf
jbe 0x41b8d9
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41b8cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41b8cf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00432cef
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00432cb1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x41f6c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [0x4b421c]
cmp dword [edi + 0xc], 0
jne 0x41f6e1
xor eax, eax
mov eax, 0x18
pop edi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
lea eax, [edi + 4]
push ebx
push esi
mov ebx, edx
cmp dword [edx + 0x14], 0xf
jbe 0x41f6f3
mov ebx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x41f715
nop
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x41f700
lea eax, [edi + 4]
push esi
push edx
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.004173a0
pop esi
pop ebx
mov eax, dword [eax + 4]
test eax, eax
jne 0x41f72e
mov eax, dword [edi + 8]
cmp eax, dword [edi + 8]
je 0x41f6d3
mov eax, dword [eax + 0x20]
add eax, 0x18
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x41fa10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436405
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4b3040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edx
cmp dword [edx + 0x14], 0xf
mov dword [ebp - 0x14], edx
jbe 0x41fa54
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x41fa78
mov edi, dword [ebp - 0x14]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x41fa63
mov edi, dword [ebp - 0x1c]
push esi
push edx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004173a0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41faa8
mov dword [edi], eax
mov eax, edi
mov byte [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x71c71c7
jne 0x41fabc
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ebx + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x20], 0
call fcn.00432cbf
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
push dword [ebp - 0x10]
lea ecx, [edi + 8]
call fcn.00407a70
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov dword [edi + 0x20], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4ab590]
mov eax, dword [ebx + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x4ab590]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x41fb8c
divss xmm0, xmm3
call fcn.004153c0
call fcn.00433b90
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x41fb70
cmp eax, 0x200
jae 0x41fb6e
shl eax, 3
cmp eax, ecx
jae 0x41fb70
mov eax, ecx
push eax
mov ecx, ebx
call fcn.0041e9c0
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004173a0
mov edx, dword [eax]
jmp 0x41fb8f
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x41fbb7
mov dword [ecx + eax*8], edi
jmp 0x41fbc9
cmp esi, edx
jne 0x41fbc0
mov dword [ecx + eax*8], edi
jmp 0x41fbcd
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x41fbcd
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41fbf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x248
mov eax, dword [0x4b3040]
xor eax, esp
mov dword [esp + 0x244], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], esi
cmp dword [eax + 0x14], 0xf
push edi
mov edi, dword [ebp + 0x14]
jbe 0x41fc21
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41fc84
push str.RegOpenKeyExA_failed
call fcn.00406040
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push 0
push 0x439668
call fcn.00405d80
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 0x14], 0xf
mov dword [esp + 0x1c], 0x200
mov dword [esp + 0x18], 1
jbe 0x41fc9c
mov edi, dword [edi]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push edi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41fd0d
push str.RegQueryValueExA_failed
call fcn.00406040
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
push 0x439668
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00405d80
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 0x10
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x48]
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x34], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41fd30
sub ecx, edx
lea eax, [esp + 0x48]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00405d80
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24c]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov eax, esi
movups xmm0, xmmword [esp + 0x20]
mov dword [esi + 0x14], 0
pop edi
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x2c]
movq qword [esi + 0x10], xmm0
pop esi
xor ecx, esp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41fda0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x4b3040]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0xf
jbe 0x41fdc3
mov eax, dword [eax]
lea ecx, [esp + 4]
push ecx
push 0xf003f
push 0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41fe00
push str.RegCreateKeyExA_failed
call fcn.00406040
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x14], 0xf
mov dword [esp + 8], 0
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 4
jbe 0x41fe20
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push esi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41fe6b
push str.RegSetValueExA_failed
call fcn.00406040
add esp, 4
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 0xc
push dword [esp + 4]
mov esi, dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41fe90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x4b3040]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
mov edi, dword [ebp + 0x14]
cmp dword [esi + 0x14], 0xf
jbe 0x41feba
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41ff25
cmp dword [esi + 0x14], 0xf
jbe 0x41fede
mov esi, dword [esi]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41ff25
push str.RegCreateKeyExA_failed
call fcn.00406040
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 0x14], 0xf
jbe 0x41ff3b
mov ecx, dword [edi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ff30
mov edi, dword [edi]
jmp 0x41ff47
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ff40
sub ecx, edx
cmp dword [ebx + 0x14], 0xf
jbe 0x41ff51
mov ebx, dword [ebx]
lea eax, [ecx + 1]
push eax
push edi
push 1
push 0
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41ff96
push str.RegSetValueExA_failed
call fcn.00406040
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 0x10
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41ffd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x4b3040]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
mov edi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 0xf
jbe 0x41fffa
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x420065
cmp dword [esi + 0x14], 0xf
jbe 0x42001e
mov esi, dword [esi]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x420065
push str.RegCreateKeyExA_failed
call fcn.00406040
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 0x14], 0xf
jbe 0x42006d
mov edi, dword [edi]
push 4
push ebx
push 4
push 0
push edi
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4200b0
push str.RegSetValueExA_failed
call fcn.00406040
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 0x10
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x420430
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4b3040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x4b4228]
push 0x100
mov dword [ebp - 0x28], 0xe92d4ff0
mov dword [ebp - 0x24], 0xe59f0010
mov dword [ebp - 0x20], 0xe3a01001
mov dword [ebp - 0x1c], 0xe08f0000
mov dword [ebp - 0x14], 0xe3a00000
mov dword [ebp - 0x10], 0xe8bd8ff0
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], eax
call fcn.0043308d
add esp, 4
mov dword [ebp - 0x34], eax
push 0
push 0x100
push eax
push esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4205ad
lea eax, [ebp - 0x2c]
push eax
push 0x40
push 0x100
push esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x4205ad
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi + 0xc]
push 0
push 0x24
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x28]
push ecx
push esi
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x420583
cmp dword [ebx + 0x14], 0xf
jbe 0x420510
mov ecx, dword [ebx]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420505
mov ebx, dword [ebx]
jmp 0x42051c
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420515
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esi + 0x20]
push eax
push dword [edi + 0xc]
call ebx
test eax, eax
je 0x420589
xor ecx, ecx
call fcn.004246f0
test al, al
je 0x420589
push 0
push 0x100
push dword [ebp - 0x34]
push esi
push dword [edi + 0xc]
call ebx
test eax, eax
je 0x420589
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x2c]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0x100
push esi
push dword [edi + 0xc]
call eax
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, dword [ebp - 0x38]
push 0
push 0x100
push dword [ebp - 0x34]
push esi
push edi
call ebx
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push dword [ebp - 0x3c]
push 0x100
push esi
push edi
call eax
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x420870
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b3040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [0x4b422c]
push 0x40
push 0x3000
push 0x104
push 0
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x4208cf
push 0x8000
push 0
push esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x14], 0xf
jbe 0x4208eb
mov ecx, dword [ebx]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4208e0
mov ebx, dword [ebx]
jmp 0x4208f7
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4208f0
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
push ebx
push esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [edi + 0xc]
test eax, eax
jne 0x420934
push 0x8000
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push esi
push dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
je 0x4208a9
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x4208a9
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jbe 0x4208a9
push 0x8000
push 0
push esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 4