joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ff310f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor esi, esi
mov edi, eax
mov dword [ebp - 4], esi
cmp edi, esi
je 0x5ff3110a
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
jmp 0x5ff3110d
mov dword [ebp - 0xc], esi
mov edx, dword [ebp + 8]
push edi
push ebx
lea ecx, [ebp - 4]
push ecx
push esi
push str.SEPBaseDir
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x5ff311c9
mov eax, dword [ebp + 0xc]
cmp eax, esi
mov esi, dword [ebp - 4]
je 0x5ff31137
mov dword [eax], esi
mov ecx, edi
mov eax, ebx
mov edx, esi
call fcn.5ff31040
mov dword [ebp - 8], eax
test ebx, ebx
jne 0x5ff311ab
test edi, edi
je 0x5ff311ab
cmp dword [edi], 2
jne 0x5ff31199
cmp esi, 1
je 0x5ff31161
cmp esi, 2
je 0x5ff31161
cmp esi, 7
jne 0x5ff31199
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push str.SEPBaseDir
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5ff31196
cmp word [ebp - 0x18], ax
je 0x5ff311a8
mov esi, dword [ebp - 4]
test esi, esi
je 0x5ff311ab
mov ecx, esi
mov eax, edi
call fcn.5ff31000
jmp 0x5ff311ab
mov esi, dword [ebp - 4]
cmp dword [ebp - 8], 0xd
jne 0x5ff311c6
test ebx, ebx
je 0x5ff311c6
mov ecx, edi
mov edi, dword [ebp - 0xc]
mov eax, ebx
mov edx, esi
call fcn.5ff30f70
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
nop
mov eax, dword [section..data]
cmp eax, 0
jne 0x4010f9
mov eax, str.ws2_32.dll
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
mov eax, str.WSAStartup
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [section..data], eax
mov eax, str.socket
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x402004], eax
mov eax, str.htons
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x402008], eax
mov eax, str.htonl
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x40200c], eax
mov eax, str.bind
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x402010], eax
mov eax, str.listen
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x402014], eax
mov eax, str.accept
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x402018], eax
mov eax, str.recv
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x40201c], eax
mov eax, str.send
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x402020], eax
mov eax, str.WSACleanup
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x402024], eax
mov eax, dword [ebp + 0xc]
push eax
movzx eax, word [ebp + 8]
push eax
mov eax, dword [section..data]
call eax
leave
ret
Function at 0x404230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40425c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x404284
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40428a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x4042f2
jg 0x4042a1
test esi, esi
je 0x4042f2
test ecx, ecx
jl 0x4042ed
jg 0x4042ab
test eax, eax
je 0x4042ed
cmp edi, ecx
jg 0x4042bf
jl 0x4042b5
cmp esi, eax
jae 0x4042bf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x4042f5
mov ecx, dword [ebp + 8]
jmp 0x4042ff
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x404319
jg 0x4042ff
test esi, esi
je 0x404319
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x404319
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x40435c
jl 0x404350
test ecx, ecx
jne 0x40435c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x404375
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x4043c3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x4043c9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x4043c9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x404436
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4043f2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x404424
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x404436
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x404400
test edi, edi
je 0x404436
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4047b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4047e0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004070a3
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x404810
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x404810
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004070a3
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x4048e8
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x404839
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x404845
movsx eax, bl
jmp 0x40487d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x4048a7
sub eax, 1
je 0x4048a7
sub eax, 2
jne 0x4048e8
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004070a3
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4048c5
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4048e8
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004070a3
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004070a3
mov esp, ebp
pop ebp
ret 4
Function at 0x404f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40501c
cmp byte [esi + 0x3d], 0
je 0x40501c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40500a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x404fd1
sub eax, 1
je 0x404fd5
sub eax, 2
jne 0x40500a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004070a3
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404ff3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40500a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004070a3
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004070a3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004070a3
mov esp, ebp
pop ebp
ret

