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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x501230]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x114], ecx
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x11c], eax
push ecx
push 0
push eax
mov dword [esi], 0
mov dword [ebp - 0x110], 0x100
mov dword [ebp - 0x118], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x44cead
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp - 0x108]
push eax
push 1
push 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44ce57
mov ebx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], eax
mov dword [esi], eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push 0
push dword [ebp - 0x114]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x44cdfb
cmp eax, 0xea
jne 0x44ce4f
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x44ce4f
inc eax
push eax
call dword [0x501134]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x44ce4f
lea ecx, [ebp - 0x10c]
push ecx
push eax
push 0
push 0
push dword [ebp - 0x114]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44ce3e
mov ecx, dword [ebp - 0x10c]
cmp ecx, 1
jne 0x44ce9d
push dword [esi]
call dword [0x50113c]
add esp, 4
mov dword [esi], 0
push dword [ebp - 0x108]
call edi
mov ecx, dword [ebp - 0x118]
mov eax, ecx
push 0
push 0
push 0
inc ecx
mov dword [ebp - 0x110], 0x100
push 0
mov dword [ebp - 0x118], ecx
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x44cda2
jmp 0x44ceab
mov eax, dword [esi]
mov byte [ecx + eax], 0
push dword [ebp - 0x108]
call edi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
Function at 0x44db90
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x501230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00452e40
add esp, 4
test eax, eax
jne 0x44ddab
mov byte [ebp - 0x108], al
call fcn.00451220
cmp eax, 3
jne 0x44dc42
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44dc5d
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push str.DatabasePath
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x104
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44dc5d
cmp eax, 2
jne 0x44ddab
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x108]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x44dc64
mov eax, dword [str.hosts]
mov dword [ecx], eax
mov ax, word [0x4e7b98]
mov word [ecx + 4], ax
mov al, byte [0x4e7b9a]
mov byte [ecx + 6], al
lea eax, [ebp - 0x108]
push 0x4e7b9c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 0x214], eax
test eax, eax
jne 0x44dcd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x44ddab
sub eax, 1
je 0x44ddab
pop edi
mov dword [ebx], 0
mov eax, 0xe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
push esi
push ebx
push dword [ebp + 0xc]
push eax
call fcn.004533d0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x210], esi
test esi, esi
jne 0x44dd5c
mov ecx, dword [ebx]
push edi
push dword [ecx]
call fcn.00452d90
add esp, 8
test eax, eax
je 0x44dd5c
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov eax, dword [esi]
test eax, eax
je 0x44dd2f
nop
push edi
push eax
call fcn.00452d90
add esp, 8
test eax, eax
je 0x44dd2a
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x44dd10
jmp 0x44dd2f
cmp dword [esi], 0
jne 0x44dd56
push dword [ebx]
call fcn.00452c60
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x214]
call fcn.004533d0
mov esi, eax
mov dword [ebp - 0x210], eax
add esp, 0x10
test esi, esi
je 0x44dcf3
jmp 0x44dd5c
mov esi, dword [ebp - 0x210]
push dword [ebp - 0x214]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp esi, 0xd
jne 0x44dd8e
mov esi, 4
mov dword [ebx], 0
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x44dd98
mov dword [ebx], 0
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 4
pop edi
xor ecx, ebp
pop ebx
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
Function at 0x44e730
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x501230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp dword [esi + 0x91b8], 0
jne 0x44e807
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push 0x8004667e
push edi
mov dword [ebp - 0x24], 1
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp dword [esi + 0x1c], 0
lea eax, [esi + 0x1c]
mov ebx, dword [sym.imp.WSOCK32.dll_setsockopt]
jle 0x44e795
push 4
push eax
push 0x1001
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x44e84b
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jle 0x44e7b7
push 4
push eax
push 0x1002
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x44e84b
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x44e7e4
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x44e807
xorps xmm0, xmm0
mov ecx, 2
movups xmmword [ebp - 0x20], xmm0
push eax
mov word [ebp - 0x20], cx
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [ebp - 0x1c], eax
push 0x10
jmp 0x44e83c
cmp eax, 0x17
jne 0x44e807
lea ebx, [esi + 0x60]
mov edx, 0x4e7ea4
mov ecx, ebx
lea esi, [eax - 0xb]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x44e81a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x44e7f6
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [ebx]
xor eax, eax
mov dword [ebp - 0x1e], 0
mov word [ebp - 0x1a], ax
mov dword [ebp - 8], eax
mov eax, 0x17
mov word [ebp - 0x20], ax
movups xmmword [ebp - 0x18], xmm0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
jns 0x44e807
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c75e8
mov esp, ebp
pop ebp
ret

Function at 0x44e860
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x91b8]
test ecx, ecx
je 0x44e889
push dword [eax + 0x91bc]
mov eax, dword [ecx + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call eax
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WSOCK32.dll_connect]
pop ebp
ret
Function at 0x44eda0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x501230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx]
sub eax, 2
je 0x44edff
sub eax, 0x15
jne 0x44ee91
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], eax
mov eax, 0x17
mov word [ebp - 0x20], ax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x28], 0x1c
test eax, eax
je 0x44ede9
push eax
jmp 0x44edec
push dword [esi + 0x14]
call fcn.004511b0
movups xmm0, xmmword [ebx + 4]
mov word [ebp - 0x1e], ax
movups xmmword [ebp - 0x18], xmm0
jmp 0x44ee33
mov eax, 2
mov dword [ebp - 0x28], 0x10
mov word [ebp - 0x20], ax
xorps xmm0, xmm0
mov eax, dword [ebx + 0x14]
movlpd qword [ebp - 0x18], xmm0
test eax, eax
je 0x44ee21
push eax
jmp 0x44ee24
push dword [esi + 0x14]
call fcn.004511b0
mov word [ebp - 0x1e], ax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x91b8]
add esp, 4
mov ecx, dword [ebx]
test eax, eax
je 0x44ee56
push dword [esi + 0x91bc]
mov eax, dword [eax]
push 0
push 2
push ecx
call eax
add esp, 0x10
jmp 0x44ee61
push 0
push 2
push ecx
call dword [sym.imp.WSOCK32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x44ee91
push esi
push dword [ebx]
push edi
call fcn.0044e730
add esp, 0xc
test eax, eax
jns 0x44eec0
mov eax, dword [esi + 0x91b8]
test eax, eax
je 0x44eea5
push dword [esi + 0x91bc]
mov eax, dword [eax + 4]
push edi
call eax
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x91b0]
test eax, eax
je 0x44eefd
push dword [esi + 0x91b4]
push 2
push edi
call eax
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
jns 0x44eefd
push edi
push esi
call fcn.0044e690
mov eax, dword [ebp - 0x24]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push edi
push esi
call fcn.0044e860
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44ef33
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x44ef33
cmp eax, 0x2733
je 0x44ef33
push edi
push esi
call fcn.0044e690
jmp 0x44ee8e
mov eax, dword [esi + 0x91a8]
test eax, eax
je 0x44ef52
push dword [esi + 0x91ac]
push 2
push edi
call eax
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
js 0x44eedf
mov eax, dword [esi + 0x91a0]
test eax, eax
je 0x44ef6c
push 0
push 1
push edi
push dword [esi + 0x91a4]
call eax
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ebx + 0x1c], edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
Function at 0x44f930
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x44f94a
cmp edx, 0xffffffff
je 0x44fb0c
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x78], 0
jle 0x44fb0b
xor eax, eax
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebx + 0x74]
add edi, eax
mov eax, dword [edi + 0x38]
test eax, eax
je 0x44faf3
mov ecx, dword [edi + 0x20]
cmp ecx, 0xffffffff
je 0x44faf3
cmp dword [edi + 0x54], 0
jne 0x44faf3
test esi, esi
je 0x44f9f9
push esi
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x44faf0
mov esi, dword [esi]
xor ecx, ecx
test esi, esi
je 0x44f9ee
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 0x20]
add eax, 4
nop
cmp dword [eax], edx
je 0x44f9be
inc ecx
add eax, 4
cmp ecx, esi
jb 0x44f9b0
jmp 0x44f9ee
lea eax, [esi - 1]
cmp ecx, eax
jae 0x44f9e6
mov ebx, dword [ebp + 0xc]
lea edx, [ebx + 4]
lea edx, [edx + ecx*4]
nop
mov eax, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc ecx
mov esi, dword [ebx]
lea eax, [esi - 1]
cmp ecx, eax
jb 0x44f9d0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea eax, [esi - 1]
mov dword [ecx], eax
mov eax, dword [edi + 0x38]
xor ecx, ecx
test eax, eax
je 0x44fa0b
jmp 0x44fa01
cmp ecx, edx
jne 0x44faf3
xor ecx, ecx
mov eax, dword [eax + 0x10]
inc ecx
test eax, eax
jne 0x44fa03
lea eax, [ecx*8]
push eax
call dword [0x501134]
mov ecx, dword [edi + 0x38]
mov esi, eax
add esp, 4
test esi, esi
je 0x44faa2
xor edx, edx
test ecx, ecx
je 0x44fa44
nop
mov eax, dword [ecx]
mov dword [esi + edx*8], eax
mov eax, dword [ecx + 4]
mov dword [esi + edx*8 + 4], eax
inc edx
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x44fa30
mov ecx, dword [ebx + 0x91b8]
mov eax, dword [edi + 0x20]
test ecx, ecx
je 0x44fa64
push dword [ebx + 0x91bc]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x10
jmp 0x44fa6f
push edx
push esi
push eax
call fcn.00453a70
add esp, 0xc
push esi
mov edi, eax
call dword [0x50113c]
add esp, 4
test edi, edi
jns 0x44fa9f
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x44faed
cmp eax, 0x2733
je 0x44faed
push dword [ebp + 0x14]
push dword [ebp - 4]
push ebx
call fcn.0044e9f0
jmp 0x44faea
push edi
jmp 0x44fae1
mov esi, dword [ebx + 0x91b8]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov edx, dword [edi + 0x20]
test esi, esi
je 0x44fad1
push dword [ebx + 0x91bc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 1
push eax
mov dword [ebp - 0x10], ecx
mov eax, dword [esi + 0x10]
push edx
call eax
add esp, 0x10
jmp 0x44fadc
push 0
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
js 0x44fa7f
push eax
push dword [ebp - 4]
push ebx
call fcn.0044e390
add esp, 0xc
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
add dword [ebp - 8], 0x58
inc eax
cmp eax, dword [ebx + 0x78]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
jl 0x44f965
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x450990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
cmp eax, 2
jne 0x4509ab
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00450b60
jmp 0x4509bd
cmp eax, 0x17
jne 0x4509e3
push 0x10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00450ef0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x4509d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4509d7
xor eax, eax
pop esi
pop ebp
ret
sar esi, 0x1f
and esi, 0xfffffffe
lea eax, [esi + 1]
pop esi
pop ebp
ret
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x4516d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov bh, byte [eax + 0x100]
lea edi, [ebp - 8]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 2
nop dword [eax]
inc bh
lea edi, [edi + 1]
movzx esi, bh
mov bl, byte [esi + eax]
add dl, bl
mov byte [ebp + 0xb], dl
movzx edx, dl
movzx ecx, byte [edx + eax]
mov byte [esi + eax], cl
mov byte [edx + eax], bl
movzx ecx, byte [esi + eax]
mov dl, byte [ebp + 0xb]
add cl, bl
movzx ecx, cl
movzx ecx, byte [ecx + eax]
xor byte [edi - 1], cl
sub dword [ebp - 4], 1
jne 0x451700
pop edi
mov cl, dl
mov byte [eax + 0x100], bh
pop esi
mov byte [eax + 0x101], cl
mov ax, word [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451750
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x14
mov ecx, dword [edx]
shr ecx, 3
not ecx
and ecx, 1
test dword [edx], 0x100
je 0x451770
mov eax, dword [edx + 0x38]
jmp 0x451772
xor eax, eax
push esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
movzx eax, word [edx + 0x7c]
push ecx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00453da0
mov esi, eax
add esp, 0x20
test esi, esi
je 0x4517bf
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4517aa
push ecx
call dword [0x50113c]
add esp, 4
push 0
push 0
push 0
push esi
push dword [ebp + 0x1c]
call dword [ebp + 0x18]
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edx, dword [ebp + 8]
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov edi, 2
mov bh, byte [edx + 0x17e]
mov cl, byte [edx + 0x17f]
nop
inc bh
lea esi, [esi + 1]
movzx eax, bh
add edx, eax
mov bl, byte [edx + 0x7e]
add cl, bl
movzx eax, cl
mov byte [ebp - 1], cl
mov ecx, dword [ebp + 8]
add ecx, eax
movzx eax, byte [ecx + 0x7e]
mov byte [edx + 0x7e], al
mov byte [ecx + 0x7e], bl
movzx eax, byte [edx + 0x7e]
mov edx, dword [ebp + 8]
add al, bl
mov cl, byte [ebp - 1]
movzx eax, al
movzx eax, byte [eax + edx + 0x7e]
xor byte [esi - 1], al
sub edi, 1
jne 0x4517e0
mov byte [edx + 0x17e], bh
mov al, cl
mov ebx, dword [ebp - 0x10]
mov byte [edx + 0x17f], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], bl
mov eax, dword [ebp - 0xc]
and eax, 0x7ff
lea eax, [eax + eax*2]
lea edx, [edx + eax*4]
mov eax, dword [edx + 0x1a4]
add edx, 0x1a0
cmp eax, edx
je 0x451873
mov si, word [ebp - 0xc]
nop
mov ecx, dword [eax + 8]
cmp word [ecx], si
je 0x4517c1
mov eax, dword [eax + 4]
cmp eax, edx
jne 0x451860
mov esi, dword [ebp + 8]
push 8
mov word [esi + 0x7c], bx
call dword [0x501134]
add esp, 4
mov ecx, eax
pop edi
pop ebx
test ecx, ecx
jne 0x4518ab
push dword [ebp - 8]
call fcn.00453f90
push 0
push 0
push 0
push 0xf
push dword [ebp + 0x1c]
call dword [ebp + 0x18]
add esp, 0x18
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
push ecx
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
push 0x4518e0
mov dword [ecx + 4], eax
push dword [ebp - 0x14]
push dword [ebp - 8]
push esi
call fcn.00453b40
push dword [ebp - 8]
call fcn.00453f90
add esp, 0x18
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x453a70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
test ebx, ebx
jle 0x453b1f
mov esi, dword [ebp + 0xc]
xor ecx, ecx
add esi, 4
mov edx, esi
nop
mov eax, closesocket
sub eax, edi
cmp dword [edx], eax
ja 0x453b1f
add edi, dword [edx]
inc ecx
add edx, 8
mov dword [ebp + 0x10], edi
cmp ecx, ebx
jl 0x453a90
test edi, edi
jne 0x453ab9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x501134]
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x453adc
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, eax
nop
push dword [esi]
push dword [esi - 4]
push edi
call sub.VCRUNTIME140.dll_memcpy
add edi, dword [esi]
lea esi, [esi + 8]
add esp, 0xc
sub ebx, 1
jne 0x453ae0
mov edi, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp - 4]
push edi
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_send]
push edi
mov esi, eax
call dword [0x50113c]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2726
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4541f0
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x501230]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x214], edi
mov byte [ebp - 0x108], 0
call fcn.00451220
cmp eax, 3
jne 0x45429e
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4542b9
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push str.DatabasePath
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x104
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4542b9
cmp eax, 2
jne 0x454412
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x108]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4542c0
mov eax, dword [str.hosts]
mov dword [ecx], eax
mov ax, word [0x4e7b98]
mov word [ecx + 4], ax
mov al, byte [0x4e7b9a]
mov byte [ecx + 6], al
lea eax, [ebp - 0x108]
push 0x4e7b9c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x454335
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x454412
sub eax, 1
je 0x454412
mov dword [edi], 0
mov eax, 0xe
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
push ebx
push edi
push dword [esi]
push eax
call fcn.004533d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x45436b
mov edi, dword [edi]
mov edx, dword [esi]
movsx ecx, word [edi + 8]
cmp edx, ecx
jne 0x4543c9
cmp edx, 2
jne 0x45439d
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, dword [esi + 4]
jne 0x4543c9
mov edi, dword [ebp - 0x214]
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp ebx, 0xd
jne 0x4543f5
mov ebx, 4
mov dword [edi], 0
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
cmp edx, 0x17
jne 0x4543c9
mov eax, dword [edi + 0xc]
lea edx, [esi + 4]
mov esi, 0xc
mov ecx, dword [eax]
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4543c3
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4543b0
jmp 0x454365
mov esi, dword [ebp - 0x21c]
push edi
call fcn.00452c60
mov edi, dword [ebp - 0x214]
push edi
push dword [esi]
push dword [ebp - 0x210]
call fcn.004533d0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x454348
jmp 0x45436b
test ebx, ebx
je 0x4543ff
mov dword [edi], 0
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 4
pop edi
xor ecx, ebp
pop esi
call fcn.004c75e8
mov esp, ebp
pop ebp
ret