joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41db50
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x41db74
push dword [esp + 0xc]
push dword [esp + 0x14]
push dword [esp + 0x10]
push 0
push dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret 0x10
Function at 0x420585
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
call fcn.0042089a
test eax, eax
je 0x42074b
mov eax, dword [esi + 4]
cmp dword [eax], 0xc354
jb 0x4205b4
mov ax, word [eax + 0x2ac8]
jmp 0x42074e
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
push edi
push str.SoftwareArray_Networks
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4206b8
push 4
mov dword [ebp - 8], edi
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.LaunchPort
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x4206af
cmp dword [0x441ff4], edi
je 0x42074b
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x420644
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x42074b
cmp eax, 1
jle 0x42074b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
cmp dword [0x43d564], edi
mov dword [ebp - 0x14], eax
jge 0x420669
mov eax, dword [0x441fa0]
mov dword [0x43d564], eax
call fcn.0041c4b1
test eax, eax
je 0x4206a0
push 1
push dword [0x43d564]
push 0x185
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHAREDutilityVpnSharedMem.cpp
call fcn.0041c4e1
add esp, 0x10
call esi
push eax
push str.SharedMem:Set_value_failed._Reg__HKEY_CURRENT_USERSoftwareArray_NetworksLaunchPort._Error___d_n
call fcn.0041c506
pop ecx
pop ecx
call fcn.0041c4cc
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp - 0x14]
jmp 0x420745
mov ax, word [ebp - 8]
jmp 0x42074e
cmp dword [0x441ff4], edi
je 0x42074b
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x4206df
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x42074b
cmp eax, 1
jle 0x42074b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
cmp dword [0x43d564], edi
mov dword [ebp - 0x14], eax
jge 0x420704
mov eax, dword [0x441fa0]
mov dword [0x43d564], eax
call fcn.0041c4b1
test eax, eax
je 0x42073b
push 1
push dword [0x43d564]
push 0x18c
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHAREDutilityVpnSharedMem.cpp
call fcn.0041c4e1
add esp, 0x10
call esi
push eax
push str.SharedMem:Set_value_failed._Reg__HKEY_CURRENT_USERSoftwareArray_Networks._Error___d_n
call fcn.0041c506
pop ecx
pop ecx
call fcn.0041c4cc
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ax, ax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4217be
Capabilities:
Read file via mapping

Disassembly:
push esi
push edi
push 4
call fcn.00421467
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
jne 0x4217d5
push 1
pop eax
jmp 0x4217fc
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
jne 0x4217ea
push 1
pop edi
jmp 0x4217f3
mov edi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x4217ff
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push 4
call fcn.00421467
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x421814
leave
ret
push esi
push edi
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x42182f
xor edi, edi
jmp 0x421863
mov edi, dword [esi + 4]
test edi, edi
je 0x42185c
lea eax, [esi + 8]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
mov ax, word [esi + 0x88]
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi + 0x8c]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x421872
Capabilities:
Read file via mapping

Disassembly:
push ebx
push ebp
push esi
push edi
push 4
call fcn.00421467
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
jne 0x421911
cmp dword [0x441ff4], edi
je 0x4219bc
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 2
je 0x4218b9
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x4219bc
cmp eax, 2
jle 0x4219bc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
cmp dword [0x43d8ac], edi
mov ebp, eax
jge 0x4218dd
mov eax, dword [0x441fa0]
mov dword [0x43d8ac], eax
call fcn.0041c4b1
test eax, eax
je 0x4219ae
push 2
push dword [0x43d8ac]
push 0x2bb
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHAREDutility_apiext.cpp
call fcn.0041c4e1
add esp, 0x10
call esi
push eax
push str.Open_Share_Sec_return_NULL__cannot_get_connection_flag__err_d_n
jmp 0x4219a2
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
jne 0x4219c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x441ff4], edi
je 0x4219bc
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 2
je 0x421953
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x4219bc
cmp eax, 2
jle 0x4219bc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
cmp dword [0x43d8ac], edi
mov ebp, eax
jge 0x421977
mov eax, dword [0x441fa0]
mov dword [0x43d8ac], eax
call fcn.0041c4b1
test eax, eax
je 0x4219ae
push 2
push dword [0x43d8ac]
push 0x2c3
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHAREDutility_apiext.cpp
call fcn.0041c4e1
add esp, 0x10
call esi
push eax
push str.Map_share_memory_return_NULL__err_d_n
call fcn.0041c506
pop ecx
pop ecx
call fcn.0041c4cc
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4219e2
mov edx, dword [esp + 0x14]
xor ecx, ecx
cmp dword [eax + 0x90], edi
push eax
sete cl
mov dword [edx], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4219e7
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push 4
call fcn.00421467
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x4219fc
leave
ret
push esi
push edi
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x421a17
xor edi, edi
jmp 0x421a58
mov edi, dword [esi + 0x98]
test edi, edi
je 0x421a51
lea eax, [esi + 0x9c]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
lea eax, [esi + 0x19c]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcpy
lea eax, [esi + 0x11c]
push eax
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strcpy
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x421d35
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
lea eax, [ebp - 0x100]
push str.BSM.
mov esi, ecx
push eax
call sub.MSVCRT.dll_strcpy
push 0xfa
lea eax, [ebp - 0x100]
push dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_strncat
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRT.dll__strdup
mov dword [esi], eax
mov eax, dword [ebp + 8]
add esp, 0x18
mov dword [esi + 0xc], eax
lea ecx, [ebp - 0x100]
add eax, 4
push ecx
xor ebx, ebx
push eax
push ebx
push 0x8000004
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
jne 0x421e47
cmp dword [0x441ff4], ebx
je 0x421e87
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x421dd6
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x421e87
cmp eax, 1
jle 0x421e87
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
call edi
cmp dword [0x43d8ac], ebx
mov dword [ebp + 8], eax
jge 0x421dfc
mov eax, dword [0x441fa0]
mov dword [0x43d8ac], eax
call fcn.0041c4b1
test eax, eax
je 0x421e33
push 1
push dword [0x43d8ac]
push 0x4d8
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHAREDutility_apiext.cpp
call fcn.0041c4e1
add esp, 0x10
call edi
push eax
push str.Array_L3_Installer__ver_8_4_6_40_Enter_CSharedMemory__CreateFileMappingA_error__d_n
call fcn.0041c506
pop ecx
pop ecx
call fcn.0041c4cc
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x421e87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
sub edi, 0xb7
push ebx
neg edi
sbb edi, edi
push ebx
inc edi
push 2
push dword [esi + 0x14]
sete al
mov byte [esi + 0x10], al
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea ecx, [eax + 4]
cmp edi, ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
je 0x421e82
mov eax, dword [eax]
mov dword [esi + 0xc], eax
jmp 0x421e87
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x421ec9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push 0x24
lea eax, [ebp - 0x24]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
xor bl, bl
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x421f17
push str.GetNativeSystemInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x421f0c
lea ecx, [ebp - 0x24]
push ecx
call eax
inc bl
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
jne 0x421f21
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
pop esi
pop ebx
test eax, eax
je 0x421f46
cmp eax, 6
je 0x421f42
xor ecx, ecx
cmp eax, 9
sete cl
dec ecx
and ecx, 0xfffffffe
inc ecx
inc ecx
mov eax, ecx
leave
ret
push 3
jmp 0x421f48
push 1
pop eax
leave
ret
Function at 0x4225b1
Capabilities:
Delete registry value

Disassembly:
push esi
mov esi, str.DNSQueryTimeouts
push edi
push esi
push str.SYSTEMCurrentControlSetServicesTcpipParameters_
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
mov edi, eax
test edi, edi
je 0x422669
cmp dword [0x441ff4], 0
je 0x422665
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 2
je 0x4225fc
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x422665
cmp eax, 2
jle 0x422665
push ebx
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x43d8ac], 0
mov ebp, eax
jge 0x422621
mov eax, dword [0x441fa0]
mov dword [0x43d8ac], eax
call fcn.0041c4b1
test eax, eax
je 0x422655
push 2
push dword [0x43d8ac]
push 0x58b
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHAREDutility_apiext.cpp
call fcn.0041c4e1
push edi
push esi
push str.ResumeDNSQueryTimeouts__:_Failed_to_delete__s__error:__u_n
call fcn.0041c506
add esp, 0x1c
call fcn.0041c4cc
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop ebx
xor eax, eax
jmp 0x42266c
push 1
pop eax
pop edi
pop esi
ret
Function at 0x42266f
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x20
and byte [esp], 0
push ebx
push ebp
push esi
push edi
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x11]
push dword [esp + 0x34]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push 0x43da84
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [esp + 0x10]
push 0xc
push 0x43e07c
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [esp + eax + 0x18]
push eax
call sub.MSVCRT.dll_memcpy
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
cmp dword [0x441ff4], 0
je 0x42274f
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x4226ef
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x42274f
cmp eax, 3
jle 0x42274f
call edi
mov esi, eax
call ebp
cmp dword [0x43d8ac], 0
mov ebx, eax
jge 0x42270a
mov eax, dword [0x441fa0]
mov dword [0x43d8ac], eax
call fcn.0041c4b1
test eax, eax
je 0x422741
push 3
push dword [0x43d8ac]
push 0x596
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHAREDutility_apiext.cpp
call fcn.0041c4e1
lea eax, [esp + 0x20]
push eax
push str.SetDNSQueryTimeouts:_the_string_is__s._n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
add eax, 0xc
push eax
lea eax, [esp + 0x14]
push eax
mov esi, str.DNSQueryTimeouts
push 7
push esi
push str.SYSTEMCurrentControlSetServicesTcpipParameters_
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ebx, eax
test ebx, ebx
je 0x42280b
cmp dword [0x441ff4], 0
je 0x422807
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 2
je 0x4227aa
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x422807
cmp eax, 2
jle 0x422807
call edi
mov edi, eax
call ebp
cmp dword [0x43d8ac], 0
mov ebp, eax
jge 0x4227c5
mov eax, dword [0x441fa0]
mov dword [0x43d8ac], eax
call fcn.0041c4b1
test eax, eax
je 0x4227f9
push 2
push dword [0x43d8ac]
push 0x59b
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHAREDutility_apiext.cpp
call fcn.0041c4e1
push ebx
push esi
push str.SetDNSQueryTimeouts__:_Failed_to_set__s__error:__u_n
call fcn.0041c506
add esp, 0x1c
call fcn.0041c4cc
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42280e
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x424550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
movzx cx, byte [eax + 0x104]
mov word [ebp - 8], cx
mov edx, dword [ebp - 0x14]
movzx ax, byte [edx + 0x105]
mov word [ebp - 0xc], ax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
add ecx, 4
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
mov ebx, 0x100
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov edx, 0
movzx eax, word [ebp - 8]
inc ax
idiv bx
mov word [ebp - 8], dx
movzx ax, byte [esi + edx]
mov edx, 0
add ax, word [ebp - 0xc]
idiv bx
mov word [ebp - 0xc], dx
movzx ax, word [ebp - 8]
mov dl, byte [esi + eax]
push eax
movzx ax, word [ebp - 0xc]
mov dh, byte [esi + eax]
mov byte [esi + eax], dl
pop eax
mov byte [esi + eax], dh
movzx ax, word [ebp - 8]
movzx dx, byte [esi + eax]
movzx ax, word [ebp - 0xc]
movzx ax, byte [esi + eax]
add ax, dx
xor dx, dx
idiv bx
and edx, 0xffff
mov dh, byte [esi + edx]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov dl, byte [eax]
xor dl, dh
mov byte [edi], dl
inc edi
inc dword [ebp - 0x10]
loop 0x424598
mov edx, dword [ebp - 0x14]
mov al, byte [ebp - 8]
mov byte [edx + 0x104], al
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp - 0xc]
mov byte [ecx + 0x105], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42650b
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.MSVCRT.dll_time]
mov edi, eax
mov eax, dword [ebp + 0x14]
cmp eax, ebx
pop ecx
mov esi, 0x4427c8
mov dword [ebp - 4], 0x27ff
mov dword [ebp - 8], ebx
je 0x42653b
mov dword [eax], ebx
push 8
lea eax, [ebp - 0x10]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0xc
add eax, edi
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], edi
jbe 0x4266a4
cmp dword [ebp - 4], ebx
jbe 0x4266a4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x114]
push ebx
push eax
lea eax, [edi + 1]
push eax
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x114]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4265e7
push ebx
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
je 0x4265fe
add esi, edi
mov byte [esi], bl
cmp dword [0x4455a4], ebx
jne 0x4265d4
push str._r_n_r_n
push 0x4427c8
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x4265db
mov dword [ebp - 8], 1
sub dword [ebp - 4], edi
cmp dword [ebp - 8], ebx
jne 0x426695
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.MSVCRT.dll_time]
pop ecx
mov edi, eax
jmp 0x426552
cmp dword [0x441ff4], ebx
je 0x426691
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x426625
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x426691
cmp eax, 1
jle 0x426691
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x43e9c8], ebx
mov dword [ebp + 0x14], eax
jge 0x42664a
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x426681
push 1
push dword [0x43e9c8]
push 0x391
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
add esp, 0x10
call esi
push eax
push str._Error__d_receiving_message_from_proxy_n
call fcn.0041c506
pop ecx
pop ecx
call fcn.0041c4cc
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4266a7
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x4266a4
sub esi, 0x4427c8
mov dword [eax], esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430003
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x432474
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x6c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCRT.dll_time]
mov dword [ebp - 0x20], eax
push 4
lea eax, [ebp - 0x18]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x20]
push 4
push eax
lea eax, [ebp - 0x18]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x1c
mov byte [ebp - 0x78], 0x16
mov byte [ebp - 0x77], 3
mov byte [ebp - 0x76], 1
push 0xb
mov byte [ebp - 0x75], bl
mov byte [ebp - 0x74], 0x4d
mov byte [ebp - 0x73], 1
mov byte [ebp - 0x72], bl
mov byte [ebp - 0x71], bl
mov byte [ebp - 0x70], 0x49
mov byte [ebp - 0x6f], 3
mov byte [ebp - 0x6e], 1
pop esi
mov dword [ebp - 0x1c], 0x18
cmp dword [ebp - 0x1c], ebx
jl 0x4300a1
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov ecx, eax
push 8
sar edx, cl
pop ecx
mov dword [ebp - 0x24], edx
cdq
idiv ecx
lea ecx, [ebp - 0x15]
sub ecx, eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x1c], 8
mov byte [ecx], al
jmp 0x430079
mov eax, dword [ebp - 0x18]
mov byte [ebp + esi - 0x78], al
mov al, byte [ebp - 0x16]
inc esi
mov byte [ebp + esi - 0x78], ah
inc esi
mov byte [ebp + esi - 0x78], al
mov al, byte [ebp - 0x15]
inc esi
mov byte [ebp + esi - 0x78], al
inc esi
xor eax, eax
cmp eax, 0x1c
jge 0x4300d1
mov cl, al
inc cl
mov byte [ebp + esi - 0x78], cl
inc esi
inc eax
jmp 0x4300c0
mov byte [ebp + esi - 0x78], 0x20
inc esi
xor eax, eax
cmp eax, 0x20
jge 0x4300e7
or byte [ebp + esi - 0x78], 0xff
inc esi
inc eax
jmp 0x4300d9
mov byte [ebp + esi - 0x78], bl
inc esi
push ebx
lea eax, [ebp - 0x78]
mov byte [ebp + esi - 0x78], 2
inc esi
mov byte [ebp + esi - 0x78], bl
inc esi
mov byte [ebp + esi - 0x78], 4
inc esi
mov byte [ebp + esi - 0x78], 1
inc esi
mov byte [ebp + esi - 0x78], bl
inc esi
push esi
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x4301ab
cmp dword [0x441ff4], ebx
je 0x4301a7
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x430144
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x4301a7
cmp eax, 3
jle 0x4301a7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x43e9c8], ebx
mov edi, eax
jge 0x430166
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
cmp eax, ebx
je 0x430199
push 3
push dword [0x43e9c8]
push 0x12aa
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
add esp, 0x10
push str.SslDisableClientCert_run_ok__n
call fcn.0041c506
pop ecx
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 0x11], 1
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x431859
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x441708
push edi
mov dword [ebx], edi
call dword [sym.imp.MSVCRT.dll_strpbrk]
mov esi, dword [ebp + 0xc]
pop ecx
test eax, eax
pop ecx
mov dword [esi], eax
jne 0x4318a6
cmp byte [0x4455cc], al
jne 0x43189c
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x10
push eax
push 0x4455cc
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebx], 0x4455cc
mov dword [esi], edi
jmp 0x4318bb
and byte [eax], 0
inc dword [esi]
mov esi, dword [esi]
mov al, byte [esi]
test al, al
je 0x4318c3
cmp al, 0x5c
je 0x4318c3
cmp al, 0x2f
je 0x4318c3
push 1
pop eax
jmp 0x431953
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x57
call esi
cmp dword [0x441ff4], 0
je 0x431951
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x4318f2
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x431951
cmp eax, 1
jle 0x431951
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4411f8], 0
mov ebx, eax
jge 0x431915
mov eax, dword [0x441fa0]
mov dword [0x4411f8], eax
call fcn.0041c4b1
test eax, eax
je 0x431947
push 1
push dword [0x4411f8]
push 0x496
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsockNTLMAuth.cpp
call fcn.0041c4e1
push str.SSPINTLM:domain__user_format_invalid_n
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret