joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50d580
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x545983
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.005386cc
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0053dd6a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0053f2c9
test eax, eax
je 0x50d69c
mov ecx, dword [esp + 0x3c]
call fcn.0053dd97
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x50d660
push edi
mov ecx, esi
call fcn.0053b3f9
mov ecx, esi
call fcn.0050d800
cmp dword [esp + 0x38], 1
jne 0x50d695
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0053b534
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x5100b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x5100e3
push esi
call fcn.005131a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x5100dc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x510169
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x510152
mov eax, dword [esi + 8]
test eax, eax
je 0x510107
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x51014e
cmp eax, 2
je 0x510152
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5100fa
cmp eax, 3
je 0x51012d
cmp eax, 1
jne 0x5100fa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x5100fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x5100fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00510190
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x510178
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00510190
add esp, 4
pop esi
ret

Function at 0x51c0d0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x51c173
test eax, eax
jbe 0x51c173
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x51c173
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x51c11e
xor esi, esi
jmp 0x51c124
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x51c14f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004d0970
add esi, eax
push esi
mov ebx, esi
call fcn.004d0970
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x51c130
pop ebp
test edi, edi
pop edi
jne 0x51c173
test ebx, ebx
je 0x51c173
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.005276e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x51c2b5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x51c3cd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x51c3cd
mov eax, dword [esi + 0x3c]
push eax
call fcn.00538b1e
mov esi, eax
test esi, esi
je 0x51c3cd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x51c3cd
mov ecx, esi
call fcn.0051c220
cmp edi, eax
jge 0x51c3cd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x51c353
mov dword [esp + 0x34], 1
jmp 0x51c3ae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x51c3cd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0051b7c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x51e9b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x51ea16
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x51ea16
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x51e9f7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x51eda0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x51edd8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x51fa60
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x51faa9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x51ff20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5460a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0051fad0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0051fb50
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0051fb50
lea ecx, [esi + 0xc]
call fcn.0053707e
lea ecx, [esi + 0x10]
call fcn.0053707e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.005210e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.005210e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.005210e0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.005370f3
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.005370f3
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x523290
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5ab76c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x5232a3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x5232e4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5ab814]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x523316
mov bl, byte [esp + ecx + 0x4c]
jmp 0x52331a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x52330b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x523338
mov bl, byte [esp + ecx + 0x4c]
jmp 0x52333c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x52332d
xor ecx, ecx
mov eax, 0x5ab77c
xor ebx, ebx
mov bl, byte [ecx + 0x5ab824]
cmp byte [esp + ebx + 0x14], 0
je 0x523367
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5ab83c]
cmp byte [esp + ebx + 0x14], 0
je 0x52337e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x52334e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x5232d7
lea edx, [esp + 0x84]
push edx
call fcn.005233c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x5394c1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5394f9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0053754e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00537526
jmp 0x539505
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x53abb6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x53abf8
call fcn.0054096f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x53abf8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x53abef
xor eax, eax
jmp 0x53ac00
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0053ac06
pop edi
pop esi
pop ebx
ret 4

Function at 0x540e9f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x540ecd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x540eeb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00540e05
jmp 0x540eeb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x540eeb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00540e05
test edi, edi
mov eax, edi
jne 0x540ed5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5dcb36
Capabilities:
Parse pe header

Disassembly:
call fcn.005dcb67
push dword [esp + 0xa]
pop dword [esp + 2]
call 0x5dcb49
and al, 0x60
lea esp, [esp + 0x25]
lea esp, [esp + 3]
mov dword [esp + 0x4c], esp
jmp 0x5dcc26
push edx
pop word [esp]
push esp
pop word [esp + 1]
push word [esp + 1]
call fcn.005dcbb5

Function at 0x5dcb49
Capabilities:
Parse pe header

Disassembly:
call fcn.005dcb67
push dword [esp + 0xa]
pop dword [esp + 2]
call 0x5dcb49
and al, 0x60
lea esp, [esp + 0x25]
lea esp, [esp + 3]
mov dword [esp + 0x4c], esp
jmp 0x5dcc26
push edx
pop word [esp]
push esp
pop word [esp + 1]
push word [esp + 1]
call fcn.005dcbb5

Function at 0x5dcbbb
Capabilities:
Parse pe header

Disassembly:
call fcn.005dc0f4
mov dword [esp], ebp
push esp
call fcn.005dcc56
lea esp, [esp + 2]
mov dword [esp + 0x88], edi
jmp 0x5dcc3b
lea esp, [esp + 0x88]
jmp 0x5dd09e
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x5dc0ef
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x5dd022

Function at 0x5dcc56
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov byte [esp], ch
mov byte [esp + 2], bh
pop word [esp + 5]
jmp 0x5dcbc4
Function at 0x402df6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
xor ebx, ebx
push 0x405564
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call 0x403cc6
add esp, 0x10
cmp dword [ebp - 4], ebx
mov ecx, eax
mov dword [ebp - 8], ecx
je 0x402f8e
cmp ecx, ebx
je 0x402f8e
cmp dword [ebp + 8], ebx
je 0x402e45
xor eax, eax
cmp dword [ebp - 4], ebx
jbe 0x402e45
xor byte [eax + ecx], al
inc eax
cmp eax, dword [ebp - 4]
jb 0x402e3c
mov ax, word [ecx]
cmp ax, 0x4d5a
je 0x402e61
cmp ax, 0x5a4d
je 0x402e61
push ecx
call dword [0x4040a0]
pop ecx
jmp 0x402f8e
push esi
push edi
lea eax, [ebp - 0x10c]
mov edi, 0x104
push eax
push edi
call dword [0x404058]
mov esi, eax
cmp esi, ebx
je 0x402e80
cmp esi, edi
jbe 0x402e9d
push 0x4056a8
lea eax, [ebp - 0x10c]
push 0x405614
push eax
call dword [0x4040bc]
add esp, 0xc
push 3
pop esi
call dword [0x40405c]
push eax
call dword [0x4040d0]
pop ecx
mov dword [ebp + 0xc], ebx
call dword [0x4040cc]
push 0x1a
cdq
pop ecx
idiv ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + esi - 0x10c]
add dl, 0x61
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 8
mov byte [eax + ecx], dl
jl 0x402eae
lea eax, [ebp + esi - 0x104]
push 0x4056a0
push eax
call 0x404a86
pop ecx
lea eax, [ebp - 0x10c]
pop ecx
mov byte [ebp + esi - 0x100], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [0x404084]
mov esi, eax
cmp esi, 0xffffffff
je 0x402f82
lea eax, [ebp + 8]
push ebx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [0x404060]
test eax, eax
je 0x402f82
push esi
call dword [0x404074]
lea eax, [ebp - 0x210]
push eax
push edi
call dword [0x404058]
lea eax, [ebp - 0x210]
push 0xa
push eax
lea eax, [ebp - 0x10c]
push 0x4058a4
push eax
push ebx
push ebx
call dword [0x404130]
cmp eax, 0x20
jle 0x402f82
push 0x405564
lea eax, [ebp + 0xc]
push ebx
push eax
push dword [ebp + 0x10]
mov dword [ebp + 0xc], ebx
call 0x403cc6
add esp, 0x10
cmp eax, ebx
je 0x402f82
push eax
call dword [0x4040a0]
pop ecx
push dword [ebp - 8]
call dword [0x4040a0]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402bfe
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x300
push ebx
push esi
push edi
push 0x14
pop edi
call fcn.00402a44
cmp dword [ebp + 0xc], edi
jae 0x402c1d
mov edi, dword [ebp + 0xc]
mov esi, 0xff
xor ebx, ebx
push esi
lea eax, [ebp - 0xff]
push ebx
push eax
mov byte [ebp - 0x100], bl
call main
push esi
lea eax, [ebp - 0x1ff]
push ebx
push eax
mov byte [ebp - 0x200], bl
call main
push esi
lea eax, [ebp - 0x2ff]
push ebx
push eax
mov byte [ebp - 0x300], bl
call main
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x100]
push eax
call 0x40f442
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x200]
push eax
call 0x40f442
add esp, 0x3c
pop edi
xor eax, eax
cmp dword [ebp + 0xc], ebx
pop esi
pop ebx
jbe 0x402ca3
xor byte [ebp + eax - 0x100], 0x5c
xor byte [ebp + eax - 0x200], 0x36
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x402c8d
lea eax, [ebp - 0x300]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x200]
push dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
call fcn.00402b7b
push 0x8004
call fcn.00402afd
push dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp + 8]
call fcn.00402b7b
leave
ret 0x18

