joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42043e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x420473
cmp edi, dword [esi + 0xc]
jge 0x420473
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x420473
cmp edi, dword [eax + 8]
jge 0x420473
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x420475
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x420579
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4205ad
jmp fcn.0041642f
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x42061e
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x420717
cmp eax, dword [edi + 0xc]
jge 0x420717
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x42066f
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x420700
cmp dword [ebp + 0xc], ebx
je 0x420700
jmp 0x420699
push 0x10
call fcn.0042030a
cmp eax, ebx
je 0x420685
mov ecx, eax
call fcn.00420570
mov esi, eax
jmp 0x420687
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4206b0
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4206c0
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4206d2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041642f
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00409770
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x420712
cmp ecx, dword [esi + 8]
jge 0x420712
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x420718
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4207d7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x420805
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x420823
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00420741
jmp 0x420823
mov eax, dword [esi + 0x14]
test eax, eax
je 0x420823
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00420741
test edi, edi
mov eax, edi
jne 0x42080d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x431bc4]
test ecx, ecx
je 0x4208d6
jmp 0x4207d6
ret 8
Function at 0x5eeda5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5eedc0
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124b3fe5]
pop edx
test eax, eax
je 0x5eee92
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5eee81
test dword [ebp - 0x2a8], 1
jne 0x5eee81
and dword [ebp - 0x2a8], 0x100
jne 0x5eee81
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2cbd]
pop edx
pop esi
test eax, eax
je 0x5eee24
jmp 0x5eee81
cmp word [esi], 0x5a4d
jne 0x5eee81
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5eee81
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2c09]
pop edx
test eax, eax
je 0x5eee81
lea eax, [ebp - 0x28c]
push eax
call fcn.005eed01
test eax, eax
jne 0x5eee7a
jmp 0x5eee81
mov eax, esi
jmp 0x5eee92
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5eedc0
pop esi
leave
ret 4
Function at 0x424000
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041ce41
and dword [ebp - 4], 0
cmp dword [0x43e078], 0
mov ebx, eax
jne 0x4240b1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x424162
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x424162
push eax
call fcn.0041cdcf
mov dword [esp], 0x431e04
push edi
mov dword [0x43e078], eax
call esi
push eax
call fcn.0041cdcf
mov dword [esp], 0x431df0
push edi
mov dword [0x43e07c], eax
call esi
push eax
call fcn.0041cdcf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43e080], eax
call esi
push eax
call fcn.0041cdcf
pop ecx
mov dword [0x43e088], eax
test eax, eax
je 0x4240b1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041cdcf
pop ecx
mov dword [0x43e084], eax
mov eax, dword [0x43e084]
cmp eax, ebx
je 0x424109
cmp dword [0x43e088], ebx
je 0x424109
push eax
call fcn.0041ce4a
push dword [0x43e088]
mov esi, eax
call fcn.0041ce4a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x424109
test edi, edi
je 0x424109
call esi
test eax, eax
je 0x424100
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x424100
test byte [ebp - 0xc], 1
jne 0x424109
or dword [ebp + 0x10], 0x200000
jmp 0x424142
mov eax, dword [0x43e07c]
cmp eax, ebx
je 0x424142
push eax
call fcn.0041ce4a
pop ecx
test eax, eax
je 0x424142
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x424142
mov eax, dword [0x43e080]
cmp eax, ebx
je 0x424142
push eax
call fcn.0041ce4a
pop ecx
test eax, eax
je 0x424142
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43e078]
call fcn.0041ce4a
pop ecx
test eax, eax
je 0x424162
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x424164
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408925
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
sub ebx, 0xeb264faf
call fcn.00408948
or ecx, ebx
xor dword [edx], esi
inc edx
cmp edx, eax
jne fcn.00408925
push ecx
mov ecx, dword [esp]
add esp, 4
sub ebx, ebx
ret

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401d00
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x12
push 0x39
call dword [0x41e284]
mov dword [0x41e290], 0x44
push 0x5f
push 0x28
push 0
call dword [0x41df5c]
mov dword [0x41df70], 0x1003f
push 0x126
push 0x2d
call fcn.004010d0
add esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.00401b60
add esp, 4
push 0x3b
push 0x12
call dword [0x41e2fc]
mov dword [ebp - 4], 0
jmp 0x401d65
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [0x41df4c]
xor eax, eax
mov ax, word [edx + 6]
cmp dword [ebp - 4], eax
jge 0x401de5
push 0x3d
push 0x4e
call dword [0x41e2fc]
mov ecx, dword [0x41e518]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
add eax, dword [ebp + 8]
lea ecx, [eax + edx + 0xf8]
mov dword [0x41df48], ecx
push 0x59
push 0x14
call dword [0x41e2fc]
push 0
mov edx, dword [0x41df48]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [0x41df48]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [0x41df4c]
mov ecx, dword [eax + 0x34]
mov edx, dword [0x41df48]
add ecx, dword [edx + 0xc]
push ecx
mov eax, dword [0x41df38]
push eax
call dword [0x41e2ec]
jmp 0x401d5c
push 6
push 0x14
call dword [0x41e284]
call fcn.00401c70
push 0x36
push 0x2f
call fcn.00401130
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x41e2e6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x41e2e6
lcall 0x5de5, 0x8b10c483
jmp loc.00949bb8
Function at 0x402644
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4070bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
inc esi
push esi
push 0
push 0
push 6
push esi
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
or ebx, 0xffffffff
mov dword [edi + 0x20], eax
cmp eax, ebx
je 0x402750
push 4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push ecx
push esi
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, ebx
je 0x402750
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push 0xfffffffffffffffb
push 0xffff
push dword [edi + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [edi + 0x20]
call sub.webengine4.dll_AttachHandleToThreadPool
mov esi, eax
test esi, esi
jne 0x402765
movzx ecx, word [edi + 0x1c]
push 2
pop eax
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp byte [edi + 0x2a], 0
mov word [ebp - 0x12], ax
je 0x4026e3
and dword [ebp - 0x10], esi
jmp 0x4026f1
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x20]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, ebx
jne 0x40273e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x402750
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 4
push eax
push 0xfffffffffffffffb
push 0xffff
push dword [edi + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x20]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, ebx
je 0x402750
push closesocket
push dword [edi + 0x20]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, ebx
jne 0x402765
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
test esi, esi
jle 0x402765
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405b30
mov esp, ebp
pop ebp
ret
Function at 0x402778
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4070bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
xor edi, edi
mov ebx, ecx
push edi
push edi
push 6
push 1
push 0x17
pop eax
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [ebx + 0x20], eax
cmp eax, 0xffffffff
je 0x40288e
push 4
xor edx, edx
lea ecx, [ebp - 0x28]
push ecx
inc edx
push edx
push 6
push eax
mov dword [ebp - 0x28], edx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x40288e
push 4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 1
push eax
push 0xfffffffffffffffb
push 0xffff
push dword [ebx + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebx + 0x20]
call sub.webengine4.dll_AttachHandleToThreadPool
mov esi, eax
test esi, esi
jne 0x4028a3
mov dword [ebp - 0x1c], edi
lea edi, [ebp - 0x18]
mov word [ebp - 0x1e], ax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 8], esi
cmp byte [ebx + 0x2a], 0
jne 0x402816
mov byte [ebp - 9], 1
push 0x17
pop eax
mov word [ebp - 0x20], ax
movzx eax, word [ebx + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x1c
push eax
push dword [ebx + 0x20]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40287b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x40288e
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push 4
push eax
push 0xfffffffffffffffb
push 0xffff
push dword [ebx + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40288e
push closesocket
push dword [ebx + 0x20]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4028a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
test esi, esi
jle 0x4028a3
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405b30
mov esp, ebp
pop ebp
ret

Function at 0x4028b6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
cmp byte [esi + 0x28], 0
je 0x4028c9
xor eax, eax
jmp 0x402942
push ebx
push edi
call fcn.00402a8a
mov edi, eax
test edi, edi
jne 0x402937
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp byte [esi + 0x2b], 0
mov ecx, esi
mov ebx, dword [ebp - 0x14]
je 0x4028f2
call fcn.00402778
jmp 0x4028f7
call fcn.00402644
mov edi, eax
test edi, edi
jne 0x402937
imul eax, ebx, 3
mov byte [esi + 0x28], 1
mov ebx, eax
mov dword [ebp - 4], eax
test ebx, ebx
jle 0x402922
mov ecx, esi
call fcn.004025d7
mov edi, eax
test edi, edi
jne 0x402937
dec ebx
test ebx, ebx
jg 0x40290d
mov eax, dword [ebp - 4]
push eax
push 0x4011b0
push 0x40000434
call sub.webengine4.dll_XspLogEvent
add esp, 0xc
jmp 0x40293e
mov ecx, esi
call fcn.00402947
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402a8a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
push reloc.WS2_32.dll_bind
mov edi, ecx
mov dword [ebp - 4], ebx
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402acb
jg 0x402ac0
mov esi, eax
jmp 0x402af7
movzx esi, ax
or esi, 0x80070000
jmp 0x402af7
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x40122c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402aba
cmp dword [ebp - 0xc], ebx
setne al
mov byte [edi + 0x2a], al
cmp dword [ebp - 4], ebx
je 0x402b05
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402b0e
mov byte [edi + 0x2a], bl
mov esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402b17
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
push reloc.WS2_32.dll_bind
mov edi, ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402b55
jg 0x402b4a
mov esi, eax
jmp 0x402b88
movzx esi, ax
or esi, 0x80070000
jmp 0x402b88
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x401210
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402b44
mov eax, dword [ebp - 8]
test eax, eax
jg 0x402b85
push 0xf
pop eax
mov dword [ebp - 8], eax
mov dword [edi + 0x14], eax
cmp dword [ebp - 4], 0
je 0x402b97
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402ba2
mov dword [edi + 0x14], 0xf
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402bd7
Capabilities:
Initialize winsock library
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x4070bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x198], ebx
mov byte [edi + 0x2b], bl
call fcn.00401c41
mov esi, eax
test esi, esi
jne 0x402d35
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x402c35
jle 0x402d35
movzx esi, si
or esi, 0x80070000
jmp 0x402d35
push ebx
push ebx
push ebx
push ebx
mov byte [edi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
jne 0x402c53
call fcn.00405166
mov esi, eax
jmp 0x402d35
mov dword [edi + 0x24], eax
mov eax, 0xa5b8
mov word [edi + 0x1c], ax
lea eax, [ebp - 0x198]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402d0f
push 4
pop esi
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x1a0], esi
push eax
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x19c], esi
push eax
lea eax, [ebp - 0x1a0]
push eax
push ebx
push str.Port
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402cd2
mov ecx, dword [ebp - 0x1a4]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja 0x402cd2
mov word [edi + 0x1c], cx
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], esi
push eax
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x1a0]
push eax
push ebx
push str.UseIPV6
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402d0f
cmp dword [ebp - 0x1a8], ebx
je 0x402d0f
mov byte [edi + 0x2b], 1
call fcn.004050c3
mov esi, eax
test esi, esi
jne 0x402d35
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [edi + 0x10], eax
test eax, eax
je 0x402c47
call sub.webengine4.dll_PerfCounterInitialize
mov esi, ebx
cmp dword [ebp - 0x198], ebx
je 0x402d49
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405b30
mov esp, ebp
pop ebp
ret

Function at 0x402e9e
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov byte [esi + 0xc], bl
call fcn.00402b17
push ebx
push ebx
push ebx
push 0x402e90
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
jne 0x402eca
call fcn.00405166
mov ebx, eax
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x404b11
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
mov dword [ebp - 0x14], ecx
push edi
inc eax
xor edi, edi
cmp byte [ecx + 0xd8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edi
jne 0x404be0
mov byte [ecx + 0xd8], al
mov eax, dword [ebp + 0x18]
push ebx
push esi
test eax, eax
je 0x404b4a
mov ebx, dword [eax + 4]
mov dword [ebp - 8], ebx
jmp 0x404b4d
and dword [ebp - 8], edi
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x14]
lea ebx, [eax*2 + 0x3e]
push ebx
mov dword [ebp - 0xc], ebx
call fcn.00405181
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x404bd2
xor edi, edi
push edi
push edi
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
mov ebx, eax
mov eax, dword [ebp - 0xc]
push edi
sub eax, ebx
push eax
lea eax, [ebx + esi]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add ebx, eax
mov eax, dword [ebp - 0xc]
push 0xa
lea edi, [ebx + esi]
mov esi, 0x4015d4
add ebx, 0x10
sub eax, ebx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 4]
lea esi, [ebx + edi]
push esi
push dword [ebp - 8]
call dword [sym.imp.ucrtbase_clr0400.dll__itoa_s]
add esp, 0x10
test eax, eax
je 0x404be8
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 4]
push edi
call fcn.004056d6
push esi
call fcn.004051cd
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x14
inc esi
cmp byte [esi], 0
jne 0x404be7
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0xa0d0a0d
sub esi, edi
add esi, 4
mov dword [ebx + 0xc4], esi
xor esi, esi
mov dword [ebx + 0xc8], edi
mov edi, dword [ebp - 8]
mov dword [ebp - 4], esi
test edi, edi
jle 0x404c3c
mov esi, dword [ebp + 0x18]
push esi
mov dword [ebx + 0xd4], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [esi + 8]
mov dword [ebx + 0xcc], edi
mov esi, dword [ebp - 4]
mov dword [ebx + 0xd0], eax
mov dword [ebp - 0x10], 2
push 0x24
mov dword [ebx + 0x10], 0x4047d0
call fcn.004051a7
test eax, eax
je 0x404c5a
push ebx
mov ecx, eax
call fcn.00403bb2
mov edi, eax
jmp 0x404c5c
xor edi, edi
test edi, edi
je 0x404bd2
mov eax, dword [edi]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4091fc]
call esi
push dword [ebx + 0xb8]
mov ecx, dword [0x407754]
call fcn.00404cf4
lea eax, [ebx + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
xor esi, esi
lea eax, [edi + 4]
push esi
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
lea eax, [ebx + 0xc4]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x404bcf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x404bcf
push dword [ebx + 0xb8]
mov ecx, dword [0x407754]
call fcn.00404d47
mov dword [ebx + 0x10], esi
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4091fc]
call esi
jmp 0x404bcf