joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d86a0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x667758]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4d86e6
cmp word [ebx], dx
jne 0x4d86e6
or byte [eax + edi + 0x28], 4
jmp 0x4d86eb
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4d884e
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4d882e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4d872c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4d8762
cmp eax, edx
jae 0x4d8770
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4d8707
jmp 0x4d884e
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d8829
cmp dword [ebp - 0x18], 0
je 0x4d8829
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x667758]
test byte [eax + edi + 0x28], 0x48
je 0x4d87ff
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4d87c3
mov word [esi], cx
jmp 0x4d87fa
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x667758]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x667758]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x667758]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4d884e
pop eax
cmp word [ebp - 4], ax
jne 0x4d880f
cmp esi, ebx
jne 0x4d880f
mov word [esi], ax
jmp 0x4d884b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004d84f5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4d884e
push 0xd
pop eax
jmp 0x4d880a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x667758]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4d8848
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4d884e
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ddf9c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x655140]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4ddfe7
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004de137
test al, al
jne 0x4ddfe1
sub edx, 2
cmp edx, edi
jne 0x4ddfc7
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4de009
lea eax, [edi + 2]
cmp edx, eax
je 0x4de009
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004ddee8
add esp, 0x10
jmp 0x4de103
push esi
lea ecx, [ebp - 0x255]
call fcn.004de137
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4de04c
push dword [ebp - 0x25c]
jmp 0x4ddff9
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4de089
cmp word [ebp - 0x226], 0
je 0x4de0aa
cmp word [ebp - 0x226], ax
jne 0x4de089
cmp word [ebp - 0x224], 0
je 0x4de0aa
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004ddee8
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4de0f6
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4de063
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4de0de
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4de103
push 0x4ddd18
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004e5c80
add esp, 0x10
jmp 0x4de0d3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3f1a
leave
ret
Function at 0x4dea19
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4deab6
push ebx
push esi
call fcn.004de9e2
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004db7b1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4dea63
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4deab5
push edi
push eax
call fcn.004d54d1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4dea83
call fcn.004d5497
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4deab4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004db7b1
add esp, 0x20
test eax, eax
jne 0x4deaa2
push edi
call fcn.004d5497
jmp 0x4deaaa
push ebx
call fcn.004d5497
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4deab9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4deaca
pop esi
ret
push ebx
push edi
push esi
call fcn.004de9e2
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004d54d1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4deaf2
push ebx
push esi
push edi
call fcn.004b63f0
add esp, 0xc
push 0
call fcn.004d5497
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4df24c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ded67

