joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100045c0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a49b1
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x100b5008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x40]
call fcn.1001f2b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1001f2b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xdc]
call fcn.1001f2b0
mov byte [ebp - 4], 2
push 0x100b9f20
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x10004779
push 0x100b9f20
lea ecx, [ebp - 0x64]
call fcn.1001f1d0
mov dword [ebp - 0xfc], eax
push 0
mov ecx, dword [ebp - 0xfc]
call fcn.1001ed00
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x64]
call fcn.1001f070
push 0x100b9f20
lea ecx, [ebp - 0x94]
call fcn.1001f1d0
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 3
movzx ecx, byte [ebp - 0xf5]
push ecx
push 0x100a743c
lea ecx, [ebp - 0x4c]
call fcn.100240f0
mov ecx, eax
call fcn.100047c0
push eax
mov edx, dword [ebp - 0x104]
push edx
lea eax, [ebp - 0x7c]
push eax
call fcn.10024200
add esp, 0xc
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x40]
call fcn.1001f0c0
lea ecx, [ebp - 0x7c]
call fcn.1001f070
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x94]
call fcn.1001f070
push 0x100b9f20
lea ecx, [ebp - 0xc4]
call fcn.1001f1d0
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x110], edx
mov byte [ebp - 4], 4
movzx eax, byte [ebp - 0xf6]
push eax
push 0x100a7448
lea ecx, [ebp - 0xf4]
call fcn.10024240
mov ecx, eax
call fcn.10004840
push eax
mov ecx, dword [ebp - 0x110]
push ecx
lea edx, [ebp - 0xac]
push edx
call fcn.10024200
add esp, 0xc
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
push eax
lea ecx, [ebp - 0x28]
call fcn.1001f0c0
lea ecx, [ebp - 0xac]
call fcn.1001f070
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc4]
call fcn.1001f070
lea ecx, [ebp - 0x28]
call fcn.1001ed00
mov dword [0x100b5150], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xdc]
call fcn.1001f070
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1001f070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.1001f070
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a2fb6
mov esp, ebp
pop ebp
ret
Function at 0x1000c360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
push 0x100b0098
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000c38b
xor al, al
jmp 0x1000c4c1
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1000c3b9
xor al, al
jmp 0x1000c4c1
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 2
je 0x1000c3cc
cmp dword [ebp + 0xc], 1
jne 0x1000c3d3
mov dword [ebp - 0xc], 2
cmp dword [ebp + 0xc], 0
jne 0x1000c3e0
mov dword [ebp - 0xc], 1
cmp dword [ebp + 0xc], 4
je 0x1000c3ec
cmp dword [ebp + 0xc], 3
jne 0x1000c3f3
mov dword [ebp - 0xc], 4
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
push eax
call fcn.100a38d4
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x10]
je 0x1000c43f
xor al, al
jmp 0x1000c4c1
mov dword [ebp - 0x14], 0
jmp 0x1000c451
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0xc]
jae 0x1000c468
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov byte [eax + edx], 0
jmp 0x1000c448
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
call fcn.1000c520
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.100a2ff8
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x28]
push ecx
mov ecx, dword [ebp - 8]
call fcn.1000ce00
mov edx, dword [ebp - 8]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
jne 0x1000c4b9
xor al, al
jmp 0x1000c4c1
mov ecx, dword [ebp - 8]
call fcn.1000ce40
mov esp, ebp
pop ebp
ret 8
Function at 0x1001ce30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1001ce56
mov eax, dword [ebp + 8]
mov dword [0x100b59ac], eax
push 0
push 0
push 0
push 0x1001cd30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp + 0xc], 0
jne 0x1001ce88
mov ecx, dword [0x100b5878]
call fcn.10004460
mov ecx, dword [0x100b5880]
call fcn.10004460
mov ecx, dword [0x100b587c]
call fcn.10004460
mov ecx, dword [0x100b5884]
call fcn.10004460
mov al, 1
pop ebp
ret 0xc
Function at 0x10070360
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100b5008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100b59e0], 0
jne 0x1007037e
call fcn.100702a0
call fcn.10075fb0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [0x100b59d0]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x10]
cvtsi2ss xmm0, edx
push ecx
movss dword [esp], xmm0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cvtsi2ss xmm0, eax
push ecx
movss dword [esp], xmm0
lea ecx, [ebp - 0x38]
call fcn.10002b70
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [0x100b59c8]
mov edx, dword [ebp - 0x28]
sbb edx, dword [0x100b59cc]
call fcn.100a4820
cvtsd2ss xmm0, xmm0
mov edx, dword [0x100b59c4]
mov ecx, dword [0x100b59c0]
movss dword [ebp - 0x30], xmm0
call fcn.100a4820
cvtsd2ss xmm0, xmm0
movss xmm1, dword [ebp - 0x30]
divss xmm1, xmm0
mov edx, dword [ebp - 0x18]
movss dword [edx + 8], xmm1
mov eax, dword [ebp - 0x2c]
mov dword [0x100b59c8], eax
mov ecx, dword [ebp - 0x28]
mov dword [0x100b59cc], ecx
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x10070449
mov dword [ebp - 0x1c], 1
jmp 0x10070450
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x1c]
mov byte [eax + 0xdd], cl
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x10070478
mov dword [ebp - 0x20], 1
jmp 0x1007047f
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x20]
mov byte [eax + 0xde], cl
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x100704a7
mov dword [ebp - 0x24], 1
jmp 0x100704ae
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x24]
mov byte [eax + 0xdf], cl
mov edx, dword [ebp - 0x18]
mov byte [edx + 0xe0], 0
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + 0xdc]
test ecx, ecx
je 0x100704da
push 0
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.10075fe0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a2fb6
mov esp, ebp
pop ebp
ret
Function at 0x10073b90
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 4
shl eax, 0
cmp dword [eax + 0x100b9b10], 0
jne 0x10073c10
mov dword [ebp - 0x20], 0xedb88320
mov dword [ebp - 0x10], 0
jmp 0x10073bc0
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x100
jae 0x10073c10
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], 0
jmp 0x10073be1
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 8
jae 0x10073c01
mov ecx, dword [ebp - 0x14]
shr ecx, 1
mov edx, dword [ebp - 0x14]
and edx, 1
neg edx
and edx, 0xedb88320
xor ecx, edx
mov dword [ebp - 0x14], ecx
jmp 0x10073bd8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax*4 + 0x100b9b10], ecx
jmp 0x10073bb7
mov edx, dword [ebp + 0x10]
not edx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0
jle 0x10073c6d
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0x1c], 0
je 0x10073c6b
mov ecx, dword [ebp - 0xc]
shr ecx, 8
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor edx, eax
xor ecx, dword [edx*4 + 0x100b9b10]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x10073c2a
jmp 0x10073cde
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 1], al
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
movzx edx, byte [ebp - 1]
test edx, edx
je 0x10073cde
movzx eax, byte [ebp - 1]
cmp eax, 0x23
jne 0x10073cbd
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x10073cbd
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x10073cbd
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
shr eax, 8
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
movzx edx, byte [ebp - 1]
xor ecx, edx
xor eax, dword [ecx*4 + 0x100b9b10]
mov dword [ebp - 0xc], eax
jmp 0x10073c6d
mov eax, dword [ebp - 0xc]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x100749d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x100749e5
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10074a06
xor eax, eax
jmp 0x10074afb
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10074a46
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x10074a46
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x10074a5a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
jmp 0x10074afb
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp + 0x14]
push edx
call fcn.10075ea0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10074a89
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
jmp 0x10074afb
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 8]
je 0x10074ac2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call fcn.10075ee0
add esp, 4
xor eax, eax
jmp 0x10074afb
cmp dword [ebp + 0x14], 0
jle 0x10074add
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x10074af8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10099570
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100b5008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x208], ecx
cvtss2sd xmm0, dword [ebp + 0x10]
sub esp, 8
movsd qword [esp], xmm0
push 0x100ac754
lea eax, [ebp - 0x104]
push eax
call fcn.10070900
add esp, 0x10
mov ecx, dword [ebp - 0x208]
push ecx
push 0xff
lea edx, [ebp - 0x204]
push edx
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
add esp, 4
fstp dword [ebp - 0x20c]
fld dword [ebp - 0x20c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a2fb6
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10099600
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100b5008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1009962d
mov dword [ebp - 0x214], 0x100af62c
jmp 0x10099637
mov dword [ebp - 0x214], str.01110:
mov ecx, dword [ebp - 0x214]
push ecx
push 0x100af634
lea edx, [ebp - 0x104]
push edx
call fcn.10070900
add esp, 0xc
mov eax, dword [ebp - 0x21c]
push eax
push 0xff
lea ecx, [ebp - 0x204]
push ecx
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x210], 0x100af630
lea edx, [ebp - 0x204]
mov dword [ebp - 0x20c], edx
mov eax, dword [ebp - 0x20c]
mov cl, byte [eax]
mov byte [ebp - 0x206], cl
mov edx, dword [ebp - 0x210]
cmp cl, byte [edx]
jne 0x100996ee
cmp byte [ebp - 0x206], 0
je 0x100996e2
mov eax, dword [ebp - 0x20c]
mov cl, byte [eax + 1]
mov byte [ebp - 0x207], cl
mov edx, dword [ebp - 0x210]
cmp cl, byte [edx + 1]
jne 0x100996ee
add dword [ebp - 0x20c], 2
add dword [ebp - 0x210], 2
cmp byte [ebp - 0x207], 0
jne 0x10099690
mov dword [ebp - 0x218], 0
jmp 0x100996f9
sbb eax, eax
or eax, 1
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x220], ecx
cmp dword [ebp - 0x220], 0
jne 0x10099717
mov byte [ebp - 0x205], 1
jmp 0x1009971e
mov byte [ebp - 0x205], 0
mov dl, byte [ebp - 0x205]
mov byte [ebp - 0x208], dl
mov al, byte [ebp - 0x208]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a2fb6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409eb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40a03b
sub esp, 0xc
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x40a02e
mov ebp, dword [eax]
cmp ebp, 0
je 0x40a02e
movzx ebp, byte [eax + 4]
mov ebx, ebp
and ebx, 4
cmp bl, 0
je 0x409f09
mov ebx, 0x5fe2e4
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.0042a340
mov eax, dword [esp + 0x14]
movzx ebp, byte [eax + 5]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jne 0x409f8c
mov ecx, dword [eax + 0xc]
xor eax, eax
cmp eax, 8
jae 0x409f3a
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 0x409f60
inc eax
cmp eax, 8
jb 0x409f1e
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 0x409f17
mov ebx, 0x6da6c0
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 0x409f34
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 0x40a02a
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 0x409f17
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 0x40a026
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jae 0x40a026
mov eax, 1
cmp al, 0
jne 0x409f17
mov ecx, edx
jmp 0x409f17
xor eax, eax
jmp 0x40a016
xor ebx, ebx
jmp 0x409fc3
mov ebx, 0x6da6c0
mov dword [esp + 0x1c], ebx
add esp, 0xc
ret
call fcn.00450db0
jmp fcn.00409eb0
Function at 0x40a050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40a1ee
sub esp, 0xc
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x40a1dc
mov ebp, dword [eax]
cmp ebp, 0
je 0x40a1dc
movzx ebp, byte [eax + 4]
mov ebx, ebp
and ebx, 4
cmp bl, 0
je 0x40a0a9
mov ebx, 0x5fe2e4
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.0042a340
mov eax, dword [esp + 0x14]
movzx ebp, byte [eax + 5]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jne 0x40a13a
mov ecx, dword [eax + 0xc]
xor eax, eax
cmp eax, 8
jae 0x40a0de
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 0x40a109
inc eax
cmp eax, 8
jb 0x40a0c2
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 0x40a0bb
mov ebx, 0x6da6c0
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 0x40a0d8
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 0x40a1d8
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 0x40a0bb
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 0x40a1d4
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jae 0x40a1d4
mov eax, 1
cmp al, 0
jne 0x40a0bb
mov ecx, edx
jmp 0x40a0bb
xor eax, eax
jmp 0x40a1c4
xor ebx, ebx
jmp 0x40a171
mov ebx, 0x6da6c0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], 0
add esp, 0xc
ret
call fcn.00450db0
jmp fcn.0040a050
Function at 0x40a200
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40a392
sub esp, 0xc
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x40a385
mov ebp, dword [eax]
cmp ebp, 0
je 0x40a385
movzx ebp, byte [eax + 4]
mov ebx, ebp
and ebx, 4
cmp bl, 0
je 0x40a259
mov ebx, 0x5fe2e4
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.0042a340
mov eax, dword [esp + 0x14]
movzx ebp, byte [eax + 5]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jne 0x40a2e3
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp ecx, 8
jae 0x40a291
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 0x40a28b
cmp esi, dword [esp + 0x18]
je 0x40a2b7
inc ecx
cmp ecx, 8
jb 0x40a26e
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 0x40a267
mov ebx, 0x6da6c0
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 0x40a28b
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 0x40a381
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 0x40a267
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 0x40a37d
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jae 0x40a37d
mov eax, 1
cmp al, 0
jne 0x40a267
mov edx, ecx
jmp 0x40a267
xor eax, eax
jmp 0x40a36d
xor ebx, ebx
jmp 0x40a31a
mov ebx, 0x6da6c0
mov dword [esp + 0x20], ebx
add esp, 0xc
ret
call fcn.00450db0
jmp fcn.0040a200