joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c650
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.004b5ac0
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
cmp dword [ebx + 4], 0
je 0x41c6b3
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x41c6b3
test eax, eax
je 0x41c6b3
push 0
push 0
lea ecx, [ebp - 0x200c]
mov dword [ebp - 0x200c], 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x41c6c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetNamedPipeHandleState_failed._GLE_d_n
call fcn.0041c380
add esp, 8
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41c6d2
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call edi
add eax, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x2014], eax
mov eax, esi
jb 0x41c6ee
mov eax, dword [esi]
push eax
call edi
cmp dword [esi + 0x14], 8
lea edi, [eax*2 + 2]
mov eax, esi
jb 0x41c702
mov eax, dword [esi]
push eax
push edi
push str.Sending__d_byte_message:___s__n
call fcn.0041c380
add esp, 0xc
mov dword [ebp - 0x2010], 0
cmp dword [esi + 0x14], 8
jb 0x41c723
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x2010]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41c764
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile_to_pipe_failed._GLE_d_n
call fcn.0041c380
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 8
push str._nMessage_sent_to_server__receiving_reply_as_follows:_n
call fcn.0041c3e0
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.004b73e0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
mov dword [ebp - 0x2008], 0
push 0
lea eax, [ebp - 0x2008]
push eax
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
jne 0x41c7c0
call edi
cmp eax, 0xea
jne 0x41c821
lea eax, [ebp - 0x2004]
push eax
push str.received_data:___s__n
call fcn.0041c380
add esp, 8
test esi, esi
je 0x41c794
lea eax, [ebp - 0x2004]
push eax
call fcn.004beb40
mov esi, dword [ebp - 0x2014]
add esp, 4
cmp eax, esi
je 0x41c82e
lea eax, [ebp - 0x2004]
push eax
call fcn.004beb40
push eax
push esi
push str.sended_data_size_is_different:_send____d___returned____d_
call fcn.0041c380
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 8
call edi
push eax
push str.ReadFile_from_pipe_failed._GLE_d_n
jmp 0x41c746
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2008]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 8
Function at 0x41c850
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, esi
mov byte [esi + 0x20], 1
cmp dword [esi + 0x14], 8
jb 0x41c861
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x41c89d
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x41c893
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c8b2
mov eax, edx
push ecx
push eax
call fcn.004b51c1
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
pop esi
ret
call fcn.004b9cae
int3
Function at 0x41e680
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x41e6ce
push esi
push eax
push 0x41e8f0
mov byte [esi + 0x14], 1
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0x1388
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 8]
test eax, eax
je 0x41e6ce
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
test eax, eax
je 0x41e6ce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
pop esi
ret

Function at 0x41e960
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x41e96d
mov al, 1
pop esi
ret
push 0
push 0
push esi
push 0x41e990
push 0
push 0
call fcn.004bef3e
add esp, 0x18
mov dword [esi + 8], eax
test eax, eax
setne al
pop esi
ret
Function at 0x429420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x429455
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x429493
mov edx, dword [esi + 0x30]
mov ebx, dword [edx]
lea eax, [ecx + ebx*2]
cmp ecx, eax
jae 0x429493
lea ecx, [ebx - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
pop ebx
mov ax, di
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x42955d
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ebx], eax
jne 0x4294bd
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4294ca
push dword [esi + 0x4c]
push edi
jmp 0x429506
movzx eax, di
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x429530
sub eax, 1
je 0x429530
sub eax, 2
jne 0x42955d
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.004c1490
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x429562
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x42954d
push dword [esi + 0x4c]
push ebx
push 1
push eax
call fcn.004c25d4
add esp, 0x10
cmp ebx, eax
jne 0x42955d
lea eax, [ebp - 0x28]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x30], eax
jne 0x42947d
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 4
Function at 0x42a1f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x42a2b2
cmp byte [esi + 0x3e], 0
je 0x42a2b2
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x42a2a0
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x42a268
sub eax, 1
je 0x42a26c
sub eax, 2
jne 0x42a2a0
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x42a289
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004c25d4
add esp, 0x10
cmp edi, eax
jne 0x42a2a0
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004b4f32
mov esp, ebp
pop ebp
ret

Function at 0x42a8e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505ba0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x557200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004b4f40
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004a2676
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c1d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505eed
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], ebx
call fcn.0042bf50
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x42c266
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x42c266
push edi
call fcn.004b5400
add esp, 4
mov esi, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x38], esi
cmovae eax, dword [ebp - 0x28]
push esi
push edi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x42c2d7
push esi
call fcn.004b53fb
add esp, 4
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
cmp edx, 8
jb 0x42c2b9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42c2af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c395
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
push eax
push 0x536d1c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42c25d
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x38]
movzx ecx, word [eax + 0xa]
movzx ebx, word [eax + 8]
movzx edi, word [eax + 0xe]
movzx esi, word [eax + 0xc]
mov dword [ebp - 0x34], ecx
call fcn.004b53fb
mov eax, dword [ebp - 0x34]
add esp, 4
movzx eax, ax
push esi
push edi
push ebx
push eax
sub esp, 0x18
mov ecx, esp
push 0xb
push str._d._d._d._d
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004084c0
mov ebx, dword [ebp - 0x3c]
push ebx
call fcn.00433e40
mov edx, dword [ebp - 0x14]
add esp, 0x2c
cmp edx, 8
jb 0x42c2b9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42c2af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42c2af
call fcn.004b9cae
int3
Function at 0x42d2a0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
mov esi, ecx
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x210], esi
push eax
mov dword [ebp - 0x210], esi
call fcn.004b73e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
test eax, eax
js 0x42d32c
xor eax, eax
lea ecx, [ebp - 0x20c]
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d313
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
jmp 0x42d337
xor eax, eax
push eax
mov word [esi], ax
push 0x5348ec
mov ecx, esi
call fcn.004084c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b4f32
mov esp, ebp
pop ebp
ret
Function at 0x42fb20
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x42fb4f
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b4f32
mov esp, ebp
pop ebp
ret
Function at 0x434c60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506bc7
mov eax, dword fs:[0]
push eax
mov eax, 0x13a4
call fcn.004b5ac0
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x13ac], ebx
mov eax, ecx
mov dword [ebp - 0x13a0], eax
mov dword [ebp - 0x13a4], eax
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x13b0], eax
mov dword [ebp - 0x13a8], 0
push ecx
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, eax
push 0x5348ec
call fcn.004084c0
mov dword [ebp - 4], 0
mov dword [ebp - 0x13a8], 1
call fcn.004a2ec2
mov edx, eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x1394], edx
mov ecx, 1
nop
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ebp + ecx*4 - 0x1394], edx
inc ecx
cmp ecx, 0x270
jb 0x434d10
mov edi, dword [ebx + 0x10]
dec edi
mov dword [ebp - 0x1398], 0x270
xor esi, esi
mov dword [ebp - 0x139c], esi
cmp edi, 0xffffffff
jne 0x434d59
lea ecx, [ebp - 0x1398]
call fcn.004361c0
mov edx, eax
jmp 0x434dae
lea ebx, [edi + 1]
mov dword [ebp - 0x13a4], ebx
jmp 0x434d67
lea ebx, [edi + 1]
xor ecx, ecx
xor eax, eax
test edi, edi
je 0x434d7f
lea ecx, [ebp - 0x1398]
call fcn.004361c0
mov ecx, eax
or eax, 0xffffffff
xor edx, edx
div ebx
mov esi, eax
mov ebx, edx
xor edx, edx
mov eax, ecx
div dword [ebp - 0x13a4]
cmp eax, esi
jb 0x434d99
cmp ebx, edi
jne 0x434d64
mov ebx, dword [ebp - 0x13ac]
mov eax, ecx
mov esi, dword [ebp - 0x139c]
lea ecx, [edi + 1]
xor edx, edx
div ecx
cmp dword [ebx + 0x10], edx
jbe 0x434dff
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x434dbd
mov eax, dword [ebx]
movzx ecx, word [eax + edx*2]
push ecx
mov ecx, dword [ebp - 0x13a0]
call fcn.0042bc50
inc esi
mov dword [ebp - 0x139c], esi
cmp esi, 6
jl 0x434d45
mov eax, dword [ebp - 0x13a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret
call fcn.0041ffd0
int3
Function at 0x4361c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x43621e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4361e0
mov eax, dword [edi]
jmp 0x436309
cmp eax, 0x4e0
jb 0x436309
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x436240
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x436290
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
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
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x438220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
xor edi, edi
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x43843e
cmp eax, 3
jb 0x438296
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x4382d3
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x4382d3
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4382bd
mov dword [esi + 0x6afa0], eax
mov edx, ebx
mov ecx, esi
call fcn.00437ef0
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x4383be
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
mov edx, ecx
mov ecx, esi
push eax
call fcn.00437860
mov ecx, dword [esi + 0x6af90]
add esp, 4
sub ecx, edi
mov dword [ebp - 4], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x438388
cmp ecx, 3
jb 0x438388
dec edi
nop word [eax + eax]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x438320
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [ebp - 4]
jmp 0x4383e5
mov edx, dword [esi + 0x6af84]
add edx, edi
xor edi, edi
mov dword [esi + 0x6af84], edx
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp - 4]
jmp 0x4383e5
movzx eax, byte [ecx + esi + 0x1af70]
xor edx, edx
push eax
mov ecx, esi
call fcn.00437860
dec dword [esi + 0x6af90]
add esp, 4
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
test eax, eax
je 0x43841c
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x4383fd
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x4383ff
xor ecx, ecx
sub edx, eax
push 0
push edx
mov edx, ecx
mov ecx, esi
call fcn.004374c0
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
mov eax, dword [esi + 0x6af90]
cmp eax, 0x106
jae 0x438436
mov ecx, esi
call fcn.004380c0
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x438245
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x438452
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x438454
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.004374c0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439200
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x43920b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4392c7
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x534258]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x534258]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x534258]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x534258]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x534258]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x534258]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x534258]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x534258]
sub edi, 1
jne 0x439220
pop edi
test esi, esi
je 0x4392ea
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x534258]
sub esi, 1
jne 0x4392d0
not ecx
mov eax, ecx
pop esi
pop ebp
ret