joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001048
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
jmp 0x10006fcc
xchg byte [edi + 0xd], dl
add byte [ebx + 0x246c89ce], cl
mov dword [esp + 0x4c], ebp

Function at 0x10006f0f
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe0
xor eax, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], 0x4e3f6556
mov ecx, 0x3d090c
mov dword [esp + 0x18], 0x75782844
mov dword [esp + 0x1c], 0x71596952
mov dword [esp + 0x20], 0x4633404f
mov dword [esp + 0x24], 0x4330754e
mov dword [esp + 0x28], 0x3c676545
mov byte [esp + 0x2c], 0
mov dword [esp + 0x44], 0x65006b
add bh, al
inc esp
and al, 0x48
jb 0x10006f63
add byte [esi], ch
mov dword [esp + 0x4c], 0x6c0065
mov dword [esp + 0x50], 0x320033
mov dword [esp + 0x54], 0x64002e
mov dword [esp + 0x58], 0x6c006c
mov word [esp + 0x5c], ax
jmp 0x10006f8f
xor eax, eax
mov byte [esp + eax + 0x74], al
inc eax
cmp eax, 0x6a
jb 0x10006f91
dec ecx
jne 0x10006f8f
cmp byte [esp + 0xa4], 0x30
push ebx
push ebp
push esi
push edi
jne 0x10006fb9
lea ecx, [esp + 0x54]
call fcn.1000755f
mov esi, eax
jmp 0x10006fbd
mov esi, dword [esp + 0x48]
mov edx, 0xe3142
mov ecx, esi
call fcn.1000759f
mov ebp, eax
mov edx, 0xd5786
mov ecx, esi

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

Disassembly:
sub esp, 0xe0
xor eax, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], 0x4e3f6556
mov ecx, 0x3d090c
mov dword [esp + 0x18], 0x75782844
mov dword [esp + 0x1c], 0x71596952
mov dword [esp + 0x20], 0x4633404f
mov dword [esp + 0x24], 0x4330754e
mov dword [esp + 0x28], 0x3c676545
mov byte [esp + 0x2c], 0
mov dword [esp + 0x44], 0x65006b
add bh, al
inc esp
and al, 0x48
jb 0x10006f63
add byte [esi], ch
mov dword [esp + 0x4c], 0x6c0065
mov dword [esp + 0x50], 0x320033
mov dword [esp + 0x54], 0x64002e
mov dword [esp + 0x58], 0x6c006c
mov word [esp + 0x5c], ax
jmp 0x10006f8f
xor eax, eax
mov byte [esp + eax + 0x74], al
inc eax
cmp eax, 0x6a
jb 0x10006f91
dec ecx
jne 0x10006f8f
cmp byte [esp + 0xa4], 0x30
push ebx
push ebp
push esi
push edi
jne 0x10006fb9
lea ecx, [esp + 0x54]
call fcn.1000755f
mov esi, eax
jmp 0x10006fbd
mov esi, dword [esp + 0x48]
mov edx, 0xe3142
mov ecx, esi
call fcn.1000759f
mov ebp, eax
mov edx, 0xd5786
mov ecx, esi

