joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453de0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x47d400]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
push edi
mov eax, dword [ebx]
mov edi, dword [esp + 0x124]
push 0
push dword [esp + 0x124]
mov ebp, dword [eax + 8]
push ecx
mov dword [edi], 0
push dword [ebp + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x453e80
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x453e4d
mov dword [edi], 0x51
jmp 0x453e7d
push 0x100
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0040ef50
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.004246b0
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x8a8], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [ebp + 0x98]
push dword [esp + 0x12c]
push str.nw_in_read_len_zu__fd_d______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.004247c0
mov ecx, dword [esp + 0x12c]
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046641e
add esp, 0x104
ret

Function at 0x453ec0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x47d400]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [esi + 0x98]
cmp edi, 0xffffffff
je 0x453ff8
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x260]
test dword [eax + 0x48], 0x800
jne 0x453ff8
push 0x80
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x453f86
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.0040ef50
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004246b0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0046641e
add esp, 0x188
ret
lea eax, [esi + 0x11c]
push eax
lea eax, [esi + 0xea]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.004268c0
add esp, 0x10
test al, al
jne 0x453ff8
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call esi
mov edi, dword [eax]
call esi
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push edi
call fcn.0040ef50
push eax
push dword [esi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004246b0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0046641e
add esp, 0x188
ret
mov ecx, dword [esp + 0x190]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046641e
add esp, 0x188
ret
Function at 0x45ebd0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x47d400]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x45ec50
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f040
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.004246b0
push esi
call dword [0x47d004]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x45edb0
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x45ecaa
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f040
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.004246b0
push 0
mov esi, 0x4d
call dword [0x47d004]
add esp, 0x20
jmp 0x45eda1
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x45ecea
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f040
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.004246b0
add esp, 0x1c
mov esi, 0x4d
jmp 0x45ed8d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x45ed18
jg 0x45ecfe
cmp edi, 0x100000
jbe 0x45ed18
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.004246b0
add esp, 0xc
mov esi, 0x4d
jmp 0x45ed8d
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45ed30
lea esi, [eax + 0x1b]
jmp 0x45ed8d
test edi, edi
je 0x45ed74
nop dword [eax]
nop dword [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45edcd
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45edc9
add esi, eax
cmp esi, edi
jb 0x45ed40
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.0045e9d0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x47d004]
add esp, 4
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046641e
add esp, 0x120
ret
mov edi, esi
jmp 0x45ed74
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f040
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.004246b0
add esp, 0x1c
mov esi, 0x4d
jmp 0x45ed8d
Function at 0x4651c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4651eb
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x46523a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x465242
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4652b6
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x465270
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x4652e5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x477d5d
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x477d5e
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4652c0
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x4652f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.004279f0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [section..data]
mov esi, eax
add esp, 8
test esi, esi
je 0x465472
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x465372
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [ebp + 0xc]
add eax, dword [esi + 8]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4653e6
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4653a0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x465415
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x477d5d
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x477d5e
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4653f0
push dword [esp + 0x30]
call fcn.004279f0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebp, dword [esi]
test edi, edi
jne 0x465440
mov edi, dword [ebp + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebp + 8]
push edi
call eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebp + 8]
push edi
call eax
push esi
call dword [0x47d004]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x465540
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x465566
mov eax, 0x1b
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x46559e
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 4], 0
mov eax, 2
add esp, 0xc
ret
push dword [esp + 0x18]
call fcn.004279f0
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x4655f5
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x465604
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x465615
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret
Function at 0x466250
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x46629b
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x466261
pop edi
pop esi
pop ebx
ret

Function at 0x46750b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46754a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46754a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46754a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x46754a
cmp dword [ecx + 0x74], 0xe
jbe 0x46754a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
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 0x405f20
Capabilities:
Allocate thread local storage