Function at 0x4e1174
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004d68bd
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4e11e3
cmp esi, dword [ebp - 4]
je 0x4e11de
cmp dword [ebp + 0xc], 0
je 0x4e11de
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4e11bb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004e0cc6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4e11e5
xor eax, eax
inc eax
jmp 0x4e11e5
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4e124a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x655140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004d68bd
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004d68bd
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4e12c1
cmp word [ecx], dx
je 0x4e12c1
mov eax, dword [0x5e7584]
push edi
dec eax
push eax
push 0x5e7470
call fcn.004e11e9
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4e1334
cmp word [eax], dx
je 0x4e1334
mov eax, dword [edi]
test eax, eax
je 0x4e12e5
cmp word [eax], dx
je 0x4e12e5
lea eax, [ebp - 0x10]
push eax
call fcn.004e0bcc
jmp 0x4e12ee
lea eax, [ebp - 0x10]
push eax
call fcn.004e0c67
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4e135e
mov eax, dword [0x5e746c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5e7160
call fcn.004e11e9
add esp, 0xc
test al, al
je 0x4e135e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4e1329
cmp word [eax], di
je 0x4e1329
lea eax, [ebp - 0x10]
push eax
call fcn.004e0bcc
pop ecx
jmp 0x4e1360
lea eax, [ebp - 0x10]
push eax
call fcn.004e0c67
jmp 0x4e1326
mov eax, dword [edi]
test eax, eax
je 0x4e134b
cmp word [eax], dx
je 0x4e134b
lea eax, [ebp - 0x10]
push eax
call fcn.004e0b81
pop ecx
jmp 0x4e135e
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4e1429
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004e106e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4e1429
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4e1429
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4e1429
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4e13b6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004d75ea
test ebx, ebx
je 0x4e1424
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004d75ea
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4e1429
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4e1429
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004cdcb9
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4e142b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3f1a
leave
ret
Function at 0x4e47a2
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x655140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4e47e5
call fcn.004c0f41
mov dword [eax], 0xf
call fcn.004c0f54
mov dword [eax], 0xd
call fcn.004c0e56
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3f1a
leave
ret
test eax, eax
jne 0x4e47ec
inc eax
jmp 0x4e47d9
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4e47d7
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4e47d9
Function at 0x4e67d5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004e6751
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4e6944
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4e6944
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4e68f9
jg 0x4e6831
test eax, eax
je 0x4e68ef
push 1
push 0x1000
call fcn.004d543a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4e6854
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4e68e6
push 0x8000
push ebx
call fcn.004d33ae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4e687d
jg 0x4e6878
cmp ecx, 0x1000
jb 0x4e687d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004d9fff
add esp, 0x10
cmp eax, 0xffffffff
je 0x4e68c2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4e6878
jl 0x4e68a9
test ecx, ecx
jne 0x4e686a
push dword [ebp - 0xc]
push ebx
call fcn.004d33ae
push esi
call fcn.004d5497
add esp, 0xc
xor ebx, ebx
jmp 0x4e6952
cmp byte [edi + 0x24], 0
je 0x4e68d9
cmp dword [edi + 0x20], 5
jne 0x4e68d9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4e68e4
mov ebx, dword [edi + 0x18]
jmp 0x4e68e6
xor ebx, ebx
push esi
call fcn.004d5497
pop ecx
jmp 0x4e6952
test ecx, ecx
jg 0x4e68bb
jl 0x4e68f9
test eax, eax
jae 0x4e68bb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004d84f5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4e6919
cmp byte [edi + 0x1c], 0
je 0x4e68bb
jmp 0x4e694a
push ebx
call fcn.004d96ab
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4e68bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4e6952
cmp byte [edi + 0x1c], 0
je 0x4e694f
mov ebx, dword [edi + 0x18]
jmp 0x4e6952
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004d84f5
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4e7290
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x655140]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4e72e0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4e72da
shr eax, 8
cmp al, 2
jne 0x4e72da
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret
Function at 0x4e8730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x4e875c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4e874d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4e8790
cmp dword [esi + 8], 0
jne 0x4e8780
push 0x5de698
push dword [eax + 8]
call fcn.004ca0e7
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4e8780
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004cad95
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4e87b2
mov eax, dword [esi + 8]
test eax, eax
je 0x4e87ac
push eax
call fcn.004caf74
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4e9610
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x4e96fc
push edi
mov edi, dword [esp + 0x14]
inc edi
nop word [eax + eax]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x4e968e
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x5ebdc0]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x5ebdc0]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + 0x5ebdc0]
mov byte [eax + 2], cl
movzx ecx, byte [edx + 0x5ebdc0]
mov byte [eax + 3], cl
jmp 0x4e96df
shl edx, 0x10
cmp esi, 2
jne 0x4e969e
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x5ebdc0]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x5ebdc0]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x4e96cb
lea ecx, [esi + 0x3c]
jmp 0x4e96d8
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + 0x5ebdc0]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x4e9630
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4e9c30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.004b4910
mov eax, dword [0x655140]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x4e9c96
cmp edi, dword [esi]
je 0x4e9c8d
test ebp, ebp
je 0x4e9d10
test ebx, ebx
js 0x4e9d10
mov eax, 1
mov dword [esi], edi
jmp 0x4e9c9c
mov edi, dword [esi]
test edi, edi
je 0x4e9d10
test ebp, ebp
je 0x4e9e2b
push edi
call fcn.004e9260
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x4e9cd0
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.004fc9a0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x4e9d2b
push dword [esp + 0x10]
lea eax, [esi + 4]
push edi
push eax
call fcn.004e8970
add esp, 0xc
test eax, eax
je 0x4e9d10
push ebx
push ebp
lea ebx, [esi + 4]
push ebx
call fcn.004e8b20
add esp, 0xc
test eax, eax
je 0x4e9d10
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.004e88d0
add esp, 0xc
test eax, eax
jne 0x4e9d47
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b3f1a
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x4e9d10
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.004b63f0
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x4e9d6a
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.004b69d0
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x4e9d70
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.004e8970
add esp, 0xc
test eax, eax
je 0x4e9d10
push edi
call fcn.004e9260
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004e8b20
add esp, 0x10
test eax, eax
je 0x4e9d10
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x4e9dc0
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.004e8970
add esp, 0xc
test eax, eax
je 0x4e9d10
push edi
call fcn.004e9260
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004e8b20
add esp, 0x10
test eax, eax
je 0x4e9d10
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.004e8bf0
add esp, 8
test eax, eax
je 0x4e9d10
mov eax, 1
jmp 0x4e9d12
test eax, eax
je 0x4e9e09
jmp 0x4e9d6e

Function at 0x4ee8e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4ee8fe
cmp dword [esi + 0x48], 0
je 0x4ee8fe
push 2
push 3
push esi
call fcn.0050da50
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00505290
add esp, 4
test esi, esi
je 0x4ee91e
cmp dword [esi + 0x48], 0
je 0x4ee91e
push 3
push esi
call fcn.0050da90
add esp, 8
pop esi
pop ebp
ret
Function at 0x4ef7c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0050e120
Function at 0x4f8cd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a0]
call fcn.004f8fb0
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x4f8d54
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4f8d2c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.004e7300
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004f8940
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x8658], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x1c4]
mov ebx, dword [ecx + edx*4 + 0x1a0]
add esi, eax
mov eax, dword [ecx + 0x2c0]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x4f9066
cmp dword [ecx + edx*4 + 0x1b4], 0x4f8c20
jne 0x4f9066
cmp dword [esi], 0
je 0x4f8ffc
test edi, edi
je 0x4f9066
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004f8260
add esp, 0x14
cmp eax, 0xffffffff
je 0x4f9066
test al, 1
je 0x4f9066
cmp dword [esi], 0
jne 0x4f904f
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x655c20]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x4f904f
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4f9066
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1e4], 0
je 0x4f91d0
push eax
call fcn.004ef7c0
add esp, 4
test eax, eax
jne 0x4f91f2
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a0]
cmp eax, 0xffffffff
je 0x4f91cc
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4f91f2
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret
Function at 0x4f98c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x667c04]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4f9911
push 3
push 2
push eax
push 6
call fcn.005241b0
add esp, 0x10
test al, al
je 0x4f9905
mov dword [0x667c04], 2
mov esp, ebp
pop ebp
ret
mov dword [0x667c04], 1
jmp 0x4f9916
cmp eax, 2
je 0x4f9956
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 0x4f993d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4f9956
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

Function at 0x4f9a20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4f9a68
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004e7300
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004f89e0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004f89e0
add esp, 8
pop edi
pop esi
pop ebp
ret