joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5665b3
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x608082
call fcn.0059d590
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.00402cc4
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
call fcn.00402cc4
or dword [esi + 0x18], 0xffffffff
or dword [esi + 0x30], 0xffffffff
mov edi, 0x68f370
mov byte [ebp - 4], 1
push edi
mov dword [esi], 0x622cb0
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov byte [esi + 6], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x40]
call fcn.004029af
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x34]
call fcn.004029af
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
mov eax, 0x608082
call fcn.0059d590
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.00402cc4
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
call fcn.00402cc4
or dword [esi + 0x18], 0xffffffff
or dword [esi + 0x30], 0xffffffff
mov edi, 0x68f370
mov byte [ebp - 4], 1
push edi
mov dword [esi], 0x622cb0
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov byte [esi + 6], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x40]
call fcn.004029af
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x34]
call fcn.004029af
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x58086a
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x60a770
call fcn.0059d590
sub esp, 0x1c
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x5808ee
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x5808ee
lea ecx, [ebp - 0x28]
call fcn.00402cc4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402cc4
and dword [ebp - 0x10], 0
push edi
mov dword [ebp - 4], 1
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004029af
push esi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.004029af
lea eax, [ebp - 0x28]
push eax
push 0x5807ad
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.005808fe
mov eax, esi
jmp 0x5808f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x5862d5
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x10
push dword [ebp + 8]
mov ebx, ecx
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebx + 0x10], 0xb7e15163
lea eax, [ebx + 0x14]
push 0x19
pop ecx
mov edx, dword [eax - 4]
sub edx, 0x61c88647
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x5862fa
xor edi, edi
xor esi, esi
mov dword [ebp + 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], 0x4e
mov eax, dword [ebx + esi*4 + 0x10]
push 3
add eax, dword [ebp + 8]
add eax, dword [ebp - 4]
push eax
call fcn.005863fe
mov dword [ebx + esi*4 + 0x10], eax
mov ecx, eax
lea eax, [esi + 1]
push 0x1a
cdq
pop esi
mov dword [ebp - 4], ecx
idiv esi
mov eax, dword [ebp + 8]
mov esi, edx
lea edx, [eax + ecx]
push edx
mov edx, dword [ebx + edi*4]
add edx, eax
add edx, ecx
push edx
call fcn.005863fe
add esp, 0x10
mov dword [ebx + edi*4], eax
mov dword [ebp + 8], eax
lea eax, [edi + 1]
push 4
cdq
pop ecx
idiv ecx
dec dword [ebp - 8]
mov edi, edx
jne 0x58631c
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x586376
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
push 8
mov dword [ebp - 8], ecx
cdq
pop esi
idiv esi
shl eax, 3
test eax, eax
jle 0x5863f9
cdq
idiv esi
test eax, eax
jle 0x5863f9
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
jmp 0x5863a3
mov ecx, dword [ebp - 8]
mov esi, dword [ebx]
mov edi, dword [ecx + 0x14]
add esi, dword [ecx + 0x10]
add edi, dword [ebx + 4]
add ecx, 0x1c
mov dword [ebp + 8], 0xc
mov dword [ebp + 0xc], ecx
mov eax, edi
push edi
xor eax, esi
push eax
call fcn.005863fe
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx - 4]
mov esi, eax
xor edi, esi
push esi
push edi
call fcn.005863fe
mov ecx, dword [ebp + 0xc]
add dword [ebp + 0xc], 8
add esp, 0x10
add eax, dword [ecx]
dec dword [ebp + 8]
mov edi, eax
jne 0x5863bb
mov dword [ebx], esi
mov dword [ebx + 4], edi
add ebx, 8
dec dword [ebp - 4]
jne 0x5863a0
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x58641b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
push 8
cdq
pop ecx
idiv ecx
shl eax, 3
test eax, eax
jle 0x5865ea
cdq
idiv ecx
test eax, eax
jle 0x5865ea
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 4
mov dword [ebp - 0x1c], eax
pop edi
mov esi, 0xff
mov dword [ebp + 0xc], edi
mov eax, dword [ebp - 0x18]
and dword [ebp - 0x10], 0
add eax, 0x10
push 4
push eax
lea eax, [ebp - 0xc]
push eax
call sub.MSVCRT.dll_memcpy
lea ebx, [edi - 4]
add esp, 0xc
cmp ebx, edi
jge 0x5864e0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add eax, 0xfffffffc
mov cl, 0x67
sub edi, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
add dword [ebp - 8], 8
mov dword [ebp - 0x14], eax
mov eax, ebx
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dl, byte [edx + eax]
mov al, bl
sub al, 0x29
imul bl
imul cl
xor edx, eax
mov eax, ebx
sar eax, 4
dec cl
imul cl
xor edx, eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov al, byte [ebx + eax]
xor edx, eax
mov al, byte [ebp + edi - 0xc]
and eax, esi
and edx, esi
shl eax, cl
shl edx, cl
add eax, dword [ebp - 0x10]
add eax, edx
inc ebx
cmp ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
jl 0x58647e
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
and dword [ebp - 0x14], 0
add eax, 0x14
push 4
push eax
lea eax, [ebp - 0xc]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [edi + 4]
add esp, 0xc
cmp edi, eax
mov ebx, edi
jge 0x586578
mov eax, dword [ebp - 4]
add eax, 0x20
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ebp - 4]
mov edi, ebx
add ecx, 0xfffffffc
add dword [ebp - 8], 8
add eax, 0xffffffe0
sub edi, ecx
mov dword [ebp - 0x20], eax
mov eax, ebx
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov cl, 0x67
sub edi, 4
mov dl, byte [edx + eax]
mov al, bl
sub al, 0x29
imul bl
imul cl
xor edx, eax
mov eax, ebx
sar eax, 4
dec cl
imul cl
xor edx, eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov al, byte [ebx + eax]
xor edx, eax
mov al, byte [ebp + edi - 0xc]
and eax, esi
and edx, esi
shl eax, cl
shl edx, cl
add eax, dword [ebp - 0x14]
add eax, edx
inc ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
add eax, 4
cmp ebx, eax
jl 0x58650b
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0xc
lea ebx, [ecx + 0x1c]
jmp 0x586593
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0xc]
xor ecx, eax
push ecx
call fcn.005863fe
add eax, dword [ebx - 4]
mov dword [ebp - 8], eax
push eax
mov eax, dword [ebp + 0xc]
xor eax, dword [ebp - 8]
push eax
call fcn.005863fe
add eax, dword [ebx]
add esp, 0x10
add ebx, 8
dec dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
jne 0x586590
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add dword [ebp - 4], 0x40
mov dword [eax + edi - 4], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi + eax], ecx
add edi, 8
dec dword [ebp - 0x1c]
mov dword [ebp + 0xc], edi
jne 0x586458
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x589c7f
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edx, esi
mov edi, 0xfffffef8
imul edx, esi
lea eax, [ecx + 0x108]
sub edi, ecx
xor dword [eax - 0x100], esi
xor dword [eax], edx
add eax, 4
lea ecx, [edi + eax]
cmp ecx, 0x100
jl 0x589c97
pop edi
pop esi
ret 4