Disassembly:
and eax, 0xec813d8b
pop es
add dword [eax], eax
add byte [ecx + 0x410388], ah
xor eax, 0xc98540c8
mov dword [0x4103fe], eax
je 0x405f40
xor eax, eax
mov esp, ebp
mov al, bh
lea edx, [ebp + 0x24]
push edx
dec ebx
xor byte [edi - 0x47], al
add byte [ebx - 0x3f7a6c3c], al
jne 0x405f7c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
and byte [ecx + ecx + 0x41], dl
stc
call fcn.0040490b
test eax, eax
jne 0x405fdb
push eax
push eax
test byte gs:[ebp - 0x1e], al
push eax
imul byte [eax - 0x11]
invalid
add byte [ebp + 0x4d8bc35d], dl
cld
push 0xd078c
push ecx
and byte [ecx - 0xa], ah
invalid
retf
Function at 0x40179a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xe], 0
mov eax, 0xd971
mov word [ebp - 0x14], ax
push ebx
mov eax, 0xce6d
mov word [ebp - 0x12], ax
push esi
mov eax, 0x58bf
push edi
mov dword [ebp - 8], ecx
mov word [ebp - 0x10], ax
call fcn.0040b082
mov cl, byte [ebp + 0xc]
mov byte [ebp - 2], al
mov al, 0xf
add cl, 5
and cl, al
sub al, cl
mov byte [ebp - 1], al
call fcn.0040b082
movzx edi, byte [ebp - 1]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov ebx, eax
lea eax, [edi + ecx]
mov dword [ebp + 0xc], eax
add eax, 6
push ecx
push dword [ebp + 8]
shl bl, 4
or bl, byte [ebp - 1]
mov dword [edx], eax
lea eax, [edi + esi + 6]
push eax
cmp dword [ebp + 8], esi
jne 0x401816
call fcn.0041e8f0
jmp 0x40181b
call fcn.0041e0c0
mov al, byte [ebp - 2]
mov byte [esi + 5], bl
add esp, 0xc
xor ebx, ebx
mov byte [esi + 4], al
test edi, edi
jbe 0x40183b
call fcn.0040b082
mov byte [esi + ebx + 6], al
inc ebx
cmp ebx, edi
jb 0x40182d
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040171c
mov eax, dword [ebp - 0xe]
push esi
push 0x10
pop ebx
push ebx
mov dword [esi], eax
mov eax, dword [ebp - 8]
push esi
lea ecx, [eax + 0x234]
push eax
push ecx
mov dword [ebp + 0xc], ecx
call fcn.0040fc84
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
sub edi, ebx
add esp, 0x14
xor ecx, ecx
cmp edi, ebx
jb 0x4018ab
add esi, edi
mov eax, esi
sub ecx, edi
mov dword [ebp + 8], ebx
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec dword [ebp + 8]
jne 0x401885
push esi
push ebx
push esi
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.0040fc84
mov ecx, edi
sub edi, ebx
add esp, 0x14
sub esi, ebx
cmp edi, ebx
jae 0x40187e
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x409a40
Capabilities:
Encode data using xor

