joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d915
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6041fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.0048d110
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
add esp, 0xc
or ecx, 0x8000
cmp byte [ebp + 0x10], 0
cmove ecx, dword [ebp + 0xc]
push eax
push edi
push edi
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
je 0x41d975
push edi
jmp 0x41d97c
lea eax, [ebp - 0x20c]
push eax
call fcn.00401510
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004755fc
leave
ret
Function at 0x41daed
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x868
mov eax, 0x58a2ab
call fcn.00475b46
mov esi, ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x828]
mov edx, dword [ebp + 0x18]
test edx, edx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x870], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x86c], eax
mov eax, 0x58c63c
cmovne eax, edx
push eax
call fcn.00401510
xor ecx, ecx
add esi, 4
mov dword [ebp - 4], ecx
mov dword [ebp - 0x85c], ecx
mov dword [ebp - 0x868], ecx
mov dword [ebp - 0x864], ecx
mov dword [ebp - 0x860], ecx
cmp dword [esi + 0x10], ecx
ja 0x41db7c
lea eax, [ebp - 0x858]
push eax
call fcn.0041e039
pop ecx
push eax
mov ecx, esi
call fcn.00409dbb
lea ecx, [ebp - 0x858]
call fcn.004019e0
xor ecx, ecx
cmp dword [esi + 0x14], 8
jb 0x41db84
mov esi, dword [esi]
lea eax, [ebp - 0x85c]
push eax
push 0x20119
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.WS2_32.dll_closesocket
call esi
test eax, eax
je 0x41dbc4
cmp dword [ebp - 0x814], 8
lea ecx, [ebp - 0x828]
cmovae ecx, dword [ebp - 0x828]
push ecx
mov ecx, edi
call fcn.00401510
jmp 0x41dd4b
lea eax, [ebp - 0x868]
push eax
push 0x20119
push 0
push 0x58f4c8
push dword [ebp - 0x85c]
call esi
test eax, eax
je 0x41dc06
push dword [ebp - 0x85c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
jmp 0x41dbb8
lea eax, [ebp - 0x864]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x868]
call esi
test eax, eax
je 0x41dc39
push dword [ebp - 0x868]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x85c]
call esi
jmp 0x41dbef
lea eax, [ebp - 0x860]
xor ebx, ebx
push eax
push 0x20119
push ebx
push dword [ebp - 0x870]
push dword [ebp - 0x864]
call esi
test eax, eax
je 0x41dc70
push dword [ebp - 0x860]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x864]
jmp 0x41dc2d
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0048d110
add esp, 0xc
mov dword [ebp - 0x874], 0x400
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x86c]
push dword [ebp - 0x860]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x860]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x864]
call esi
push dword [ebp - 0x868]
call esi
push dword [ebp - 0x85c]
call esi
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41dce0
sub ecx, edx
sar ecx, 1
je 0x41dbef
xor eax, eax
mov dword [ebp - 0x830], ebx
mov word [ebp - 0x840], ax
lea ecx, [ebp - 0x840]
lea eax, [ebp - 0x810]
mov dword [ebp - 0x82c], 7
push eax
call fcn.00403091
cmp dword [ebp - 0x82c], 8
lea eax, [ebp - 0x840]
mov ecx, edi
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x840]
push eax
call fcn.00401510
lea ecx, [ebp - 0x840]
call fcn.004019e0
lea ecx, [ebp - 0x828]
call fcn.004019e0
mov eax, edi
call fcn.00475af0
ret 0x14
Function at 0x41dd60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x6041fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
cmp dword [esi + 0x14], ebx
ja 0x41ddb8
lea eax, [ebp - 0x1c]
push eax
call fcn.0041e039
pop ecx
lea ecx, [esi + 4]
push eax
call fcn.00409dbb
lea ecx, [ebp - 0x1c]
call fcn.004019e0
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x41ddc3
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push 0xf013f
push ebx
push eax
push reloc.WS2_32.dll_closesocket
call esi
test eax, eax
je 0x41dde6
xor al, al
jmp 0x41de9f
lea eax, [ebp - 0x24]
push eax
push 0xf013f
push ebx
push 0x58f4c8
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x41de09
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41dddf
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x2c]
push ebx
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x41de3b
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20]
call esi
jmp 0x41dddf
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41de8e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41de60
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x28]
call esi
mov bl, 1
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004755fc
leave
ret 0x10
Function at 0x41e202
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1218
call fcn.00476080
mov eax, dword [0x6041fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 0x1000
mov dword [ebp - 0x1218], eax
push esi
lea eax, [ebp - 0x1210]
push 0
push eax
call fcn.0048d110
and dword [ebp - 0x1214], 0
add esp, 0xc
xor eax, eax
xor ebx, ebx
mov word [ebp - 8], ax
lea eax, [ebp - 0x1214]
push eax
push esi
lea eax, [ebp - 0x1210]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x41e2dd
push edi
mov edi, dword [ebp - 0x1214]
xor esi, esi
shr edi, 2
test edi, edi
je 0x41e2dc
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0048d110
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp + esi*4 - 0x1210]
call fcn.0041e2ed
add esp, 0x18
test eax, eax
je 0x41e2ce
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004a1c7e
push dword [ebp - 0x1218]
lea eax, [ebp - 0x210]
push eax
call fcn.0048ed1a
add esp, 0x10
test eax, eax
jne 0x41e2d5
inc esi
cmp esi, edi
jb 0x41e272
jmp 0x41e2dc
mov ebx, dword [ebp + esi*4 - 0x1210]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004755fc
leave
ret

