joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405092
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.00404b11
test eax, eax
je 0x4050fe
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.kernel32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4050cc
push str.SetProcessDEPPolicy
push eax
call esi
test eax, eax
je 0x4050cc
push 1
call eax
test eax, eax
jne 0x4050fd
push str.ntdll.dll
call edi
test eax, eax
je 0x4050fd
push str.NtSetInformationProcess
push eax
call esi
mov esi, eax
test esi, esi
je 0x4050fd
push 4
lea eax, [ebp - 4]
push eax
push 0x22
mov dword [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
pop edi
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call fcn.00404ee4
test al, al
jne 0x405124
xor eax, eax
inc eax
jmp 0x405133
push esi
call fcn.00404b81
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x40584e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a224]
jne 0x405858
repz ret
jmp fcn.00405df1

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x24ba357a
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x186b4f60
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x10001016
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push edi
push 0x10003010
push 0x65
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001061
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x10001065
xor eax, eax
jmp 0x100010a7
push ebx
mov ebx, dword [esi]
push 0
push 4
push 2
push 0
push 2
push 0x40000000
push 0x10003038
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100010a3
lea eax, [esp + 0xc]
push 0
push eax
add esi, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x100010ab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
xor edx, edx
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], edx
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push edx
push edx
push 0x8000000
push edx
push edx
push edx
push 0x10003038
push edx
mov word [ebp - 0x24], dx
mov dword [ebp - 0x28], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x10001110
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
pop esi
xor eax, eax
leave
ret

