joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ce0
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x110]
push ebx
sub esp, 0x118
call fcn.00401890
mov dword [ebp - 0x10c], 0x37363534
mov dword [ebp - 0x110], 0x33323130
mov ebx, eax
mov dword [ebp - 0x109], 0x393837
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0
mov dword [esp + 8], str.Test1
mov dword [esp + 4], str.SoftwareWineTest
mov dword [esp], 0x80000001
call dword [0x41c250]
sub esp, 0x14
mov esi, eax
call fcn.00404eb0
mov dword [eax], 0x40917b
mov dword [eax + 4], 0x271
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.Failed_to_get_path__ret__lu._n
call fcn.00401870
call fcn.00404eb0
mov dword [eax], 0x40917b
mov dword [eax + 4], 0x272
mov dword [esp + 4], edi
mov dword [esp], 0x41c140
call dword [sym.imp.msvcrt.dll_strcmp]
mov dword [esp + 8], edi
test eax, eax
mov dword [esp + 4], str.Unexpected_path__s._n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401870
mov eax, ebx
call fcn.00401230
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402060
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x20
mov dword [ebp - 0x10], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
mov dword [esp], str.test_file
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
mov esi, eax
call fcn.00404eb0
mov edx, dword [ebp - 0x10]
mov dword [eax], 0x40917b
mov dword [eax + 4], edx
xor eax, eax
cmp edi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.got_wrong_file_size:__ld._n
mov dword [esp], eax
call fcn.00401870
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004065c0
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x401120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
call fcn.004040d0
mov dword [esp], 0x6d6c9a96
xor eax, eax
mov dword [esp + 4], 0x6a73236d
mov dword [esp + 8], 0x296c6b74
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 1
lea ecx, [eax - 2]
xor byte [esp + eax], cl
inc eax
cmp eax, 0xd
jb 0x401153
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea edx, [esp]
mov byte [esp + 0xe], 0
call fcn.00401250
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401fa0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x417008]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [esp + 0x1c], ecx
movzx eax, word [ecx + 0x14]
lea ebx, [ecx + 0x18]
add ebx, eax
xor eax, eax
mov dword [esp + 0xc], ebx
cmp ax, word [ecx + 6]
jae 0x4020f2
mov eax, ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0xf
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402020
sub eax, edx
lea ecx, [esp + 0x2c]
push eax
push ebx
call fcn.004021c0
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x2c]
mov esi, dword [esp + 0x2c]
cmp ecx, 0x10
cmovae eax, esi
cmp dword [esp + 0x3c], 5
jne 0x402108
cmp dword [eax], 0x7865742e
jne 0x402108
cmp byte [eax + 4], 0x74
jne 0x402108
mov edi, dword [ebx + 0xc]
xor ecx, ecx
add edi, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x20], ebx
mov ebx, dword [ebx + 8]
mov dword [esp + 0x24], edi
test ebx, ebx
je 0x40208f
movzx eax, byte [edx + edi]
inc edx
crc32 ecx, eax
cmp edx, ebx
jb 0x402081
mov edi, dword [esp + 0x18]
movq xmm0, qword [esp + 0x20]
movq qword [edi], xmm0
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x40]
cmp ecx, 0x10
jb 0x4020ce
inc ecx
mov eax, esi
cmp ecx, 0x1000
jb 0x4020c4
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402134
push ecx
push esi
call fcn.004054e4
add esp, 8
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
add ebx, 0x28
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
movzx eax, word [eax + 6]
cmp ecx, eax
jl 0x402003
mov ecx, dword [esp + 0x44]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004054a6
mov esp, ebp
pop ebp
ret 8
cmp ecx, 0x10
jb 0x4020d2
inc ecx
mov eax, esi
cmp ecx, 0x1000
jb 0x402128
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402134
push ecx
push esi
call fcn.004054e4
add esp, 8
jmp 0x4020d2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x4045e0
Capabilities:
Encode data using xor
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4068ad
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x417008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.00404c70
test al, al
je 0x4047c2
mov dword [ebp - 0x9c], 0x716d7328
xor ecx, ecx
mov word [ebp - 0x98], 0x7e
mov byte [ebp - 0x96], 1
nop word [eax + eax]
mov al, cl
add al, 6
xor byte [ebp + ecx - 0x9c], al
inc ecx
cmp ecx, 5
jb 0x404660
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0x96], 0
cmp esi, edi
je 0x4046a8
mov ebx, dword [esi]
lea eax, [ebp - 0x9c]
push 8
push eax
push ebx
mov dword [ebp - 0xb0], ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x4046b2
add esi, 4
cmp esi, edi
jne 0x404682
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0x686c7528
xor ecx, ecx
mov dword [ebp - 0xa8], 0x1006a7e
nop dword [eax + eax]
mov al, cl
add al, 6
xor byte [ebp + ecx - 0xac], al
inc ecx
cmp ecx, 6
jb 0x4046d0
mov esi, dword [ebp - 0x20]
mov byte [ebp - 0xa5], 0
cmp esi, edi
je 0x404716
nop
mov ebx, dword [esi]
lea eax, [ebp - 0xac]
push 8
push eax
push ebx
mov dword [ebp - 0x9c], ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x404720
add esi, 4
cmp esi, edi
jne 0x4046f0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xa4], 0x7d696328
xor ecx, ecx
mov word [ebp - 0xa0], 0x6b
mov byte [ebp - 0x9e], 1
nop dword [eax]
mov al, cl
add al, 6
xor byte [ebp + ecx - 0xa4], al
inc ecx
cmp ecx, 5
jb 0x404740
mov esi, dword [ebp - 0x20]
mov byte [ebp - 0x9e], 0
cmp esi, edi
je 0x404780
nop
mov ebx, dword [esi]
lea eax, [ebp - 0xa4]
push 8
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x404782
add esi, 4
cmp esi, edi
jne 0x404760
xor ebx, ebx
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x4047c2
mov esi, dword [ebp - 0x9c]
cmp eax, esi
jae 0x4047c2
cmp esi, ebx
jae 0x4047c2
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0xc]
xor edx, edx
mov ecx, dword [ebp - 0x78]
div ecx
test edx, edx
jne 0x4047c2
mov eax, dword [ebx + 0xc]
div ecx
test edx, edx
jne 0x4047c2
mov bl, 1
jmp 0x4047c4
xor bl, bl
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x4047fd
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4047f3
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4047f3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004054e4
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004054a6
mov esp, ebp
pop ebp
ret
Function at 0x404880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4068f0
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x417008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea edx, [ebp - 0xa0]
mov dword [ebp - 4], 0
call fcn.00404c70
mov edx, dword [ebp - 0x50]
test al, al
je 0x404a63
mov dword [ebp - 0xa8], 0x716d7328
xor ecx, ecx
mov word [ebp - 0xa4], 0x7e
mov byte [ebp - 0xa2], 1
nop dword [eax]
mov al, cl
add al, 6
xor byte [ebp + ecx - 0xa8], al
inc ecx
cmp ecx, 5
jb 0x404900
mov ebx, dword [ebp - 0x4c]
mov esi, edx
mov byte [ebp - 0xa2], 0
cmp esi, ebx
je 0x404947
mov edi, dword [esi]
lea eax, [ebp - 0xa8]
push 8
push eax
push edi
mov dword [ebp - 0xb4], edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x404951
add esi, 4
cmp esi, ebx
jne 0x404921
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0x686c7528
xor ecx, ecx
mov dword [ebp - 0xac], 0x1006a7e
nop word [eax + eax]
mov al, cl
add al, 6
xor byte [ebp + ecx - 0xb0], al
inc ecx
cmp ecx, 6
jb 0x404970
mov esi, dword [ebp - 0x50]
mov byte [ebp - 0xa9], 0
cmp esi, ebx
je 0x4049b0
nop
mov edi, dword [esi]
lea eax, [ebp - 0xb0]
push 8
push eax
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x4049b2
add esi, 4
cmp esi, ebx
jne 0x404990
xor edi, edi
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x404a60
cmp eax, edi
jae 0x404a60
mov dword [ebp - 0x40], 1
lea ebx, [ebp - 0x40]
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x34], 8
mov dword [ebp - 0x30], 0x10
mov dword [ebp - 0x2c], 0x20
mov dword [ebp - 0x28], 0x40
mov dword [ebp - 0x24], 0x80
mov dword [ebp - 0x20], pe_nt_image_headers32
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x18], 0x400
mov dword [ebp - 0x14], 0x80000000
nop
mov eax, dword [eax + 8]
mov esi, dword [ebx]
add eax, 0x1000
push esi
push eax
mov eax, dword [ebp - 0x94]
push dword [eax + 0x1c]
call fcn.00404ac0
mov eax, dword [ebp - 0x94]
push esi
push dword [edi + 8]
mov eax, dword [eax + 0x1c]
add eax, dword [edi + 0xc]
push eax
call fcn.00404ac0
lea eax, [ebp - 0x10]
add ebx, 4
cmp ebx, eax
mov eax, dword [ebp - 0xb4]
jne 0x404a20
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x404a99
mov ecx, dword [ebp - 0x48]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x404a8f
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404a8f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004054e4
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004054a6
mov esp, ebp
pop ebp
ret
Function at 0x404ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x417008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword fs:[0x2c]
mov esi, eax
mov edx, dword [ecx]
mov ecx, dword [0x417484]
cmp ecx, dword [edx + 4]
jle 0x404b67
push 0x417484
call fcn.00405624
add esp, 4
cmp dword [0x417484], 0xffffffff
jne 0x404b67
movaps xmm0, xmmword [0x415630]
xor ecx, ecx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x75747d5a
mov dword [ebp - 0x18], 0x1006569
lea eax, [ecx + 7]
xor byte [ebp + ecx - 0x2c], al
inc ecx
cmp ecx, 0x16
jb 0x404b34
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x15], 0
push eax
push dword [0x417474]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x417484
mov dword [0x41747c], eax
call fcn.004055da
add esp, 4
mov eax, dword [0x41747c]
test eax, eax
je 0x404b93
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push esi
call eax
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004054a6
mov esp, ebp
pop ebp
ret 0xc
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.004054a6
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404c70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, edx
test ecx, ecx
je 0x404d45
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x404d45
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x404d45
mov edx, 0x10b
cmp word [eax + 0x18], dx
jne 0x404d45
mov dword [ebx], ecx
lea edx, [ebx + 0x10]
add ecx, dword [ecx + 0x3c]
mov dword [ebx + 4], ecx
lea eax, [ecx + 4]
mov dword [ebx + 8], eax
lea eax, [ecx + 0x18]
mov dword [ebx + 0xc], eax
xor ecx, ecx
nop dword [eax + eax]
mov eax, dword [ebx + 4]
lea edx, [edx + 4]
add eax, 0x78
add eax, ecx
add ecx, 8
mov dword [edx - 4], eax
cmp ecx, 0x80
jl 0x404cd0
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
push edi
movzx eax, word [ecx + 0x14]
lea edi, [ecx + 0x18]
add edi, eax
xor ecx, ecx
xor eax, eax
mov dword [ebp - 4], ecx
cmp ax, word [edx + 2]
jae 0x404d3d
push esi
mov eax, dword [ebx + 0x54]
mov dword [ebp - 8], edi
cmp eax, dword [ebx + 0x58]
je 0x404d1a
mov dword [eax], edi
add dword [ebx + 0x54], 4
jmp 0x404d2a
lea ecx, [ebp - 8]
push ecx
push eax
lea ecx, [ebx + 0x50]
call fcn.00404d50
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + 8]
inc ecx
add edi, 0x28
mov dword [ebp - 4], ecx
movzx eax, word [eax + 2]
cmp ecx, eax
jl 0x404d07
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415e80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41600b
sub esp, 0xc
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x415ffe
mov ebp, dword [eax]
cmp ebp, 0
je 0x415ffe
movzx ebp, byte [eax + 4]
mov ebx, ebp
and ebx, 4
cmp bl, 0
je 0x415ed9
mov ebx, 0x7687e1
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.00437600
mov eax, dword [esp + 0x14]
movzx ebp, byte [eax + 5]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jne 0x415f5c
mov ecx, dword [eax + 0xc]
xor eax, eax
cmp eax, 8
jae 0x415f0a
mov esi, eax
shl esi, 2
add esi, 8
mov ebx, ecx
add ebx, esi
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x18]
cmp ebx, ebp
je 0x415f30
inc eax
cmp eax, 8
jb 0x415eee
mov eax, dword [esp + 0x10]
movzx ebp, word [eax + 0x34]
mov eax, ebp
sub eax, 4
mov ebx, ecx
add ebx, eax
mov ecx, dword [ebx]
xor ebp, ebp
cmp ecx, ebp
jne 0x415ee7
mov ebx, 0x8f87a0
mov dword [esp + 0x1c], ebx
add esp, 0xc
ret
mov ebx, ecx
add ebx, eax
movzx ebp, byte [ebx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
je 0x415f04
mov ebx, dword [esp + 0x10]
movzx ebp, byte [ebx + 0x32]
mov ebx, ebp
imul ebx, eax
add ebx, 0x28
mov eax, ebx
mov ebx, ecx
add ebx, eax
mov dword [esp + 0x1c], ebx
add esp, 0xc
ret
lea ebx, [esp + 0x18]
xor ebx, 0
mov dword [esp], ebx
mov ebp, dword [eax + 8]
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [ebx + 0x20]
mov esi, dword [ebp + 0x10]
mov edx, dword [esi]
mov ebx, dword [edx]
call ebx
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 8]
movzx ecx, byte [edi + 5]
mov ebx, 1
cmp cl, 0x20
jae 0x415ffa
shl ebx, cl
dec ebx
mov edx, ebx
mov eax, esi
and eax, ebx
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
imul eax, ebp
mov ecx, dword [edi + 0xc]
add ecx, eax
mov eax, dword [edi + 0x10]
xor ebp, ebp
cmp eax, ebp
je 0x415ee7
shr edx, 1
and edx, esi
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
mov ebx, ebp
mov ebp, edx
imul ebp, ebx
mov edx, eax
add edx, ebp
movzx ebp, byte [edx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jbe 0x415ff6
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jae 0x415ff6
mov eax, 1
cmp al, 0
jne 0x415ee7
mov ecx, edx
jmp 0x415ee7
xor eax, eax
jmp 0x415fe6
xor ebx, ebx
jmp 0x415f93
mov ebx, 0x8f87a0
mov dword [esp + 0x1c], ebx
add esp, 0xc
ret
call fcn.004616d0
jmp fcn.00415e80
Function at 0x416020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4161be
sub esp, 0xc
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x4161ac
mov ebp, dword [eax]
cmp ebp, 0
je 0x4161ac
movzx ebp, byte [eax + 4]
mov ebx, ebp
and ebx, 4
cmp bl, 0
je 0x416079
mov ebx, 0x7687e1
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.00437600
mov eax, dword [esp + 0x14]
movzx ebp, byte [eax + 5]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jne 0x41610a
mov ecx, dword [eax + 0xc]
xor eax, eax
cmp eax, 8
jae 0x4160ae
mov esi, eax
shl esi, 2
add esi, 8
mov ebx, ecx
add ebx, esi
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x18]
cmp ebx, ebp
je 0x4160d9
inc eax
cmp eax, 8
jb 0x416092
mov eax, dword [esp + 0x10]
movzx ebp, word [eax + 0x34]
mov eax, ebp
sub eax, 4
mov ebx, ecx
add ebx, eax
mov ecx, dword [ebx]
xor ebp, ebp
cmp ecx, ebp
jne 0x41608b
mov ebx, 0x8f87a0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], 0
add esp, 0xc
ret
mov ebx, ecx
add ebx, eax
movzx ebp, byte [ebx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
je 0x4160a8
mov ebx, dword [esp + 0x10]
movzx ebp, byte [ebx + 0x32]
mov ebx, ebp
imul ebx, eax
add ebx, 0x28
mov eax, ebx
mov ebx, ecx
add ebx, eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], 1
add esp, 0xc
ret
lea ebx, [esp + 0x18]
xor ebx, 0
mov dword [esp], ebx
mov ebp, dword [eax + 8]
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [ebx + 0x20]
mov esi, dword [ebp + 0x10]
mov edx, dword [esi]
mov ebx, dword [edx]
call ebx
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 8]
movzx ecx, byte [edi + 5]
mov ebx, 1
cmp cl, 0x20
jae 0x4161a8
shl ebx, cl
dec ebx
mov edx, ebx
mov eax, esi
and eax, ebx
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
imul eax, ebp
mov ecx, dword [edi + 0xc]
add ecx, eax
mov eax, dword [edi + 0x10]
xor ebp, ebp
cmp eax, ebp
je 0x41608b
shr edx, 1
and edx, esi
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
mov ebx, ebp
mov ebp, edx
imul ebp, ebx
mov edx, eax
add edx, ebp
movzx ebp, byte [edx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jbe 0x4161a4
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jae 0x4161a4
mov eax, 1
cmp al, 0
jne 0x41608b
mov ecx, edx
jmp 0x41608b
xor eax, eax
jmp 0x416194
xor ebx, ebx
jmp 0x416141
mov ebx, 0x8f87a0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], 0
add esp, 0xc
ret
call fcn.004616d0
jmp fcn.00416020
Function at 0x4161d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x416362
sub esp, 0xc
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x416355
mov ebp, dword [eax]
cmp ebp, 0
je 0x416355
movzx ebp, byte [eax + 4]
mov ebx, ebp
and ebx, 4
cmp bl, 0
je 0x416229
mov ebx, 0x7687e1
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.00437600
mov eax, dword [esp + 0x14]
movzx ebp, byte [eax + 5]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jne 0x4162b3
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp ecx, 8
jae 0x416261
mov esi, ecx
shl esi, 3
add esi, 8
mov ebx, edx
add ebx, esi
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
cmp eax, dword [esp + 0x1c]
jne 0x41625b
cmp esi, dword [esp + 0x18]
je 0x416287
inc ecx
cmp ecx, 8
jb 0x41623e
mov eax, dword [esp + 0x10]
movzx ebp, word [eax + 0x34]
mov eax, ebp
sub eax, 4
mov ebx, edx
add ebx, eax
mov edx, dword [ebx]
xor ebp, ebp
cmp edx, ebp
jne 0x416237
mov ebx, 0x8f87a0
mov dword [esp + 0x20], ebx
add esp, 0xc
ret
mov ebx, edx
add ebx, ecx
movzx ebp, byte [ebx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
je 0x41625b
mov eax, edx
mov ebx, dword [esp + 0x10]
movzx ebp, byte [ebx + 0x32]
mov edx, ebp
imul edx, ecx
add edx, 0x48
mov ebx, eax
add ebx, edx
mov dword [esp + 0x20], ebx
add esp, 0xc
ret
lea ebx, [esp + 0x18]
xor ebx, 0
mov dword [esp], ebx
mov ebp, dword [eax + 8]
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [ebx + 0x20]
mov esi, dword [ebp + 0x10]
mov edx, dword [esi]
mov ebx, dword [edx]
call ebx
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 8]
movzx ecx, byte [edi + 5]
mov ebx, 1
cmp cl, 0x20
jae 0x416351
shl ebx, cl
dec ebx
mov ecx, ebx
mov eax, esi
and eax, ebx
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
imul eax, ebp
mov edx, dword [edi + 0xc]
add edx, eax
mov eax, dword [edi + 0x10]
xor ebp, ebp
cmp eax, ebp
je 0x416237
shr ecx, 1
and ecx, esi
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
mov ebx, ebp
mov ebp, ecx
imul ebp, ebx
mov ecx, eax
add ecx, ebp
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jbe 0x41634d
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jae 0x41634d
mov eax, 1
cmp al, 0
jne 0x416237
mov edx, ecx
jmp 0x416237
xor eax, eax
jmp 0x41633d
xor ebx, ebx
jmp 0x4162ea
mov ebx, 0x8f87a0
mov dword [esp + 0x20], ebx
add esp, 0xc
ret
call fcn.004616d0
jmp fcn.004161d0