joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401102
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x18
mov eax, dword [ebp - 0x18]
mov eax, dword fs:[eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x40115e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x40114d
mov dword [ebp - 0xc], 1
jmp 0x401188
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x40bcf4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40113c
mov eax, dword [0x40bcf8]
cmp eax, 1
jne 0x4011a0
mov dword [esp], 0x1f
call fcn.00404a00
jmp 0x4011d3
mov eax, dword [0x40bcf8]
test eax, eax
jne 0x4011c9
mov dword [0x40bcf8], 1
mov dword [esp + 4], 0x40d014
mov dword [esp], 0x40d00c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x4011d3
mov dword [0x40a01c], 1
mov eax, dword [0x40bcf8]
cmp eax, 1
jne 0x4011fb
mov dword [esp + 4], 0x40d008
mov dword [esp], section..CRT
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x40bcf8], 2
cmp dword [ebp - 0xc], 0
jne 0x401217
mov dword [ebp - 0x2c], 0x40bcf4
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xchg dword [eax], edx
mov eax, dword [entry1]
test eax, eax
je 0x401241
mov eax, dword [entry1]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call fcn.00403d4d
mov dword [esp], 0x403e68
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call eax
sub esp, 4
mov dword [0x40bcb4], eax
mov dword [esp], section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.004036ec
mov eax, dword [0x40a004]
mov dword [esp + 4], 0x40a008
mov dword [esp], eax
call fcn.004013c8
call fcn.00403528
mov eax, dword [0x405240]
mov edx, dword [0x40a00c]
mov dword [eax], edx
mov ecx, dword [0x40a00c]
mov edx, dword [0x40a008]
mov eax, dword [0x40a004]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00401631
mov dword [0x40a014], eax
mov eax, dword [0x40a018]
test eax, eax
jne 0x4012d0
mov eax, dword [0x40a014]
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x40a01c]
test eax, eax
jne 0x4012de
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x40a014]
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x402462
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov byte [ebp - 0x18], al
mov byte [ebp - 5], 0
jmp 0x4024dc
mov byte [ebp - 6], 0
jmp 0x4024d2
movzx eax, byte [ebp - 5]
movzx edx, byte [ebp - 6]
mov ecx, dword [ebp + 0xc]
shl eax, 2
add eax, ecx
add eax, edx
movzx ebx, byte [eax]
movzx eax, byte [ebp - 0x18]
lea edx, [eax*4]
movzx eax, byte [ebp - 5]
add eax, edx
lea edx, [eax*4]
movzx eax, byte [ebp - 6]
add eax, edx
mov edx, eax
mov eax, dword [ebp + 0x10]
add eax, edx
movzx edx, byte [eax]
movzx eax, byte [ebp - 5]
movzx ecx, byte [ebp - 6]
xor edx, ebx
mov ebx, dword [ebp + 0xc]
shl eax, 2
add eax, ebx
add eax, ecx
mov byte [eax], dl
add byte [ebp - 6], 1
cmp byte [ebp - 6], 3
jbe 0x40247b
add byte [ebp - 5], 1
cmp byte [ebp - 5], 3
jbe 0x402475
nop
nop
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4024e9
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov byte [ebp - 9], 0
jmp 0x402542
mov byte [ebp - 0xa], 0
jmp 0x402538
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 9]
mov ecx, dword [ebp + 8]
shl eax, 2
add eax, ecx
add eax, edx
movzx eax, byte [eax]
movzx eax, al
movzx esi, byte [ebp - 0xa]
movzx ecx, byte [ebp - 9]
movzx edx, byte [eax + str.cw]
mov ebx, dword [ebp + 8]
lea eax, [esi*4]
add eax, ebx
add eax, ecx
mov byte [eax], dl
add byte [ebp - 0xa], 1
cmp byte [ebp - 0xa], 3
jbe 0x4024fd
add byte [ebp - 9], 1
cmp byte [ebp - 9], 3
jbe 0x4024f7
nop
nop
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x403002
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov byte [ebp - 9], 0
jmp 0x40305b
mov byte [ebp - 0xa], 0
jmp 0x403051
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 9]
mov ecx, dword [ebp + 8]
shl eax, 2
add eax, ecx
add eax, edx
movzx eax, byte [eax]
movzx eax, al
movzx esi, byte [ebp - 0xa]
movzx ecx, byte [ebp - 9]
movzx edx, byte [eax + 0x407440]
mov ebx, dword [ebp + 8]
lea eax, [esi*4]
add eax, ebx
add eax, ecx
mov byte [eax], dl
add byte [ebp - 0xa], 1
cmp byte [ebp - 0xa], 3
jbe 0x403016
add byte [ebp - 9], 1
cmp byte [ebp - 9], 3
jbe 0x403010
nop
nop
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x403261
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov byte [ebp - 5], 0
jmp 0x403299
movzx edx, byte [ebp - 5]
mov eax, dword [ebp + 8]
add eax, edx
movzx ebx, byte [eax]
movzx edx, byte [ebp - 5]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx ecx, byte [eax]
movzx edx, byte [ebp - 5]
mov eax, dword [ebp + 8]
add eax, edx
xor ebx, ecx
mov edx, ebx
mov byte [eax], dl
add byte [ebp - 5], 1
cmp byte [ebp - 5], 0xf
jbe 0x40326e
nop
nop
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4036f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00404870
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort

Function at 0x4042c8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x4042e7
mov eax, 0
jmp 0x40432b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40430a
mov eax, 0
jmp 0x40432b
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x404326
mov eax, 0
jmp 0x40432b
mov eax, 1
leave
ret

Function at 0x40432d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40438c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x404384
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x404384
mov eax, dword [ebp - 4]
jmp 0x4043a0
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x404361
mov eax, 0
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40f172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x40f1a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x40f1a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x40fdff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.0040ff04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.0040ff20
push edx
push dword [ebp + 0x10]
push eax
call fcn.0040feec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0040ff04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0040fecb
push ecx
push dword [ebp + 8]
call fcn.0040ff04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0040ff04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0040fecb
push ecx
push dword [ebp + 8]
call fcn.0040ff04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0040ff04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0040fecb
push ecx
push dword [ebp + 8]
call fcn.0040ff04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0040ff04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0040fecb
cmp ecx, 0x2b
jne 0x40fe0f
leave
ret 0xc

Function at 0x4114b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x411544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x4610
push 0
call dword [eax + 0x20]
test eax, eax
je 0x4115d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x4610
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x4610
call fcn.004113fa
push 0x4610
push dword [ebp + 0xc]
call fcn.0040f1a8
test eax, eax
jne 0x4115b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x4610
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.004115dd
test eax, eax
je 0x4115d6
jmp 0x411574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x4115d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433008]
jne 0x40100a
repz ret
jmp fcn.004019c6

Function at 0x40908b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004034d0
and dword [ebp - 4], 0
cmp dword [0x4379a0], 0
mov ebx, eax
jne 0x40913c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4091ed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4091ed
push eax
call fcn.0040345e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4379a0], eax
call esi
push eax
call fcn.0040345e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4379a4], eax
call esi
push eax
call fcn.0040345e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4379a8], eax
call esi
push eax
call fcn.0040345e
pop ecx
mov dword [0x4379b0], eax
test eax, eax
je 0x40913c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040345e
pop ecx
mov dword [0x4379ac], eax
mov eax, dword [0x4379ac]
cmp eax, ebx
je 0x409194
cmp dword [0x4379b0], ebx
je 0x409194
push eax
call fcn.004034d9
push dword [0x4379b0]
mov esi, eax
call fcn.004034d9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409194
test edi, edi
je 0x409194
call esi
test eax, eax
je 0x40918b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40918b
test byte [ebp - 0xc], 1
jne 0x409194
or dword [ebp + 0x10], 0x200000
jmp 0x4091cd
mov eax, dword [0x4379a4]
cmp eax, ebx
je 0x4091cd
push eax
call fcn.004034d9
pop ecx
test eax, eax
je 0x4091cd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4091cd
mov eax, dword [0x4379a8]
cmp eax, ebx
je 0x4091cd
push eax
call fcn.004034d9
pop ecx
test eax, eax
je 0x4091cd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4379a0]
call fcn.004034d9
pop ecx
test eax, eax
je 0x4091ed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4091ef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b7ff
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x1badeac], 0x930
jne 0x40b81c
push str.pejideduroc
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x1badeac], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1badcf0], eax
jne 0x40b83c
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
leave
ret
Function at 0x40b846
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp edi, 0x19f
jne 0x40b860
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor edx, edx
cmp edi, esi
jle 0x40b890
lea ecx, [ebp - 8]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.0040b83e
mov eax, dword [ebp - 8]
add eax, 0x64
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0x64
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edx
xor byte [eax], cl
inc edx
cmp edx, edi
jl 0x40b866
pop esi
cmp edi, 0x2d
jne 0x40b8a7
or dword [0x1badfe4], 0xffffffff
mov dword [0x1badfe0], 0xa62e7790
leave
ret
Function at 0x402b40
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov ecx, esi
cmp dword [esi], 0
jge 0x402b9b
mov edx, 0x8b1f
call fcn.00403580
mov edx, 0x808
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.00403580
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.00403580
mov edx, 0xb02
mov ecx, esi
call fcn.00403580
mov eax, dword [edi + 0x20]
lea edx, [edi + 0x48]
inc eax
mov ecx, esi
push eax
call fcn.00403700
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, 0x4034b50
call fcn.00403580
mov edx, 0x403
mov ecx, esi
call fcn.00403580
mov edx, 0x2d
mov ecx, esi
call fcn.00403580
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.00403580
movzx edx, word [edi + 2]
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.00403580
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.00403580
movzx edx, word [edi + 0xa]
mov ecx, esi
call fcn.00403580
or edx, 0xffffffff
mov ecx, esi
call fcn.00403580
or edx, 0xffffffff
mov ecx, esi
call fcn.00403580
or edx, 0xffffffff
mov ecx, esi
call fcn.00403580
or edx, 0xffffffff
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 0x20]
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 0x24]
mov ecx, esi
add edx, 0x14
call fcn.00403580
push dword [edi + 0x20]
lea edx, [edi + 0x48]
mov ecx, esi
call fcn.00403700
add esp, 4
mov edx, 1
mov ecx, esi
call fcn.00403580
mov edx, 0x10
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 0x18]
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 0x18]
mov ecx, esi
mov eax, dword [edi + 0x1c]
shrd edx, eax, 0x10
call fcn.00403580
mov eax, dword [edi + 0x18]
mov cl, 0x20
mov edx, dword [edi + 0x1c]
call fcn.0041ba00
mov edx, eax
mov ecx, esi
call fcn.00403580
movzx edx, word [edi + 0x1e]
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 0x10]
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 0x10]
mov ecx, esi
mov eax, dword [edi + 0x14]
shrd edx, eax, 0x10
call fcn.00403580
mov eax, dword [edi + 0x10]
mov cl, 0x20
mov edx, dword [edi + 0x14]
call fcn.0041ba00
mov edx, eax
mov ecx, esi
call fcn.00403580
movzx edx, word [edi + 0x16]
mov ecx, esi
call fcn.00403580
mov eax, dword [edi + 0x24]
test eax, eax
je 0x402cf1
mov edx, dword [edi + 0x40]
mov ecx, esi
push eax
call fcn.00403700
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x403580
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
cmp dword [esi + 0x20], 0
jne 0x4036f5
mov eax, edx
mov byte [ebp - 4], dl
shr eax, 8
mov dword [ebp - 8], eax
mov byte [ebp - 3], al
mov eax, dword [esi]
push edi
test al, 0x10
je 0x403660
mov edi, dword [esi + 0x40]
mov ecx, edi
push ebx
mov ebx, dword [esi + 0x38]
and ecx, 0xfffd
movsx eax, dl
or ecx, 2
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x421d28]
movzx eax, bl
add eax, dword [esi + 0x3c]
imul edx, eax, 0x8088405
inc edx
mov eax, edx
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [eax*4 + 0x421d28]
mov eax, ecx
xor eax, 1
imul eax, ecx
mov ecx, edi
and ecx, 0xfffd
or ecx, 2
shr eax, 8
xor al, byte [ebp - 0xc]
mov byte [ebp - 4], al
mov eax, dword [ebp - 8]
movsx eax, al
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x421d28]
movzx eax, bl
add eax, edx
mov dword [esi + 0x38], ebx
imul eax, eax, 0x8088405
pop ebx
inc eax
mov dword [esi + 0x3c], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [eax*4 + 0x421d28]
mov eax, ecx
xor eax, 1
mov dword [esi + 0x40], edi
imul eax, ecx
shr eax, 8
xor al, byte [ebp - 8]
mov byte [ebp - 3], al
mov eax, dword [esi]
test al, 1
je 0x4036b6
mov edi, dword [esi + 0x28]
mov ecx, edi
mov eax, dword [esi + 0x2c]
add ecx, 2
adc eax, 0
cmp eax, dword [esi + 0x34]
jb 0x40368b
ja 0x40367e
cmp ecx, dword [esi + 0x30]
jb 0x40368b
pop edi
mov dword [esi + 0x20], 0xb
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
lea edx, [ebp - 4]
add ecx, edi
mov edi, 2
mov al, byte [edx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea edx, [edx + 1]
sub edi, 1
jne 0x403698
mov ecx, dword [esi + 0x2c]
add dword [esi + 0x28], 2
adc ecx, edi
mov dword [esi + 0x2c], ecx
jmp 0x4036e5
push 0
lea eax, [ebp - 0xc]
mov edx, 0x8a
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
lea ecx, [edx - 0x56]
call fcn.00410380
call eax
test eax, eax
je 0x4036de
cmp dword [ebp - 0xc], 2
je 0x4036e5
mov dword [esi + 0x20], 3
test dword [esi], 0x40000000
je 0x4036f4
mov dword [esi + 0x20], 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403700
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
test ebx, ebx
je 0x40388a
cmp dword [edi + 0x20], 0
jne 0x40388a
test byte [edi], 0x10
je 0x403805
mov ecx, dword [edi + 0x44]
mov edx, ecx
test ecx, ecx
je 0x403745
cmp dword [edi + 0x48], ebx
jae 0x403745
call fcn.00404840
mov dword [edi + 0x44], 0
jmp 0x403749
test edx, edx
jne 0x403769
lea ecx, [ebx + ebx]
mov dword [edi + 0x48], ecx
call fcn.00404790
mov edx, eax
mov dword [edi + 0x44], edx
test edx, edx
jne 0x403769
mov dword [edi + 0x20], 2
jmp 0x40387b
mov ecx, ebx
sub edx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edx + esi - 1], al
sub ecx, 1
jne 0x403770
mov esi, dword [edi + 0x44]
xor edx, edx
mov dword [ebp - 4], edx
test ebx, ebx
je 0x403805
nop word [eax + eax]
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x38]
mov bl, byte [edx + eax]
mov edx, dword [edi + 0x40]
mov esi, edx
movsx eax, bl
and esi, 0xfffd
xor eax, ecx
or esi, 2
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x421d28]
movzx eax, cl
add eax, dword [edi + 0x3c]
imul eax, eax, 0x8088405
mov dword [edi + 0x38], ecx
mov ecx, esi
xor ecx, 1
imul ecx, esi
inc eax
mov dword [edi + 0x3c], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
mov ebx, dword [ebp + 8]
shr edx, 8
xor edx, dword [eax*4 + 0x421d28]
mov dword [edi + 0x40], edx
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x44]
mov byte [edx + eax], cl
inc edx
mov dword [ebp - 4], edx
cmp edx, ebx
jb 0x403790
mov esi, dword [edi + 0x44]
test byte [edi], 1
je 0x403851
mov ecx, ebx
mov eax, 0
add ecx, dword [edi + 0x28]
adc eax, dword [edi + 0x2c]
cmp eax, dword [edi + 0x34]
jb 0x40382c
ja 0x403823
cmp ecx, dword [edi + 0x30]
jb 0x40382c
mov dword [edi + 0x20], 0xb
jmp 0x40387b
mov ecx, dword [edi + 4]
mov edx, ebx
add ecx, dword [edi + 0x28]
mov al, byte [esi]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea esi, [esi + 1]
sub edx, 1
jne 0x403834
add dword [edi + 0x28], ebx
mov eax, edx
adc eax, dword [edi + 0x2c]
mov dword [edi + 0x2c], eax
jmp 0x40387b
push 0
lea eax, [ebp + 8]
mov edx, 0x8a
push eax
push ebx
push esi
push dword [edi + 4]
lea ecx, [edx - 0x56]
call fcn.00410380
call eax
test eax, eax
je 0x403874
cmp dword [ebp + 8], ebx
je 0x40387b
mov dword [edi + 0x20], 3
test dword [edi], 0x40000000
je 0x40388a
mov dword [edi + 0x20], 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410270
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10c], eax
xor eax, eax
mov dword [ebp - 0x108], ecx
nop dword [eax]
nop dword [eax + eax]
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jb 0x4102a0
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x110], 6
xor esi, esi
mov eax, esi
mov bl, byte [ebp + esi - 0x104]
xor edx, edx
div dword [ebp - 0x110]
movzx eax, byte [edx + ecx]
add eax, edi
movzx ecx, bl
add ecx, eax
movzx edi, cl
mov ecx, dword [ebp - 0x108]
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x104], al
inc esi
mov byte [ebp + edi - 0x104], bl
cmp esi, 0x100
jb 0x4102c0
mov esi, dword [ebp - 0x10c]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
xor eax, eax
inc eax
lea esi, [esi + 1]
movzx edx, al
mov dword [ebp - 0x108], edx
mov cl, byte [ebp + edx - 0x104]
movzx eax, cl
add eax, ebx
movzx ebx, al
mov al, byte [ebp + ebx - 0x104]
mov byte [ebp + edx - 0x104], al
mov eax, dword [ebp - 0x108]
movzx edx, cl
mov byte [ebp + ebx - 0x104], cl
movzx ecx, byte [ebp + eax - 0x104]
add edx, ecx
movzx ecx, dl
movzx ecx, byte [ebp + ecx - 0x104]
xor byte [esi - 1], cl
sub edi, 1
jne 0x410310
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041048f
mov esp, ebp
pop ebp
ret