joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461290
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004611ac
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00404458
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, eax
mov ecx, 0x4612f8
mov eax, ebx
call fcn.00460a90
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4612ea
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00404458
pop esi
pop ebx
ret

Function at 0x46131c
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, edx
mov eax, ebx
call fcn.00405550
push eax
call sub.wsock32.dll_gethostbyname
mov dword [esp + 4], eax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 4
call fcn.00403964
cmp dword [esp + 4], 0
je 0x46136e
mov eax, dword [esp + 4]
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 8], cl
mov cl, byte [edx + 1]
mov byte [esp + 9], cl
mov cl, byte [edx + 2]
mov byte [esp + 0xa], cl
mov al, byte [edx + 3]
mov byte [esp + 0xb], al
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop ebx
ret

Function at 0x461454
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x461485
mov ecx, dword [0x544d10]
mov dl, 1
mov eax, dword [0x46034c]
call fcn.0040fa3c
call fcn.004049f0
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x4614b2
mov ecx, dword [0x544bd8]
mov dl, 1
mov eax, dword [0x46034c]
call fcn.0040fa3c
call fcn.004049f0
xor eax, eax
push ebp
push 0x46152e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00404458
cmp byte [ebp + 8], 0
je 0x46150a
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004613bc
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.00461290
jmp 0x461524
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00460d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46154b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x461734
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00461044
xor eax, eax
push ebp
push 0x4618a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x461890
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x461780
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x46178a
call fcn.00404a9c
jmp 0x4618ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041e20c
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x461885
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x461838
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x461825
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00404458
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.004616ec
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4618b8]
cmp dl, byte [eax + 0x28]
je 0x46188c
call fcn.0040f954
jmp 0x46188c
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041e22c
jmp 0x46188c
cmp edi, ebx
jge 0x461854
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041e22c
jmp 0x46178a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041e20c
cmp edx, dword [esp + 4]
jne 0x461874
cmp eax, dword [esp]
pop edx
pop eax
jne 0x46178a
push ebp
call fcn.004616ec
pop ecx
jmp 0x46188c
push ebp
call fcn.004616ec
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4618ad
mov eax, dword [ebp - 4]
call fcn.00461050
ret
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4618bc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4619de
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00461044
xor eax, eax
push ebp
push 0x4619c1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x46190c
call fcn.00404a9c
jmp 0x4619c8
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4619ab
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4619ab
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00404458
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4619ab
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040f138
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4619f8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x544fd8]
mov dl, 1
mov eax, dword [0x46034c]
call fcn.0040fa78
call fcn.004049f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4619c8
mov eax, dword [ebp - 4]
call fcn.00461050
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4619e5
lea eax, [ebp - 0x28]
call fcn.00405080
ret
Function at 0x461a44
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x461b8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00461044
xor eax, eax
push ebp
push 0x461b71
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x461aa9
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x461aa9
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x461b5b
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x461abc
call fcn.00404a9c
jmp 0x461b78
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x461b5b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x461b5b
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00404458
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x461b5b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040f138
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x461ba8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x544fd8]
mov dl, 1
mov eax, dword [0x46034c]
call fcn.0040fa78
call fcn.004049f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461b78
mov eax, dword [ebp - 4]
call fcn.00461050
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461b95
lea eax, [ebp - 0x28]
call fcn.00405080
ret
Function at 0x465394
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, edx
mov edi, eax
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [edi + 0x38]
cmp eax, 0xc8
jbe 0x4653d5
mov eax, dword [edi + 0x40]
sub eax, dword [edi + 0x34]
cmp eax, 0x20
jbe 0x4653d5
mov eax, dword [edi + 0x48]
mov ecx, 3
cdq
idiv ecx
cmp eax, dword [edi + 0x40]
jle 0x4653cf
cmp dword [edi + 0x34], 0
je 0x4653d9
cmp dword [edi + 0x34], 0
jne 0x4653d9
xor ebx, ebx
jmp 0x4653db
mov bl, 1
imul eax, esi, 0x64
cdq
idiv dword [edi + 0x48]
mov ebp, eax
cmp ebp, dword [edi + 0x3c]
jne 0x4653ed
test bl, bl
je 0x465437
mov eax, ebp
push eax
push ebx
mov eax, dword [edi + 0x40]
push eax
lea eax, [esp + 0xc]
push eax
mov ecx, dword [edi + 0x8c]
mov edx, dword [edi + 0x34]
xor eax, eax
call fcn.0041a630
lea eax, [esp + 8]
push eax
mov eax, dword [edi + 0x30]
push eax
mov cl, 1
mov edx, edi
mov eax, edi
mov si, 0xfffd
call fcn.00404458
test bl, bl
je 0x465434
mov eax, dword [edi + 0x40]
mov dword [edi + 0x34], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ebp
inc dword [edi + 0x40]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x468ad8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0xc]
cmp eax, 0x2710
jbe 0x468bc9
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x468bc9
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 8]
call fcn.0041bce4
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 8]
cmp eax, 0x1d4c0
jbe 0x468bbc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 8]
call fcn.0041bbc0
xor eax, eax
push ebp
push 0x468b6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00402e08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468b82
xor eax, eax
push ebp
push 0x468ba8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x4665cc]
mov eax, dword [ebp - 0xc]
call fcn.004061d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468bbc
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x468b1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468c00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x10]
cmp eax, 0x2710
jbe 0x468cf1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x468cf1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
call fcn.0041bce4
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 8]
cmp eax, 0x1d4c0
jbe 0x468ce4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
call fcn.0041bbc0
xor eax, eax
push ebp
push 0x468c96
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00404250
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468caa
xor eax, eax
push ebp
push 0x468cd0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x4665f8]
mov eax, dword [ebp - 0xc]
call fcn.004061d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468ce4
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x468c43
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47ed14
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
cmp dword [ebx + 0xc], 0
jle 0x47ed9b
cmp dword [ebx + 0x10], 0
jle 0x47ed9b
mov ecx, edx
mov eax, dword [0x47eadc]
mov dl, 1
call fcn.0047ef6c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ed94
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
call fcn.0040306c
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0047f18c
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 4]
call fcn.0041e470
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ed9b
mov eax, dword [ebp - 4]
call fcn.00404250
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x481234
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
mov eax, dword [edi + 0x10]
test eax, eax
je 0x48124c
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [edi + 0xc]
test eax, eax
je 0x481259
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x481267
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [edi + 4]
call fcn.00405080
xor eax, eax
mov dword [edi + 8], eax
xor eax, eax
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov byte [edi + 0x28], 0
lea eax, [edi + 4]
mov edx, esi
call fcn.004050d4
push 0
push 0x10000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [edi + 4]
call fcn.00405550
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
mov dword [edi + 8], esi
cmp esi, 0xffffffff
je 0x481360
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebp, eax
mov dword [edi + 0xc], ebp
test ebp, ebp
jne 0x4812fa
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x481360
push 0
push 0
push 0
push 4
mov eax, dword [edi + 0xc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
mov dword [edi + 0x10], esi
test esi, esi
jne 0x481328
mov eax, dword [edi + 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x481360
push esp
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
mov eax, dword [esp]
xor edx, edx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
mov eax, ecx
xor edx, edx
push edx
push eax
mov edx, dword [edi + 0x18]
xor eax, eax
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
mov byte [edi + 0x28], 1
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48279c
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, 0x53e728
lea ecx, [esp + 8]
mov dword [ecx], eax
mov eax, dword [esp]
mov dword [esp + 0xc], eax
xor ebx, ebx
xor esi, esi
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
test eax, eax
jle 0x482860
mov edx, dword [ecx]
movzx edx, byte [edx + ebx]
shr edx, 2
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 1]
shr ebp, 4
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 1], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 2]
shr ebp, 6
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 2], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 3], dl
add esi, 4
add ebx, 3
dec eax
jne 0x4827d4
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
dec edx
je 0x482877
dec edx
je 0x4828b8
jmp 0x482915
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 2], 0x3d
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
jmp 0x482915
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ecx]
movzx edx, byte [edx + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [ecx]
mov al, byte [eax + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 2], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x482978
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], eax
mov dword [esp + 8], edx
xor esi, esi
xor edi, edi
xor eax, eax
mov ebp, ecx
test ebp, ebp
jns 0x482995
add ebp, 3
sar ebp, 2
test ebp, ebp
jle 0x482aa7
mov edx, 4
mov eax, esp
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + esi]
cmp ecx, 0x3d
jg 0x4829c8
je 0x482a14
sub ecx, 0x2b
je 0x482a0a
sub ecx, 4
je 0x482a0f
dec ecx
sub ecx, 0xa
jb 0x4829f9
jmp 0x482a17
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x4829da
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x4829e8
jmp 0x482a17
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x482a17
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x482a17
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x482a17
mov byte [eax], 0x3e
jmp 0x482a17
mov byte [eax], 0x3f
jmp 0x482a17
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x4829a7
mov al, byte [esp]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 1]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi], al
lea eax, [edi + 1]
mov dl, byte [esp + 2]
cmp dl, 0xff
je 0x482a67
cmp byte [esp + 3], 0xff
jne 0x482a67
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
lea eax, [edi + 2]
inc edi
jmp 0x482a9f
cmp dl, 0xff
je 0x482a9f
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 2]
shl edx, 6
or dl, byte [esp + 3]
mov byte [eax + edi + 2], dl
lea eax, [edi + 3]
add edi, 2
inc edi
dec ebp
jne 0x4829a0
add esp, 0xc
pop ebp
pop edi
pop esi
ret
Function at 0x484e98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp byte [ebx + 4], 0
jne 0x484ec2
mov ecx, 0x484f28
mov dl, 1
mov eax, dword [0x48412c]
call fcn.0040f980
call fcn.004049f0
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 8]
test esi, esi
jle 0x484f15
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x38]
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [ebx + 0x14]
xor al, byte [edx]
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov ecx, dword [ebx + 0x18]
dec ecx
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x10]
inc eax
call fcn.0040306c
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebx + 0x10]
add edx, dword [ebx + 0x18]
dec edx
mov byte [edx], al
inc dword [ebp - 8]
inc dword [ebp - 0xc]
dec esi
jne 0x484ed2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x484f40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp byte [ebx + 4], 0
jne 0x484f6a
mov ecx, 0x484fd4
mov dl, 1
mov eax, dword [0x48412c]
call fcn.0040f980
call fcn.004049f0
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 8]
test esi, esi
jle 0x484fc3
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov byte [ebp - 0xd], al
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x38]
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [ebx + 0x14]
xor al, byte [edx]
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov ecx, dword [ebx + 0x18]
dec ecx
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x10]
inc eax
call fcn.0040306c
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0x18]
dec eax
mov dl, byte [ebp - 0xd]
mov byte [eax], dl
inc dword [ebp - 8]
inc dword [ebp - 0xc]
dec esi
jne 0x484f7a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x48557c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jle 0x48559c
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x48558a
pop edi
pop esi
pop ebx
ret