Function at 0x438c98
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop edi
mov ecx, ebx
or ebx, ebx
call fcn.00438ce2
inc ebx
sub ecx, ecx
and ebx, ebx
xor dword [eax], edi
push ecx
mov ebx, dword [esp]
add esp, 4
sub ebx, ebx
inc eax
and ebx, ecx
sub ebx, 1
or ecx, ebx
cmp eax, esi
jne fcn.00438c98
sub esp, 4
mov dword [esp], ebx
pop ecx
sub ebx, 0x3dee0663
ret
Function at 0x27e9058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.027e91a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x27e907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x27e906a
add dl, dl
jne 0x27e9089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x27e90dc
xor eax, eax
add dl, dl
jne 0x27e9096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x27e917d
add dl, dl
jne 0x27e90a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x27e90b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x27e90bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x27e90c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x27e90d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x27e9075
mov eax, 1
add dl, dl
jne 0x27e90ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x27e90f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x27e90e1
sub eax, ebx
mov ebx, 1
jne 0x27e9128
mov ecx, 1
add dl, dl
jne 0x27e910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x27e9119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x27e9105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x27e9075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x27e913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x27e914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x27e9136
cmp eax, 0x7d00
jae 0x27e916d
cmp eax, 0x500
jb 0x27e9168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x27e9075
cmp eax, 0x7f
ja 0x27e9170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x27e9075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x27e919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x27e9075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1001cf50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100df320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1001cf80
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1001cfb0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1001cfb0
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.100a7270
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1001d0ab
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1001cfd9
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 0x1001d00d
push dword [esi + 0x4c]
movsx eax, bl
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.100a7270
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
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 0x1001d06c
sub eax, 1
je 0x1001d06c
sub eax, 2
jne 0x1001d0ab
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.100845e0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1001d08a
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 0x1001d0ab
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1001d0ab
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
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.100a7270
mov esp, ebp
pop ebp
ret 4
Function at 0x1001f090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x1001f0b4
jl 0x1001f0a8
test esi, esi
jne 0x1001f0b4
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1001f0cd
push eax
push esi
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__::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, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x1001f10b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x1001f10b
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp + 8], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x1001f111
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x1001f190
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1001f13a
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 [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp + 8]
cmp edi, 0xfff
jbe 0x1001f17c
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x1001f1a3
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1001f150
test edx, edx
je 0x1001f190
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001f1c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1001f1e5
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 ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x1001f206
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1001f208
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x1001f286
jg 0x1001f21b
test esi, esi
je 0x1001f286
test ecx, ecx
jl 0x1001f269
jg 0x1001f225
test eax, eax
je 0x1001f269
cmp edi, ecx
jg 0x1001f237
jl 0x1001f22f
cmp esi, eax
jae 0x1001f237
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [ebp - 4]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x1001f286
jg 0x1001f26c
test esi, esi
je 0x1001f286
jmp 0x1001f26c
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1001f286
push eax
push esi
push 1
push edx
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 [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100845e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x100845ef
pop dword [ebp - 0x20]
mov eax, 0x100845ef
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x243df91f
sub dword [ebp - 0x30], 0xd5ebb3d4
mov dword [ebp - 0x2c], 0x244b6f4c
sub dword [ebp - 0x2c], 0xf2182307
mov dword [ebp - 0x28], 0x558ccfc8
add dword [ebp - 0x28], 0xf6bf7466
mov dword [ebp - 0x24], 0xfd84a99f
sub dword [ebp - 0x24], 0xfd84a99f
lea eax, [ebp - 0x30]
push eax
mov eax, 0x68cc4ebe
add eax, 0xa73f2222
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x7dc04b1f
sub dword [ebp - 0x30], 0x94de1c9
mov dword [ebp - 0x2c], 0x20dc8f21
sub dword [ebp - 0x2c], 0xdf702dac
mov dword [ebp - 0x28], 0xd590ca2d
sub dword [ebp - 0x28], 0x72215dc1
mov dword [ebp - 0x24], 0xba96d5d2
add dword [ebp - 0x24], 0x45692a2e
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x4c06528
add eax, 0xb4b0b74
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x5db7e
push 0
call eax
mov ecx, 0x7eaa2bf8
sub ecx, 0x7ea9e420
xor edi, edi
add edi, eax
mov ebx, 0x1e253935
add ebx, 0xf1e9facb
add ebx, dword [ebp - 0x20]
mov edx, 0xaf2f14a6
add edx, 0xf64a24e2
sub dword [ebp - 0x14], 0xc981abb2
mov esi, dword [ebx]
sub dword [ebp - 0x10], edx
xor esi, edx
xor dword [ebp - 0x14], edi
mov dword [edi], esi
xor dword [ebp - 8], edi
add edi, 0xd3da66c1
add edi, 0x2c259943
add ebx, 4
loop 0x1008470e
add eax, 0xfbf3dfae
sub eax, 0xfbf2cd7b
mov ebx, eax
add eax, 5
mov ecx, 0x1b54f643
add ecx, 0xf4ab09bd
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x405f20
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16e
mov eax, dword [0x2f0388]
sub eax, 0xc98540c8
mov dword [0x410388], eax
and al, 6
inc ecx
add byte [esi + eax], ah
push edx
ror byte [ebx - 0x723ca21b], 0x55
pop esp
push edx
call fcn.0040a6a2
add esp, 4
test eax, eax
jne 0x405fd6
ret
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4109b1], eax
call fcn.00404940
mov al, 0xc0
jne 0x405fdb
push eax
push eax
lcall 0xece8, 0x50fc458d
out dx, eax
or bh, bh
loopne 0x405f36
je 0x405f81
mov eax, 0x4e22
mov esp, ebp
xchg ebp, eax
mov edi, dword [edi]
cld
adc byte [ebp + 0x5100dcf4], ch
call fcn.00405623
mov al, byte [0xfffed895]
call dword [edx + 0x6a]
add bh, bh
adc eax, sym.imp.MSVCRT.dll_fclose
test eax, eax
jne 0x405f3f
mov ax, word [ebp - 0x7598]
mov ecx, 0x33237502
leave
mov cl, ah
xor edi, 0x75
sbb ecx, dword [ebx - 0x17ad03ab]
bound eax, qword [eax + eax]
mov eax, dword [ebp + 0x57]
push cs
call fcn.0040a4c2
add esp, 8
aam 0xc0
invalid
mov eax, 0x19
mov dh, 0x5d
out dx, al
nop
int1
rol byte [ecx], cl
dec eax
mov dword [0x410360], eax
jne 0x406067
call fcn.00404a20
clc
ret 0xc1d4
push ss

Function at 0x406dd0
Capabilities:
Encode data using xor

Disassembly:
mov ebp, esp
push ebx
mov eax, dword [ecx + 0xc]
out dx, al
mov esi, dword [ebp + 8]
push edi
invalid

Function at 0x40a340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
scasd eax, dword es:[edi]
dec ebp
or byte [ebp - 0x7afbbe75], bl
sal byte [ebp + 0x11], 0x83
ror dword [ecx + edx*2], 0xff
adc eax, 0xbc02c
xor edx, dword [ebp + 0x4c25d5e]
add byte [ebx + 0xc6001f8], al
mov ebp, eax
or byte [eax - 0x23], dl
adc eax, 0x2f40c030
pop ebp
ret 4
add al, 0
cmp eax, 1
pushal
or al, 0x8b
call 0x161df372
xor al, al
inc eax
das
mov dl, 0xf
cmp eax, 2
jne 0x40a358
mov ecx, dword [ecx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test dword [ecx], edx
jne 0x40a3a8
and eax, 0x8b98358b
cmp eax, dword [eax]
mov esi, dword [0x3b8b98]
call esi
mov al, byte [0xffc974c0]
lcall 0x5e00, 0xafc8005
loop 0x40a35b
add al, 0
nop
nop
nop
not dword [eax - 0x741374ab]
xor ecx, dword [eax]
push 0x7140a280
push eax
mov ebp, eax
push eax
enter 0x90c, 0xffffffffffffffff
call [ebp - 0x3e]
add al, 0xcd
nop
nop
in al, 0x90
inc esi
nop
nop
nop
stosb byte es:[edi], al
rol dl, 4
add byte [eax - 0x6f6f6f57], dl
nop
nop
nop
cmp bl, dl
nop
ja 0x40a35d
mov byte [0x8b507140], al
call 0x94d6c02
invalid
in al, dx
mov esp, dword [ecx + 0x51]
mov eax, dword [eax + 0x14]
test eax, eax
pop ecx
xor edx, ebp
dec ebp
or al, 0x51
push eax
call dword [0x4a40c028]
test dword [edx], esp
jne 0x40a44b
push esi
mov edi, dword [esi]
add eax, eax
inc eax
add bh, bh
salc
xor ch, 0x1f
add eax, 0x8c24d5e
add byte [esi + edx*8], ch
jo 0x40a382
and byte [edi + 0x40], dl
add byte [eax + 0x70], ch
xor al, 0x40
pop ecx
push 0xa15c071c
push eax
call 0x1ee95600
add al, al
pop es
ret
Function at 0x420940
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00512250
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
inc ebp
cmp eax, 0x302
jge 0x420976
cmp eax, 0x100
je 0x420976
mov esi, dword [esp + 0x18]
cmp ebp, dword [esi + 4]
jbe 0x420995
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
lea esi, [edx + ebp]
cmp esi, ecx
ja 0x42096f
add dword [eax + 0xc], edx
add dword [eax + 0x10], edx
sub ecx, edx
mov dword [eax + 4], ecx
mov esi, eax
test dword [edi + 0x100], 0x200
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push ebx
movzx ebx, byte [eax + ecx - 1]
je 0x4209e8
cmp dword [edi + 0x88], 0
jne 0x4209e8
mov edx, dword [edi + 0x58]
push 8
add edx, 8
push 0x575ddc
push edx
call fcn.004253e0
add esp, 0xc
test eax, eax
jne 0x4209db
test bl, 1
jne 0x4209db
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov eax, dword [edi + 0x58]
test byte [eax], 8
je 0x4209e8
test ebx, ebx
je 0x4209e8
dec ebx
mov ecx, dword [edi + 0x80]
mov edx, dword [ecx]
push edx
call fcn.00430cc0
add esp, 4
test eax, 0x200000
je 0x420a13
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 4], eax
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
mov edi, dword [esi + 4]
lea eax, [ebx + ebp]
mov esi, edi
sub esi, eax
xor esi, eax
mov ecx, edi
xor ecx, eax
or esi, ecx
xor esi, edi
shr esi, 0x1f
mov ecx, 0xff
lea eax, [edi - 1]
dec esi
mov dword [esp + 0x18], ecx
cmp eax, ecx
jae 0x420a41
mov ecx, eax
mov dword [esp + 0x18], eax
xor ebp, ebp
test ecx, ecx
je 0x420a97
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0xc]
mov ecx, ebx
shr ecx, 0x1f
lea edx, [eax + edi - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
nop
mov edx, ebx
sub edx, ebp
shr edx, 0x1f
mov eax, ebp
shr eax, 0x1f
xor dl, al
xor cl, al
or dl, cl
mov ecx, dword [esp + 0x10]
xor dl, cl
dec dl
movzx eax, dl
mov edx, dword [esp + 0x24]
movzx edx, byte [edx]
dec dword [esp + 0x24]
xor edx, ebx
and eax, edx
not eax
inc ebp
and esi, eax
cmp ebp, dword [esp + 0x18]
jb 0x420a60
mov edx, dword [esp + 0x1c]
not esi
and esi, 0xff
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
and ecx, esi
neg ecx
lea eax, [ebx + 1]
and eax, ecx
sub edi, eax
shl eax, 8
or dword [edx], eax
pop ebx
mov dword [edx + 4], edi
mov eax, ecx
pop edi
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebp
pop ecx
ret
Function at 0x420ad0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa4
call fcn.00512250
mov eax, dword [0x5df7e4]
xor eax, esp
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x1c], esi
sub esi, edi
xor ebp, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebp
cmp ebx, edi
jae 0x420b3a
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.004253b0
add esp, 0xc
cmp edi, 0x40
jbe 0x420b56
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.004253b0
add esp, 0xc
lea ecx, [esp + 0x30]
neg ecx
and ecx, 0x3f
lea edx, [edi + 0x100]
lea ecx, [esp + ecx + 0x30]
mov dword [esp + 0x20], ecx
cmp ebx, edx
jbe 0x420b80
mov eax, ebx
sub eax, edi
sub eax, 0x100
mov dword [esp + 0x14], eax
mov ebp, eax
mov eax, edi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
xor edx, edx
div edi
push edi
push 0
push ecx
mov ebx, edx
mov dword [esp + 0x30], ebx
call fcn.0052a280
mov ecx, dword [esp + 0x20]
add esp, 0xc
xor esi, esi
cmp ecx, dword [esp + 0xc4]
jae 0x420c60
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, ebx
shr eax, 0x1f
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xbc]
mov eax, dword [eax + 0xc]
shr edx, 0x1f
sub ecx, ebx
sub ebx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
jmp 0x420bf8
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
add ebx, ecx
shr ebx, 0x1f
xor bl, dl
mov eax, ebp
shr eax, 0x1f
xor dl, al
or bl, dl
mov dl, byte [esp + 0x2c]
xor bl, al
dec bl
mov byte [esp + 0x13], bl
mov ebx, ecx
shr ebx, 0x1f
xor bl, dl
xor dl, al
or bl, dl
mov edx, dword [esp + 0x18]
mov dl, byte [edx + ebp]
xor al, bl
dec al
not al
and al, dl
and al, byte [esp + 0x13]
mov edx, dword [esp + 0x20]
or byte [esi + edx], al
inc esi
mov eax, esi
sub eax, edi
xor eax, edi
mov ebx, esi
xor ebx, edi
or eax, ebx
xor eax, esi
shr eax, 0x1f
neg eax
inc ebp
and esi, eax
inc ecx
cmp ebp, dword [esp + 0xc4]
jb 0x420bf0
mov ebx, dword [esp + 0x24]
jmp 0x420c64
mov edx, dword [esp + 0x20]
xor esi, esi
test edi, edi
je 0x420c9d
lea ebx, [ebx]
mov ecx, ebx
xor ecx, 0x20
mov al, byte [ecx + edx]
mov cl, byte [ebx + edx]
mov eax, dword [esp + 0x28]
mov byte [eax + esi], cl
inc ebx
mov ecx, ebx
sub ecx, edi
xor ecx, edi
mov eax, ebx
xor eax, edi
or ecx, eax
xor ecx, ebx
shr ecx, 0x1f
neg ecx
inc esi
and ebx, ecx
cmp esi, edi
jb 0x420c70
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005121be
add esp, 0xa4
ret