joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b4490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push 0
lea ecx, [eax + eax]
lea eax, [ebp - 8]
push eax
push 0
push edi
push ebx
mov dword [ebp - 8], 1
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea edx, [ebp - 4]
push edx
mov esi, eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4b4501
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push esi
push ecx
push edx
call fcn.004f3a1a
jmp 0x4b4510
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push 0
push ecx
call fcn.004f0550
add esp, 0xc
test esi, esi
je 0x4b4527
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b4680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push edi
call fcn.004f43a7
add esp, 8
test eax, eax
jne 0x4b46c5
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f0194
mov esp, ebp
pop ebp
ret
xor ecx, ecx
lea edx, [ebp - 0x808]
mov word [eax], cx
push edx
mov dword [ebp - 0x808], ecx
call fcn.004b4570
add esp, 4
test eax, eax
je 0x4b46b4
push esi
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call fcn.004f0550
add esp, 0xc
lea edx, [ebp + 0xc]
push edx
mov edx, dword [ebp - 0x808]
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x80c]
push ecx
push 0
push str.LANG
push edx
mov dword [ebp - 0x80c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x808]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4b4767
xor eax, eax
jmp 0x4b4750
movzx ecx, word [eax + str.English]
mov word [ebp + eax - 0x804], cx
add eax, 2
test cx, cx
jne 0x4b4750
lea eax, [edi - 2]
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4b4770
mov ecx, dword [str.LANGUAGES_]
mov dword [eax], ecx
mov edx, dword [0x5441c0]
mov dword [eax + 4], edx
mov ecx, dword [0x5441c4]
mov dword [eax + 8], ecx
mov edx, dword [0x5441c8]
mov dword [eax + 0xc], edx
mov ecx, dword [0x5441cc]
mov dword [eax + 0x10], ecx
mov edx, dword [0x5441d0]
mov dword [eax + 0x14], edx
lea eax, [ebp - 0x804]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b47c0
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4b47d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop edi
call fcn.004f0194
mov esp, ebp
pop ebp
ret
Function at 0x4b4ba0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [0x58fe08]
test eax, eax
jne 0x4b4baf
mov eax, 1
ret
mov ecx, dword [0x58fe58]
cmp ecx, dword [eax + 0x4c]
je 0x4b4bd0
push ecx
call fcn.00497bd0
add esp, 4
test eax, eax
jne 0x4b4c73
mov eax, dword [0x58fe08]
mov cx, word [eax + 4]
mov word [0x58fe50], cx
mov dl, byte [eax + 6]
mov byte [0x58fe52], dl
mov ecx, dword [eax + 8]
mov dword [0x58fe40], ecx
mov edx, dword [eax + 0xc]
mov dword [0x58fe44], edx
mov ecx, dword [eax + 0x10]
mov dword [0x58fe48], ecx
mov edx, dword [eax + 0x14]
mov dword [0x58fe4c], edx
mov ecx, dword [eax + 0x18]
mov dword [0x58fe2c], ecx
mov edx, dword [eax + 0x1c]
mov dword [0x58fe30], edx
mov ecx, dword [eax + 0x20]
mov dword [0x58fe34], ecx
mov edx, dword [eax + 0x24]
mov dword [0x58fe38], edx
mov ecx, dword [eax + 0x28]
push esi
mov dword [0x58fe3c], ecx
push edi
lea esi, [eax + 0x2c]
mov ecx, 8
mov edi, 0x58fe0c
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x4c]
mov dword [0x58fe58], edx
mov ecx, dword [eax + 0x50]
mov dword [0x58fe54], ecx
mov edx, dword [eax]
dec dword [0x58fe64]
push eax
mov dword [0x58fe08], edx
call fcn.004efd7c
add esp, 4
pop edi
xor eax, eax
pop esi
ret