Function at 0x10006fd2
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
jmp 0x10006fcc
xchg byte [edi + 0xd], dl
add byte [ebx + 0x246c89ce], cl
mov dword [esp + 0x4c], ebp
Function at 0x1000759f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
xor esi, esi
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, dword [eax + 0x1c]
mov ebp, dword [eax + 0x20]
add ecx, edi
mov ebx, dword [eax + 0x18]
add ebp, edi
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x24]
add ecx, edi
mov dword [esp + 0x14], ecx
test ebx, ebx
je 0x100075f5
jmp 0x100075df
mov ecx, dword [ebp + esi*4]
add ecx, edi
call fcn.1000752f
cmp eax, dword [esp + 0x10]
je 0x100075ff
inc esi
cmp esi, ebx
jb 0x100075df
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x10007f45
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1008d4d4
call fcn.10006db8
sub esp, 0x9c
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x10], esp
push eax
call fcn.1004143f
mov dword [esp], 0x100af2d4
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
pop ecx
je 0x10008053
and dword [ebp - 4], 0
mov esi, 0x4000
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [sym.imp.MSVCRT.dll_fread]
pop ecx
push dword [ebp - 0x14]
mov ebx, eax
mov byte [ebp - 4], 1
push esi
push 1
push ebx
call edi
add esp, 0x10
test eax, eax
je 0x10007fd0
push eax
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.1004108d
push dword [ebp - 0x14]
push esi
push 1
push ebx
call edi
add esp, 0x1c
jmp 0x10007fb0
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_fclose]
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10041322
add esp, 0x10
xor esi, esi
movzx eax, byte [ebp + esi - 0x28]
push eax
lea eax, [ebp + esi*2 - 0x4c]
push str._02X
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
inc esi
cmp esi, 0x10
jl 0x10007ff4
and byte [ebp - 0x2c], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xf]
push eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 4], 4
call fcn.100067e5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
push dword [ebp + 0xc]
push str.cannot_open_file__s_for_reading
call fcn.10008619
pop ecx
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x18]
push 0x100a96f8
push eax
call sub.MSVCRT.dll__CxxThrowException
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
mov ecx, 0x5b7e17c0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x12473dd5
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401987
Capabilities:
Clear file content
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x58ced85
jg 0x4019ad
inc edi
cmp edi, 0x1f6502b1
jl 0x401993
cmp dword [0x2810ac4], 0x400
jne 0x4019ee
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push esi
push esi
call fcn.00401de1
push esi
call fcn.00401f57
push esi
call fcn.00401f66
add esp, 0x10
xor edi, edi
cmp edi, 0xd036
jge 0x4019ff
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp edi, 0xd2ced2
jg 0x401a27
inc edi
cmp edi, 0x263ff
jl 0x4019f0
mov eax, dword [0x422c14]
mov dword [0x2810ac4], eax
call fcn.004016e4
mov edi, 0x3078f
cmp dword [0x2810ac4], 0x51f
jne 0x401a53
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x401a3b
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10
Function at 0x404f9b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x422a80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403353
and dword [ebp - 0x14], 0
cmp dword [0x42d784], 0
mov dword [ebp - 0x18], eax
jne 0x40504e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4050f6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4050f6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42d784], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42d788], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42d78c], eax
call edi
push eax
call esi
mov dword [0x42d794], eax
test eax, eax
je 0x40504e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42d790], eax
mov eax, dword [0x42d790]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4050a7
cmp dword [0x42d794], ecx
je 0x4050a7
push eax
call esi
push dword [0x42d794]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4050a7
test ebx, ebx
je 0x4050a7
call edi
test eax, eax
je 0x40509e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40509e
test byte [ebp - 8], 1
jne 0x4050a7
or dword [ebp + 0x10], 0x200000
jmp 0x4050da
mov eax, dword [0x42d788]
cmp eax, dword [ebp - 0x18]
je 0x4050da
push eax
call esi
test eax, eax
je 0x4050da
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4050da
mov eax, dword [0x42d78c]
cmp eax, dword [ebp - 0x18]
je 0x4050da
push eax
call esi
test eax, eax
je 0x4050da
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42d784]
call esi
test eax, eax
je 0x4050f6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4050f8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405306
leave
ret