Function at 0x407949
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407988
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407988
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407988
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407988
cmp dword [ecx + 0x74], 0xe
jbe 0x407988
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x3b15a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
je 0x3b180d
jne 0x3b180d
je 0x3b11e6
jne 0x3b12ed
add byte [eax], al
add byte [eax], al
Function at 0x3b3620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x23c
mov edi, dword [ebp + 0xc]
je 0x3b37a8
jne 0x3b37a8
Function at 0x3b4860
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
je 0x3b48b6
jne 0x3b48b6
jmp 0x3ea783b2
inc ebp
cmp ebp, dword [esi + edi + 0x18]
jb 0x3b48d7
xor eax, eax
jmp 0x3b4890
mov eax, dword [esp]
je 0x3b487c
jne 0x3b487c
jmp 0x6847ff8f
movzx ecx, word [eax + ebp*2]
xor eax, eax
cmp dword [esi + edi + 0x14], ecx
jb 0x3b4890
mov eax, dword [esi + edi + 0x1c]
je 0x3b48f9
jne 0x3b48f9
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + edi + 0x24]
mov ebx, dword [esi + edi + 0x20]
xor ebp, ebp
je 0x3b491b
jne 0x3b491b
je 0x3b24da
jne 0x3b140a
push eax
mov edx, dword [esp + 0x1c]
xor eax, eax
mov ecx, dword [edx]
cmp dword [ecx + 0x7c], 0
je 0x3b4890
je 0x3b4938
jne 0x3b4938
je 0x3b369f
jne 0x3b2cb7
je 0x1e64d66
mov eax, dword [ebx + ebp*4]
add eax, esi
push eax
push dword [esp + 0x24]
mov eax, dword [esp + 0x20]
call dword [eax + 0x24]
je 0x3b4907
invalid
jne 0x3b4907
je 0x3b268a
jne 0x3b2922
jmp 0x3c9558a
lea ecx, [esi + ecx*4]
add esi, dword [eax + ecx]
mov eax, esi
je 0x3b4890
jne 0x3b4890
je 0x844b0990
test eax, eax
je 0x3b4874
invalid
je 0x3b4869
jne 0x3b4869
add eax, esi
add ebx, esi
mov dword [esp], eax
nop word cs:[eax + eax]
nop dword [eax]
je 0x3b48d7
jne 0x3b48d7
add byte [eax], al
add byte [eax], al
mov esi, dword [edx + 4]
mov edi, dword [ecx + 0x78]
cmp dword [edi + esi + 0x18], 0
je 0x3b4890
cmp dword [esi + edi + 0x14], 0
je 0x3b4890
je 0x3b489c
jne 0x3b489c
push ebp
push ebx
je 0x3b4a05
jne 0x3b4a05
je 0x438a3b
mov dword [eax + 8], 0
mov dword [eax + 0x10], 0
mov ebx, ecx
push dword [esp + 0x20]
push dword [esp + 0x20]
push eax
je 0x3b49d8
add byte [eax], al
add bh, al
inc eax
adc byte [eax], al
add byte [eax], al
add byte [ecx + 0x2474ffcb], cl
and bh, bh
je 0x3b49ab
and byte [eax + 0x74], dl
dec ebp
jne 0x3b49d8
je 0x3b13d2
jne 0x3b363b
add byte [eax], al
add byte [eax], al
test edi, edi
je 0x3b49fb
push 0x8000
push 0
push edi
call dword [ebx + 0xc]
je 0x3b49fb
or al, 0x74
dec ebp
jne 0x3b49fb
jmp 0x8177a740
mov ebx, dword [ebp + 0x3c]
cmp dword [ebp + ebx], 0x4550
jne 0x3b49fb
mov edi, dword [esp + 0x14]
add ebx, ebp
push 4
je 0x3b49ca
jne 0x3b49ca
push 0x3000
push 0x14
push 0
je 0x3b4a1c
jne 0x3b4a1c
jmp 0xec7e322d
push ecx
call fcn.003b3620
add esp, 0x10
test eax, eax
je 0x3b49f0
mov esi, edi
mov dword [edi + 0x10], 1
jmp 0x3b49fb
je 0x3b499d
jne 0x3b499d
pop ebx
pop ebp
ret
mov eax, esi
pop esi
pop edi
je 0x3b49f4
jne 0x3b49f4
je 0x6cc6a060
push edi
push esi
mov ebp, dword [esp + 0x18]
and al, 0x18
xor esi, esi
movzx eax, word [ebp]
cmp eax, 0x5a4d
jne 0x3b49fb
je 0x3b49b1
jne 0x3b49b1
call dword [edi]
mov ecx, edi
mov dword [eax + 4], ebp
mov dword [eax], ebx
mov edi, eax
mov dword [eax + 0xc], 0
je 0x3b4970
jne 0x3b4970
nop word [eax + eax]
ret
Function at 0x3b7f80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x1400
call fcn.003f4b40
mov eax, dword [esp + 0x1418]
movdqa xmm4, xmmword [0x3fa290]
movdqa xmm6, xmmword [0x3fa2a0]
mov esi, 0xfffffc00
pxor xmm2, xmm2
nop
movdqa xmm3, xmm4
movdqa xmm7, xmmword [0x3fa2c0]
movdqa xmm0, xmm4
movdqa xmm1, xmm4
movdqa xmm5, xmm4
pand xmm3, xmm6
psrld xmm0, 6
pand xmm1, xmmword [0x3fa320]
pcmpeqd xmm3, xmm2
pand xmm3, xmmword [0x3fa2b0]
pcmpeqd xmm1, xmm2
pand xmm1, xmmword [0x3fa330]
pxor xmm0, xmm3
movdqa xmm3, xmm4
pand xmm3, xmm7
movdqa xmm7, xmmword [0x3fa2e0]
pcmpeqd xmm3, xmm2
pand xmm3, xmmword [0x3fa2d0]
pand xmm5, xmm7
movdqa xmm7, xmmword [0x3fa350]
pcmpeqd xmm5, xmm2
pand xmm5, xmmword [0x3fa2f0]
pxor xmm3, xmm0
pand xmm0, xmm6
pcmpeqd xmm0, xmm2
pxor xmm1, xmm5
movdqa xmm5, xmm4
pand xmm5, xmmword [0x3fa340]
pcmpeqd xmm5, xmm2
pand xmm5, xmm7
pxor xmm5, xmm1
movdqa xmm1, xmm4
paddd xmm4, xmmword [0x3fa2e0]
pand xmm1, xmmword [str._b_b_b_b]
pxor xmm5, xmm3
pand xmm3, xmmword [0x3fa2c0]
pcmpeqd xmm1, xmm2
pcmpeqd xmm3, xmm2
pand xmm1, xmmword [0x3fa310]
pand xmm3, xmm7
pxor xmm5, xmm1
movdqa xmm1, xmm0
pand xmm0, xmmword [0x3fa370]
pandn xmm1, xmmword [0x3fa360]
psrld xmm5, 2
por xmm0, xmm1
pxor xmm0, xmm5
pxor xmm0, xmm3
movdqu xmmword [esp + esi + 0x400], xmm0
add esi, 0x10
jne 0x3b7fb0
mov esi, eax
mov eax, 0xfffffc00
shr esi, 2
nop word [eax + eax]
mov ebx, dword [esp + eax + 0x400]
movzx ecx, bl
shr ebx, 8
xor ebx, dword [esp + ecx*4]
movzx ecx, bl
shr ebx, 8
xor ebx, dword [esp + ecx*4]
movzx ecx, bl
shr ebx, 8
xor ebx, dword [esp + ecx*4]
mov dword [esp + eax + 0x800], ebx
add eax, 4
jne 0x3b80d0
mov eax, dword [esp]
mov edi, dword [esp + 0x400]
xor ebp, ebp
mov ebx, eax
shr ebx, 8
nop
mov ecx, eax
xor ecx, ebp
movzx ecx, cl
mov ecx, dword [esp + ecx*4]
xor ecx, ebx
movzx edx, cl
shr ecx, 8
xor ecx, dword [esp + edx*4]
movzx edx, cl
shr ecx, 8
mov edx, dword [esp + edx*4]
xor edx, edi
xor edx, ecx
mov dword [esp + ebp*4 + 0x800], edx
inc ebp
cmp ebp, 0x100
jne 0x3b8110
movzx eax, al
Function at 0x3b9d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
je 0x3b9fb2
jne 0x3b9fb2
jmp 0x4c8869b

