joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6972
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
mov eax, ecx
push ebp
mov ebp, dword [esp + 0x2c]
sub ebx, ebp
sar ebx, 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x4a6b3e
push esi
mov esi, dword [eax + 4]
sub esi, dword [eax]
sar esi, 2
cmp ebx, 0x26f
jb 0x4a69ab
push 0xb
jmp 0x4a69c4
cmp ebx, 0x44
jb 0x4a69b4
push 7
jmp 0x4a69c4
cmp ebx, 0x27
jb 0x4a69bd
push 5
jmp 0x4a69c4
cmp ebx, 7
jb 0x4a69c7
push 3
pop eax
jmp 0x4a69cc
lea eax, [ebx - 1]
shr eax, 1
mov edx, ebx
mov ecx, ebx
sub edx, eax
shr edx, 1
add eax, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], eax
cmp ebx, esi
lea eax, [esi + 1]
cmovbe ecx, eax
mov eax, 0x8b8b8b8b
push edi
mov dword [esp + 0x1c], ecx
mov edi, ebp
mov ecx, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
xor edi, edi
test eax, eax
je 0x4a6aa9
lea eax, [edi + edx]
xor edx, edx
div ebx
lea eax, [edx*4]
xor edx, edx
add eax, ebp
mov dword [esp + 0x2c], eax
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, edi
div ebx
lea eax, [edi - 1]
mov dword [esp + 0x18], edx
xor edx, edx
div ebx
mov ecx, dword [ebp + edx*4]
mov edx, dword [esp + 0x18]
xor ecx, dword [esp + 0x14]
xor ecx, dword [ebp + edx*4]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul ecx, eax, 0x19660d
mov dword [esp + 0x28], ecx
test edi, edi
jne 0x4a6a58
mov eax, esi
jmp 0x4a6a6c
cmp edi, esi
ja 0x4a6a6a
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov eax, dword [eax + edi*4 - 4]
add eax, edx
jmp 0x4a6a6c
mov eax, edx
mov edx, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x14]
mov dword [edx], eax
xor edx, edx
mov eax, dword [esp + 0x20]
add eax, edi
div ebx
lea eax, [edx*4]
mov edx, dword [esp + 0x18]
add dword [eax + ebp], ecx
inc edi
mov eax, dword [esp + 0x1c]
mov dword [ebp + edx*4], ecx
mov edx, dword [esp + 0x10]
cmp edi, eax
jb 0x4a6a04
add eax, ebx
mov dword [esp + 0x2c], eax
cmp edi, eax
jae 0x4a6b3c
lea ecx, [edi - 1]
mov dword [esp + 0x1c], ecx
lea eax, [edx + 1]
xor edx, edx
add eax, ecx
div ebx
lea edi, [edx*4]
xor edx, edx
add edi, ebp
lea ebp, [ecx + 1]
mov eax, ebp
div ebx
mov eax, ecx
mov esi, dword [edi]
mov ebx, edx
xor edx, edx
div dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + edx*4]
mov edx, dword [esp + 0x20]
add ecx, esi
add ecx, dword [eax + ebx*4]
inc edx
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul eax, eax, 0x5d588b65
xor esi, eax
mov ecx, eax
mov eax, dword [esp + 0x1c]
sub ecx, ebx
add eax, edx
mov dword [edi], esi
xor edx, edx
mov esi, dword [esp + 0x34]
div dword [esp + 0x38]
mov dword [esp + 0x1c], ebp
lea eax, [esi + edx*4]
mov edx, dword [esp + 0x10]
xor dword [eax], ecx
mov dword [esi + ebx*4], ecx
mov ecx, ebp
mov ebx, dword [esp + 0x38]
mov ebp, esi
lea eax, [ecx + 1]
cmp eax, dword [esp + 0x2c]
jb 0x4a6abe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x4cac89
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x38
xor eax, eax
cmp dword [ecx + 0x14], 8
push ebx
push ebp
push esi
push edi
mov esi, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
jb 0x4cacd0
mov ecx, dword [ecx]
push dword [esp + 0x4c]
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x48]
call fcn.004cae7b
add esp, 0x34
test al, al
je 0x4cae71
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4cad76
mov eax, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
push eax
push ecx
mov ecx, esi
call fcn.00461391
cmp dword [esi + 0x14], 8
jb 0x4cad49
mov ebx, dword [esi]
mov ecx, ebx
jmp 0x4cad4d
mov ecx, esi
mov ebx, esi
mov eax, dword [esi + 0x10]
mov edi, esi
lea ebp, [ecx + eax*2]
jb 0x4cad59
mov edi, dword [esi]
cmp edi, ebp
je 0x4cad7d
sub ebx, edi
movzx eax, word [edi]
push eax
call fcn.006228c1
mov word [edi + ebx], ax
add edi, 2
pop ecx
cmp edi, ebp
jne 0x4cad5f
jmp 0x4cad7d
mov ecx, esi
call fcn.00461267
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4cad97
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [esi + 0x30]
call fcn.00461391
mov ecx, dword [esp + 0x24]
lea edi, [esi + 0x18]
test ecx, ecx
je 0x4cadea
mov eax, dword [esp + 0x28]
sub eax, ecx
sar eax, 1
push eax
push ecx
mov ecx, edi
call fcn.00461391
cmp dword [edi + 0x14], 8
jb 0x4cadbf
mov ebx, dword [edi]
mov ecx, ebx
jmp 0x4cadc3
mov ecx, edi
mov ebx, edi
mov eax, dword [edi + 0x10]
lea ebp, [ecx + eax*2]
jb 0x4cadcd
mov edi, dword [edi]
cmp edi, ebp
je 0x4cadf1
sub ebx, edi
movzx eax, word [edi]
push eax
call fcn.006228c1
mov word [edi + ebx], ax
add edi, 2
pop ecx
cmp edi, ebp
jne 0x4cadd3
jmp 0x4cadf1
mov ecx, edi
call fcn.00461267
mov edx, dword [esp + 0x30]
lea ecx, [esi + 0x48]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x90], eax
test edx, edx
je 0x4cae17
mov eax, dword [esp + 0x34]
sub eax, edx
sar eax, 1
push eax
push edx
call fcn.00461391
jmp 0x4cae21
push 0x6d7dbc
call fcn.00479bcd
mov edx, dword [esp + 0x38]
lea ecx, [esi + 0x60]
test edx, edx
je 0x4cae3d
mov eax, dword [esp + 0x3c]
sub eax, edx
sar eax, 1
push eax
push edx
call fcn.00461391
jmp 0x4cae42
call fcn.00461267
mov edx, dword [esp + 0x40]
lea ecx, [esi + 0x78]
test edx, edx
je 0x4cae5e
mov eax, dword [esp + 0x44]
sub eax, edx
sar eax, 1
push eax
push edx
call fcn.00461391
jmp 0x4cae63
call fcn.00461267
mov eax, dword [esp + 0x4c]
mov byte [esi + 0x94], al
mov al, 1
jmp 0x4cae73
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x521358
Capabilities:
Create thread

Disassembly:
push 0x10
mov eax, 0x6625ec
call fcn.0063e9e3
mov edi, ecx
mov dword [ebp - 0x10], edi
xor ebx, ebx
mov dword [edi + 4], vtable.ITimerManagerController.0
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
lea eax, [edi + 0x10]
mov dword [ebp - 4], ebx
push 2
push eax
mov dword [edi], vtable.TimerManager.0
mov dword [edi + 4], vtable.TimerManager.1.0
call fcn.005f9ea3
lea eax, [edi + 0x40]
push eax
call fcn.005f99f3
mov byte [ebp - 4], 2
lea esi, [edi + 0x70]
mov dword [edi + 0x68], 1
mov dword [edi + 0x6c], ebx
mov dword [ebp - 0x14], esi
and dword [esi], ebx
push 0x68
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.005f6e0c
add esp, 0x10
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov byte [ebp - 4], 4
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.0046705a
mov byte [ebp - 4], 5
push 0x14
mov dword [edi + 0x94], ebx
mov dword [edi + 0x98], ebx
call fcn.005f6e0c
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi + 0x94], eax
lea esi, [edi + 0x9c]
mov dword [esi], ebx
mov dword [esi + 4], ebx
xor eax, eax
mov byte [ebp - 4], 7
lea ebx, [edi + 0xa4]
mov dword [ebx], eax
push 0x10
mov word [edi + 0xa8], ax
call fcn.005f6e0c
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [eax], edi
mov dword [eax + 8], 0x520d96
mov dword [eax + 0xc], edx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
push ecx
push edx
push eax
push 0x522620
push edx
push edx
call fcn.00625390
add esp, 0x20
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x52149b
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00499e98
cmp dword [ebp - 0x18], 0
jne 0x5214a6
mov eax, dword [edi + 0xa0]
xchg dword [ebx], eax
mov eax, edi
call fcn.0063e9b1
ret
and dword [ebp - 0x18], 0
push 6
call fcn.005f9c0a
call fcn.0061a88c
int3

Function at 0x53c69f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push 4
pop edx
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x6d27c0]
sub edx, 1
jne 0x53c6a2
mov eax, ecx
ret
Function at 0x5436e1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
push esi
and edx, 0xfffffffe
push edi
mov edi, ecx
add edx, 0xfffffffc
mov esi, edi
add edx, edi
mov ebx, esi
cmp esi, edx
ja 0x543756
movzx ecx, byte [esi + 1]
movzx eax, byte [esi + 3]
xor ecx, 8
add esi, 2
and eax, ecx
mov ebp, esi
cmp eax, 0xf8
jb 0x5436f1
movzx eax, byte [ebx]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 1]
and eax, 7
lea ecx, [eax + ecx*8]
movzx eax, byte [esi]
shl ecx, 8
add esi, 2
add ecx, eax
mov eax, esi
sub eax, edi
shr eax, 1
sub ecx, eax
mov eax, ecx
mov byte [ebp], cl
shr eax, 0xb
mov byte [ebx], al
mov eax, ecx
shr eax, 0x13
and al, 7
shr ecx, 8
or al, 0xf0
or cl, 0xf8
mov byte [esi - 3], al
mov byte [esi - 1], cl
jmp 0x5436f1
sub esi, edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x54380a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
mov eax, ecx
xor ebx, ebx
mov ecx, dword [esp + 0x10]
push ebp
push esi
mov ebp, edx
mov dword [esp + 0xc], eax
mov esi, dword [ecx]
and esi, 7
cmp ebp, 5
jae 0x54382d
xor eax, eax
jmp 0x543953
sub ebp, 4
push edi
cmp dword [esp + 0x24], 0
je 0x543852
mov ecx, dword [esp + 0x24]
call dword [0x66b6fc]
call dword [esp + 0x24]
test eax, eax
jne 0x543938
mov eax, dword [esp + 0x10]
lea edi, [ebx + eax]
lea edx, [eax + ebp]
cmp edi, edx
jae 0x54386d
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x543869
inc edi
cmp edi, edx
jb 0x54385c
mov eax, dword [esp + 0x10]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x54393d
cmp ecx, 2
jbe 0x5438f8
xor esi, esi
movzx edx, byte [edi + 4]
lea eax, [edx + 1]
test al, 0xfe
jne 0x543929
movzx eax, byte [edi + 3]
add ebx, 5
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
sub edx, ebx
test esi, esi
je 0x5438d8
and esi, 6
mov eax, edx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x5438d6
mov eax, 0x100
shl eax, cl
dec eax
xor edx, eax
sub edx, ebx
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
mov byte [edi + 4], dl
jmp 0x54392f
shr esi, cl
test esi, esi
je 0x543886
cmp esi, 4
ja 0x54391e
cmp esi, 3
je 0x54391e
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x543886
mov eax, dword [esp + 0x10]
or esi, 8
shr esi, 1
inc ebx
jmp 0x543831
or esi, 8
shr esi, 1
inc ebx
mov eax, dword [esp + 0x10]
jmp 0x543831
push 0x12
pop eax
jmp 0x543952
xor eax, eax
shr esi, cl
cmp ecx, 2
lfence
cmova esi, eax
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x543a5b
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x1c
mov eax, 0x666a9e
call fcn.0063e9e3
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
push 0x18
cmp eax, dword [esi + 4]
jne 0x543a9a
call fcn.005f6e0c
pop ecx
mov ecx, eax
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x543aed
call fcn.005f6e0c
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
shr ecx, 1
push ecx
push dword [esi]
mov ecx, eax
call fcn.004970ed
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 1
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x543ad0
mov eax, dword [edi]
push ebx
push ecx
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectMemory]
test eax, eax
je 0x543af5
push ebx
push dword [esi + 0xc]
mov ecx, edi
call fcn.00461dec
mov eax, dword [ebp + 8]
mov dword [eax], edi
call fcn.0063e9b1
ret 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.004ca1cf
push 0x731078
lea eax, [ebp - 0x28]
push eax
call fcn.0060d604
int3
Function at 0x546406
Capabilities:
Read file on windows

Disassembly:
push 0x18
mov eax, 0x667217
call fcn.0063e9e3
mov ebx, edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
push 0x1c
call fcn.005f6e0c
mov esi, eax
xor eax, eax
mov dword [ebp - 0x1c], esi
mov edi, esi
pop ecx
mov dword [ebp - 0x24], esi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0x546e8a
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x14]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.DLL_StartThreadpoolIo]
push esi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x18], ebx
jne 0x54648a
cmp edi, 0x3e5
jne 0x54648a
mov esi, ebx
jmp 0x546528
mov eax, dword [ebp - 0x14]
push dword [eax + 0x40]
call dword [sym.imp.KERNEL32.DLL_CancelThreadpoolIo]
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
jne 0x5464c3
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
mov eax, dword [ebp - 0x14]
push esi
push dword [eax + 0x3c]
call dword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
or ebx, 0xffffffff
test eax, eax
cmovne ebx, dword [ebp - 0x18]
cmp ebx, 0xffffffff
jne 0x546528
jmp 0x5464ec
or eax, 0xffffffff
test ecx, ecx
jne 0x5464ea
or eax, 0xffffffff
cmp edi, 0x26
jne 0x5464ea
mov eax, dword [ebp - 0x10]
push ebx
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x66b6fc]
mov ecx, dword [ebp - 0x10]
call edi
jmp 0x546528
mov ebx, eax
mov eax, dword [ebp - 0x10]
sub esp, 0x14
mov edx, dword [ebp - 0x1c]
mov ecx, esp
mov eax, dword [eax]
mov edi, dword [eax + 8]
call fcn.004ca1cf
lea ecx, [ebp - 0x20]
call fcn.00546d5e
add esp, 0x14
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call dword [0x66b6fc]
mov ecx, dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x20]
push eax
call fcn.005f94d6
pop ecx
test esi, esi
je 0x546536
push 0x1c
push esi
call fcn.005f6bd9
pop ecx
pop ecx
mov eax, ebx
call fcn.0063e9b1
ret
Function at 0x549168
Capabilities:
Receive http response

Disassembly:
push 0x58
mov eax, 0x6678fc
call fcn.0063ea16
mov edi, ecx
mov eax, dword [edi + 8]
mov esi, dword [eax + 0x218]
test esi, esi
jne 0x5491df
push esi
push dword [edi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x54929e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push str.WinHttpQueryDataAvaliable
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0044e841
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.00547c1b
pop ecx
push eax
push esi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00544789
lea ecx, [ebp - 0x40]
call fcn.004508bd
lea ecx, [ebp - 0x28]
call fcn.004508bd
jmp 0x54929e
cmp edx, esi
jae 0x5491f9
cmp byte [ebp + 8], 0
jne 0x5491f9
push dword [edi + 0x2c]
push dword [edi + 0x28]
call fcn.00544718
jmp 0x54929e
lea eax, [ebp - 0x64]
push eax
call fcn.00544b1c
push esi
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 2
call fcn.004bd3fd
test eax, eax
jne 0x549230
lea ecx, [edi + 0x90]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp esi, eax
jbe 0x54922e
push esi
lfence
call fcn.0047f087
xor eax, eax
mov dword [edi + 0x8c], eax
test eax, eax
jne 0x549240
mov eax, dword [edi + 0x90]
push 0
push esi
push eax
push dword [edi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x549296
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0x6f24d8
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0044e841
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
mov edx, esi
lea ecx, [ebp - 0x58]
call fcn.00547c1b
pop ecx
push eax
push esi
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00544789
lea ecx, [ebp - 0x58]
call fcn.004508bd
lea ecx, [ebp - 0x28]
call fcn.004508bd
lea ecx, [ebp - 0x64]
call fcn.004bd73f
call fcn.0063e9c5
ret

Function at 0x54d2ac
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebx, ecx
lea ecx, [eax - 1]
push esi
mov ebp, ecx
mov dword [esp + 0x10], ecx
push edi
mov edi, edx
sar ebp, 1
mov dword [esp + 0x10], edi
mov esi, edi
cmp edi, ebp
jge 0x54d306
add esi, esi
lea eax, [esi + 2]
imul ecx, eax, 0x18
add ecx, ebx
lea eax, [ecx - 0x18]
push eax
push ecx
call fcn.0054d27d
movzx eax, al
xor eax, 1
imul ecx, edi, 0x18
inc eax
add esi, eax
imul eax, esi, 0x18
add ecx, ebx
add eax, ebx
push eax
call fcn.0045ac5b
mov edi, esi
cmp esi, ebp
jl 0x54d2cf
mov eax, dword [esp + 0x1c]
cmp esi, ebp
jne 0x54d325
test al, 1
jne 0x54d325
imul eax, eax, 0x18
imul ecx, edi, 0x18
add eax, 0xffffffe8
add eax, ebx
add ecx, ebx
push eax
call fcn.0045ac5b
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x10], edi
jge 0x54d356
push dword [esp + 0x20]
lea esi, [edi - 1]
sar esi, 1
imul ebp, esi, 0x18
add ebp, ebx
push ebp
call fcn.0054d27d
test al, al
je 0x54d356
imul ecx, edi, 0x18
push ebp
add ecx, ebx
call fcn.0045ac5b
mov edi, esi
cmp dword [esp + 0x10], esi
jl 0x54d32b
push dword [esp + 0x20]
imul ecx, edi, 0x18
add ecx, ebx
call fcn.0045ac5b
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x588020
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005f7230
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x5880a0
mov cl, byte [edi]
test cl, cl
je 0x5880a0
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [esp + 0xc]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [esp + 0xc], eax
test cl, cl
jne 0x588050
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x588140
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005f7230
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
mov dword [esp + 8], esi
test ebx, ebx
je 0x5881c3
mov al, byte [ebx]
test al, al
je 0x5881c3
push ebp
push edi
mov ebp, 0x100
movsx eax, al
push eax
call fcn.00588200
movd xmm1, dword [esp + 0x14]
lea ebx, [ebx + 1]
mov edi, eax
mov edx, 0x20
or edi, ebp
add esp, 4
mov ecx, edi
add ebp, 0x100
shr ecx, 2
xor ecx, edi
imul edi, edi
and ecx, 0xf
sub edx, ecx
shl esi, cl
movd xmm0, edx
psrlq xmm1, xmm0
movd eax, xmm1
or esi, eax
mov al, byte [ebx]
xor esi, edi
mov dword [esp + 0x10], esi
test al, al
jne 0x588167
mov eax, esi
pop edi
shr eax, 0x10
pop ebp
xor eax, esi
pop esi
pop ebx
pop ecx
ret
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x5f5c58
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
add edi, 0xdeadbeef
push 0xc
add edi, ecx
pop eax
mov esi, edi
mov ebp, edi
cmp ecx, eax
jbe switch.0x005f5d51
lea eax, [ecx - 0xd]
xor edx, edx
push 0xc
pop ecx
div ecx
inc eax
mov dword [esp + 0x10], eax
movzx edx, byte [ebx + 7]
movzx ecx, byte [ebx + 6]
movzx eax, byte [ebx + 5]
shl edx, 8
add edx, ecx
movzx ecx, byte [ebx + 0xb]
shl ecx, 8
shl edx, 8
add edx, eax
movzx eax, byte [ebx + 4]
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 0xa]
add esi, edx
add ecx, eax
movzx edx, byte [ebx + 8]
movzx eax, byte [ebx + 9]
add edx, edi
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx + 2]
shl ecx, 8
add edx, ecx
movzx ecx, byte [ebx + 3]
shl ecx, 8
mov edi, edx
add ecx, eax
rol edi, 4
movzx eax, byte [ebx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx]
shl ecx, 8
add ecx, eax
sub ecx, edx
add edx, esi
add ecx, ebp
xor edi, ecx
sub esi, edi
mov eax, edi
rol eax, 6
add edi, edx
xor eax, esi
mov ecx, eax
sub edx, eax
rol ecx, 8
add eax, edi
xor ecx, edx
sub edi, ecx
mov ebp, ecx
rol ebp, 0x10
add ecx, eax
xor ebp, edi
mov esi, ebp
sub eax, ebp
ror esi, 0xd
add ebp, ecx
xor esi, eax
sub ecx, esi
mov edi, esi
rol edi, 4
add esi, ebp
xor edi, ecx
mov ecx, dword [esp + 0x1c]
push 0xc
pop eax
sub ecx, eax
add ebx, eax
sub dword [esp + 0x10], 1
mov dword [esp + 0x1c], ecx
jne 0x5f5c8f
cmp ecx, eax
ja 0x5f5dba
jmp dword [ecx*4 + 0x5f5e0c]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 8]
add edi, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add esi, eax
movzx eax, byte [ebx + 4]
add esi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add ebp, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add ebp, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add ebp, eax
movzx eax, byte [ebx]
add ebp, eax
xor edi, esi
mov eax, esi
rol eax, 0xe
sub edi, eax
mov eax, edi
mov edx, edi
rol eax, 0xb
xor edx, ebp
sub edx, eax
xor esi, edx
mov eax, edx
ror eax, 7
sub esi, eax
mov eax, esi
xor edi, esi
rol eax, 0x10
sub edi, eax
mov eax, edi
mov ecx, edi
rol eax, 4
xor ecx, edx
sub ecx, eax
mov eax, ecx
xor esi, ecx
rol eax, 0xe
sub esi, eax
mov eax, esi
xor edi, esi
ror eax, 8
sub edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lfence
jmp 0x5f5dfd

Function at 0x5f7830
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x5f786f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5f786f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5f786f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5f786f
cmp dword [ecx + 0x74], 0xe
jbe 0x5f786f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x5fa847
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.DLL_FormatMessageA]
push eax
push dword [esi]
call fcn.005fa823
pop esi
leave
ret 8

Function at 0x5fbdc4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0062ce10
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x5fbe03
sub eax, 1
je 0x5fbdfe
sub eax, 1
je 0x5fbdfa
xor eax, eax
leave
ret
push 3
jmp 0x5fbe05
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x61e271
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x734f34]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x6bf410
push esi
call fcn.00633222
pop ecx
pop ecx
test eax, eax
jne 0x61e29f
xor al, al
jmp 0x61e31c
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0061df75
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x61e2d9
push dword [ebp - 0x210]
call fcn.00615053
xor al, al
jmp 0x61e31a
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x61e2df
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x61e2ff
push edx
call fcn.0061e1a7
pop ecx
test al, al
je 0x61e2ca
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jbe 0x61e30d
mov bl, 1
push dword [ebp - 0x210]
call fcn.00615053
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005f665c
leave
ret