joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068ef
Capabilities:
Authenticate hmac
Check os version
Encode data using base64
Encrypt data using speck
Get number of processors
Resolve function by parsing pe exports

Disassembly:
call dword [0x41a034]
test eax, eax
jne 0x4068dc
call dword [0x41a068]

Function at 0x406a3a
Capabilities:
Check os version
Encrypt data using speck
Get number of processors
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
mov eax, dword [0x41a4d2]
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp - 0x30]
lea ebx, [ebx - 0xa0]
push ebx
push dword [ebp - 0x54]
call fcn.0040456b
mov eax, dword [ebp - 0x50]
xor ebx, dword [ebp - 0x44]
add edx, dword [ebp - 0x5c]
push dword [eax + 0xc20]
cmp dword [ebp - 0x28], 0xffffffb5
jne 0x406a77
int3
int3
mov esi, dword [ebp - 0x30]
cmp dword [ebp - 0x28], 0x400002
jne 0x406a8f
call eax
test eax, eax
je 0x406a76
push 0
push esi
push dword [esi - 0xa0]
mov edi, dword [ebp - 0x30]
and edx, ebx
cmp dword [ebp - 0x28], 0x400002
jne 0x406aa7
pop esi
push dword [edi - 0x9c]
cmp dword [ebp - 0x28], 0
je 0x406ac1
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x1c]
xor edi, edi
inc edi
push 0xc
call fcn.004183c5
cmp dword [ebp - 0x28], 0
je 0x406adf
test ecx, ecx
je 0x405b8b
test edi, edi
je 0x409ed2
mov edi, dword [ebp - 0x30]
test dword [ebp - 0x28], 0
je 0x406af1
int3
push dword [edi - 0xa0]
cmp dword [ebp - 0x28], 0x400002
jne 0x406b14
mov eax, dword [ebp - 0x1c]
and dword [eax + 0x70], 0xfffffffd
mov eax, esi
cmp dword [ebp + 0x10], edi
jbe 0x406b44
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp - 0x30]
and edx, dword [ebp - 0x48]
xor dword [ebp - 0x44], edi
push dword [edi - 0x9c]
add dword [ebp - 0x28], 0
je 0x406b33
call fcn.00407d9a
push 0xc
or esi, dword [ebp - 0x64]
add dword [ebp - 0x28], 0
je 0x406b50
cmp dword [ebp - 0x20], edx
test ecx, ecx
je 0x406ad9
and dword [ebp - 0x24], 0
lea ecx, [ebp + eax*4 - 0x10]
mov edx, dword [ecx]
push dword [ebp - 0x50]
call fcn.00408bcb
sub esi, ecx
cmp dword [ebp - 0x3c], 1
je 0x406b73
and eax, 2
je 0x406b46
cmp dword [ebp - 0x66], 0x800041a1
ja 0x406b1a
test eax, eax
push 0
cmp dword [ebp - 0x3c], 0x400002
jne 0x406b89

Function at 0x408691
Capabilities:
Check os version

Disassembly:
mov eax, dword [ebp - 0x1adc]
mov eax, dword [eax]
push dword [edi + eax]
Function at 0x40af1f
Capabilities:
Authenticate hmac
Check os version
Encode data using base64
Encrypt data using speck
Get number of processors
Resolve function by parsing pe exports

Disassembly:
test esi, esi
setg dl
lea esi, [edx + edx - 1]
test esi, esi
jne 0x40a3a7
Function at 0x40d771
Capabilities:
Authenticate hmac
Check os version
Encode data using base64
Encrypt data using speck
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0x22
push dword [ebp - 0x20]
and edi, dword [ebp - 0x6c]
call fcn.004133b7
or dword [ebp - 0x1c], edi
add dword [ebp - 0x28], 0
je 0x40d750
mov eax, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [0x41a352]
xor esi, esi
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x30]
lea eax, [ebx - 0x1c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x3c], 1
je 0x40d768
mov esi, dword [ebp - 0x54]
add dword [ebp - 0x28], 0
je 0x40d777
je 0x40d729
mov edx, ecx
cmp edx, eax
push dword [ebp - 0x20]
xor edx, dword [ebp - 0x58]
push 0xf001f
lea edx, [ecx + eax*2 - 0x2e]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x3c], 0x33
jne 0x40d799

Function at 0x40d937
Capabilities:
Check os version
Encrypt data using speck
Get number of processors
Resolve function by parsing pe exports

Disassembly:
jae 0x40d8d1
mov dword [ebp + 0x10], 1
cmp dword [ebp + 0x10], 0
mov dword [eax + 4], ebx
je 0x40d912
inc ecx
Function at 0x40e06f
Capabilities:
Check os version
Encrypt data using speck
Get number of processors
Resolve function by parsing pe exports

Disassembly:
xor ebx, dword [ebp - 0x34]
and eax, dword [ebp - 0x34]
push dword [ebp - 0x30]
xor dword [ebp - 0x48], 0xffffffc7
and edx, esi
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x30]
push dword [eax + 8]
call fcn.0040456b
test dword [ebp - 0x28], 0
je 0x40e0a9
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x30]
push dword [ecx + 0xc]
call fcn.00404623
lea ecx, [ebp - 0x68]
push ecx
push dword [ebp - 0x20]
call fcn.0040456b
cmp dword [ebp - 0x3c], 1
je 0x40e0db
push 1
cmp dword [esi + 0x10], 0
jne 0x40e0a1
cmp dword [esi + 0xc], 0
je 0x40e05e
lea edi, [ebp - 0x20]
push edi
mov edi, dword [ebp - 0x68]
push dword [edi]
call fcn.0040456b
add esi, 0x76a2
cmp dword [ebp - 0x3c], 1
je 0x40e103

Function at 0x40f555
Capabilities:
Encode data using xor

Disassembly:
add dword [ebp - 0x34], edi
push dword [ebp - 0x30]
add edi, dword [ebp - 0x48]
mov dword [ebp - 0x30], esp
or word [ebp - 0x6c], 0x3d2
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x30]
push dword [eax + 8]
call fcn.0040456b
lea esi, [ebp - 0x54]
push esi
mov esi, dword [ebp - 0x30]
push dword [esi + 0xc]
call fcn.0040456b
xor eax, ebx
mov eax, 0x74d36a34
mov eax, edx
lea edi, [edx + ebx*8 + 0x421]
mov edx, dword [ebp - 0x68]
add ebx, 0xd38c
add word [ebp - 0x48], 0xa09
xor byte [edx], 0x55
add dword [ebp - 0x68], 1
xor dword [ebp - 0x6c], 0
xor ecx, dword [ebp - 0x58]
sub dword [ebp - 0x54], 1
jne 0x40f58e
mov esi, dword [ebp - 0x30]
cmp dword [ebp - 0x3c], 0x400002
jne 0x40f5ce
sub esp, 8
mov esp, esi
mov edx, ebx
pop dword [ebp - 0x30]
xor dword [ebp - 0x48], 0x7d
add word [ebp - 0x34], 0x2d0
ret 8

Function at 0x412b77
Capabilities:
Authenticate hmac
Check os version
Encode data using base64
Encrypt data using speck
Get number of processors
Get os information via kuser_shared_data
Resolve function by parsing pe exports

Disassembly:
sub ecx, dword [ebp - 0x58]
sub ebx, dword [ebp - 0x58]
push dword [ebp - 0x30]
or dword [ebp - 0x58], edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x30], esp
add esp, 0xfffffed4
cmp dword [ebp - 0x3c], 0x400002
jne 0x412ba8
call fcn.0040d13e
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
xor eax, eax
pop ebp
push dword [ebp - 0x50]
sub edi, dword [ebp - 0x2c]
sub edi, edx
push dword [ebp - 0x4c]
lea edi, [ebp - 0x50]
push edi
mov edi, dword [ebp - 0x30]
push dword [edi + 8]
call fcn.0040456b
add edx, dword [ebp - 0x58]
add dword [ebp - 0x28], 0
je 0x412bdb
mov esi, eax
push 2
shl esi, 2
lea ecx, [ebp - 8]
pop edx
sub ecx, esi
mov esi, dword [0x7ffe026c]
lea ebx, [edi + 0xdbc]
add ebx, edx
mov dword [ebp - 0x20], esi
sub edx, dword [ebp - 0x64]
sub eax, dword [ebp - 0x34]
add edx, ecx
mov ebx, 0xf
and dword [ebp - 0x20], ebx
lea ecx, [ecx + 0x1b07]
lea edi, [ebp - 0x68]
xor dword [ebp - 0x5c], 0x3cf
push edi
push dword [ebp - 0x20]
xor ebx, dword [ebp - 0x38]
and ebx, dword [ebp - 0x38]
call fcn.0040456b
mov esi, dword [ebp - 0x68]
shl esi, 4
mov dword [ebp - 0x68], esi
and dword [ebp - 0x5c], edx
Function at 0x412c5e
Capabilities:
Authenticate hmac
Check os version
Encode data using base64
Encrypt data using speck
Get number of processors
Get os information via kuser_shared_data
Resolve function by parsing pe exports

Disassembly:
xor edx, dword [ebp - 0x34]
cmp dword [ebp - 0x3c], 1
je 0x412c35
mov ebx, 5
xor ecx, dword [ebp - 0x34]
add dword [ebp - 0x1c], 0xab
sub dword [ebp - 0x20], ebx
and edx, eax
mov eax, dword [ebp - 0x20]
shl eax, 2
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x28], 0x400002
jne 0x412c6b
cmp byte [ebx + 1], 0
jle 0x412c67
inc ebx
mov al, byte [ebx]
cmp al, 0x7f
jne 0x412c27
add esi, 0xa4cd
add esi, dword [ebp - 0x44]
mov eax, dword [0x7ffe0270]
xor ebx, ecx
mov dword [ebp - 0x54], eax
xor ecx, dword [ebp - 0x48]
sub ebx, dword [ebp - 0x44]
mov eax, 0xf
or edx, ebx
cmp dword [ebp - 0x3c], 0xffffff9e
jne 0x412ca7
jne 0x412cf5
call fcn.004094eb
mov dword [eax], 0x16
call fcn.0040c96c
and dword [ebp - 0x54], eax
test dword [ebp - 0x28], 0
je 0x412cbb
lea ecx, [ebp + 0xc]
push ecx
push ebx
lea esi, [ebp - 0x20]
add ecx, 0x338d
mov word [ebp - 0x34], 0xc0f
push esi
cmp dword [ebp - 0x28], 0xffffff8a
jne 0x412cd7
mov dword [ebp - 0x20], eax
push dword [ebp - 0x54]
call fcn.00404623
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x28], 0
je 0x412d02
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0040733f
mov eax, dword [ebp - 0x1c]
call fcn.0040df72
push eax
xor dword [ebp - 0x6c], 0xffffffdd
sub edi, dword [ebp - 0x58]
push dword [ebp - 0x54]
add ebx, dword [ebp - 0x5c]
cmp dword [ebp - 0x28], 0
je 0x412d1b
je 0x412d63
call fcn.00404623
or ecx, dword [ebp - 0x5c]
and ecx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x30]
lea ebx, [ebx - 0xc]
push ebx
push dword [ebp - 0x20]
call fcn.0040456b
sub edi, esi
sub edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
lea esi, [esi - 0x10]
push esi
push dword [ebp - 0x68]
call fcn.0040456b
or edx, dword [ebp - 0x34]
add dword [ebp - 0x2c], 0x5ce
mov edi, dword [ebp - 0x30]
mov dword [edi - 0x12c], 0x11c
sub esi, dword [ebp - 0x64]
and dword [ebp - 0x34], 0x40c
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
lea ecx, [eax - 0x12c]
mov dword [ebp - 0x20], ecx
add esi, dword [ebp - 0x64]
xor dword [ebp - 0x48], ebx
push dword [ebp - 0x20]
and ecx, dword [ebp - 0x38]
and ecx, dword [ebp - 0x58]
mov dword [ebp - 0x38], 0x334
mov edx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x50]
add edx, 0x634
call dword [edx]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x68], edx
add eax, ebx
cmp dword [ebp - 0x3c], 0xffffffb9
jne 0x412db9

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

Disassembly:
xor esi, esi
mov byte [ebp - 0xa3c], 1
cmp edi, esi
lea edi, [ebp - 0x4c]
push edi
mov edi, dword [ebp - 0x30]
push dword [edi - 0x18]
call fcn.0040456b
or ebx, dword [ebp - 0x38]
mov eax, 0xffff
xor ecx, edx
and word [ebp - 0x38], 3
and dword [ebp - 0x4c], eax
cmp dword [ebp - 0x28], 0xffffffcd
jne 0x412de5
push edi
mov edi, dword [ebp - 0x30]
mov dword [edi - 4], 0
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x28], 0
je 0x412e0a
Function at 0x41303c
Capabilities:
Access peb ldr_data

Disassembly:
add eax, ebx
push dword [ebp - 0x30]
cmp dword [ebp - 0x3c], 1
je 0x41305d
call fcn.00413ad0
add esp, 4
lea ecx, [ebp - 0x6c]
call fcn.004144bb
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x30], esp
cmp dword [ebp - 0x3c], 0x29
jne 0x413072
test esi, esi
setg cl
add eax, edi
add ecx, eax
add esp, 0xfffffff4
mov esi, ecx
push dword [ebp - 0x50]
cmp dword [ebp - 0x28], 0xffffffef
jne 0x41309a
sar eax, 0x10
movzx eax, ax
xor ecx, ecx
mov word [ebp - 0x20], cx
movsx ebx, ax
mov ecx, 0x41a1c2
cmp dword [ebp - 0x28], 0
je 0x4130b3
push ecx
lea edx, [esi + 0x28]
push edx
call fcn.00405985
add esp, 8
mov edx, dword [esi + 0x3c]
push dword [ebp - 0x40]
or dword [ebp - 0x1c], 0x6d9
lea ebx, [ebp - 0x40]
push ebx
mov ebx, dword [ebp - 0x30]
push dword [ebx + 8]
call fcn.0040456b
add ecx, edi
mov edi, dword [ebp - 0x30]
add eax, dword [ebp - 0x38]
xor eax, edx
push dword [edi + 0xc]
mov edx, dword [ebp - 0x20]
add dword [ebp - 0x48], 0x65
add ecx, 0x1564
mov edi, dword [ebp - 0x30]
mov byte [ebp - 0x64], 0xd1
lea edx, [edi - 0xc]
mov dword [ebp - 0x20], edx
add dword [ebp - 0x2c], 0x6c
and ebx, esi
push dword [ebp - 0x20]
mov edx, dword [ebp - 0x68]
xor ecx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x40]
add esi, 0x5b0
call dword [esi]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x68], edx
sub ecx, edx
add edi, dword [ebp - 0x1c]
mov eax, dword fs:[0x30]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0xc]
call fcn.0040456b
and edi, dword [ebp - 0x2c]
xor dword [ebp - 0x34], 0x3b
add ebx, 0x404d
xor edx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x50]
lea ecx, [edx]
mov ebx, dword [ebp - 0x50]
add ecx, ebx
or dword [ebp - 0x64], 0xffffffec
lea esi, [ebx + 0x1c]
mov dword [ebp - 0x50], esi
cmp dword [ebp - 0x28], 0xfffffff6
jne 0x413160
push dword [esi + 0x28]
mov edx, dword [ebp - 0x30]
lea edx, [edx - 4]
push edx
push dword [ebp - 0x50]
call fcn.0040456b
cmp dword [ebp - 0x3c], 0x22
jne 0x413181
mov dword [esi + 0xc], eax
mov ax, dx
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x50]
push dword [edx]
call fcn.0040456b
lea esi, [edx + 0x41c]
cmp dword [ebp - 0x28], 0x400002
jne 0x4131a5
test ebx, ebx
jns 0x41314a

Function at 0x413507
Capabilities:
Check os version
Encrypt data using speck
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push dword [ebp - 0x30]
mov esi, ecx
or edi, dword [ebp - 0x64]
mov dword [ebp - 0x30], esp
cmp dword [ebp - 0x3c], 0x400002
jne 0x413520
xor al, al
add esp, 0xfffffff0
xor edx, eax
push dword [ebp - 0x40]
cmp dword [ebp - 0x28], 0x400002
jne 0x413543
inc eax
push 1
push dword [ebp - 0x10]
lea ecx, [ebp - 4]
push 3
push ecx
cmp dword [ebp - 0x3c], 1
je 0x41354e

Function at 0x413623
Capabilities:
Check os version
Encrypt data using speck
Get number of processors
Resolve function by parsing pe exports

Disassembly:
call fcn.0040b814
mov esi, eax
add esp, 4
Function at 0x414539
Capabilities:
Check os version
Encrypt data using speck
Get number of processors
Resolve function by parsing pe exports

Disassembly:
xor eax, eax
mov esi, dword [ebp + 0xc]
cmp esi, edi
setne al
cmp eax, edi

Function at 0x4145c5
Capabilities:
Check os version
Encrypt data using speck
Get number of processors
Resolve function by parsing pe exports

Disassembly:
test esi, esi
jne 0x4145ec
test ebx, ebx
je 0x4145a6
mov esi, ebx

Function at 0x414845
Capabilities:
Check os version
Encrypt data using speck
Get number of processors
Resolve function by parsing pe exports

Disassembly:
xor esi, dword [ebp - 0x2c]
and ecx, edx
push dword [ebp - 0x30]
mov dword [ebp - 0x30], esp
xor ecx, ebx
add esp, 0xffffffe0
cmp dword [ebp - 0x3c], 1
je 0x414870
push eax
lea ecx, [ebp - 0x4c]
push 0x40
push ecx

Function at 0x414ac8
Capabilities:
Check os version
Encrypt data using speck
Get number of processors
Resolve function by parsing pe exports

Disassembly:
or dword [ebp - 0x64], esi
push dword [ebp - 0x30]
mov dword [ebp - 0x30], esp
or eax, dword [ebp - 0x34]
add esp, 0xfffffc78
or esi, dword [ebp - 0x34]
or edi, eax
push dword [ebp - 0x50]
xor edi, ebx
or edi, ebx
push dword [ebp - 0x4c]
or edx, eax
cmp dword [ebp - 0x3c], 0x2d
jne 0x414afb
lea eax, [ecx - 4]
mov ecx, dword [esp + 4]
or dword [ebp - 0x6c], eax
push dword [ebp - 0x40]
mov dword [ebp - 0x48], esi
sub edx, edi
lea ecx, [ebp - 0x50]
cmp dword [ebp - 0x28], 0
je 0x414b1e
push esi
call fcn.0040b454
pop ecx
call fcn.004095e6
push ecx
lea eax, [ecx + edi*2 + 0xfcf]
push dword [ebp - 0x50]
add word [ebp - 0x1c], 0xe4e
call fcn.004047c6
sub ecx, dword [ebp - 0x38]
cmp dword [ebp - 0x28], 0
je 0x414b46
lea ebx, [ebp - 0x4c]
push ebx
mov ebx, dword [ebp - 0x30]
push dword [ebx + 0x10]
call fcn.0040456b
cmp dword [ebp - 0x3c], 0x59
jne 0x414b6e
jne 0x414b13
test esi, esi
je 0x414afb
xor ecx, ecx
mov word [esi - 2], cx
and dword [ebp - 4], 0
push 0
or dword [ebp - 0x5c], 0x161
or ebx, dword [ebp - 0x44]
or ecx, dword [ebp - 0x6c]
push 0
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
add dword [ebp - 0x28], 0
je 0x414b9f
mov eax, dword [0x41a222]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea esi, [edx - 0x28]
mov dword [ebp - 0x20], esi
add dword [ebp - 0x28], 0
je 0x414bb7
push eax
call fcn.00406d34
add esp, 0x14
push dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
push dword [esi + 8]
lea ecx, [eax + edi + 0x1de7]
and ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x68]
add dword [ebp - 0x34], edi
mov edi, dword [ebp - 0x4c]
add edi, 0x59c
call dword [edi]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x68], edx
cmp dword [ebp - 0x20], 1
jne 0x41630c
add edi, eax
mov ebx, dword [ebp - 0x20]
lea esi, [edi - 0x4a]
mov esi, edx
mov ecx, dword [ebp - 0x30]
test dword [ebp - 0x28], 0
je 0x414c1e
Function at 0x414d69
Capabilities:
Check os version
Encrypt data using speck
Get number of processors
Resolve function by parsing pe exports

Disassembly:
jne 0x414dd5
cmp ecx, 1
jbe 0x414dc8
mov bl, byte [esi + 1]
cmp bl, byte [edx + 1]

Function at 0x415260
Capabilities:
Check os version
Get number of processors
Resolve function by parsing pe exports

Disassembly:
pop edi
mov dword [esi], 0
pop esi
mov eax, ebx
pop ebx
mov eax, dword [ebp - 0x30]
or word [ebp - 0x34], 0x82a
mov dword [eax - 0x4c], 0
add ecx, 0x3df4
or dword [ebp - 0x1c], 0x40
push 4
mov dword [ebp - 0x1c], ebx
add dword [ebp - 0x44], esi
add edi, ecx
push 0
cmp dword [ebp - 0x28], 0xfffffffa
jne 0x4152ac
push esi
call fcn.00415db4
add esp, 4
push 1
add eax, dword [ebp - 0x58]
or word [ebp - 0x6c], 0x9ce
mov ecx, dword [ebp - 0x20]
or word [ebp - 0x38], 0x555
mov edi, dword [ebp - 0x30]
test dword [ebp - 0x28], 0
je 0x4152d4
pop ecx
pop edi
lea ecx, [edi - 0x4c]
mov dword [ebp - 0x20], ecx
and ebx, dword [ebp - 0x58]
push dword [ebp - 0x20]
cmp dword [ebp - 0x28], 0x2f
jne 0x4152ee
int3
push 0
and esi, dword [ebp - 0x6c]
xor word [ebp - 0x5c], 0x5c2
push 0
cmp dword [ebp - 0x28], 0
je 0x41530f
add edi, dword [ebp - 0x6c]
push 0
or eax, edx
sub eax, esi
mov ebx, dword [ebp - 0x20]
cmp dword [ebp - 0x28], 0x400002
jne 0x415334
push 0
push dword [ebp + 8]
call fcn.0040575e
mov ecx, dword [ebp - 0x30]
sub eax, dword [ebp - 0x44]
lea ebx, [ecx - 0x48]
mov dword [ebp - 0x20], ebx
add edx, dword [ebp - 0x2c]
push dword [ebp - 0x20]
add dword [ebp - 0x28], 0
je 0x41535f
push dword [0x41a533]
mov esi, dword [0x41a522]
call esi
test eax, eax
and ecx, dword [ebp - 0x34]
and word [ebp - 0x6c], 0xf94
push 0xffffffff
sub ebx, dword [ebp - 0x64]
and edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
push dword [ecx - 0x3c]
mov edx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x4c]
add esi, 0x594
call dword [esi]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x68], edx
test dword [ebp - 0x28], 0
je 0x4153a9
push eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x4c], ebx
call fcn.00407aa4
push eax
mov edi, dword [ebp - 0x20]
cmp dword [ebp - 0x3c], 1
je 0x4153c5
push edx
call dword [0x41a048]
test eax, eax
jne 0x415431
call fcn.0040fade
or dword [ebp - 0x20], edi
jne 0x4161fb
test dword [ebp - 0x28], 0
je 0x4153f8
call fcn.00412e1f
cmp dword [eax + 0x80], 0
je 0x4153e8
call fcn.0040f85f
lea edi, [eax + 0x80]
call fcn.004168e6
mov eax, dword [ebp - 0x30]
push dword [eax - 0x48]
mov esi, eax
mov ebx, dword [ebp - 0x30]
add edi, dword [ebp - 0x5c]
or edi, edx
push dword [ebx - 0x34]
test dword [ebp - 0x28], 0
je 0x41542c
push edi
lea ecx, [ebp - 0x2218]
push ecx
mov ecx, dword [ebp - 0x221c]
lea edx, [ebp - 0x2250]
push edx
call fcn.004163c1
xor dword [ebp - 0x2c], eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x30]
push dword [eax + 0xc]
call fcn.0040456b
lea edi, [ebp - 0x68]
push edi
mov edi, dword [ebp - 0x68]
push dword [edi + 0x3c]
call fcn.00404623
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x68]
push dword [eax + 0x50]
call fcn.0040456b
cmp dword [ebp - 0x3c], 0x400002
jne 0x41547a
push 0xa
pop edi
Function at 0x4179a0
Capabilities:
Encode data using xor

Disassembly:
push esi
sub edi, esi
mov edi, 0xb42dd91e
mov edi, edx
push dword [ebp - 0x54]
and ebx, dword [ebp - 0x5c]
xor edx, esi
mov esi, ebx
push dword [ebp - 0x20]
xor dword [ebp - 0x38], eax
lea ebx, [ebp - 0x4c]
push ebx
mov ebx, dword [ebp - 0x30]
push dword [ebx + 0xc]
call fcn.0040456b
xor ebx, dword [ebp - 0x64]
cmp dword [ebp - 0x3c], 0x2d
jne 0x4179d9
int3
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x30]
push dword [ecx + 8]
call fcn.0040456b
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x30]
push dword [eax + 0x10]
call fcn.0040456b
add edx, dword [ebp - 0x44]
cmp dword [ebp - 0x54], 0
je 0x417a5b
mov edi, dword [ebp - 0x4c]
add dword [ebp - 0x34], ecx
lea ebx, [edi + edx*4 + 0x337]
mov cl, byte [ebp - 0x20]
or esi, edi
and dword [ebp - 0x2c], ecx
mov cl, byte [edi]
xor dword [ebp - 0x44], 0x979
or dword [ebp - 0x1c], 0x14
mov byte [ebp - 0x20], cl
mov edx, dword [ebp - 0x40]
add edi, dword [ebp - 0x6c]
mov al, byte [ebp - 0x20]
mov byte [edx], al
xor dword [ebp - 0x2c], ecx
and dword [ebp - 0x38], ecx
add dword [ebp - 0x4c], 1
add dword [ebp - 0x40], 1
sub dword [ebp - 0x54], 1
jne 0x417a0a
cmp dword [ebp - 0x28], 0x400002
jne 0x417a75
pop dword [ebp - 0x20]
add dword [ebp - 0x1c], edx
pop dword [ebp - 0x54]
pop dword [ebp - 0x40]
pop dword [ebp - 0x4c]
cmp dword [ebp - 0x28], 0
je 0x417a96
mov eax, dword [ebp - 0x64]
cmp ebx, dword [ebp - 0x40]
jae 0x417a95
inc ebx
mov eax, dword [ebp - 0x30]
xor word [ebp - 0x34], 0x955
add dword [ebp - 0x48], eax
mov esp, eax
cmp dword [ebp - 0x28], 0x400002
jne 0x417ab9
push 0x15
push esi
lea eax, [ebp - 0x10]
push 2
push eax
pop dword [ebp - 0x30]
and dword [ebp - 0x5c], edi
Function at 0x401780
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x4017a6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40183a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4017f5
cmp eax, 0x40
je 0x4017f5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401799
cmp eax, 0x40
je 0x401799
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401799
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]