Function at 0x3badf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
je 0x3bb0ab
jne 0x3bb0ab
je 0x3b93c2
jne 0x3ba2d9
add byte [eax], al
add byte [eax], al
push ebx
push edi
push esi
je 0x3bb126
jne 0x3bb126
add byte [eax], al
add byte [eax], al
Function at 0x3bb410
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp + 0x30], ecx
push 1
je 0x3b958c
jne 0x3b958c
add byte [eax], al
add byte [eax], al
mov ebp, dword [esi + 8]
je 0x3b9116
jne 0x3b9116
add byte [eax], al
add byte [eax], al
push ebp
push eax
push 2
push edx
push ebx
call fcn.003beab0
test eax, eax
je 0x3b8ea6
je 0x3b9393
jne 0x3b9393
add byte [eax], al
add byte [eax], al
mov byte [esp + 0x17], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x1a], 0
je 0x3b8eb3
jne 0x3b8eb3
je 0xf95b19e4
invalid
je 0x3bb867
jne 0x3bb867
add byte [eax], al
add byte [eax], al
mov eax, dword [esp + 8]
je 0x3bb5bc
jne 0x3bb5bc
je 0x3bb68c
jne 0x3bb68c
add byte [eax], al
add byte [eax], al
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov byte [esp + 8], 0
je 0x3bb7c3
jne 0x3bb7c3
invalid
mov byte [esp + 0xb], 0
mov byte [esp + 0xc], 0
mov byte [esp + 0xd], 0
mov byte [esp + 0xe], 0
push 0x3bb665
ret
mov ecx, dword [esp + 0x14]
cmp ecx, 3
push 0x3bb7e3
ret
je 0x3bb791
jne 0x3bb791
jmp 0x1a439c3
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
sub esp, 0x14
movsd xmm0, qword [esp + 0x2c]
mov edi, dword [ebp + 8]
push 0x3bb46b
ret
je 0x3bb440
jne 0x3bb440
add byte [eax], al
add byte [eax], al
test eax, eax
je 0x3bb880
jne 0x3bb880
lea eax, [esp + 0x14]
push 0
push eax
push edi
jmp 0x3bb770
je 0x85447b15
ror byte [edi], 0x84
retf
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
je 0x3bb7bb
jne 0x3bb7bb
push dword [esp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.HDWOMH_6aod_QddeNmda]
test eax, eax
je 0x3bb7e9
je 0x3bb596
jne 0x3bb596
add byte [eax], al
add byte [eax], al
jmp 0x3bb764
pop ebp
ret 8
mov byte [esp + 9], 0
mov byte [esp + 0xa], 0
je 0x3bb576
jne 0x3bb576
push 0x3bb5bc
ret
mov edx, dword [esp + 4]
push edx
call fcn.003f4b33
add esp, 4
je 0x3bb5a3
jne 0x3bb5a3
je 0xf77fa93
test dh, cl
std
invalid
push ebp
je 0x3bb636
jne 0x3bb636
je 0x3b8fa4
jne 0x3b8738
je 0x3bb764
push 0x3bb6c7
ret
Function at 0x3e2fc0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push esi
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov esi, dword [edx]
mov dword [eax + 0x10], esi
mov esi, dword [edx + 4]
mov dword [eax + 0x14], esi
mov esi, dword [edx + 8]
mov dword [eax + 0x18], esi
mov esi, dword [edx + 0xc]
mov dword [eax + 0x1c], esi
lea esi, [edx + 0x10]
cmp ecx, 0x100
cmovne esi, edx
mov ecx, str.expand_32_byte_kexpand_16_byte_k
mov edx, 0x3fa690
cmove edx, ecx
mov ecx, dword [esi]
mov dword [eax + 0x20], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 0x24], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 0x28], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0x2c], ecx
mov ecx, dword [edx]
mov esi, dword [edx + 4]
mov dword [eax], ecx
mov dword [eax + 4], esi
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
pop esi
ret

Function at 0x3e30f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x7c
mov dword [esp + 0x78], ecx
mov eax, dword [edx]
mov dword [esp + 0x38], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [edx + 0x14]
mov dword [esp + 0x4c], eax
mov eax, dword [edx + 0x18]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x54], eax
mov eax, dword [edx + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0x5c], eax
mov ebp, dword [edx + 0x28]
mov ebx, dword [edx + 0x2c]
mov edi, dword [edx + 0x30]
mov esi, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov eax, dword [edx + 0x3c]
mov dword [esp + 0x2c], 0xfffffff8
mov dword [esp + 0x74], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x68], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ebp, dword [esp + 0x54]