Function at 0x41e2ed
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test esi, esi
je 0x41e31a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x41e635
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3100
call fcn.00476080
mov eax, dword [0x6041fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x3100], edi
call fcn.0048d110
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0048d110
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
push str.._c:
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040983a
add esp, 0x10
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41e6cb
mov al, 1
jmp 0x41e7d4
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.0048d110
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.0048d110
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.0048d110
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x41e74d
mov bl, 2
jmp 0x41e7cb
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.0041e7e3
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.0041e7e3
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e78e
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
mov ecx, edi
call fcn.004186c3
lea edx, [ebp - 0x9dc]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x41e7af
mov ecx, dword [ebp - 0x3100]
lea eax, [ebp - 0x9dc]
sub edx, edi
push edx
push eax
call fcn.004186c3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004755fc
leave
ret
Function at 0x420a84
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
cmp byte [edx + 4], 0
je 0x420ab4
push esi
xor esi, esi
cmp dword [edx + 0x3cc], esi
jle 0x420ab3
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, ecx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
inc esi
cmp esi, dword [edx + 0x3cc]
jl 0x420aa3
pop edi
pop esi
pop ebp
ret 8

Function at 0x420ca2
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x58a3b4
call fcn.00475b12
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
mov eax, dword [ebp + 0x10]
mov edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x420e29
push 3
pop esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x14], al
inc edi
mov dl, byte [ebp - 0x13]
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x420d72
mov esi, dword [ebp + 8]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
cmp dword [0x604128], 0x10
mov ecx, 0x604114
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x604114]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.0040912f
inc edi
cmp edi, 4
jl 0x420d3a
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x420cdc
mov dword [ebp + 0x10], edi
test edi, edi
je 0x420e29
mov eax, edi
cmp edi, esi
jge 0x420da8
cmp eax, esi
jae 0x420e32
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x420d90
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x420e14
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x604128], 0x10
mov ecx, 0x604114
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x604114]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.0040912f
inc ebx
cmp ebx, edi
jl 0x420de5
mov edi, dword [ebp + 0x10]
push 3
pop esi
cmp edi, esi
jge 0x420e29
sub esi, edi
mov ecx, dword [ebp + 8]
push 0x3d
call fcn.0040912f
sub esi, 1
jne 0x420e1a
mov eax, dword [ebp + 8]
call fcn.00475adb
ret
call fcn.0047623c
int3
Function at 0x427080
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [edx*4 + 0x6121c0], eax
inc edx
cmp edx, 0x100
jb 0x427082
push esi
mov eax, 0x6121c4
mov esi, 0x1c0
mov edx, dword [eax - 4]
lea eax, [eax + 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x6121c0]
mov dword [eax + 0x3ec], edx
mov edx, dword [eax - 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x6121c0]
mov dword [eax + 0x3f0], edx
mov edx, dword [eax - 0xc]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x6121c0]
mov dword [eax + 0x3f4], edx
mov edx, dword [eax - 8]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x6121c0]
mov dword [eax + 0x3f8], edx
sub esi, 1
jne 0x427127
mov dword [0x6121bc], 0x428470
mov dword [0x6121b4], 0x428470
mov dword [0x6121b8], 0x428510
call fcn.00428280
mov ecx, dword [0x6121b4]
test eax, eax
mov edx, 0x428510
cmove ecx, edx
mov dword [0x6121b4], ecx
pop esi
ret
Function at 0x428940
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x428960
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
mov ecx, dword [ebp + 8]
push ebx
lea ebx, [eax - 4]
add ebx, ecx
mov dword [ebp - 4], ebx
lea eax, [edi + ecx]
cmp eax, ebx
jae 0x428989
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x428986
inc eax
cmp eax, ebx
jb 0x428977
mov ecx, dword [ebp + 8]
mov edx, eax
sub edx, edi
mov edi, eax
sub edx, ecx
sub edi, ecx
cmp eax, ebx
jae 0x428a8d
cmp edx, 2
jbe 0x428a12
xor esi, esi
movzx edx, byte [eax + 4]
lea ecx, [edx + 1]
test cl, 0xfe
jne 0x428a79
movzx ecx, byte [eax + 3]
mov ebx, dword [ebp + 0x10]
shl edx, 8
add ebx, edi
or edx, ecx
movzx ecx, byte [eax + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
add edx, ebx
sub ecx, ebx
cmp dword [ebp + 0x18], 0
cmove edx, ecx
mov dword [ebp + 0xc], edx
mov ebx, edx
test esi, esi
je 0x428a49
and esi, 6
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x428a47
mov ebx, 0x100
shl ebx, cl
mov ecx, dword [ebp + 0x10]
dec ebx
xor ebx, dword [ebp + 0xc]
add ecx, edi
cmp dword [ebp + 0x18], 0
je 0x428a45
add ebx, ecx
jmp 0x428a47
mov ecx, edx
shr esi, cl
test esi, esi
je 0x4289a2
cmp esi, 4
ja 0x428a37
cmp esi, 3
je 0x428a37
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x4289a2
mov ecx, dword [ebp + 8]
or esi, 8
shr esi, 1
inc edi
jmp 0x428970
sub ebx, ecx
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
and bl, 1
shr ecx, 0x10
neg bl
mov byte [eax + 3], cl
mov ecx, dword [ebp + 8]
mov byte [eax + 4], bl
mov eax, 5
mov ebx, dword [ebp - 4]
add edi, eax
jmp 0x428970
mov ecx, dword [ebp + 8]
or esi, 8
mov eax, 1
shr esi, 1
add edi, eax
jmp 0x428970
mov eax, dword [ebp + 0x14]
mov ecx, edx
shr esi, cl
xor ecx, ecx
cmp edx, 2
pop ebx
cmovbe ecx, esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x436d50
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x436d99
mov al, byte [esi]
push eax
call fcn.00446180
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x436d77
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x4412c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x6f2], 0
je 0x441343
cmp dword [edi + 0x1b0], 0
je 0x44130d
push esi
push 1
push edi
call fcn.00433020
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1b0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00433020
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x441343
push dword [edi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x5974e0
push 2
push eax
call fcn.004a013c
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004a013c
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x4416c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6041fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov eax, dword [edx + 0xc]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [eax + ecx*4 + 0x148]
push ecx
push eax
push edx
mov dword [ebp - 0x108], edx
call fcn.00441b40
add esp, 0xc
test eax, eax
je 0x44171b
pop edi
mov dword [esi], 0x1b
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004755fc
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x14]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x441798
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x441760
xor edi, edi
mov dword [esi], 0x51
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004755fc
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.0042ef80
push eax
push str.Send_failure:__s
push dword [ebp - 0x108]
call fcn.00441350
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [eax + 0x93c], ebx
mov dword [esi], 0x37
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004755fc
mov esp, ebp
pop ebp
ret
Function at 0x441b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
lea esi, [edx + 0x17]
mov eax, dword [ecx + 0x288]
shl esi, 4
add esi, ecx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x441c11
cmp dword [ecx + edx*4 + 0x160], 0x4415c0
jne 0x441c11
cmp dword [esi], 0
je 0x441b88
test edi, edi
je 0x441c11
mov ebx, dword [ecx + edx*4 + 0x148]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0044fe90
add esp, 0x14
cmp eax, 0xffffffff
je 0x441c11
test al, 1
je 0x441c11
mov ecx, dword [esi]
test ecx, ecx
jne 0x441bec
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x6041b8]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
jne 0x441bd7
pop edi
pop esi
lea eax, [ecx + 0x1b]
pop ebx
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x441c0a
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x441c11
add dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esi + 4], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x441da0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x19c], 0
je 0x441dc0
push eax
call fcn.0043b2a0
add esp, 4
test eax, eax
jne 0x441dde
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x148]
cmp eax, 0xffffffff
je 0x441dbc
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x441dbc
mov al, 1
pop ebp
ret

Function at 0x441fd0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x6041fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x184]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x80
push 0
push eax
mov dword [ebp - 0x188], 0x80
call fcn.0048d110
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x44204d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.0042ef80
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x442090
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.00441c20
add esp, 0x10
test al, al
jne 0x442099
call fcn.00491414
mov esi, dword [eax]
call fcn.00491414
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.0042ef80
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00441350
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004755fc
mov esp, ebp
pop ebp
ret
Function at 0x442820
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x60eed4]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x442871
push 3
push 2
push eax
push 6
call fcn.0046ce80
add esp, 0x10
test al, al
je 0x442865
mov dword [0x60eed4], 2
mov esp, ebp
pop ebp
ret
mov dword [0x60eed4], 1
jmp 0x442876
cmp eax, 2
je 0x4428b6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x44289d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4428b6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret