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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x56ab3e
push eax
mov eax, dword [ebp + 8]
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
or esi, 0xffffffff
push edi
mov ebx, ecx
cmp eax, esi
jne 0x4159e4
xor eax, eax
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x24]
mov edx, dword [ecx]
test edx, edx
je 0x415a08
mov ecx, dword [ebx + 0x34]
mov edi, dword [ecx]
add edi, edx
cmp edx, edi
jae 0x415a08
dec dword [ecx]
mov ebx, dword [ebx + 0x24]
mov ecx, dword [ebx]
lea edx, [ecx + 1]
mov dword [ebx], edx
mov byte [ecx], al
jmp 0x4159d0
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
jne 0x415a13
mov eax, esi
jmp 0x4159d0
cmp dword [ebx + 0x3c], 0
jne 0x415a2e
movsx eax, al
push ecx
push eax
call fcn.005091eb
pop ecx
cmp eax, esi
mov eax, dword [ebp + 8]
pop ecx
jne 0x4159d0
jmp 0x415a0f
push 0
push 8
pop edi
lea esi, [esp + 0x48]
mov byte [esp + 0x17], al
call fcn.0041611e
and dword [esp + 0x6c], 0
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00409b0e
mov ecx, eax
call fcn.00416e04
mov esi, dword [esp + 0x58]
mov edi, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.00409b0e
mov ecx, eax
call fcn.00416e04
lea edx, [esp + 0x18]
add esi, edi
push edx
lea edi, [ebx + 0x44]
jmp 0x415b3b
cmp eax, 1
jg 0x415b7b
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.00409b0e
mov ecx, eax
call fcn.00416e04
mov esi, dword [esp + 0x18]
sub esi, eax
je 0x415ad4
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
call fcn.00409b0e
mov ecx, eax
call fcn.00416e04
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.005099d3
add esp, 0x10
cmp esi, eax
jne 0x415b61
lea eax, [esp + 0x13]
mov byte [ebx + 0x41], 1
cmp dword [esp + 0x1c], eax
jne 0x415b97
test esi, esi
ja 0x415afe
cmp dword [esp + 0x58], 0x20
jae 0x415b61
push 0
push 8
lea ecx, [esp + 0x4c]
call fcn.00409466
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.00409b0e
mov ecx, eax
call fcn.00416e04
mov esi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.00409b0e
mov ecx, eax
call fcn.00416e04
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
add esi, edx
mov ecx, dword [ebx + 0x3c]
push esi
push eax
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x27]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
test eax, eax
jge 0x415a82
or esi, 0xffffffff
or dword [esp + 0x6c], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.004039a0
jmp 0x415a0f
cmp eax, 3
jne 0x415b61
movsx eax, byte [esp + 0x13]
push dword [ebx + 0x4c]
push eax
call fcn.005091eb
or esi, 0xffffffff
pop ecx
pop ecx
cmp eax, esi
je 0x415b64
mov esi, dword [ebp + 8]
jmp 0x415b64
Function at 0x41665a
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x569d6a
call fcn.0055a6a0
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x3c], 0
push esi
push edi
je 0x416773
cmp byte [ebx + 0x41], 0
je 0x416773
mov eax, dword [ebx]
push 0xffffffffffffffff
mov ecx, ebx
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x416696
xor al, al
jmp 0x416775
push 0
push 8
pop edi
lea esi, [ebp - 0x4c]
call fcn.0041611e
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00409b0e
mov ecx, eax
call fcn.00416e04
mov esi, dword [ebp - 0x38]
mov edi, eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00409b0e
mov ecx, eax
call fcn.00416e04
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
add esi, edi
push esi
push dword [ebp + 8]
lea eax, [ebx + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x41670d
dec eax
je 0x416711
dec eax
dec eax
je 0x41676f
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.004039a0
mov al, bl
jmp 0x416775
mov byte [ebx + 0x41], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00409b0e
mov ecx, eax
call fcn.00416e04
mov esi, dword [ebp - 0x10]
sub esi, eax
je 0x416751
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00409b0e
mov ecx, eax
call fcn.00416e04
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.005099d3
add esp, 0x10
cmp esi, eax
jne 0x4166f7
cmp byte [ebx + 0x41], 0
je 0x41676f
test esi, esi
jne 0x4166a7
push esi
push 8
lea ecx, [ebp - 0x4c]
call fcn.00409466
jmp 0x4166a7
mov bl, 1
jmp 0x4166f9
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x41bf2a
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x56bfbc
call fcn.0055a6a0
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x41bfea
push str.TORRENT_PATCH_ERROR
push ecx
call fcn.004032e1
pop ecx
mov esi, eax
call fcn.0040582a
push eax
lea ecx, [ebp - 0x10]
call fcn.00403311
mov dword [ebp - 4], ebx
cmp dword [edi + 0x3c], 8
jb 0x41bf72
mov edi, dword [edi + 0x28]
jmp 0x41bf75
add edi, 0x28
push edi
lea ecx, [ebp + 8]
call fcn.00403311
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push 0x804
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00489b40
add esp, 0x18
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00401017
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401017
push 0x1e
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00507370
mov eax, 0x614
mov word [ebp - 0x20], ax
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], str..Temp
mov dword [ebp - 0x16], str.Delete_fast_resume_data
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [0x5f9648]
mov eax, dword [ecx]
call dword [eax + 0xa8]
cmp eax, ebx
je 0x41c003
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x38]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x41e8c0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x404
mov eax, dword [0x5f168c]
xor eax, esp
mov dword [esp + 0x400], eax
push 0x200
lea eax, [esp + 4]
push eax
push 0x1001
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [esp]
push ecx
push 0
call fcn.0050d4cb
mov ecx, dword [esp + 0x408]
add esp, 8
xor ecx, esp
call fcn.0050a9d0
add esp, 0x404
ret
Function at 0x4209e0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x1c
mov eax, dword [0x5f168c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
cmp dword [0x621eb0], ebx
jne 0x420a02
call fcn.00420cd0
cmp dword [0x621eb8], 2
je 0x420a27
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0050a9d0
add esp, 0x1c
ret
lea eax, [esp + 0xc]
push eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x420a5c
lea ecx, [esp + 0xc]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x420b80
lea edx, [esp + 4]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], 5
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x420b38
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push 2
push edx
call esi
test eax, eax
jne 0x420b2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x420b2c
mov eax, dword [esp + 0x14]
push edi
push eax
call fcn.0050513d
mov edx, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push edx
mov edi, eax
mov eax, dword [esp + 0x1c]
push edi
push 2
push eax
call esi
test eax, eax
je 0x420b22
xor esi, esi
cmp dword [edi], ebx
jbe 0x420b22
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
push ebp
lea ebp, [edi + 4]
mov edi, edi
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp]
push ecx
push edx
call ebx
test eax, eax
je 0x420b17
mov dword [esp + 0x14], 1
inc esi
add ebp, 8
cmp esi, dword [edi]
jb 0x420b00
xor ebx, ebx
pop ebp
push edi
call fcn.005053fb
add esp, 4
pop edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 8], ebx
je 0x420b80
cmp dword [0x621eb0], ebx
jne 0x420b56
call fcn.00420cd0
cmp dword [0x621eb8], 2
jne 0x420b80
cmp dword [0x621eb0], 6
jb 0x420b80
lea eax, [esp + 4]
call fcn.00420ba0
test eax, eax
jne 0x420b7c
cmp dword [esp + 4], 3
jne 0x420b80
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 8]
pop ebx
xor ecx, esp
call fcn.0050a9d0
add esp, 0x1c
ret
Function at 0x420e30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea ecx, [esp + 4]
push ecx
push edx
mov eax, 4
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
xor esi, esi
push esi
push str.EnableLUA
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420e71
lea esi, [eax + 1]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x420e80
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret 4