Function at 0x402daa
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push ebx
push esi
mov eax, edi
call fcn.00402a44
mov esi, 0xff
xor ebx, ebx
push esi
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call main
push esi
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call main
push esi
lea eax, [ebp - 0x303]
push ebx
push eax
mov byte [ebp - 0x304], bl
call main
push 0x14
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call 0x40f442
push 0x14
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call 0x40f442
add esp, 0x3c
xor eax, eax
xor byte [ebp + eax - 0x204], 0x5c
xor byte [ebp + eax - 0x104], 0x36
inc eax
cmp eax, 0x40
jb 0x402e26
lea eax, [ebp - 0x304]
push eax
push 0x10
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
mov eax, edi
call fcn.00402b7b
mov esi, 0x8004
push esi
call fcn.00402afd
mov dword [ebp - 4], eax
mov eax, edi
mov dword [ebp + 0xc], ebx
call fcn.00402a44
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push esi
push dword [edi]
call dword [0x40f020]
test eax, eax
je 0x402ec8
mov esi, dword [0x40f014]
push ebx
push 0x40
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x402ebf
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x304]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x402ebf
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0xc], 1
mov dword [ecx], eax
jmp 0x402ec8
push dword [ebp + 8]
call dword [0x40f038]
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
leave
ret 0xc
Function at 0x402f30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
push ebx
push edi
call fcn.00402a44
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x28], bl
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x28]
push eax
push 0x14
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x40
push dword [ebp + 8]
call fcn.00402bfe
mov eax, dword [ebp + 0x14]
dec eax
je 0x402fbc
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0x14
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
push 0x40
push dword [ebp + 8]
call fcn.00402bfe
mov ebx, eax
xor eax, eax
mov cl, byte [ebp + eax - 0x28]
xor byte [ebp + eax - 0x14], cl
inc eax
cmp eax, 0x14
jb 0x402f99
push 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call 0x40f442
add esp, 0xc
dec edi
jne 0x402f7e
push 0x14
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x18]
call 0x40f442
add esp, 0xc
pop edi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x403184
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf44
push ebx
push esi
push edi
push dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00404a31
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x403356
push ebx
push edi
call dword [0x40f0d0]
cmp eax, 0x400
mov dword [ebp + 0x10], eax
jae 0x403340
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x43f]
push ebx
push eax
mov byte [ebp - 0x440], bl
call main
push dword [ebp + 0x10]
lea eax, [ebp - 0x440]
push eax
push edi
call fcn.00405388
add esp, 0x18
push edi
call dword [0x40f0d4]
xor eax, eax
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x27
stosb byte es:[edi], al
lea eax, [ebp - 0x3f]
push ebx
push eax
mov byte [ebp - 0x40], bl
call main
push 0x10
lea eax, [ebp - 0x3bc]
push eax
lea eax, [ebp - 0x18]
push eax
call 0x40f442
mov edi, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3ac]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
mov byte [ebp - 5], 1
push edi
call fcn.00402f30
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x3ac]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
mov byte [ebp - 5], 2
push edi
call fcn.00402f30
push esi
lea eax, [ebp - 0xc3f]
push ebx
push eax
mov byte [ebp - 0xc40], bl
call main
push esi
lea eax, [ebp - 0x83f]
push ebx
push eax
mov byte [ebp - 0x840], bl
call main
add esp, 0x18
cmp dword [ebp - 0x3d8], 0x300
jae 0x403334
push dword [ebp - 0x3d8]
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0xc40]
push eax
call 0x40f442
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0xf40]
call fcn.00404178
add esp, 0x14
xor esi, esi
lea ecx, [ebp - 0xdc0]
lea edi, [ebp + esi - 0x840]
lea eax, [ebp + esi - 0xc40]
push ecx
call fcn.004041f4
cmp esi, ebx
pop ecx
lea edi, [ebp - 0x28]
jbe 0x4032f6
lea edi, [ebp + esi - 0xc48]
xor eax, eax
mov dl, byte [eax + edi]
lea ecx, [ebp + esi - 0x840]
add ecx, eax
xor byte [ecx], dl
inc eax
cmp eax, 8
jb 0x4032f8
add esi, 8
cmp esi, dword [ebp - 0x3d8]
jb 0x4032cd
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x40
lea eax, [ebp - 0x818]
push eax
call fcn.00402b11
mov dword [ebp - 4], 1
jmp 0x403365
mov dword [edi + 0x430], 0xfffffffe
jmp 0x403365
push edi
call dword [0x40f0d4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x430], 0xfffffffe
jmp 0x403365
call dword [0x40f0c8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x430], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40e5e7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a8
push ebx
push edi
mov edi, ecx
mov ebx, eax
mov eax, dword [edi]
test eax, eax
je 0x40e6f4
add eax, 0x20
cmp eax, ebx
ja 0x40e6f4
lea eax, [ebp - 0x6a8]
push eax
call fcn.0040db91
movzx eax, byte [edi + 0x70]
test eax, eax
mov dword [ebp - 0x528], eax
je 0x40e6f4
cmp eax, 0x20
jg 0x40e6f4
mov eax, dword [edi]
push 0
lea ecx, [ebp - 0x628]
sub ebx, eax
push ecx
add eax, edi
push ebx
push eax
mov eax, esi
call fcn.0040e4fc
test eax, eax
je 0x40e6f4
add edi, 0x14
push edi
push 0x7f
pop ebx
lea edi, [ebp - 0x6a8]
call fcn.00404cfe
pop ecx
mov byte [ebp - 0x10], 0x56
mov byte [ebp - 0xf], 0x66
mov byte [ebp - 0xe], 9
mov byte [ebp - 0xd], 0x42
mov byte [ebp - 0xc], 8
mov byte [ebp - 0xb], 3
mov byte [ebp - 0xa], 0x98
mov byte [ebp - 9], 1
mov byte [ebp - 8], 0x4d
mov byte [ebp - 7], 0x67
mov byte [ebp - 6], 8
mov byte [ebp - 5], 0x66
mov byte [ebp - 4], 0x11
xor ecx, ecx
mov eax, ecx
cdq
push 0xd
pop edi
idiv edi
mov al, byte [ebp + edx - 0x10]
xor byte [ebp + ecx - 0x628], al
inc ecx
cmp ecx, 0x20
jl 0x40e69b
push dword [ebp + 8]
mov ebx, 0xff
lea edi, [ebp - 0x21f]
call fcn.00404cfe
pop ecx
lea eax, [esi + 0x30]
push eax
lea edi, [ebp - 0x524]
call fcn.00404cfe
pop ecx
push dword [ebp + 0xc]
lea edi, [ebp - 0x424]
call fcn.00404cfe
mov eax, dword [esi]
pop ecx
lea ecx, [ebp - 0x6a8]
push ecx
mov ecx, esi
call dword [eax]
pop edi
pop ebx
leave
ret 8