joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503042
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 0x14
xor esi, esi
lea eax, [ebp - 0x24]
push esi
push eax
mov edi, ecx
call fcn.0052b590
add esp, 0xc
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.00502ace
lea ecx, [ebp - 0x24]
push ecx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x5030ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x5030ce
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 8], eax
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x10]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 2
jne 0x5030c0
mov ecx, edi
call fcn.00502dcf
jmp 0x5030a3
cmp eax, esi
je 0x5030ce
lea eax, [ebp - 4]
push eax
call fcn.00503547
pop ecx
mov ecx, edi
call fcn.00502dcf
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x50358f
Capabilities:
Encode data using xor

Disassembly:
push 0xc
mov eax, 0x55ec83
call fcn.0052b327
mov eax, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
inc ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
test byte [0x5cb310], bl
jne 0x503632
movzx eax, word [0x5cb31c]
movzx ecx, word [0x5cb31e]
imul eax, eax, 0x9069
mov edx, dword [0x5cb320]
add eax, ecx
movzx ecx, word [0x5cb334]
or dword [0x5cb310], ebx
imul ecx, ecx, 0x4650
mov dword [0x5cb31c], eax
movzx eax, word [0x5cb336]
add ecx, eax
mov eax, dword [0x5cb324]
imul eax, eax, 0x10dcd
mov esi, edx
shl esi, 0xc
xor esi, edx
mov edi, edx
add eax, 0x12d687
shl esi, 5
shr edi, 0xd
xor esi, edi
mov dword [0x5cb324], eax
xor edx, esi
xor al, cl
add al, dl
mov dword [0x5cb334], ecx
mov dword [0x5cb320], edx
mov byte [0x5cb30d], al
xor esi, esi
jmp 0x503637
mov al, byte [0x5cb30d]
test byte [0x5cb310], 2
jne 0x503730
or dword [0x5cb310], 2
mov cl, al
xor cl, 0x52
mov byte [0x5cb2fc], cl
mov cl, al
dec cl
xor cl, 0x31
mov byte [0x5cb2fd], cl
mov cl, al
sub cl, 2
xor cl, 0x2a
mov byte [0x5cb2fe], cl
mov cl, al
sub cl, 3
xor cl, 0x6f
mov byte [0x5cb2ff], cl
mov cl, al
sub cl, 4
xor cl, 0x23
mov byte [0x5cb300], cl
mov cl, al
sub cl, 5
xor cl, 0x24
mov byte [0x5cb301], cl
mov cl, al
sub cl, 6
xor cl, 0x64
mov byte [0x5cb302], cl
mov cl, al
sub cl, 7
xor cl, 0x2f
mov byte [0x5cb303], cl
mov cl, al
sub cl, 8
xor cl, 0x39
mov byte [0x5cb304], cl
mov cl, al
sub cl, 9
xor cl, 0x6a
mov byte [0x5cb305], cl
mov cl, al
sub cl, 0xa
xor cl, 0x6f
mov byte [0x5cb306], cl
mov cl, al
sub cl, 0xb
xor cl, 0x69
mov byte [0x5cb307], cl
mov cl, al
sub cl, 0xc
xor cl, 0x26
mov byte [0x5cb308], cl
mov cl, al
sub cl, 0xd
xor cl, 0x70
mov byte [0x5cb309], cl
mov cl, al
sub cl, 0xe
xor cl, 0x63
mov byte [0x5cb30a], cl
mov cl, al
sub cl, 0xf
xor cl, 0x2e
sub al, 0x10
xor al, 0x69
mov byte [0x5cb30b], cl
mov byte [0x5cb30c], al
mov ecx, dword [ebp - 0x14]
push esi
push 0x11
call fcn.004074f0
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x10]
mov bl, byte [0x5cb30d]
mov ecx, dword [ebp - 0x14]
sub bl, al
xor bl, byte [eax + 0x5cb2fc]
push eax
call fcn.00407518
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x11
mov byte [eax], bl
jb 0x503744
mov eax, dword [ebp - 0x14]
call fcn.0052b3ff
ret
Function at 0x505345
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x44]
mov ecx, dword [esi]
xor ebx, ebx
cmp ecx, ebx
je 0x5053b2
call fcn.00500be0
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 4]
call fcn.00504e31
push ebx
push ebx
push 3
push ebx
push ebx
call fcn.00427b34
mov ecx, dword [esi]
mov dword [ebp - 8], eax
add esp, 0x14
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], edx
call fcn.00505310
test al, al
jne 0x5053a2
mov ecx, dword [esi]
push ebx
call fcn.00500c70
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.0050473b
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi], ebx
pop edi
pop esi
sete al
pop ebx
leave
ret

Function at 0x505b83
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x24]
mov ecx, dword [ebx]
push edi
xor edi, edi
cmp ecx, edi
jne 0x505ba0
mov al, 1
jmp 0x505c55
call fcn.00500be0
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
push edi
push 3
push edi
push edi
call fcn.00427b34
mov ecx, dword [ebx]
mov dword [ebp - 0x10], eax
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], edx
call fcn.00505310
test al, al
jne 0x505be0
mov ecx, dword [ebx]
push edi
call fcn.00500c70
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, ebx
call fcn.0050473b
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x64], edi
lea edi, [esi + 4]
mov eax, dword [edi + 0x18]
push edi
push dword [eax]
lea ecx, [ebp - 8]
call fcn.00455803
push edi
push dword [edi + 0x18]
jmp 0x505c27
lea ecx, [ebp - 8]
call fcn.00454e12
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 8]
call fcn.0045a81b
push edi
push dword [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.00455803
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00451828
test al, al
je 0x505c0a
mov ecx, edi
call fcn.005054c8
lea ecx, [esi + 0x74]
call fcn.0050473b
xor eax, eax
cmp dword [ebx], eax
sete al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5071fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 1
push edi
call fcn.005071bf
pop ecx
pop ecx
test al, al
je 0x507252
push 1
push dword [ebp + 0xc]
call fcn.005071bf
pop ecx
pop ecx
test al, al
je 0x507252
mov edx, dword [ebp + 0x10]
shr edx, 2
xor esi, esi
test edx, edx
jbe 0x507243
mov ecx, dword [ebp + 0xc]
mov eax, edi
sub ecx, edi
mov esi, edx
push ebx
mov ebx, dword [ecx + eax]
xor dword [eax], ebx
add eax, 4
dec edx
jne 0x507237
pop ebx
mov eax, esi
shl eax, 2
sub dword [ebp + 0x10], eax
je 0x507269
add edi, eax
add dword [ebp + 0xc], eax
mov esi, dword [ebp + 0x10]
test esi, esi
jbe 0x507269
mov ecx, dword [ebp + 0xc]
mov eax, edi
sub ecx, edi
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x507260
pop edi
pop esi
pop ebp
ret
Function at 0x50726d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push dword [ebp + 8]
call fcn.005071bf
pop ecx
pop ecx
test al, al
je 0x5072e0
push 1
push dword [ebp + 0xc]
call fcn.005071bf
pop ecx
pop ecx
test al, al
je 0x5072e0
mov esi, dword [ebp + 0x10]
push 1
push esi
call fcn.005071bf
pop ecx
pop ecx
test al, al
je 0x5072e0
mov edi, dword [ebp + 0x14]
push ebx
shr edi, 2
xor ebx, ebx
test edi, edi
jbe 0x5072cc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub ecx, esi
mov eax, esi
sub edx, esi
mov ebx, edi
mov esi, dword [ecx + eax]
xor esi, dword [eax]
mov dword [edx + eax], esi
add eax, 4
dec edi
jne 0x5072be
mov eax, ebx
shl eax, 2
sub dword [ebp + 0x14], eax
pop ebx
je 0x507302
add dword [ebp + 8], eax
add dword [ebp + 0xc], eax
add dword [ebp + 0x10], eax
cmp dword [ebp + 0x14], 0
jbe 0x507302
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
sub ecx, eax
sub esi, eax
mov dl, byte [eax + ecx]
xor dl, byte [eax]
mov byte [eax + esi], dl
inc eax
dec edi
jne 0x5072f6
pop edi
pop esi
pop ebp
ret

Function at 0x507306
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push esi
xor bl, bl
call fcn.005071bf
pop ecx
pop ecx
test al, al
je 0x507380
push 1
push dword [ebp + 0xc]
call fcn.005071bf
pop ecx
pop ecx
test al, al
je 0x507380
mov edi, dword [ebp + 0x10]
shr edi, 2
xor edx, edx
xor ebx, ebx
test edi, edi
jbe 0x507353
mov eax, dword [ebp + 0xc]
mov ecx, esi
sub ecx, eax
mov ebx, edi
mov esi, dword [ecx + eax]
xor esi, dword [eax]
add eax, 4
or edx, esi
dec edi
jne 0x507346
mov eax, ebx
shl eax, 2
sub dword [ebp + 0x10], eax
jne 0x507363
xor eax, eax
test edx, edx
jmp 0x50739d
add dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
add esi, eax
mov ebx, edx
shr ebx, 0x18
mov eax, edx
shr eax, 0x10
or bl, al
mov eax, edx
shr eax, 8
or bl, al
or bl, dl
cmp dword [ebp + 0x10], 0
jbe 0x507399
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
mov cl, byte [eax + esi]
xor cl, byte [eax]
or bl, cl
inc eax
dec edi
jne 0x50738e
xor eax, eax
test bl, bl
pop edi
pop esi
sete al
pop ebx
pop ebp
ret
Function at 0x5073a5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push ebx
push esi
mov esi, dword [ecx + 0x64]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x1074]
mov ecx, dword [esi]
xor ecx, dword [edx]
push edi
lea edi, [esi + 8]
mov dword [ebp - 4], 8
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [eax + edx*4 + 0x400]
mov ebx, ecx
shr ebx, 0x18
add edx, dword [eax + ebx*4]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edx, dword [eax + ebx*4 + 0x800]
movzx ebx, cl
add edx, dword [eax + ebx*4 + 0xc00]
xor edx, dword [edi - 4]
xor dword [ebp + 8], edx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 8]
shr edx, 0x10
movzx edx, dl
mov edx, dword [eax + edx*4 + 0x400]
shr ebx, 0x18
add edx, dword [eax + ebx*4]
mov ebx, dword [ebp + 8]
shr ebx, 8
movzx ebx, bl
xor edx, dword [eax + ebx*4 + 0x800]
movzx ebx, byte [ebp + 8]
add edx, dword [eax + ebx*4 + 0xc00]
xor edx, dword [edi]
add edi, 8
xor ecx, edx
dec dword [ebp - 4]
jne 0x5073cc
mov edx, dword [esi + 0x44]
xor edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
pop ebx
leave
ret 8

Function at 0x507457
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x48
mov esi, ecx
xor edi, edi
push 0x5866c8
push dword [esi + 0x64]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.0052c7c0
push 0x1000
push 0x586710
push dword [esi + 0x1074]
call fcn.0052c7c0
add esp, 0x18
push 4
xor ecx, ecx
pop ebx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
shl ecx, 8
movzx eax, byte [edx + eax]
or ecx, eax
inc dword [ebp - 4]
dec ebx
jne 0x507499
mov eax, dword [esi + 0x64]
add eax, edi
xor dword [eax], ecx
add edi, 4
cmp edi, 0x48
jb 0x507494
push dword [esi + 0x64]
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.005073a5
xor ecx, ecx
mov eax, dword [esi + 0x64]
lea edi, [ecx + 8]
lea edx, [edi + eax]
add ecx, eax
push edx
push ecx
mov ecx, esi
call fcn.005073a5
mov ecx, edi
cmp ecx, 0x40
jb 0x5074d2
mov eax, dword [esi + 0x64]
push dword [esi + 0x1074]
add eax, 0x40
push eax
mov ecx, esi
call fcn.005073a5
xor ecx, ecx
mov eax, dword [esi + 0x1074]
lea edi, [ecx + 8]
lea edx, [edi + eax]
add ecx, eax
push edx
push ecx
mov ecx, esi
call fcn.005073a5
mov ecx, edi
cmp ecx, 0xff8
jb 0x507503
lea ecx, [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
test al, al
jne 0x507551
push 0x44
xor edi, edi
pop ebx
mov eax, dword [esi + 0x64]
lea ecx, [ebx + eax]
push ecx
add eax, edi
push eax
call fcn.004a3ab0
add edi, 4
pop ecx
sub ebx, 4
pop ecx
cmp edi, 0x24
jb 0x507535
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x5075a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
mov esi, ecx
push eax
lea ecx, [ebp - 4]
call fcn.00507558
mov ecx, eax
call fcn.00507558
mov eax, dword [esi + 0x1070]
mov esi, dword [esi + 0x60]
mov ecx, dword [ebp - 8]
xor ecx, dword [esi]
lea edi, [esi + 8]
mov dword [ebp - 4], 8
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [eax + edx*4 + 0x400]
mov ebx, ecx
shr ebx, 0x18
add edx, dword [eax + ebx*4]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edx, dword [eax + ebx*4 + 0x800]
movzx ebx, cl
add edx, dword [eax + ebx*4 + 0xc00]
xor edx, dword [edi - 4]
xor dword [ebp + 8], edx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 8]
shr edx, 0x10
movzx edx, dl
mov edx, dword [eax + edx*4 + 0x400]
shr ebx, 0x18
add edx, dword [eax + ebx*4]
mov ebx, dword [ebp + 8]
shr ebx, 8
movzx ebx, bl
xor edx, dword [eax + ebx*4 + 0x800]
movzx ebx, byte [ebp + 8]
add edx, dword [eax + ebx*4 + 0xc00]
xor edx, dword [edi]
add edi, 8
xor ecx, edx
dec dword [ebp - 4]
jne 0x5075e1
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor eax, dword [esi + 0x44]
push ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], edx
call fcn.00507574
mov ecx, eax
call fcn.00507574
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x509cfb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jbe 0x509d2f
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
sub edi, edx
sub edx, eax
mov dword [ebp + 0x14], ecx
mov bl, byte [eax]
lea esi, [edx + eax]
mov cl, byte [esi + edi]
xor bl, cl
mov byte [esi], bl
mov byte [eax], cl
inc eax
dec dword [ebp + 0x14]
jne 0x509d18
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x50f7af
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 0
jne 0x50f7c3
xor al, al
jmp 0x50f872
push esi
push edi
xor eax, eax
lea edi, [ebp + 8]
push 0x3c
stosb byte es:[edi], al
pop edi
push edi
call fcn.0052ae81
mov esi, eax
pop ecx
test esi, esi
je 0x50f7e9
push edi
push 0
push esi
call fcn.0052b590
add esp, 0xc
jmp 0x50f7eb
xor esi, esi
push dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0050f5a5
mov esi, dword [esi]
mov dword [esi], edi
mov edi, 0x100
push edi
call fcn.00518720
pop ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x50f821
push edi
push 0
push eax
call fcn.0052b590
mov eax, dword [ebp + 8]
add esp, 0xc
jmp 0x50f823
xor eax, eax
mov dword [esi + 0x14], edi
mov edi, 0x800
push edi
mov dword [esi + 0x10], eax
call fcn.00518720
mov dword [esi + 0x30], edi
add edi, 0x24
push edi
mov dword [esi + 0x2c], eax
call fcn.00518720
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], edi
cmp dword [ebx + 0x18], 0x10
mov eax, dword [ebx + 0x14]
pop ecx
pop ecx
jb 0x50f859
mov ebx, dword [ebx + 4]
jmp 0x50f85c
add ebx, 4
push esi
push 0x10000000
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
dec eax
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
pop ebx
pop ebp
ret
Function at 0x51203f
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
xor edx, edx
push 3
pop ecx
lea eax, [edi + 2]
div ecx
mov ecx, dword [ebp + 0x14]
shl eax, 2
inc eax
cmp dword [ecx], eax
jae 0x512065
mov dword [ecx], eax
push 2
pop eax
jmp 0x512157
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x512070
push 3
jmp 0x51205f
push ebx
push esi
push 3
xor edx, edx
pop esi
mov eax, edi
div esi
xor esi, esi
imul eax, eax, 3
test eax, eax
jbe 0x5120f3
xor edx, edx
dec eax
push 3
pop esi
div esi
mov edx, dword [ebp + 8]
mov edi, eax
inc edi
mov esi, edi
imul esi, esi, 3
movzx eax, byte [edx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
mov byte [ecx], al
movzx eax, byte [edx]
movzx ebx, byte [edx + 1]
and eax, 3
shl eax, 4
shr ebx, 4
mov al, byte [eax + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
inc ecx
mov byte [ecx], al
movzx eax, byte [edx + 1]
movzx ebx, byte [edx + 2]
and eax, 0xf
shr ebx, 6
mov al, byte [ebx + eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
inc ecx
mov byte [ecx], al
movzx eax, byte [edx + 2]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
inc ecx
mov byte [ecx], al
inc ecx
add edx, 3
dec edi
jne 0x512097
mov edi, dword [ebp + 0xc]
jmp 0x5120f6
mov edx, dword [ebp + 8]
cmp esi, edi
jae 0x512148
movzx eax, byte [edx]
lea ebx, [esi + 1]
cmp ebx, edi
jae 0x51210a
movzx esi, byte [edx + 1]
jmp 0x51210c
xor esi, esi
mov edx, eax
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
mov byte [ecx], dl
and eax, 3
shl eax, 4
mov edx, esi
shr edx, 4
mov al, byte [eax + edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
inc ecx
mov byte [ecx], al
inc ecx
cmp ebx, edi
jae 0x51213f
and esi, 0xf
mov al, byte [esi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
jmp 0x512141
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, dword [ebp + 0x14]
mov byte [ecx], 0
sub ecx, dword [ebp + 0x10]
pop esi
mov dword [eax], ecx
xor eax, eax
pop ebx
pop edi
pop ebp
ret
Function at 0x5153de
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x5154f6
cmp dword [ebp + 0x10], 0
je 0x5154f6
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x5154f6
mov esi, dword [ebp + 0xc]
push 3
xor edx, edx
lea eax, [esi + 2]
pop ebx
div ebx
lea eax, [eax*4 + 1]
cmp dword [ecx], eax
jae 0x515424
push 2
pop eax
jmp 0x5154f9
mov eax, esi
xor edx, edx
push 3
pop esi
div esi
mov ecx, dword [ebp + 0x10]
mov esi, dword [0x5c3ef4]
xor edx, edx
imul eax, eax, 3
test eax, eax
jbe 0x51549d
dec eax
push 3
pop ebx
div ebx
inc eax
mov edx, eax
mov dword [ebp + 8], eax
imul edx, edx, 3
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + esi]
mov byte [ecx], al
movzx eax, byte [edi]
movzx ebx, byte [edi + 1]
and eax, 3
shl eax, 4
add eax, esi
shr ebx, 4
mov al, byte [ebx + eax]
inc ecx
mov byte [ecx], al
movzx ebx, byte [edi + 2]
movzx eax, byte [edi + 1]
and eax, 0xf
shr ebx, 6
add ebx, esi
mov al, byte [ebx + eax*4]
inc ecx
mov byte [ecx], al
movzx eax, byte [edi + 2]
and eax, 0x3f
mov al, byte [eax + esi]
inc ecx
mov byte [ecx], al
inc ecx
add edi, 3
dec dword [ebp + 8]
jne 0x51544e
cmp edx, dword [ebp + 0xc]
jae 0x5154e7
movzx eax, byte [edi]
inc edx
cmp edx, dword [ebp + 0xc]
jae 0x5154b1
movzx edi, byte [edi + 1]
jmp 0x5154b3
xor edi, edi
mov ebx, eax
shr ebx, 2
mov bl, byte [ebx + esi]
mov byte [ecx], bl
and eax, 3
shl eax, 4
mov ebx, edi
shr ebx, 4
add eax, esi
mov al, byte [ebx + eax]
inc ecx
mov byte [ecx], al
inc ecx
cmp edx, dword [ebp + 0xc]
jae 0x5154de
and edi, 0xf
mov al, byte [esi + edi*4]
jmp 0x5154e0
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, dword [ebp + 0x14]
mov byte [ecx], 0
sub ecx, dword [ebp + 0x10]
mov dword [eax], ecx
xor eax, eax
jmp 0x5154f9
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x52b318
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c4954]
jne 0x52b322
repz ret
jmp fcn.00536acc

Function at 0x549211
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00536277
and dword [ebp - 4], 0
cmp dword [0x5cd2d8], 0
mov ebx, eax
jne 0x5492c2
push 0x590e70
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x549373
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x590e64
push edi
call esi
test eax, eax
je 0x549373
push eax
call fcn.00536205
mov dword [esp], 0x590e54
push edi
mov dword [0x5cd2d8], eax
call esi
push eax
call fcn.00536205
mov dword [esp], 0x590e40
push edi
mov dword [0x5cd2dc], eax
call esi
push eax
call fcn.00536205
mov dword [esp], 0x590e24
push edi
mov dword [0x5cd2e0], eax
call esi
push eax
call fcn.00536205
pop ecx
mov dword [0x5cd2e8], eax
test eax, eax
je 0x5492c2
push 0x590e0c
push edi
call esi
push eax
call fcn.00536205
pop ecx
mov dword [0x5cd2e4], eax
mov eax, dword [0x5cd2e4]
cmp eax, ebx
je 0x54931a
cmp dword [0x5cd2e8], ebx
je 0x54931a
push eax
call fcn.00536280
push dword [0x5cd2e8]
mov esi, eax
call fcn.00536280
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x54931a
test edi, edi
je 0x54931a
call esi
test eax, eax
je 0x549311
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x549311
test byte [ebp - 0xc], 1
jne 0x54931a
or dword [ebp + 0x10], 0x200000
jmp 0x549353
mov eax, dword [0x5cd2dc]
cmp eax, ebx
je 0x549353
push eax
call fcn.00536280
pop ecx
test eax, eax
je 0x549353
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x549353
mov eax, dword [0x5cd2e0]
cmp eax, ebx
je 0x549353
push eax
call fcn.00536280
pop ecx
test eax, eax
je 0x549353
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5cd2d8]
call fcn.00536280
pop ecx
test eax, eax
je 0x549373
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x549375
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x551870
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x568d48
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x5518b0
push esi
push esi
push esi
push 2
call fcn.00552cf0
xor al, al
jmp 0x551a34
call fcn.00550b00
push 2
or eax, 0xffffffff
push 0
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.0052c278
push esi
call fcn.00531778
push 0
push 0
push esi
mov edi, eax
call fcn.0052c278
add esp, 0x1c
test edi, edi
jg 0x5518f7
push 0
push 0
push 0
push 0xd
mov ecx, ebx
call fcn.00552cf0
xor al, al
jmp 0x551a34
mov dword [esp + 0x14], 0x5cd308
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.005507f0
lea eax, [edi + 1]
push eax
call fcn.0052ae81
push esi
push 1
mov ebp, eax
push edi
push ebp
mov byte [ebp], 0
call fcn.0052e774
add esp, 0x14
cmp eax, 1
je 0x55196d
push ebp
call fcn.00529442
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.00552cf0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x5cd308
je 0x551966
push eax
call fcn.00529442
add esp, 4
xor al, al
jmp 0x551a34
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, ebp
mov esi, ebp
je 0x5519dc
jmp 0x551980
mov cl, byte [esi]
cmp cl, 0xa
jne 0x55199c
mov ecx, esi
sub ecx, eax
inc ecx
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00550980
inc esi
mov eax, esi
jmp 0x5519d7
cmp cl, 0xd
jne 0x5519d6
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x5519b4
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00550980
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.00550980
cmp byte [esi + 1], 0xa
jne 0x551997
add esi, 2
mov eax, esi
jmp 0x5519d7
inc esi
cmp byte [esi], 0
jne 0x551980
sub esi, eax
je 0x5519eb
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00550980
push ebp
call fcn.00529442
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x551956
cmp eax, 0x5cd308
je 0x551a32
push eax
call fcn.00529442
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8