Function at 0x423060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56b3e1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], vtable.CryptoPP::AlgorithmParameters.0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 1
call fcn.00423320
mov esi, dword [esp + 0x28]
push eax
mov ecx, esi
call fcn.0042f8f0
mov byte [esp + 0x20], 0
mov ecx, dword [esp + 0x10]
mov dword [esp + 8], 1
test ecx, ecx
je 0x4230ea
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret

Function at 0x424410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5693f8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
mov edi, edx
xor al, al
push edx
rep stosb byte es:[edi], al
call fcn.005053fb
mov dword [esp + 0x18], 0xffffffff
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x42446a
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x425c00
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x56b824
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x1c], 4
mov dword [esi + 0x14], ebx
lea eax, [esi + 0x18]
mov dword [esp + 0x1c], 6
mov dword [esp + 0x10], eax
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov cl, byte [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
mov byte [esp + 0x1c], 0xa
mov byte [esi + 0x28], cl
push 0xffffffffffffffff
lea ecx, [esi + 0x34]
mov dword [esi], vtable.CryptoPP::HashFilter.0
mov dword [esi + 4], vtable.CryptoPP::HashFilter.1.0
mov dword [esi + 0x24], eax
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00403a81
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
lea ecx, [esi + 0x50]
mov byte [esp + 0x20], 0xb
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00403a81
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov byte [esp + 0x1c], 0xc
jge 0x425cc6
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov dword [esi + 0x2c], eax
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x425cd8
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xc], ecx
mov dword [esp + 0x1c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 0x18

Function at 0x426230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56b2c1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], vtable.CryptoPP::AlgorithmParameters.0
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x30]
push eax
push ecx
lea edi, [esp + 0x18]
mov dword [esp + 0x2c], 1
call fcn.004262d0
push eax
mov ecx, esi
call fcn.0042f8f0
mov byte [esp + 0x24], 0
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], 1
test ecx, ecx
je 0x4262b2
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x42bda0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ecx, edi
shr ecx, 2
xor eax, eax
test ecx, ecx
jbe 0x42bde6
mov edi, ebx
sub esi, edx
mov eax, edx
sub edi, edx
mov dword [esp + 0xc], ecx
push ebp
mov ebp, dword [esi + eax]
xor ebp, dword [eax]
add eax, 4
sub ecx, 1
mov dword [edi + eax - 4], ebp
jne 0x42bdc8
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
pop ebp
add eax, eax
add eax, eax
sub edi, eax
je 0x42be11
add ebx, eax
add esi, eax
add edx, eax
test edi, edi
jbe 0x42be11
mov ecx, esi
mov esi, ebx
sub ecx, edx
mov eax, edx
sub esi, edx
mov dl, byte [eax + ecx]
xor dl, byte [eax]
inc eax
sub edi, 1
mov byte [eax + esi - 1], dl
jne 0x42be02
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42be20
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, eax
mov eax, ebp
shr eax, 2
xor ecx, ecx
xor edx, edx
test eax, eax
jbe 0x42be5c
mov edx, edi
sub esi, edi
mov dword [esp + 0xc], eax
push ebx
mov ebx, dword [esi + edx]
xor ebx, dword [edx]
add edx, 4
or ecx, ebx
sub eax, 1
jne 0x42be44
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
pop ebx
lea eax, [edx*4]
sub ebp, eax
jne 0x42be73
pop edi
xor eax, eax
test ecx, ecx
pop esi
sete al
pop ebp
pop ecx
ret
add esi, eax
add edi, eax
mov eax, ecx
shr eax, 0x18
mov edx, ecx
shr edx, 0x10
or al, dl
mov edx, ecx
shr edx, 8
or al, dl
or al, cl
test ebp, ebp
jbe 0x42bea3
mov ecx, edi
sub esi, edi
mov edi, ebp
mov dl, byte [ecx + esi]
xor dl, byte [ecx]
inc ecx
or al, dl
sub edi, 1
jne 0x42be96
xor ecx, ecx
test al, al
pop edi
sete cl
pop esi
mov al, cl
pop ebp
pop ecx
ret
Function at 0x42d650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x569b98
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f168c]
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 edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
mov edi, edx
xor al, al
push edx
rep stosb byte es:[edi], al
call fcn.005053fb
add esp, 4
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0042ded0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x42dfc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56b77b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.0042e140
xor eax, eax
mov dword [esp + 0x14], 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x42e2a0
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, ecx
call fcn.0042e470
lea eax, [esi + 0x60]
mov dword [eax + 0x48], 0x10
mov byte [eax + 0x41], 1
mov dword [eax + 0x4c], eax
mov eax, dword [esi + 0xac]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, esi
pop esi
ret
Function at 0x42fc40
Capabilities:
Encrypt data using twofish

Disassembly:
mov ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or eax, ecx
mov ecx, dword [esp + 4]
sub ecx, 2
je 0x42fcfc
sub ecx, 1
je 0x42fcb4
sub ecx, 1
jne 0x42fd87
mov edx, eax
shr edx, 0x18
movzx ecx, byte [edx + 0x5b4c40]
mov edx, eax
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x5b4b40]
shl ecx, 8
xor ecx, edx
mov edx, eax
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x5b4b40]
shl ecx, 8
movzx eax, al
xor ecx, edx
movzx edx, byte [eax + 0x5b4c40]
shl ecx, 8
xor ecx, edx
xor ecx, dword [esi + 0x18]
mov eax, ecx
mov ecx, eax
shr ecx, 0x18
movzx edx, byte [ecx + 0x5b4b40]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x5b4b40]
shl edx, 8
xor edx, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x5b4c40]
shl edx, 8
movzx eax, al
xor edx, ecx
movzx ecx, byte [eax + 0x5b4c40]
shl edx, 8
xor edx, ecx
xor edx, dword [esi + 0x10]
mov eax, edx
mov edx, eax
shr edx, 0x18
movzx ecx, byte [edx + 0x5b4c40]
mov edx, eax
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x5b4b40]
shl ecx, 8
xor ecx, edx
mov edx, eax
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x5b4c40]
movzx eax, al
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x5b4b40]
shl ecx, 8
xor ecx, edx
xor ecx, dword [esi + 8]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x5b4c40]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + 0x5b4c40]
shl eax, 8
xor eax, edx
mov edx, ecx
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x5b4b40]
shl eax, 8
xor eax, edx
movzx ecx, cl
movzx edx, byte [ecx + 0x5b4b40]
shl eax, 8
xor eax, edx
xor eax, dword [esi]
ret
Function at 0x430c00
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
push esi
mov esi, dword [edx + 4]
push edi
mov edi, dword [ecx + 0x2c]
xor edx, edx
bswap eax
bswap esi
test edi, edi
je 0x430c67
mov ecx, dword [ecx + 0x28]
push ebx
push ebp
lea ecx, [ecx]
mov ebx, esi
shr ebx, 5
mov ebp, esi
shl ebp, 4
xor ebx, ebp
add ebx, esi
mov ebp, edx
and ebp, 3
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ebx, ebp
add eax, ebx
mov ebx, eax
shr ebx, 5
mov ebp, eax
shl ebp, 4
xor ebx, ebp
sub edx, 0x61c88647
mov ebp, edx
shr ebp, 0xb
and ebp, 3
mov ebp, dword [ecx + ebp*4]
add ebx, eax
add ebp, edx
xor ebx, ebp
add esi, ebx
cmp edx, edi
jne 0x430c20
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x430c73
mov edx, dword [ecx]
jmp 0x430c75
xor edx, edx
bswap eax
xor eax, edx
mov edx, dword [esp + 0x14]
mov dword [edx], eax
test ecx, ecx
je 0x430c98
lea eax, [ecx + 4]
test eax, eax
je 0x430c98
mov eax, dword [eax]
bswap esi
xor esi, eax
pop edi
mov dword [edx + 4], esi
pop esi
ret 0xc
bswap esi
xor eax, eax
xor esi, eax
pop edi
mov dword [edx + 4], esi
pop esi
ret 0xc
Function at 0x4334a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56bae0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5f168c]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push 1
mov dword [esp + 0x20], eax
mov dword [esp + 8], eax
push 0x5f67c0
lea eax, [esp + 0xc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x7c]
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], vtable.CryptoPP::ArraySink.1.0
mov dword [esp + 0x20], vtable.CryptoPP::ArraySink.0
call edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0050a9d0
mov esp, ebp
pop ebp
ret 8