Function at 0x5950cb
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x595230
mov al, byte [0x68f370]
mov ecx, 0xff
mov byte [ebp - 0x508], al
xor eax, eax
lea edi, [ebp - 0x507]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x508]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
mov esi, 0x692650
add esp, 0xc
and dword [ebp - 4], 0
mov ebx, esi
mov edi, 0x400
lea eax, [ebp - 0x508]
push eax
push ebx
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x595145
inc dword [ebp - 4]
add ebx, edi
cmp ebx, 0x693250
jl 0x595125
cmp dword [ebp - 4], 3
jl 0x595230
lea eax, [ebp - 0x508]
push edi
push eax
mov eax, dword [0x693250]
shl eax, 0xa
add eax, esi
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [0x693250]
push 3
mov ecx, eax
xor edx, edx
shl ecx, 0xa
and byte [ecx + 0x692a4f], 0
inc eax
pop ecx
div ecx
lea eax, [ebp - 8]
push eax
mov dword [0x693250], edx
call dword [sym.imp.MSVCRT.dll_time]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
mov esi, str.debug.log
lea edi, [ebp - 0x108]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x3d
mov ebx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0xfe]
push str.debug
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll__mkdir]
mov eax, dword [ebx + 0x10]
add esp, 0x18
push dword [ebx + 0xc]
inc eax
push eax
mov eax, dword [ebx + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x108]
push str.._debug__u__u__u.log
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x108]
push 0x6854ac
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x595230
lea eax, [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_ctime]
pop ecx
push eax
lea eax, [ebp - 0x508]
push eax
push str._s_____s
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x595235
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
lea eax, [ebp - 0x400]
push 0x67ab34
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x14
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret
Function at 0x5959a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
push dword [ebp + 8]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5959ea
and dword [ebp - 4], eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
leave
ret
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
leave
ret