Disassembly:
push ebp
sub esp, 0x54
mov eax, 0x433898
call fcn.0041f03c
sub esp, 0x18c
push ebx
push esi
mov dword [ebp + 0x54], ecx
push edi
lea ecx, [ebp - 0x198]
call fcn.004051d0
mov ebx, dword [ebp + 0x60]
and dword [ebp - 4], 0
cmp dword [ebx + 0x7ee], 4
jne 0x409bc2
mov eax, dword [ebp + 0x64]
mov edx, dword [eax + 0x15]
lea esi, [eax + 0x19]
mov eax, dword [ebp + 0x54]
cmp byte [eax + 0x98c], 1
push 8
pop ecx
lea edi, [ebp]
mov dword [ebp + 0x60], edx
rep movsd dword es:[edi], dword [esi]
jne 0x409b13
cmp byte [eax + 0x98b], 0
jne 0x409b13
cmp edx, dword [eax + 0x967]
jne 0x409abc
push 8
lea edi, [eax + 0x96b]
pop ecx
lea esi, [ebp]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x409b13
push 1
call fcn.00403440
pop ecx
mov ecx, dword [eax + 0x10]
mov byte [ecx], 0x1c
lea esi, [eax + 2]
mov dword [eax + 0xc], 8
push 1
mov dword [ebp + 0x64], eax
mov eax, dword [ebx + 1]
push ecx
mov dword [esi], eax
mov ax, word [ebx + 5]
push ecx
mov ecx, dword [ebp + 0x54]
mov word [esi + 4], ax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.004062c8
mov ecx, dword [ebp + 0x64]
mov word [ecx], ax
push ecx
mov ecx, dword [ebp + 0x54]
call fcn.004051a5
mov dword [ebx + 0x7ee], 2
jmp 0x409bc2
xor esi, esi
call fcn.0040b082
mov dword [ebp + esi + 0x40], eax
add esi, 4
cmp esi, 0x14
jl 0x409b15
push 8
pop ecx
xor eax, eax
push 5
lea edi, [ebp + 0x20]
rep stosd dword es:[edi], eax
pop ecx
lea eax, [ebp]
push eax
push dword [ebp + 0x60]
lea esi, [ebp + 0x40]
lea edi, [ebp + 0x20]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x198]
call fcn.0040968f
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x198]
call fcn.004096db
mov esi, dword [ebp + 0x64]
xor eax, eax
inc esi
mov cl, byte [esi + eax]
xor cl, byte [ebp + eax + 0x40]
inc eax
cmp eax, 0x10
mov byte [ebx + eax + 0x7d0], cl
jl 0x409b66
push 5
pop ecx
mov byte [ebp - 0x44], 0x10
mov byte [ebx + 0x7e1], 1
lea edi, [ebp - 0x43]
rep movsd dword es:[edi], dword [esi]
push 8
pop ecx
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x2f]
rep movsd dword es:[edi], dword [esi]
call fcn.00402133
xor ecx, ecx
push ecx
push eax
push ecx
push ecx
push ecx
push ecx
mov edi, esp
push ecx
push 6
push ecx
mov ecx, dword [ebp + 0x54]
lea esi, [ebx + 1]
movsd dword es:[edi], dword [esi]
push 0x1a8
lea eax, [ebp - 0x44]
push eax
movsw word es:[edi], word [esi]
call fcn.00406471
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x58
leave
ret 8
Function at 0x40b082
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
push ecx
cmp dword [0x43d248], 0xffffffff
push ebx
push ebp
push esi
push edi
mov edi, 0x4639c0
mov esi, 0x4639c8
jge 0x40af81
push 0x1105
call fcn.0040af31
pop ecx
mov ecx, dword [0x4639c0]
mov eax, dword [0x4639c4]
mov dword [0x43d248], 0x26f
mov dword [0x464384], 0x4639c4
mov dword [esp + 0x10], 0xe3
mov ebp, bind
mov ebx, 0x9908b0df
mov edx, eax
xor edx, ecx
and edx, ebp
xor edx, ecx
mov ecx, eax
and cl, 1
movzx ecx, cl
shr edx, 1
neg ecx
sbb ecx, ecx
and ecx, ebx
xor edx, ecx
xor edx, dword [esi + 0x62c]
mov ecx, eax
mov dword [edi], edx
mov eax, dword [esi]
add edi, 4
add esi, 4
dec dword [esp + 0x10]
jne 0x40afb2
mov dword [esp + 0x14], 0x4639c0
mov dword [esp + 0x10], 0x18c
mov edx, eax
xor edx, ecx
and edx, ebp
xor edx, ecx
mov ecx, eax
and cl, 1
movzx ecx, cl
shr edx, 1
neg ecx
sbb ecx, ecx
and ecx, ebx
xor edx, ecx
mov ecx, dword [esp + 0x14]
xor edx, dword [ecx]
add dword [esp + 0x14], 4
mov dword [edi], edx
mov ecx, eax
mov eax, dword [esi]
add edi, 4
add esi, 4
dec dword [esp + 0x10]
jne 0x40aff4
mov esi, dword [0x4639c0]
mov eax, esi
xor eax, ecx
and eax, ebp
xor eax, ecx
shr eax, 1
mov ecx, esi
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, ebx
xor eax, ecx
mov ecx, dword [esp + 0x14]
xor eax, dword [ecx]
mov edx, esi
mov dword [edi], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
pop edi
pop esi
mov eax, edx
shr eax, 0x12
pop ebp
xor eax, edx
pop ebx
pop ecx
pop ecx
ret
dec dword [0x43d248]
jns 0x40b08f
jmp 0x40af5d
mov eax, dword [0x464384]
mov ecx, dword [eax]
add dword [0x464384], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x40f1bf
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, byte [esp + 8]
test ecx, ecx
jle 0x40f205
mov eax, dword [esp + 4]
add eax, 2
push esi
movzx edx, byte [eax + 1]
movzx esi, byte [eax - 1]
mov edx, dword [edx*4 + 0x440388]
xor edx, dword [esi*4 + 0x43fb88]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x43ff88]
movzx esi, byte [eax - 2]
xor edx, dword [esi*4 + 0x43f788]
add eax, 4
dec ecx
mov dword [eax - 6], edx
jne 0x40f1d0
pop esi
ret
Function at 0x40f206
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov edi, dword [0x464388]
lea ecx, [edi - 6]
lea eax, [ecx - 1]
test eax, eax
jl 0x40f235
mov edx, dword [ebp + 8]
lea esi, [ebp - 0x38]
sub edx, esi
lea esi, [edx + eax*4]
dec eax
mov esi, dword [ebp + esi - 0x38]
mov dword [ebp + eax*4 - 0x34], esi
jns 0x40f227
xor edx, edx
and dword [ebp - 4], edx
xor eax, eax
mov dword [ebp - 8], edx
test ecx, ecx
jle 0x40f284
lea esi, [edi + 1]
cmp edx, esi
jge 0x40f284
cmp eax, ecx
jge 0x40f272
cmp dword [ebp - 4], 4
jge 0x40f26c
mov esi, dword [ebp - 4]
mov edi, dword [ebp + eax*4 - 0x38]
mov ebx, dword [ebp + 0x10]
inc eax
inc dword [ebp - 4]
cmp eax, ecx
lea esi, [esi + edx*4]
mov dword [ebx + esi*4], edi
jl 0x40f24e
mov edi, dword [0x464388]
cmp dword [ebp - 4], 4
jne 0x40f280
inc edx
and dword [ebp - 4], 0
mov dword [ebp - 8], edx
cmp eax, ecx
jl 0x40f243
lea eax, [edi + 1]
cmp edx, eax
jge 0x40f3c5
mov eax, ecx
shl eax, 2
lea edx, [ebp + eax - 0x3a]
mov dword [ebp - 0x10], edx
lea edx, [ebp + eax - 0x39]
lea esi, [ebp + eax - 0x3b]
lea eax, [ebp + eax - 0x3c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0x440788
movzx edx, byte [esi]
mov al, byte [ebp - 0x38]
xor al, byte [edx + str.cw]
mov edx, dword [ebp - 0x10]
mov byte [ebp - 0x38], al
movzx edx, byte [edx]
mov dl, byte [edx + str.cw]
xor byte [ebp - 0x37], dl
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx]
mov dl, byte [edx + str.cw]
xor byte [ebp - 0x36], dl
mov edx, dword [ebp - 0x18]
movzx edx, byte [edx]
mov dl, byte [edx + str.cw]
xor byte [ebp - 0x35], dl
mov edx, dword [ebp - 0xc]
xor al, byte [edx]
add dword [ebp - 0xc], 4
xor edx, edx
inc edx
mov byte [ebp - 0x38], al
cmp ecx, 8
je 0x40f319
cmp ecx, edx
jle 0x40f370
mov ebx, dword [ebp + edx*4 - 0x3c]
lea eax, [ebp + edx*4 - 0x38]
xor dword [eax], ebx
inc edx
cmp edx, ecx
jl 0x40f308
jmp 0x40f370
mov ebx, dword [ebp + edx*4 - 0x3c]
lea eax, [ebp + edx*4 - 0x38]
xor dword [eax], ebx
inc edx
cmp edx, 4
jl 0x40f319
movzx eax, byte [ebp - 0x2c]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x28], al
movzx eax, byte [ebp - 0x2b]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x27], al
movzx eax, byte [ebp - 0x2a]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x26], al
movzx eax, byte [ebp - 0x29]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x25], al
push 5
pop edx
mov ebx, dword [ebp + edx*4 - 0x3c]
lea eax, [ebp + edx*4 - 0x38]
xor dword [eax], ebx
inc edx
cmp edx, 8
jl 0x40f360
xor eax, eax
test ecx, ecx
jle 0x40f3b9
lea edx, [edi + 1]
cmp dword [ebp - 8], edx
jge 0x40f3b9
cmp eax, ecx
jge 0x40f3a8
mov edx, dword [ebp - 4]
cmp edx, 4
jge 0x40f3a2
mov edi, dword [ebp - 8]
mov ebx, dword [ebp + 0x10]
lea edx, [edx + edi*4]
mov edi, dword [ebp + eax*4 - 0x38]
inc eax
inc dword [ebp - 4]
cmp eax, ecx
mov dword [ebx + edx*4], edi
jl 0x40f382
mov edi, dword [0x464388]
cmp dword [ebp - 4], 4
jne 0x40f3b5
inc dword [ebp - 8]
and dword [ebp - 4], 0
cmp eax, ecx
jl 0x40f376
lea eax, [edi + 1]
cmp dword [ebp - 8], eax
jl 0x40f2b4
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret