joyce8/EMBER2024-capa huggingface dataset:
Function at 0x177bbe0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x18378c8
push 0x17b3600
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2804
call fcn.017b03b0
mov eax, dword [0x1845170]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x281c], bl
push 0x27ff
push ebx
lea eax, [ebp - 0x281b]
push eax
call fcn.017b03e0
add esp, 0xc
lea ecx, [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x2800
lea eax, [ebp - 0x281c]
push eax
call fcn.016e2660
test eax, eax
je 0x177bc62
call fcn.0176dcc0
mov eax, dword [0x186d1ec]
cmp eax, ebx
je 0x177bc89
mov eax, dword [eax + 0x24]
cmp eax, ebx
je 0x177bc89
lea ecx, [ebp - 0x281c]
push ecx
push 0x1809dc4
mov edx, dword [ebp + 8]
push edx
call eax
add esp, 0xc
jmp 0x177bca1
lea eax, [ebp - 0x281c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x177bca1
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.017b0193
mov esp, ebp
pop ebp
ret
Function at 0x178b0d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x17f2498
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x1845170]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x14]
call fcn.017af2a6
mov dword [esp + 0x28], 0
mov edi, dword [0x186d278]
mov ecx, 0x18ad4ac
mov dword [esp + 0xc], edi
call fcn.01787ac0
mov esi, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
cmp esi, dword [eax + 0xc]
jae 0x178b14b
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x178b14f
cmp byte [eax + 0x14], 0
je 0x178b14f
call fcn.017af3ea
cmp esi, dword [eax + 0xc]
jae 0x178b155
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x178b151
xor ecx, ecx
jmp 0x178b133
mov esi, ecx
test esi, esi
jne 0x178b1a6
test edi, edi
je 0x178b15d
mov esi, edi
jmp 0x178b1a6
lea eax, [esp + 0xc]
push eax
call fcn.0178a8b0
add esp, 4
cmp eax, 0xffffffff
jne 0x178b18c
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.017afc03
push 0x1839c90
lea ecx, [esp + 0x18]
push ecx
call fcn.017b02e4
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x186d278], esi
call fcn.01787b40
push esi
call fcn.017af4e2
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.017af2c7
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x17924e0
Capabilities:
Initialize winhttp library

Disassembly:
cmp dword [0x186d2a4], 0
jne 0x17925c4
push 0
push 0
push 0
push 1
push 0x181029c
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
test eax, eax
mov dword [0x186d2a4], eax
jne 0x1792525
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpOpen_:_LastErr__d_
push 0x2000001
call fcn.0177bbe0
add esp, 0xc
xor eax, eax
ret
push 0x927c0
push 0x927c0
push 0x927c0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x1792573
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpSetTimeouts_:_LastErr__d_
push 0x2000001
call fcn.0177bbe0
mov eax, dword [0x186d2a4]
add esp, 0xc
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [0x186d2a4], 0
xor eax, eax
ret
mov ecx, dword [0x186d2a4]
push 0
push 0x10000
push 0x17922e0
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x17925c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpSetStatusCallback_:_LastErr__d_
push 0x2000001
call fcn.0177bbe0
mov edx, dword [0x186d2a4]
add esp, 0xc
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [0x186d2a4], 0
xor eax, eax
ret
mov eax, 1
ret
Function at 0x1792cc0
Capabilities:
Create http request

Disassembly:
push ecx
cmp dword [0x186d2a8], 0
jne 0x1792d69
push 0
push 0
push 0
push 1
push str.Portal_CGI_Agent
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [0x186d2a8], eax
jne 0x1792d07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetOpen_:_LastErr__d_
push 0x2000001
call fcn.0177bbe0
add esp, 0xc
xor eax, eax
pop ecx
ret
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea ecx, [esp + 8]
push ecx
push 2
push eax
mov dword [esp + 0x14], 0xea60
call esi
mov eax, dword [0x186d2a8]
push 4
lea edx, [esp + 8]
push edx
push 6
push eax
call esi
mov edx, dword [0x186d2a8]
push 4
lea ecx, [esp + 8]
push ecx
push 5
push edx
call esi
mov ecx, dword [0x186d2a8]
push 4
lea eax, [esp + 8]
push eax
push 7
push ecx
call esi
mov eax, dword [0x186d2a8]
push 4
lea edx, [esp + 8]
push edx
push 8
push eax
call esi
pop esi
mov eax, 1
pop ecx
ret

Function at 0x179afa4
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x1845170]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x179afca
mov eax, 1
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.017b0193
add esp, 0x194
ret 8
xor ecx, ecx
mov ch, byte [esp + 0x1a0]
push ebx
mov bl, byte [esp + 0x1a0]
lea eax, [esp + 8]
push eax
mov cl, bl
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x179b00f
mov ax, word [esp + 8]
cmp al, bl
jne 0x179b009
cmp ah, byte [esp + 0x1a4]
jne 0x179b009
mov eax, 1
mov dword [esi + 4], eax
jmp 0x179b011
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [esp + 0x198]
pop ebx
pop esi
xor ecx, esp
call fcn.017b0193
add esp, 0x194
ret 8
Function at 0x179bf90
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
push edi
mov edi, dword [esp + 0x14]
cmp esi, edi
sete al
mov ebx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x179c024
push ebp
lea ebp, [eax - 1]
shr ebp, 3
add ebp, 1
lea ebx, [ebx]
cmp dword [esp + 0x14], 0
je 0x179bfd8
lea ecx, [esi + 4]
push ecx
push esi
mov ecx, ebx
call fcn.0179b640
add esi, 8
jmp 0x179c01e
movzx edx, byte [esi]
mov byte [edi], dl
mov al, byte [esi + 1]
mov byte [edi + 1], al
movzx ecx, byte [esi + 2]
mov byte [edi + 2], cl
movzx edx, byte [esi + 3]
mov byte [edi + 3], dl
movzx ecx, byte [esi + 4]
lea eax, [edi + 4]
mov byte [eax], cl
movzx edx, byte [esi + 5]
mov byte [edi + 5], dl
movzx ecx, byte [esi + 6]
mov byte [edi + 6], cl
movzx edx, byte [esi + 7]
push eax
push edi
mov ecx, ebx
mov byte [edi + 7], dl
call fcn.0179b640
add esi, 8
add edi, 8
sub ebp, 1
jne 0x179bfc0
pop ebp
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x179c140
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x18ad2e8], 1
push esi
mov esi, ecx
je 0x179c151
call fcn.0176dcc0
cmp dword [esi], 0
jne 0x179c15b
call fcn.0176dcc0
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x179c169
xor al, al
pop esi
ret 8
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esi + 4], 0xffffffff
jbe 0x179c1a6
push edi
mov edi, dword [esi]
shl edi, 8
nop
movzx edx, byte [ecx]
mov eax, dword [esi + 4]
xor edx, eax
and edx, 0xff
add edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x186d2e8]
add ecx, 1
sub ebp, 1
mov dword [esi + 4], eax
jne 0x179c180
pop edi
pop ebp
mov al, 1
pop esi
ret 8

Function at 0x179c512
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
call edx
cmp eax, 1
je 0x179c526
call fcn.0176dcc0
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x179c536
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
push edi
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x179c544
call fcn.0176dcc0
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.0179c4c0
test eax, eax
jne 0x179c55b
pop edi
pop esi
pop ebx
pop ecx
ret 0xc
mov edx, dword [esi + 0x98]
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push edi
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, esi
call fcn.0179c4f0
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x179eb70
Capabilities:
Hash data using fnv

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov ebp, 0x811c9dc5
cmp esi, 0xfffffffe
je 0x179eb95
test esi, esi
je 0x179eb90
cmp esi, dword [esp + 0x1c]
je 0x179eb95
call fcn.017aefec
cmp edi, dword [esp + 0x20]
je 0x179ec01
cmp esi, 0xfffffffe
mov ebx, edi
je 0x179ebc7
test esi, esi
jne 0x179ebab
call fcn.017aefec
cmp dword [esi + 0x18], 0x10
jb 0x179ebb6
mov eax, dword [esi + 4]
jmp 0x179ebb9
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp edi, ecx
jb 0x179ebc7
call fcn.017aefad
add edi, 1
cmp esi, 0xfffffffe
je 0x179ebf4
test esi, esi
jne 0x179ebd8
call fcn.017aefec
cmp dword [esi + 0x18], 0x10
jb 0x179ebe3
mov eax, dword [esi + 4]
jmp 0x179ebe6
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x179ebf4
call fcn.017aefad
movsx eax, byte [ebx]
imul ebp, ebp, 0x1000193
xor ebp, eax
jmp 0x179eb81
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x17a5930
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x17f4559
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x1845170]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.IFile.0
mov dword [esp + 0x1c], 2
call fcn.017a43a0
mov byte [esp + 0x1c], 1
lea ecx, [esi + 0x58]
call fcn.01662a90
xor ebx, ebx
mov byte [esp + 0x1c], bl
lea ecx, [esi + 0x30]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x1c], bl
call fcn.0179f360
mov dword [esp + 0x1c], 0xffffffff
cmp dword [esi + 0x2c], 0x10
jb 0x17a59ab
mov eax, dword [esi + 0x18]
push eax
call fcn.017af9e0
add esp, 4
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], ebx
mov byte [esi + 0x18], bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x17a7e70
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
jne 0x17a7e7c
xor al, al
ret 8
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
add eax, 1
ret 8

Function at 0x17a7f10
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 8
test eax, eax
jne 0x17a7f22
xor al, al
add esp, 8
ret 8
mov edx, dword [esp + 0x10]
mov ecx, 4
mov dword [esp], ecx
mov dword [esp + 4], ecx
lea ecx, [esp]
push ecx
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
add eax, 1
add esp, 8
ret 8
Function at 0x17ae950
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x17ae994
cmp dword [esi + 0x18], 1
jne 0x17ae994
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x17ae974
pop esi
xor eax, eax
pop ebx
ret
cmp eax, 1
jbe 0x17ae98d
push edi
lea edi, [eax - 1]
test edi, edi
jbe 0x17ae98c
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x17ae981
pop edi
mov dword [esi + 0x18], 0
pop esi
mov eax, 1
pop ebx
ret

Function at 0x17ae9a0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x17ae9e9
cmp dword [esi + 0x18], 0
jne 0x17ae9e9
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x17ae9c7
mov dword [esi + 0x18], 0
xor eax, eax
pop esi
ret
test eax, eax
jbe 0x17ae9e2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
mov edi, eax
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x17ae9d5
pop edi
pop ebx
mov dword [esi + 0x18], 1
mov eax, 1
pop esi
ret

Function at 0x17aea10
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x17aea57
cmp byte [esi + 4], 0xb8
push edi
lea edi, [esi + 4]
je 0x17aea28
call fcn.0176dcc0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
lea eax, [esi + 0x1c]
push eax
push 4
push ecx
push edi
push edx
push 0
call fcn.017b23f2
add esp, 0x18
test eax, eax
mov dword [esi + 0x14], eax
pop edi
je 0x17aea60
mov ecx, dword [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
pop esi
ret 0xc
xor eax, eax
pop esi
ret 0xc

Function at 0x17aecf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x17f5783
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1845170]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.017aeca0
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi], vtable.CThreadControl.0
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
push 0xfa0
mov dword [esi + 0x30], eax
push edi
lea ecx, [esi + 0x44]
mov dword [esi + 0x2c], 0xffffffff
call fcn.0176f6b0
mov eax, 1
mov byte [esp + 0x18], al
mov dword [esi + 0x40], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], edi
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x17b0193
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1845170]
jne 0x17b019d
repz ret
jmp fcn.017ba4ec
Function at 0x17b85f8
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1845340]
je 0x17b8613
inc edi
cmp edi, 0x17
jb 0x17b8604
cmp edi, 0x17
jae 0x17b8793
push ebp
push 3
call fcn.017cdc87
cmp eax, 1
pop ecx
je 0x17b875f
push 3
call fcn.017cdc87
test eax, eax
pop ecx
jne 0x17b8647
cmp dword [0x1845250], 1
je 0x17b875f
cmp ebx, 0xfc
je 0x17b8792
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x18ad618
push ebp
call fcn.017b24a0
add esp, 0xc
test eax, eax
je 0x17b867d
push esi
push esi
push esi
push esi
push esi
call fcn.017b49a5
add esp, 0x14
push 0x104
mov esi, 0x18ad631
push esi
push 0
mov byte [0x18ad735], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x17b86c1
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.017b24a0
add esp, 0xc
test eax, eax
je 0x17b86c1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.017b49a5
add esp, 0x14
push esi
call fcn.017b5a90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x17b8706
push esi
call fcn.017b5a90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x18ad92c
push 0x1812758
sub ecx, eax
push ecx
push eax
call fcn.017c170a
add esp, 0x14
test eax, eax
je 0x17b8706
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.017b49a5
add esp, 0x14
jmp 0x17b8708
xor esi, esi
push 0x180e948
push ebx
push ebp
call fcn.017c4cd2
add esp, 0xc
test eax, eax
je 0x17b8728
push esi
push esi
push esi
push esi
push esi
call fcn.017b49a5
add esp, 0x14
push dword [edi*8 + 0x1845344]
push ebx
push ebp
call fcn.017c4cd2
add esp, 0xc
test eax, eax
je 0x17b874a
push esi
push esi
push esi
push esi
push esi
call fcn.017b49a5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.017cdaca
add esp, 0xc
jmp 0x17b8792
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x17b8792
cmp ebp, 0xffffffff
je 0x17b8792
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1845344]
push dword [esi]
call fcn.017b5a90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x17cdaca
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.017b88cb
xor ebx, ebx
cmp dword [0x18adfc4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x17cdba0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x17cdc80
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1813f84
push edi
call esi
cmp eax, ebx
je 0x17cdc80
push eax
call fcn.017b885d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x18adfc4], eax
call esi
push eax
call fcn.017b885d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x18adfc8], eax
call esi
push eax
call fcn.017b885d
mov dword [0x18adfcc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.017ba8a3
test eax, eax
pop ecx
pop ecx
je 0x17cdb6e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.017b49a5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x17cdba0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.017b885d
cmp eax, ebx
pop ecx
mov dword [0x18adfd4], eax
je 0x17cdba0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.017b885d
pop ecx
mov dword [0x18adfd0], eax
mov eax, dword [0x18adfd0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x17cdc25
cmp dword [0x18adfd4], ecx
je 0x17cdc25
push eax
call fcn.017b88d4
push dword [0x18adfd4]
mov esi, eax
call fcn.017b88d4
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x17cdc25
cmp edi, ebx
je 0x17cdc25
call esi
cmp eax, ebx
je 0x17cdbf2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x17cdbf2
test byte [ebp - 0x18], 1
jne 0x17cdc25
lea eax, [ebp - 0x10]
push eax
call fcn.017ba952
test eax, eax
pop ecx
je 0x17cdc0d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.017b49a5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x17cdc1c
or dword [ebp + 0x10], 0x200000
jmp 0x17cdc60
or dword [ebp + 0x10], 0x40000
jmp 0x17cdc60
mov eax, dword [0x18adfc8]
cmp eax, dword [ebp - 8]
je 0x17cdc60
push eax
call fcn.017b88d4
cmp eax, ebx
pop ecx
je 0x17cdc60
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x17cdc60
mov eax, dword [0x18adfcc]
cmp eax, dword [ebp - 8]
je 0x17cdc60
push eax
call fcn.017b88d4
cmp eax, ebx
pop ecx
je 0x17cdc60
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x18adfc4]
call fcn.017b88d4
cmp eax, ebx
pop ecx
je 0x17cdc80
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x17cdc82
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x4dd094]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
push edi
mov edi, ecx
test esi, esi
je 0x401ea9
cmp dword [edi + 4], 0xffffffff
je 0x401d49
call fcn.00401c80
mov al, byte [esi]
sub al, 0x30
push esi
cmp al, 9
ja 0x401d71
xorps xmm0, xmm0
mov eax, 2
movlpd qword [esp + 0x2c], xmm0
mov word [esp + 0x24], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x24], eax
jmp 0x401da9
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x401ea9
xorps xmm0, xmm0
lea eax, [esp + 0x24]
movaps xmmword [esp + 0x20], xmm0
movsx ecx, word [esi + 0xa]
push ecx
mov ecx, dword [esi + 0xc]
push dword [ecx]
push eax
call fcn.00478b50
mov ax, word [esi + 8]
add esp, 0xc
mov word [esp + 0x20], ax
push 0x3afc
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push 2
mov word [esp + 0x2e], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x401de9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00476d2c
mov esp, ebp
pop ebp
ret 0xc
push 4
lea eax, [esp + 0x3c]
mov dword [edi + 4], esi
push eax
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x4c], 0x40000
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x401e4c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00476d2c
mov esp, ebp
pop ebp
ret 0xc
push 0x31
push 0x401
push dword [esp + 0x1c]
push esi
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov edx, dword [esp + 0x1c]
mov ecx, edx
mov eax, dword [esp + 0x14]
mov dword [edi + 8], eax
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401e70
sub ecx, esi
push ecx
push edx
lea ecx, [edi + 0xc]
call fcn.004028c0
mov dword [edi + 0x24], 0x3afc
xor eax, eax
mov dword [edi + 0x40028], 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00476d2c
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.00476d2c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4024a0
Capabilities:
Encode data using xor
Hash data with crc32
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e10d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4dd094]
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 ebx, ecx
cmp dword [ebx + 0x40058], 0
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
je 0x40265c
cmp dword [ebx + 4], 0xffffffff
je 0x40265c
cmp dword [ebx + 0x40028], 0
je 0x40265c
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor eax, eax
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], vtable.DataPack.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
cmp dword [0x4e0bcc], eax
je 0x4025b9
mov eax, dword [0x4e0bc8]
push esi
inc eax
push edi
push 0x4e11ac
mov dword [0x4e0bc8], eax
mov dword [0x4e11a8], eax
call fcn.00478b50
lea edi, [esi + 4]
add esp, 0xc
or ecx, 0xffffffff
xor edx, edx
test edi, edi
je 0x40257b
nop dword [eax]
movzx eax, byte [edx + 0x4e11a8]
inc edx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d0fe0]
cmp edx, edi
jb 0x402560
push 0x4e11a8
lea eax, [esi + 8]
mov dword [esi + 0x4e11ac], ecx
push 0x4e11a8
mov esi, eax
push eax
mov dword [ebp - 0x20], esi
call fcn.0041d200
push esi
mov dword [ebp - 0x18], esi
call fcn.00476d82
push esi
mov edi, eax
mov dword [ebp - 0x24], eax
push 0x4e11a8
push edi
mov dword [ebp - 0x28], edi
call fcn.00478b50
add esp, 0x10
lea eax, [esi + 6]
cmp eax, 0xc8
jg 0x402651
mov esi, dword [sym.imp.WS2_32.dll_htons]
lea edi, [ebx + 0x28]
push 0xaa55
call esi
mov word [edi], ax
mov eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x24]
mov word [edi + 2], ax
add edi, 4
push edi
call fcn.00478b50
add esp, 0xc
push 0x55aa
call esi
mov ecx, dword [ebp - 0x20]
mov word [ecx + edi], ax
lea esi, [ecx + 6]
xor eax, eax
test esi, esi
jle 0x40264b
push 0
mov edi, eax
lea eax, [ebx + 0x28]
push esi
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x40262f
test ecx, ecx
lea eax, [ecx + edi]
cmove eax, edi
cmp eax, esi
jl 0x402608
jmp 0x40264b
push 0x151
push str.C:UsersAdministratorDesktop_sonESKIHGuard_Launcher_SourceAPISocket.cpp
push str.socket_send_error_
push str.ERROR____s_n_s:__d_n_n
call fcn.004016b0
add esp, 0x10
add dword [ebx + 0x40040], esi
push dword [ebp - 0x28]
call fcn.00476d3a
add esp, 4
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.00476d2c
mov esp, ebp
pop ebp
ret 8