Function at 0x405306
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422a80]
jne 0x405310
repz ret
jmp fcn.004060bf

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x2f5c41f6
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x34d638a3
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x401b3f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b7e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b7e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b7e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b7e
cmp dword [ecx + 0x74], 0xe
jbe 0x401b7e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402740
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
xor eax, eax
test ecx, ecx
je 0x402844
test edx, edx
je 0x402844
mov ebp, dword [esp + 0x2c]
test ebp, ebp
mov dword [esp], ecx
je 0x40278a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x402791
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x402770
jmp 0x402793
mov esi, 0x1505
jmp 0x402793
mov esi, ecx
mov ebp, dword [esp]
mov ecx, dword [ebp + 0x20]
lea ebx, [ecx - 1]
mov edi, ecx
sub edi, 1
jb 0x402844
mov dword [esp + 0x14], edi
mov dword [esp + 8], edx
and ebx, esi
mov edx, ebp
mov eax, dword [ebp + 4]
mov dword [esp + 0x10], eax
xor edi, edi
mov dword [esp + 4], ecx
mov dword [esp + 0xc], ebx
jmp 0x4027d9
inc edi
cmp ecx, edi
mov ebx, dword [esp + 0xc]
je 0x402842
mov ebp, ecx
mov eax, edi
and eax, ebx
mov ecx, edi
xor ecx, ebx
lea eax, [ecx + eax*2]
and eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + eax*4]
cmp ebx, 0xffffffff
je 0x402842
mov eax, dword [edx + 8]
cmp dword [eax + ebx*4], esi
mov ecx, ebp
jne 0x4027d0
mov eax, dword [edx + 0xc]
mov ebp, dword [eax + ebx*4]
push ebp
call fcn.00409070
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x2c]
jne 0x4027d0
push dword [esp + 0x2c]
push ebp
push dword [esp + 0x10]
call fcn.00409090
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x4027d0
mov eax, dword [edx + 0x10]
mov eax, dword [eax + ebx*4]
jmp 0x402844
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403600
Capabilities:
Compute adler32 checksum
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x4037b6
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x4037af
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebx, esi
sub ebx, eax
jmp 0x403691
add ebp, dword [esp + 4]
mov esi, dword [esp + 0xc]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, dword [esp + 0x10]
mov ebx, 0x15b0
je 0x4037af
xor edx, edx
cmp ebx, 8
mov dword [esp + 0xc], esi
jb 0x403723
mov eax, ebx
and eax, 0x1ff8
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], ebp
mov eax, edx
movzx edx, byte [ebp + edx]
add edx, edi
add ecx, edx
movzx esi, byte [ebp + eax + 1]
add esi, edx
add ecx, esi
movzx edi, byte [ebp + eax + 2]
add edi, esi
mov edx, ecx
and edx, edi
xor ecx, edi
movzx esi, byte [ebp + eax + 3]
mov ebp, ebx
mov ebx, edi
and ebx, esi
xor edi, esi
lea esi, [edi + ebx*2]
mov ebx, ebp
mov ebp, dword [esp + 4]
lea ecx, [ecx + edx*2]
movzx edx, byte [ebp + eax + 4]
add edx, esi
add ecx, esi
movzx esi, byte [ebp + eax + 5]
add esi, edx
add ecx, edx
movzx edx, byte [ebp + eax + 6]
add edx, esi
add ecx, esi
movzx edi, byte [ebp + eax + 7]
add edi, edx
add ecx, edx
add ecx, edi
lea edx, [eax + 8]
add eax, 0xf
cmp eax, ebx
jb 0x4036b0
add ebp, edx
mov esi, dword [esp + 0xc]
mov edx, dword [esp]
mov eax, ebx
sub eax, edx
mov dword [esp + 0x10], ebx
jbe 0x403658
mov esi, edx
not esi
add esi, ebx
mov dword [esp + 8], esi
mov esi, ebx
and esi, 3
mov dword [esp + 4], eax
je 0x403766
mov dword [esp], edx
neg esi
xor edx, edx
mov ebx, ebp
nop
movzx eax, byte [ebx]
inc ebx
add edi, eax
add ecx, edi
dec edx
cmp esi, edx
jne 0x403750
mov eax, dword [esp]
sub eax, edx
mov edx, eax
jmp 0x403768
mov ebx, ebp
mov eax, dword [esp + 8]
cmp eax, 3
jb 0x403650
mov eax, dword [esp + 0x10]
sub eax, edx
xor edx, edx
nop
nop
nop
movzx esi, byte [ebx + edx]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 1]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + edx + 2]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 3]
add edi, esi
add ecx, edi
add edx, 4
cmp eax, edx
jne 0x403780
jmp 0x403650
shl ecx, 0x10
or ecx, edi
jmp 0x4037bb
mov ecx, 1
mov eax, ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4037d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4037fe
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x40389c
not eax
test bl, 1
jne 0x403805
mov edx, ebx
cmp ebx, 1
jne 0x403836
jmp 0x40389a
xor eax, eax
jmp 0x40389c
lea edx, [ebx - 1]
movzx esi, byte [ecx]
mov edi, eax
shr edi, 4
xor eax, esi
and eax, 0xf
xor edi, dword [eax*4 + 0x438a18]
inc ecx
mov eax, edi
shr eax, 4
and edi, 0xf
shr esi, 4
xor esi, edi
xor eax, dword [esi*4 + 0x438a18]
cmp ebx, 1
je 0x40389a
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x438a18]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x438a18]
movzx edi, byte [ecx + esi + 1]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x438a18]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x438a18]
add esi, 2
cmp edx, esi
jne 0x403840
not eax
pop esi
pop edi
pop ebx
ret
Function at 0x409790
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20c
mov dword [esp], ecx
mov edi, dword [esp + 0x220]
movzx ecx, word [edi]
test cx, cx
je 0x4098c1
lea eax, [edi + 2]
xor ebx, ebx
jmp 0x4097cd
add ebx, esi
movzx ecx, word [eax]
add eax, 2
test cx, cx
je 0x4097f1
movzx ebp, cx
xor ecx, ecx
cmp ebp, 0x800
setb dl
mov esi, 1
cmp ebp, 0x80
jb 0x4097c0
mov cl, dl
xor ecx, 3
mov esi, ecx
jmp 0x4097c0
lea esi, [ebx + 1]
push esi
call fcn.00408f60
add esp, 4
test ebx, ebx
jle 0x4098cb
add ebx, eax
add esi, eax
mov dword [esp + 8], esi
mov ebp, eax
jmp 0x409835
mov byte [ebp], dl
mov esi, 1
add edi, 2
add ebp, esi
cmp ebp, ebx
jae 0x4098cd
movzx edx, word [edi]
test dx, dx
je 0x4098cd
cmp dx, 0x7f
jbe 0x409820
mov ecx, ebp
not ecx
add ecx, dword [esp + 8]
movzx esi, dx
cmp esi, 0x7ff
ja 0x409880
xor esi, esi
cmp ecx, 2
jb 0x409828
mov ecx, edx
shr ecx, 6
add cl, 0xc0
mov byte [ebp], cl
and dl, 0x3f
or dl, 0x80
mov byte [ebp + 1], dl
mov esi, 2
jmp 0x409828
mov dword [esp + 4], esi
xor esi, esi
cmp ecx, 3
jb 0x409828
mov esi, dword [esp + 4]
mov ecx, esi
shr ecx, 0xc
or cl, 0xe0
mov byte [ebp], cl
mov ecx, esi
shr ecx, 6
and cl, 0x3f
or cl, 0x80
mov byte [ebp + 1], cl
mov ecx, edx
not ecx
or ecx, 0x3f
add ecx, edx
add cl, 0x81
mov byte [ebp + 2], cl
mov esi, 3
jmp 0x409828
push 1
call fcn.00408f60
add esp, 4
mov ebp, eax
mov edi, dword [esp + 0x228]
mov esi, dword [esp + 0x224]
mov byte [ebp], 0
movzx edx, byte [eax]
lea ecx, [esp + 0xc]
mov ebx, ecx
test dl, dl
je 0x409916
inc eax
lea ebx, [esp + 0xc]
jmp 0x40990b
mov byte [ebx], dh
inc ebx
movzx edx, byte [eax]
inc eax
test dl, dl
je 0x409916
mov dh, 0x2f
cmp dl, 0x5c
je 0x409900
mov dh, dl
jmp 0x409900
mov byte [ebx], 0
push 0
push 0
push 0
mov eax, dword [esp + 0xc]
push dword [eax + 8]
add eax, 0x10
push 0
push 0
push edi
push esi
push ecx
push eax
call fcn.004059f0
add esp, 0x28
test eax, eax
setne al
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc