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

Disassembly:
sub esp, 0x14
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x10], 0
push edi
je 0x402fa6
mov edx, dword [esi + 0x18]
xor eax, eax
mov dword [esp + 0xc], eax
test edx, edx
jbe 0x402ef5
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x14]
cmp edi, dword [ecx]
je 0x402ef1
inc eax
add ecx, 0x10
cmp eax, edx
jb 0x402ee5
mov dword [esp + 0xc], eax
cmp eax, edx
jb 0x402f04
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 0xc
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, eax
mov dword [esp + 0x14], 0
mov edi, eax
shl ebp, 4
jmp 0x402f24
mov eax, dword [esp + 0x10]
test ebx, ebx
jbe 0x402f84
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + ebp]
mov dword [esi + 8], edx
mov byte [esi + 0x10], 0
cmp edi, eax
jbe 0x402f4b
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
mov ecx, esi
call fcn.00402490
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
push ebx
push edx
mov ecx, esi
mov dword [esp + 0x38], 0
call fcn.00402ec0
mov byte [esi + 0x10], 1
test al, al
je 0x402f9a
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], eax
add dword [esp + 0x28], eax
inc edi
sub ebx, eax
add ebp, 0x10
cmp edi, dword [esi + 0x18]
jb 0x402f20
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
pop ebp
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
add esp, 0x14
ret 0xc
pop ebp
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 0xc
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 8]
push 0
push edi
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [0x515f40]
setne bl
add eax, dword [edi]
mov dword [0x515f40], eax
cmp eax, 0x186a0
jbe 0x403017
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00402370
mov esi, dword [esi + 0xc]
mov eax, dword [esi + 0x201c]
mov ecx, dword [esi + 0x2018]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push 0
push 0
push 0
push 0
call fcn.004690f0
mov dword [0x515f40], 0
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x14
ret 0xc

Function at 0x403036
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
add dword [esi + 0x20], ebp
mov edx, dword [esi + 0x20]
push edi
adc dword [esi + 0x24], 0
mov eax, dword [esi + 0x24]
jne 0x40304d
test edx, edx
jbe 0x40306e
mov ecx, dword [esi + 0x2c]
mov edi, dword [esi + 0x28]
cmp eax, ecx
ja 0x40306e
jb 0x40305d
cmp edx, edi
jae 0x40306e
push 0
push 0
push 0
push 0
push ecx
push edi
push eax
push edx
call fcn.004690f0
cmp byte [esi + 5], 0
mov edi, dword [esp + 0x14]
mov bl, 1
je 0x403082
mov eax, dword [esp + 0x1c]
mov dword [eax], ebp
jmp 0x40309a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 8]
push 0
push ecx
push ebp
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
push ebp
push edi
push ecx
call fcn.0040e3e0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 0xc
Function at 0x4053e0
Capabilities:
Delete file

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
xor eax, eax
lea ebp, [esi + 0x100e]
mov word [ebp], ax
mov eax, dword [esi + 4]
lea ecx, [esp + 0xb]
push ecx
lea edx, [eax + 0x5024]
push edx
add eax, 0xb40a
push eax
mov ecx, esi
mov byte [esi + 0xc], 0
call fcn.00405000
test al, al
jne 0x405432
cmp byte [esp + 0xb], al
jne 0x405474
mov eax, dword [esi + 4]
add eax, 0xb40a
push eax
mov ecx, 0x52c138
call fcn.0043e1b0
pop esi
pop ebp
pop ecx
ret
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 4]
push edi
push edx
mov ecx, esi
call fcn.00404500
mov edi, dword [esi + 8]
test edi, edi
je 0x405458
mov ecx, edi
call fcn.00403270
push edi
call fcn.004e3756
add esp, 4
cmp byte [esi + 0xc], 0
mov dword [esi + 8], 0
pop edi
je 0x405474
cmp word [ebp], 0
je 0x405474
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
pop ecx
ret

Function at 0x406f60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
mov esi, ecx
mov ecx, dword [esp + 0x14]
push ecx
push 1
push edi
call fcn.004e4fb1
mov edx, dword [esi + 0x410]
add dword [esi + 0x424], eax
add esp, 0x10
push eax
push edi
push edx
call fcn.00439380
pop edi
mov dword [esi + 0x410], eax
pop esi
ret 0xc

Function at 0x407020
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
mov esi, ecx
call fcn.004e527a
push 2
push 0
push edi
mov ebp, eax
call fcn.004e5058
push edi
call fcn.004e527a
mov ebx, eax
sub ebx, 2
add esp, 0x14
cmp ebx, 0x20000
mov dword [esp + 0x14], ebx
jle 0x407062
mov dword [esp + 0x14], 0x20000
mov ebx, dword [esp + 0x14]
cmp ebp, ebx
jge 0x4070ae
push 0
push ebp
push edi
call fcn.004e5058
push edi
call fcn.004e4c0d
add esp, 0x10
and eax, 0xff
lea ecx, [ecx]
push edi
cmp eax, 0x60
je 0x407095
call fcn.004e4c0d
add esp, 4
and eax, 0xff
jmp 0x4070a9
call fcn.004e4c0d
and eax, 0xff
add esp, 4
cmp eax, 0xea
je 0x4070b8
inc ebp
cmp ebp, ebx
jl 0x407080
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
cmp ebp, ebx
jge 0x4070ae
push edi
call fcn.004e4c0d
mov ebx, eax
push edi
and ebx, 0xff
call fcn.004e4c0d
and eax, 0xff
shl eax, 8
add eax, ebx
mov ecx, 0xa28
add esp, 8
mov word [esi + 0x1a64], ax
cmp ax, cx
ja 0x40713c
movzx eax, ax
push edi
push eax
lea ebx, [esi + 0x42d]
push 1
push ebx
mov dword [esi + 0x410], 0xffffffff
call fcn.004e4fb1
mov edx, dword [esi + 0x410]
add dword [esi + 0x424], eax
add esp, 0x10
push eax
push ebx
push edx
call fcn.00439380
push edi
mov ecx, esi
mov dword [esi + 0x410], eax
call fcn.00406f00
mov ecx, dword [esi + 0x410]
not ecx
cmp ecx, eax
je 0x407150
inc ebp
cmp ebp, dword [esp + 0x14]
jge 0x4070ae
mov ebx, dword [esp + 0x14]
jmp 0x407066
push 0
push ebp
push edi
call fcn.004e5058
add esp, 0xc
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 4
Function at 0x407550
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push 0x1000
mov esi, ecx
call fcn.004e3b96
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x407572
mov ecx, 0x52c138
call fcn.0043dbd0
mov eax, dword [esi + 0x418]
push eax
call fcn.004e527a
and eax, 0xfff
mov edi, 0x1000
sub edi, eax
mov eax, dword [esi + 0x420]
add esp, 4
cmp eax, edi
jg 0x407599
mov edi, eax
test eax, eax
jle 0x40762c
mov ecx, dword [esi + 0x418]
push ecx
push edi
push 1
push ebx
call fcn.004e4fb1
add esp, 0x10
cmp eax, edi
jne 0x407617
mov edx, dword [esi + 4]
sub dword [esi + 0x420], edi
push edi
push ebx
push edx
call fcn.0040e3e0
mov eax, dword [esi + 0x410]
push edi
push ebx
push eax
call fcn.00439380
mov ecx, dword [esi + 0x414]
mov dword [esi + 0x410], eax
test ecx, ecx
je 0x4075ee
push edi
push ebx
call fcn.00442b00
mov edi, dword [esi + 0x420]
cmp edi, 0x1000
jbe 0x407601
mov edi, 0x1000
cmp dword [esi + 0x420], 0
jg 0x4075a1
push ebx
call fcn.004e3342
add esp, 4
pop edi
pop esi
pop ebx
ret
mov esi, dword [esi + 4]
lea eax, [esi + 0xb40a]
push eax
push eax
mov ecx, 0x52c138
call fcn.0043e0b0
push ebx
call fcn.004e3342
add esp, 4
pop edi
pop esi
pop ebx
ret

Function at 0x409190
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
shl eax, 0x18
test eax, eax
jns 0x4091a4
add eax, eax
xor eax, 0x4c11db7
jmp 0x4091a6
add eax, eax
test eax, eax
jns 0x4091b3
add eax, eax
xor eax, 0x4c11db7
jmp 0x4091b5
add eax, eax
test eax, eax
jns 0x4091c2
add eax, eax
xor eax, 0x4c11db7
jmp 0x4091c4
add eax, eax
test eax, eax
jns 0x4091d1
add eax, eax
xor eax, 0x4c11db7
jmp 0x4091d3
add eax, eax
test eax, eax
jns 0x4091e0
add eax, eax
xor eax, 0x4c11db7
jmp 0x4091e2
add eax, eax
test eax, eax
jns 0x4091ef
add eax, eax
xor eax, 0x4c11db7
jmp 0x4091f1
add eax, eax
test eax, eax
jns 0x4091fe
add eax, eax
xor eax, 0x4c11db7
jmp 0x409200
add eax, eax
test eax, eax
jns 0x40920d
add eax, eax
xor eax, 0x4c11db7
jmp 0x40920f
add eax, eax
mov dword [ecx*4 + 0x515fe0], eax
inc ecx
cmp ecx, 0x100
jl 0x409192
ret

Function at 0x40cf70
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [esp + 0x10]
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea ecx, [esp + 0x1c]
push ecx
push edi
call ebx
test eax, eax
je 0x40cfd7
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
lea esp, [esp]
cmp dword [esp + 0x10], 1
jne 0x40cfcc
mov al, byte [esp + 0x18]
mov byte [esi], al
test al, al
je 0x40cfcc
dec ebp
test ebp, ebp
jle 0x40cfcc
push 0
lea edx, [esp + 0x14]
push edx
push 1
lea eax, [esp + 0x24]
push eax
push edi
inc esi
call ebx
test eax, eax
jne 0x40cfa0
mov byte [esi], 0
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x14]
pop edi
mov byte [ecx], 0
pop ebx
pop ecx
ret 0xc
Function at 0x40e470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call fcn.00451a10
mov ebx, dword [esp + 0x10]
push edi
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.004675f0
push esi
call fcn.00443cc0
test al, al
je 0x40e4ae
pop edi
pop esi
mov al, 1
pop ebx
ret 0xc
lea eax, [esp + 0x18]
push eax
push 1
xor edx, edx
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathswinrar.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov word [esi], dx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e4fb
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + edi]
push 0
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00451a10
push edi
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.004675f0
push esi
call fcn.00443cc0
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x4138e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
test esi, esi
jbe 0x41391c
movzx ecx, byte [edi]
xor ecx, eax
shrd eax, edx, 8
and ecx, 0xff
xor eax, dword [ecx*8 + 0x51a408]
shr edx, 8
xor edx, dword [ecx*8 + 0x51a40c]
dec esi
inc edi
test esi, esi
ja 0x4138f6
pop edi
pop esi
ret 0x10
Function at 0x415d30
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jbe 0x415d6d
push esi
mov esi, dword [esp + 8]
push edi
mov edi, edi
movzx eax, word [ecx + 0x8510]
movsx edi, byte [esi]
xor edi, eax
and edi, 0xff
shr ax, 8
xor ax, word [ecx + edi*2 + 8]
dec edx
inc esi
mov word [ecx + 0x8510], ax
test edx, edx
ja 0x415d40
pop edi
pop esi
ret 8
mov ax, word [ecx + 0x8510]
ret 8

Function at 0x41c7e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jbe 0x41c814
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
movzx ebx, byte [esi]
mov edi, eax
shr edi, 8
xor edi, ebx
and edi, 0xff
shl eax, 8
xor eax, dword [ecx + edi*4 + 0x1a90]
dec edx
inc esi
test edx, edx
ja 0x41c7f1
pop edi
pop esi
pop ebx
movzx eax, ax
ret 8
Function at 0x42a330
Capabilities:
Check if file exists

Disassembly:
mov byte [ecx + 0x7688], 0
jmp fcn.00442730
Function at 0x432bf0
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x5363d8], 2
push esi
push edi
mov edi, eax
mov esi, ecx
jl 0x432c04
call fcn.00431a90
push 0xf0
push 0
push esi
call fcn.004e4400
mov dword [esi + 0x100], 0
mov byte [esi + 0x104], 0
mov eax, dword [esi + 0xf4]
mov dword [eax], 0x6a09e667
mov ecx, dword [esi + 0xf4]
mov dword [ecx + 4], 0xbb67ae85
mov edx, dword [esi + 0xf4]
mov dword [edx + 8], 0x3c6ef372
mov eax, dword [esi + 0xf4]
mov dword [eax + 0xc], 0xa54ff53a
mov ecx, dword [esi + 0xf4]
mov dword [ecx + 0x10], 0x510e527f
mov edx, dword [esi + 0xf4]
mov dword [edx + 0x14], 0x9b05688c
mov eax, dword [esi + 0xf4]
mov edx, dword [esp + 0x18]
mov dword [eax + 0x18], 0x1f83d9ab
mov ecx, dword [esi + 0xf4]
mov dword [ecx + 0x1c], 0x5be0cd19
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov eax, dword [esi + 0xf4]
xor dword [eax + 8], edx
mov esi, dword [esi + 0xf4]
or edi, 0x2000
shl edi, 0x10
xor dword [esi + 0xc], edi
add esp, 0xc
pop edi
pop esi
ret 4
Function at 0x433d50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f8a8b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x514bc0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.00455050
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x24]
mov dword [esi], eax
mov dword [esi + 0x3c], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], 1
call fcn.004685d0
mov ecx, dword [esi]
push 0x40000
push ecx
push 0x4349f0
mov ecx, edi
mov dword [esi + 4], eax
call fcn.00455070
mov ecx, edi
call fcn.00455020
mov dword [esi + 0x10], ebx
mov dword [esp + 0x1c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x4344d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f8afb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x514bc0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
mov eax, dword [esi + 8]
push eax
call fcn.004e44b4
mov eax, dword [esi + 0x30]
add esp, 4
test eax, eax
je 0x434534
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push 0x433df0
push ecx
push 0x8a4
push eax
call fcn.004e6876
push edi
call fcn.004e44b4
add esp, 4
mov edx, dword [esi + 4]
push edx
call fcn.004687a0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esi + 0x14]
call fcn.00455010
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4390d0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push ebp
push esi
xor eax, eax
push edi
mov dword [esp + 0x10], ecx
mov word [ecx + 0xa3ea], ax
mov byte [ecx + 0xa3e1], al
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
mov bl, 1
push 0
push 0
push edi
call fcn.00467720
test eax, eax
je 0x43915b
sub eax, edi
sar eax, 1
add eax, 2
mov ebp, eax
lea ecx, [ebp + ebp]
push ecx
call fcn.004e3b96
mov esi, eax
add esp, 4
test esi, esi
je 0x43915b
push ebp
push esi
push edi
call fcn.00467720
mov edi, eax
test edi, edi
je 0x43915b
test bl, bl
jne 0x43914e
mov ecx, dword [esp + 0x10]
push esi
cmp byte [esp + 0x1c], bl
je 0x439149
call fcn.00438fc0
push esi
call fcn.004e3342
add esp, 4
jmp 0x4390f2
call fcn.00438d00
push esi
call fcn.004e3342
add esp, 4
xor bl, bl
jmp 0x4390f2
cmp byte [esp + 0x18], 0
pop edi
pop esi
pop ebp
pop ebx
jne 0x43916e
mov ecx, dword [esp]
call fcn.00437120
pop ecx
ret 0xc

Function at 0x439380
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x4393af
test cl, 7
je 0x4393af
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x527910]
dec esi
inc ecx
test esi, esi
ja 0x439392
cmp esi, 8
jb 0x439448
mov edi, esi
push ebx
shr edi, 3
push ebp
nop
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x527d10]
mov dword [esp + 0x14], ecx
mov ebp, edx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x527910]
mov ecx, edx
shr ecx, 8
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x528110]
mov ebp, eax
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x528910]
mov ecx, eax
shr ecx, 0x10
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x528d10]
mov ecx, eax
shr ecx, 8
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x529110]
mov ecx, dword [esp + 0x14]
movzx edx, dl
xor ebx, dword [edx*4 + 0x528510]
movzx eax, al
xor ebx, dword [eax*4 + 0x529510]
sub esi, 8
add ecx, 8
sub edi, 1
mov eax, ebx
jne 0x4393c0
pop ebp
pop ebx
test esi, esi
jbe 0x439468
lea esp, [esp]
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x527910]
dec esi
inc ecx
test esi, esi
ja 0x439450
pop edi
pop esi
ret 0xc
Function at 0x439700
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
test esi, esi
jbe 0x439743
test bl, 7
je 0x43973f
movzx ecx, byte [ebx]
movzx edi, al
shrd eax, edx, 8
xor ecx, edi
xor eax, dword [ecx*8 + 0x523910]
shr edx, 8
xor edx, dword [ecx*8 + 0x523914]
dec esi
inc ebx
test esi, esi
ja 0x439717
mov dword [esp + 0x1c], esi
mov ecx, esi
shr ecx, 3
lea ecx, [ebx + ecx*8]
mov dword [esp + 0x18], ecx
cmp ebx, ecx
jae 0x439831
push ebp
mov ecx, dword [ebx]
xor ecx, eax
mov eax, dword [ebx + 4]
xor eax, edx
mov edx, eax
shr edx, 0x10
movzx esi, dl
mov edi, dword [esi*8 + 0x524110]
mov esi, dword [esi*8 + 0x524114]
mov edx, eax
shr edx, 0x18
movzx edx, dl
xor edi, dword [edx*8 + 0x523910]
xor esi, dword [edx*8 + 0x523914]
mov edx, eax
shr edx, 8
movzx edx, dl
xor edi, dword [edx*8 + 0x524910]
xor esi, dword [edx*8 + 0x524914]
movzx edx, al
xor edi, dword [edx*8 + 0x525110]
xor esi, dword [edx*8 + 0x525114]
mov ebp, eax
mov edx, ecx
shrd edx, ebp, 0x18
movzx edx, dl
xor edi, dword [edx*8 + 0x525910]
xor esi, dword [edx*8 + 0x525914]
shr ebp, 0x18
mov ebp, eax
mov edx, ecx
shrd edx, ebp, 0x10
movzx edx, dl
xor edi, dword [edx*8 + 0x526110]
xor esi, dword [edx*8 + 0x526114]
mov edx, ecx
shrd edx, eax, 8
mov dword [esp + 0x18], eax
shr eax, 8
movzx eax, dl
xor edi, dword [eax*8 + 0x526910]
xor esi, dword [eax*8 + 0x526914]
movzx eax, cl
xor esi, dword [eax*8 + 0x527114]
xor edi, dword [eax*8 + 0x527110]
add ebx, 8
shr ebp, 0x10
mov eax, edi
mov edx, esi
cmp ebx, dword [esp + 0x1c]
jb 0x439758
mov esi, dword [esp + 0x20]
pop ebp
and esi, 7
jbe 0x439859
movzx ecx, byte [ebx]
movzx edi, al
shrd eax, edx, 8
xor ecx, edi
xor eax, dword [ecx*8 + 0x523910]
shr edx, 8
xor edx, dword [ecx*8 + 0x523914]
dec esi
inc ebx
test esi, esi
ja 0x439836
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x439860
Capabilities:
Encode data using xor

Disassembly:
xor dl, dl
push esi
mov esi, dword [esp + 8]
mov byte [ecx + 0x10b6], dl
mov byte [ecx + 0x10b5], dl
mov byte [ecx + 0x10b4], dl
mov al, byte [esi]
cmp al, dl
je 0x4398a4
push ebx
mov bl, byte [ecx + 0x10b6]
add byte [ecx + 0x10b4], al
xor byte [ecx + 0x10b5], al
add bl, al
rol bl, 1
inc esi
mov byte [ecx + 0x10b6], bl
mov al, byte [esi]
cmp al, dl
jne 0x439880
pop ebx
pop esi
ret 4
Function at 0x4398b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xba4]
push eax
call fcn.00439230
mov edi, dword [esp + 0xc]
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4398d0
sub eax, edx
push eax
push edi
push 0xffffffffffffffff
call fcn.00439380
mov word [esi + 0x10b8], ax
shr eax, 0x10
xor ecx, ecx
xor edx, edx
mov word [esi + 0x10ba], ax
mov word [esi + 0x10be], cx
mov word [esi + 0x10bc], dx
mov al, byte [edi]
test al, al
je 0x439946
mov edx, edi
lea ecx, [ecx]
movzx ecx, al
mov di, word [esi + ecx*4 + 0xba4]
lea ecx, [esi + ecx*4 + 0xba4]
movzx ax, al
xor di, ax
xor word [esi + 0x10bc], di
mov cx, word [ecx + 2]
add cx, ax
add word [esi + 0x10be], cx
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x439910
pop edi
pop esi
ret 4