Function at 0x4b50c0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xd]
movzx edx, byte [ecx + str.cw]
xor byte [eax], dl
movzx ecx, byte [eax + 0xe]
movzx edx, byte [ecx + str.cw]
xor byte [eax + 1], dl
movzx ecx, byte [eax + 0xf]
movzx edx, byte [ecx + str.cw]
movzx ecx, byte [eax + 0xc]
xor byte [eax + 2], dl
movzx edx, byte [ecx + str.cw]
xor byte [eax + 3], dl
movzx ecx, byte [0x59066c]
xor byte [eax], cl
mov cl, byte [0x59066c]
cmp cl, 0x80
jae 0x4b5116
add cl, cl
jmp 0x4b511b
add cl, cl
xor cl, 0x1b
mov byte [0x59066c], cl
movzx edx, byte [eax]
xor byte [eax + 4], dl
movzx edx, byte [eax + 1]
xor byte [eax + 5], dl
mov dl, byte [eax + 5]
xor byte [eax + 9], dl
movzx edx, byte [eax + 9]
mov cl, byte [eax + 4]
xor byte [eax + 8], cl
mov cl, byte [eax + 8]
xor byte [eax + 0xc], cl
push ebx
movzx ebx, byte [eax + 2]
xor byte [eax + 6], bl
movzx ebx, byte [eax + 6]
mov byte [ebp + 0xb], bl
movzx ebx, byte [eax + 3]
xor byte [eax + 7], bl
mov bl, byte [eax + 7]
xor byte [eax + 0xb], bl
mov bl, byte [eax + 0xb]
mov byte [ebp - 1], dl
movzx edx, byte [ebp + 0xb]
xor byte [eax + 0xa], dl
movzx ecx, byte [ebp - 1]
mov dl, byte [eax + 0xa]
xor byte [eax + 0xd], cl
xor byte [eax + 0xe], dl
xor byte [eax + 0xf], bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b5220
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov cl, byte [eax + 8]
xor byte [eax + 0xc], cl
push ebx
mov bl, byte [eax + 0xa]
xor byte [eax + 0xe], bl
mov dl, byte [eax + 9]
xor byte [eax + 0xd], dl
mov byte [ebp + 0xb], bl
mov bl, byte [eax + 0xb]
xor byte [eax + 0xf], bl
mov byte [ebp - 1], bl
mov bl, byte [eax + 4]
mov byte [ebp - 2], bl
xor bl, cl
mov cl, byte [eax + 5]
mov byte [eax + 8], bl
mov bl, cl
xor bl, dl
mov dl, byte [eax + 6]
mov byte [eax + 9], bl
mov bl, dl
xor bl, byte [ebp + 0xb]
push esi
mov byte [eax + 0xa], bl
mov bl, byte [eax + 7]
mov byte [ebp + 0xb], bl
xor bl, byte [ebp - 1]
movzx esi, byte [eax + 0xd]
mov byte [eax + 0xb], bl
mov bl, byte [eax]
mov byte [ebp - 1], bl
xor bl, byte [ebp - 2]
mov byte [eax + 4], bl
mov bl, byte [eax + 1]
mov byte [ebp - 2], bl
xor bl, cl
mov cl, byte [eax + 2]
mov byte [eax + 5], bl
mov bl, cl
xor bl, dl
mov dl, byte [eax + 3]
mov byte [eax + 6], bl
mov bl, dl
xor bl, byte [ebp + 0xb]
mov byte [eax + 7], bl
movzx ebx, byte [esi + str.cw]
xor bl, byte [ebp - 1]
movzx esi, byte [eax + 0xe]
mov byte [eax], bl
movzx ebx, byte [esi + str.cw]
xor bl, byte [ebp - 2]
movzx esi, byte [eax + 0xf]
mov byte [eax + 1], bl
movzx ebx, byte [esi + str.cw]
xor bl, cl
movzx ecx, byte [eax + 0xc]
mov byte [eax + 2], bl
movzx ecx, byte [ecx + str.cw]
xor cl, dl
mov byte [eax + 3], cl
movzx edx, byte [0x59066c]
xor byte [eax], dl
test byte [0x59066c], 1
pop esi
pop ebx
je 0x4b52fe
mov byte [0x59066c], 0x80
mov esp, ebp
pop ebp
ret
shr byte [0x59066c], 1
mov esp, ebp
pop ebp
ret
Function at 0x4b5380
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, esi
mov byte [0x59066c], 0x36
mov byte [0x59066d], 0xa
mov eax, esi
mov dword [ebp - 0x14], edi
mov ecx, 0x10
lea esp, [esp]
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x4b53b0
lea esp, [esp]
cmp byte [0x59066d], 0xa
je 0x4b54c7
add esi, 2
mov dword [ebp - 0x10], 4
jmp 0x4b53e0
mov cl, byte [esi]
movzx edx, byte [esi - 2]
movzx ebx, byte [esi - 1]
movzx edi, byte [esi + 1]
movzx eax, cl
mov al, byte [eax + 0x5449e8]
xor al, byte [edx + 0x5449e8]
mov dword [ebp - 0xc], ebx
xor al, byte [ebx + 0x5449e8]
movzx ebx, cl
movzx ebx, byte [ebx + 0x5448e8]
xor al, byte [edi + 0x5449e8]
mov byte [ebp - 3], bl
mov ebx, dword [ebp - 0xc]
movzx ebx, byte [ebx + 0x5447e8]
mov byte [ebp - 1], bl
movzx ebx, byte [edx + 0x5447e8]
mov dl, byte [edx + 0x5448e8]
mov byte [ebp - 6], dl
xor dl, bl
xor dl, byte [ebp - 1]
xor al, cl
xor dl, byte [esi - 2]
xor al, byte [esi - 2]
xor dl, byte [ebp - 3]
xor al, byte [esi + 1]
mov byte [ebp - 5], bl
xor al, byte [esi - 1]
mov bl, byte [edi + 0x5447e8]
xor dl, al
mov byte [ebp - 8], dl
movzx edx, byte [edi + 0x5448e8]
mov byte [ebp - 4], dl
movzx edx, cl
movzx edx, byte [edx + 0x5447e8]
mov byte [ebp - 2], dl
mov edx, dword [ebp - 0xc]
mov dl, byte [edx + 0x5448e8]
xor cl, bl
xor cl, byte [ebp - 6]
mov byte [ebp - 7], dl
xor dl, byte [ebp - 4]
xor bl, byte [ebp - 7]
xor dl, byte [ebp - 1]
xor bl, byte [ebp - 4]
xor dl, byte [esi - 1]
xor cl, byte [ebp - 2]
xor bl, byte [ebp - 5]
xor dl, byte [ebp - 2]
xor bl, byte [esi + 1]
xor cl, byte [ebp - 3]
xor dl, al
xor cl, al
xor al, bl
movzx ebx, byte [ebp - 8]
mov byte [esi - 2], bl
mov byte [esi - 1], dl
mov byte [esi], cl
mov byte [esi + 1], al
add esi, 4
dec dword [ebp - 0x10]
jne 0x4b53e0
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov eax, esi
mov ecx, 0x10
mov edi, edi
movzx edx, byte [eax]
mov dl, byte [edx + 0x5446e8]
mov byte [eax], dl
inc eax
dec ecx
jne 0x4b54d0
push esi
call fcn.004b51c0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004b5220
add esp, 8
mov eax, esi
mov ecx, 0x10
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x4b54f8
dec byte [0x59066d]
jne 0x4b53c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b8870
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53662b
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0xc]
push 0xc0000000
push eax
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xac], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b88ec
mov edi, str.LoadLogFromFile1
call fcn.004b83c0
xor al, al
jmp 0x4b8aa2
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0xa4]
push ecx
push 4
lea edx, [ebp - 0xa8]
push edx
push esi
call edi
cmp dword [ebp - 0xa4], 4
je 0x4b8927
mov edi, str.LoadLogFromFile2
call fcn.004b83c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4b8aa2
push ebx
lea eax, [ebp - 0xa4]
push eax
push 4
lea ecx, [ebp - 0xac]
push ecx
push esi
call edi
mov edx, dword [ebp - 0xac]
push edx
call fcn.004b8470
add esp, 4
test al, al
je 0x4b8966
mov edi, str.LoadLogFromFile3
call fcn.004b83c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4b8aa2
mov eax, dword [ebp - 0xa8]
push eax
call fcn.004dbe65
add esp, 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call ebx
push eax
call fcn.004dbe65
add esp, 4
cmp dword [ebp - 0xac], 1
push 0
lea ecx, [ebp - 0xa4]
push ecx
push 0
mov dword [ebp - 0xb4], eax
push esi
jne 0x4b89d3
call ebx
mov ebx, dword [ebp - 0xb4]
sub eax, 8
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0xa4]
push edx
push ebx
lea eax, [ebp - 0xa8]
push eax
push edi
call fcn.004b8490
add esp, 0x10
jmp 0x4b89e1
call ebx
sub eax, 8
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
push eax
push edx
lea edx, [ebp - 0xb8]
push edx
call fcn.00415210
mov eax, dword [ebp - 0xa8]
lea ecx, [edi + eax]
mov ebx, edi
cmp edi, ecx
jae 0x4b8a84
lea esp, [esp]
lea ecx, [ebp - 0xa0]
call fcn.00406210
mov dword [ebp - 4], 0
lea edx, [ebp - 0xa0]
push edx
push ebx
call fcn.004b8850
add esp, 8
add ebx, eax
cmp dword [ebp + 0x10], 0
jne 0x4b8a53
mov eax, dword [ebp - 0x44]
push 6
push str.SYSTEM
push eax
push 0
lea ecx, [ebp - 0x54]
call fcn.00425f00
test eax, eax
je 0x4b8a65
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, dword [ebp - 0xb0]
call fcn.004162b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.004066b0
mov edx, dword [ebp - 0xa8]
lea eax, [edi + edx]
cmp ebx, eax
jb 0x4b8a10
push edi
call fcn.004efd7c
mov ecx, dword [ebp - 0xb4]
push ecx
call fcn.004efd7c
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f0194
mov esp, ebp
pop ebp
ret
Function at 0x4b8ac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b8af1
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ecx], 0
mov ecx, dword [ebp + 0x14]
xor eax, eax
push edi
mov dword [ebx], 0
push edx
mov dword [ecx], eax
push eax
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.004f0550
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push 0
lea ecx, [ebp - 4]
push ecx
push 4
push ebx
push esi
call edi
mov eax, dword [ebp + 0x10]
push 0
lea edx, [ebp - 4]
push edx
push 4
push eax
push esi
call edi
mov edx, dword [ebp + 0x14]
push 0
lea ecx, [ebp - 4]
push ecx
push 8
push edx
push esi
call edi
mov ebx, dword [ebx]
push ebx
push 8
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov edx, dword [ebp - 8]
push 0
lea ecx, [ebp - 4]
push ecx
push edx
mov ebx, eax
push ebx
push esi
call edi
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
push eax
push ebx
lea ecx, [ebp - 8]
push ecx
push edx
call fcn.00518550
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4b8bb8
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
call fcn.004f01e0
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
pop edi
pop ebx
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b8bf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b8c1f
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
xor eax, eax
mov dword [edi], 0
mov dword [ecx], 0
push edx
mov dword [ebx], eax
push eax
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.004f0550
add esp, 0xc
push 0
lea ecx, [ebp - 4]
push ecx
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp - 4]
push edx
push 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call ebx
mov eax, dword [edi]
mov ecx, dword [ebp + 0xc]
imul eax, eax, 0xc50
push 0
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
lea edx, [ebp - 4]
push edx
push eax
push ecx
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b8ce0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, 2
mov word [ebx], ax
movzx eax, word [ecx]
push esi
xor esi, esi
push edi
test ax, ax
je 0x4b8d21
jmp 0x4b8d10
cmp ax, 0x3a
je 0x4b8d21
movzx eax, word [ecx + esi*2 + 2]
inc esi
test ax, ax
jne 0x4b8d10
xor edx, edx
cmp dx, word [ecx + esi*2]
jne 0x4b8d2e
mov eax, dword [ebp + 0xc]
jmp 0x4b8d3b
lea ecx, [ecx + esi*2 + 2]
push ecx
call fcn.004f2be4
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esi + 1]
push edx
mov word [ebx + 2], ax
call fcn.004f200f
mov edi, eax
add esp, 4
xor eax, eax
test edi, edi
je 0x4b8da7
mov byte [edi + esi], al
test esi, esi
jle 0x4b8d6f
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + eax*2]
mov byte [edi + eax], dl
inc eax
cmp eax, esi
jl 0x4b8d61
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push edi
mov dword [ebx + 4], eax
call fcn.004f1b71
add esp, 4
cmp dword [ebx + 4], 0xffffffff
jne 0x4b8da2
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4b8d98
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebx + 4], edx
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4b8e10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
push esi
push edi
mov esi, ecx
or edi, 0xffffffff
mov dword [ebp - 0x110], 0xfa0
cmp dword [esi + 0x48], edi
je 0x4b8e4e
call fcn.004b8cc0
mov eax, dword [esi + 0x48]
push eax
call ebx
mov dword [esi + 0x48], edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x48], eax
cmp eax, edi
je 0x4b8e8e
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 0x110]
push ecx
push 0x1006
push 0xffff
push eax
call edi
test eax, eax
je 0x4b8ea1
mov edx, dword [esi + 0x48]
push edx
call ebx
mov dword [esi + 0x48], 0xffffffff
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f0194
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x48]
push 4
lea eax, [ebp - 0x110]
push eax
push 0x1005
push 0xffff
push ecx
call edi
test eax, eax
jne 0x4b8e81
mov ecx, dword [esi + 0x48]
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [ebp - 0x10c]
push eax
push 0x8004667e
push ecx
xor bl, bl
mov dword [ebp - 0x10c], 1
call edi
test eax, eax
jne 0x4b8e8e
mov eax, dword [esi + 0x48]
push 0x10
lea edx, [esi + 0x4c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [esi + 0x48]
lea edx, [ebp - 0x118]
push edx
push 0
mov dword [ebp - 0x104], ecx
lea ecx, [ebp - 0x108]
push ecx
mov eax, 1
push 0
push eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4b8f39
mov bl, 1
mov eax, dword [esi + 0x48]
lea edx, [ebp - 0x10c]
push edx
push 0x8004667e
push eax
mov dword [ebp - 0x10c], 0
call edi
test eax, eax
jne 0x4b8e8e
mov ecx, dword [ebp - 4]
test bl, bl
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.004f0194
mov esp, ebp
pop ebp
ret
Function at 0x4b9950
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

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

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5367e0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x58c214
call edx
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 1
mov edx, dword [0x58c214]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x58c214
call eax
add eax, 0x10
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 4
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], cx
mov byte [ebp - 4], 5
mov ecx, esi
mov dword [ebp - 0x16], ebx
mov word [ebp - 0x1c], 0x24
mov dword [ebp - 0x1a], 0x20009230
call fcn.004b8e10
test eax, eax
jne 0x4b9aad
mov byte [ebp - 4], 4
xor edx, edx
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], dx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00442c70
mov eax, 0xe0000001
jmp 0x4b9bbf
cmp byte [esi + 0x2d10], bl
je 0x4b9abc
mov ecx, esi
call fcn.004b9960
mov ecx, dword [esi + 0x48]
push ebx
push 0xa
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4b9af8
mov byte [ebp - 4], 4
xor edx, edx
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], dx
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x4c]
call fcn.00442c70
xor eax, eax
jmp 0x4b9bbf
mov eax, dword [edi]
mov dword [ebp - 0x1a], 0x20009138
mov word [ebp - 0x1c], 0x124
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x1c]
lea ecx, [eax + eax + 0x1c]
mov dword [ebp - 0x16], ecx
mov eax, dword [ebp - 0x18]
mov cx, word [ebp - 0x14]
mov dword [0x590678], edx
mov dword [0x59067c], eax
mov word [0x590680], cx
mov eax, dword [edi]
cmp dword [eax - 4], 1
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x3c], edx
jle 0x4b9b43
push edx
mov ecx, edi
call fcn.00401820
mov ecx, dword [ebp - 0x3c]
mov edi, dword [edi]
lea edx, [ecx + ecx]
push edx
push edi
push 0x590682
call fcn.004f01e0
mov eax, dword [ebp - 0x16]
mov ecx, dword [esi + 0x48]
add esp, 0xc
push ebx
add eax, 0xa
push eax
push 0x590678
push ecx
call dword [sym.imp.WS2_32.dll_send]
or ecx, 0xffffffff
cmp eax, ecx
jne 0x4b9b9b
mov byte [ebp - 4], 4
xor edx, edx
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], dx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x4c]
call fcn.00442c70
xor eax, eax
jmp 0x4b9bbf
mov byte [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], ax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x4c]
call fcn.00442c70
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f0194
mov esp, ebp
pop ebp
ret 4