Function at 0x4335f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56bab0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5f168c]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ecx]
xor edx, edx
push 1
push 0x5f67c0
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
push eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x34], eax
push edx
mov edx, dword [esi + 0x80]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], vtable.CryptoPP::ArraySink.1.0
mov dword [esp + 0x30], vtable.CryptoPP::ArraySink.0
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0050a9d0
mov esp, ebp
pop ebp
ret 8
Function at 0x4387e9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
xor ecx, ecx
inc ecx
cmp dword [esi + ecx*4], eax
jne 0x438803
inc ecx
cmp ecx, 0x10
jl 0x4387f8
cmp ecx, 0x10
jne 0x438878
movzx edx, byte [esi + 2]
movzx ecx, byte [esi + 1]
movzx eax, al
lea esi, [edx + edx]
add eax, eax
movzx dx, byte [eax + 0x621c80]
movzx ax, byte [eax + 0x621c81]
add ecx, ecx
movzx bx, byte [ecx + 0x621a80]
movzx cx, byte [ecx + 0x621a81]
shl dx, 6
or dx, bx
movzx bx, byte [esi + 0x621c80]
shl ax, 6
or ax, cx
movzx cx, byte [esi + 0x621c81]
shl dx, 5
or dx, bx
shl ax, 5
or ax, cx
mov dword [ebp - 8], 0xaaaaaaaa
movzx edx, dx
movzx ebx, ax
jmp 0x438909
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.00438232
mov eax, dword [ebp - 4]
add esp, 0xc
cmp ax, word [ebp - 0xc]
je 0x4388ad
push dword [ebp - 0xc]
lea ecx, [ebp - 0x24]
call fcn.0043811f
push esi
lea ecx, [ebp - 0x24]
call fcn.0043814f
pop ecx
pop ecx
mov dword [ebp - 8], eax
jmp 0x4388b1
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
mov edx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
mov dword [ebp - 0x14], edx
call fcn.004384d8
mov ebx, dword [ebp - 0xc]
pop ecx
pop ecx
test eax, eax
je 0x438906
mov eax, dword [ebp - 4]
cmp ax, bx
je 0x438902
push ebx
lea ecx, [ebp - 0x24]
call fcn.0043811f
push esi
lea ecx, [ebp - 0x24]
call fcn.0043814f
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x14]
je 0x438906
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 1
jl 0x4388b5
jmp 0x438906
and dword [ebp - 8], 0
mov edx, dword [ebp - 4]
cmp dx, bx
jae 0x438927
movzx eax, bx
movzx eax, ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
movzx ebx, dx
mov edx, dword [ebp - 4]
xor eax, 0x55555555
jmp 0x43892a
mov eax, dword [ebp - 8]
mov ecx, eax
shr ecx, 8
mov byte [edi + 5], cl
mov ecx, eax
mov byte [edi + 2], bl
shr ebx, 8
mov byte [edi], dl
shr edx, 8
shr ecx, 0x10
mov byte [edi + 4], al
shr eax, 0x18
pop esi
mov byte [edi + 3], bl
mov byte [edi + 1], dl
mov byte [edi + 6], cl
mov byte [edi + 7], al
pop ebx
leave
ret