Function at 0x4399b0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
mov eax, ecx
test edi, edi
je 0x439a6a
push ebx
push esi
mov esi, dword [esp + 0x10]
jmp 0x4399d0
mov ecx, 0x1234
add word [eax + 0x10b8], cx
movzx ecx, word [eax + 0x10b8]
mov edx, ecx
shr edx, 1
and edx, 0xff
movzx edx, word [eax + edx*4 + 0xba4]
xor word [eax + 0x10ba], dx
mov bx, word [eax + 0x10be]
mov edx, ecx
shr edx, 1
and edx, 0xff
movzx edx, word [eax + edx*4 + 0xba6]
sub word [eax + 0x10bc], dx
movzx edx, word [eax + 0x10bc]
xor edx, ecx
mov word [eax + 0x10b8], dx
mov edx, 1
mov ecx, edx
dec edi
ror bx, cl
inc esi
xor bx, word [eax + 0x10ba]
ror bx, cl
movzx ecx, bx
xor word [eax + 0x10b8], cx
mov word [eax + 0x10be], cx
movzx ecx, word [eax + 0x10b8]
shr ecx, 8
xor byte [esi - 1], cl
test edi, edi
jne 0x4399d0
pop esi
pop ebx
pop edi
ret 8

Function at 0x439a70
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov eax, dword [esp + 4]
inc eax
mov edx, 4
push esi
jmp 0x439a80
movzx esi, byte [eax - 1]
mov esi, dword [ecx + esi*4 + 0xba4]
xor dword [ecx + 0x10a4], esi
movzx esi, byte [eax]
mov esi, dword [ecx + esi*4 + 0xba4]
xor dword [ecx + 0x10a8], esi
movzx esi, byte [eax + 1]
mov esi, dword [ecx + esi*4 + 0xba4]
xor dword [ecx + 0x10ac], esi
movzx esi, byte [eax + 2]
mov esi, dword [ecx + esi*4 + 0xba4]
xor dword [ecx + 0x10b0], esi
add eax, 4
sub edx, 1
jne 0x439a80
pop esi
ret 4
Function at 0x439eb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1d8
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x1d4], eax
mov eax, dword [esp + 0x1ec]
push ebx
mov ebx, dword [esp + 0x1e8]
push esi
mov esi, dword [esp + 0x1e8]
push edi
mov edi, dword [esp + 0x1e8]
mov dword [esp + 0xc], eax
cmp esi, 0x40
jbe 0x439f29
lea ecx, [esp + 0xf0]
push ecx
call fcn.00466830
push esi
push edi
lea edx, [esp + 0xf8]
push edx
call fcn.00466ce0
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0xf4]
push ecx
call fcn.00466d90
lea edi, [esp + 0x1a0]
mov esi, 0x20
xor eax, eax
test esi, esi
jbe 0x439f55
push ebp
mov ebp, edi
lea edx, [esp + 0x164]
sub ebp, edx
jmp 0x439f40
lea ecx, [esp + eax + 0x164]
mov dl, byte [ecx + ebp]
xor dl, 0x36
inc eax
mov byte [ecx], dl
cmp eax, esi
jb 0x439f40
pop ebp
cmp esi, 0x40
jae 0x439f74
mov ecx, 0x40
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x164]
push 0x36
push eax
call fcn.004e4400
add esp, 0xc
lea edx, [esp + 0x10]
push edx
call fcn.00466830
push 0x40
lea eax, [esp + 0x164]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00466ce0
mov edx, dword [esp + 0x1f4]
push edx
push ebx
lea eax, [esp + 0x18]
push eax
call fcn.00466ce0
lea ecx, [esp + 0x1c0]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00466d90
lea eax, [esp + 0x80]
push eax
call fcn.00466830
xor eax, eax
test esi, esi
jbe 0x439fe7
lea ecx, [esp + 0x160]
sub edi, ecx
lea ecx, [esp + eax + 0x160]
mov dl, byte [edi + ecx]
xor dl, 0x5c
inc eax
mov byte [ecx], dl
cmp eax, esi
jb 0x439fd3
cmp esi, 0x40
jae 0x43a006
mov ecx, 0x40
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x164]
push 0x5c
push eax
call fcn.004e4400
add esp, 0xc
push 0x40
lea edx, [esp + 0x164]
push edx
lea eax, [esp + 0x88]
push eax
call fcn.00466ce0
push 0x20
lea ecx, [esp + 0x1c4]
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.00466ce0
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.00466d90
mov ecx, dword [esp + 0x1e0]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e34f4
add esp, 0x1d8
ret 0x14