Function at 0x595a26
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
cmp dword [ebp + 8], 0
push esi
push edi
je 0x595b9c
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x595b9c
cmp dword [ebp + 0xc], 0
jl 0x595b7b
cmp dword [ebp + 0xc], 2
jge 0x595b7b
push 9
mov esi, str.SOFTWARETqdigitalConquerAccounts_
pop ecx
lea edi, [ebp - 0x124]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x37
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.MSVCRT.dll_strncat]
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov edi, 0x103
dec eax
jne 0x595aa4
push edi
lea eax, [ebp - 0x124]
push 0x679e74
push eax
call esi
add esp, 0xc
push edi
lea eax, [ebp - 0x124]
push dword [ebp + 8]
push eax
call esi
and byte [ebp - 0x224], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x223]
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x124]
push str.tqDir
push eax
call fcn.005959a0
add esp, 0x1c
test al, al
je 0x595b9c
and byte [ebp - 0x10], 0
xor eax, eax
lea edi, [ebp - 0xf]
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x124]
push str.tqValue
push eax
call fcn.005959a0
add esp, 0x10
test al, al
je 0x595b9c
lea eax, [ebp - 0x224]
push 0x67d878
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x595b9c
and byte [ebp - 0x20], 0
xor eax, eax
lea edi, [ebp - 0x1f]
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push 1
pop ebx
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x20]
push 0x10
push eax
call dword [sym.imp.MSVCRT.dll_fread]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_strcmp
add esp, 0x18
test eax, eax
je 0x595b6e
xor bl, bl
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov al, bl
pop ebx
jmp 0x595b9e
push 0x3bb
push str.E:CQ2ClientRelease_18.26.8BaseCodeBaseFunc.cpp
push str.nChargesType___0__nChargesType___SERVER_CHARGE_MAX
push str.CHECKF
push 0x6765b8
call fcn.005950cb
add esp, 0x14
xor al, al
pop edi
pop esi
leave
ret
Function at 0x59887c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x5988cf
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 0
push 0
push ebx
call esi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 1
lea eax, [ebp + 0xb]
push 1
push eax
call edi
push ebx
push 1
lea eax, [ebp - 1]
push 1
push eax
call edi
push 0
push 0
push ebx
call esi
add esp, 0x38
cmp byte [ebp + 0xb], 0x1f
pop edi
pop esi
jne 0x5988cf
cmp byte [ebp - 1], 0x8b
jne 0x5988cf
mov al, 1
jmp 0x5988d1
xor al, al
pop ebx
leave
ret 4

Function at 0x5988d6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 2
push 0xfffffffffffffffc
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fseek]
push dword [ebp + 8]
lea eax, [ebp - 4]
push 4
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [ebp - 4]
add esp, 0x1c
leave
ret 4

Function at 0x598947
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
cmp byte [eax + 4], 0
je 0x59896b
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x59896b
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx]
imul edx, dword [ebp + 0x10]
push edx
push dword [ebp + 8]
call dword [eax + 0x3c]
jmp 0x5989aa
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x598997
push 0xd2
push str.E:CQ2ClientRelease_18.26.8BaseCodegzfile.cpp
push str.NULL___m_fp
push str.CHECKF
push 0x6765b8
call fcn.005950cb
add esp, 0x14
xor eax, eax
jmp 0x5989aa
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
pop ebp
ret 0xc

Function at 0x598a17
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
push edi
mov esi, ecx
je 0x598a7d
call fcn.00598a9c
push 0x67eea4
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x598a7d
push edi
call dword [sym.imp.MSVCRT.dll__fileno]
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
push eax
mov dword [esi + 8], eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 0xc
mov dword [esi + 4], eax
test eax, eax
push edi
je 0x598a76
push 1
push dword [esi + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
push edi
je 0x598a81
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor al, al
jmp 0x598a97
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push dword [esi + 8]
mov ecx, esi
push dword [esi + 4]
call fcn.00598b3c
mov al, 1
pop edi
pop esi
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, ecx
je 0x598b85
cmp dword [ebp + 0xc], esi
jle 0x598b85
push ebx
mov eax, esi
mov ecx, 0x80
cdq
idiv ecx
mov eax, dword [ebp + 8]
push 8
pop ecx
mov bl, byte [edx + edi + 0x10]
xor bl, byte [esi + eax]
mov eax, esi
cdq
idiv ecx
mov al, bl
sub ecx, edx
shl al, cl
mov cl, dl
shr bl, cl
mov ecx, dword [ebp + 8]
add al, bl
mov byte [esi + ecx], al
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x598b50
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x598b8b
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x60c11c
call fcn.0059d590
sub esp, 0x460
and byte [0x693280], 0
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x598bb2
xor eax, eax
jmp 0x598c72
and byte [ebp - 0xe], 0
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], 0x72
push dword [ebp + 8]
mov byte [ebp - 0xf], 0x62
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
push 3
lea eax, [ebp - 0x10]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x14
cmp ebx, esi
jne 0x598be8
or eax, 0xffffffff
jmp 0x598c72
push edi
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
lea ecx, [ebp - 0x6c]
call fcn.005995b9
mov edi, 0x400
push ebx
push edi
lea eax, [ebp - 0x46c]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push 1
push eax
call esi
xor ecx, ecx
add esp, 0x10
cmp ecx, eax
sbb eax, eax
neg eax
je 0x598c44
push eax
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00599718
push ebx
push edi
lea eax, [ebp - 0x46c]
push 1
push eax
jmp 0x598c18
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
lea ecx, [ebp - 0x6c]
mov dword [esp], 0x693280
call fcn.00599649
xor eax, eax
xor ecx, ecx
pop edi
movsx edx, byte [ecx + 0x693280]
xor edx, eax
shl edx, 1
inc ecx
mov eax, edx
cmp ecx, 0x21
jb 0x598c5f
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x5995b9
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 4]
mov dword [esi], 0x623a3c
push eax
call sub.MSVCRT.dll_memset
and dword [esi + 0x48], 0
and dword [esi + 0x44], 0
add esp, 0xc
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret

Function at 0x59bbe8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x60c31f
call fcn.0059d590
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
or dword [esi + 8], 0xffffffff
or dword [esi + 4], 0xffffffff
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], edi
mov dword [esi], 0x623f28
lea ecx, [esi + 0x14]
mov dword [ebp - 4], edi
call fcn.00402cc4
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call fcn.00402cc4
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x10], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi], 0x623f1c
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x59c039
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x60c3f0
call fcn.0059d590
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
or dword [esi + 8], 0xffffffff
or dword [esi + 4], 0xffffffff
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], edi
mov dword [esi], 0x623f28
lea ecx, [esi + 0x20]
mov dword [ebp - 4], edi
call fcn.00402cc4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi], 0x623f80
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x59d008
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x60c5b6
call fcn.0059d590
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
or dword [esi + 8], 0xffffffff
or dword [esi + 4], 0xffffffff
and dword [esi + 0xc], 0
mov dword [esi], 0x623f28
and dword [ebp - 4], 0
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.00402cc4
lea ebx, [esi + 0x20]
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.00402cc4
push dword [ebp + 8]
mov byte [ebp - 4], 2
mov dword [esi], 0x623f1c
call sub.MSVCRT.dll_strlen
add eax, dword [ebp + 8]
pop ecx
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.004029af
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
add eax, dword [ebp + 0xc]
pop ecx
mov ecx, ebx
push eax
push dword [ebp + 0xc]
call fcn.004029af
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x59e050
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x59e0e2
push 0x7a
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.005a24e0
push 0x624090
push esi
push 0x62408c
push ebx
push str.fopen_
push 5
call fcn.005a29b0
add esp, 0x2c
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 2
jne 0x59e0c7
push 0x7d
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.005a24e0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x7f
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.005a24e0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x685ca8
call fcn.0059dbd0
mov esi, eax
add esp, 4
test esi, esi
jne 0x59e105
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.0059dd00
push edi
push 1
push 0x6a
push esi
call fcn.0059dfb0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x5a07e0
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 8
call fcn.0059d8e0
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov ecx, 0x412
mov esi, 0x6242a8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x48
jle 0x5a080d
mov ecx, 0x48
mov edi, dword [esp + 0x20]
push ebp
mov eax, edi
mov ebp, ebx
lea esi, [ecx + edi]
mov dword [esp + 0x1c], 0x12
xor ecx, ecx
mov cl, byte [eax]
inc eax
cmp eax, esi
jb 0x5a082c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x5a083c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x5a084c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x5a085c
mov eax, edi
mov edx, dword [ebp]
add ebp, 4
xor edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebp - 4], edx
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x5a0821
xor eax, eax
mov esi, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edi, 9
pop ebp
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.005aa390
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 8
add esi, 8
dec edi
jne 0x5a0884
lea esi, [ebx + 0x48]
mov edi, 0x200
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.005aa390
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 8
add esi, 8
dec edi
jne 0x5a08ad
pop edi
pop esi
pop ebx
add esp, 8
ret