joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447340
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x447373
push esi
call fcn.0044a450
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44736c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4473f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4473e2
mov eax, dword [esi + 8]
test eax, eax
je 0x447397
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4473de
cmp eax, 2
je 0x4473e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44738a
cmp eax, 3
je 0x4473bd
cmp eax, 1
jne 0x44738a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44738a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44738a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00447420
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x447408
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00447420
add esp, 4
pop esi
ret

Function at 0x452770
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4527d6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4527d6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4527b7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x453310
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00453460
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x453330
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x453311
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00453460
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x453330
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x453360
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4533b7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4533cd
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.004533f0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x4533f0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x453480
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4534c9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x453940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x479020
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004534f0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00453570
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00453570
lea ecx, [esi + 0xc]
call fcn.0046a54e
lea ecx, [esi + 0x10]
call fcn.0046a54e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00455da0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00455da0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00455da0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046a5c3
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046a5c3
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4545e8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x479248
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4545f8
call fcn.00454b10
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x4546db
cmp byte [edi], 0
je 0x4546db
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x45461d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00453310
test eax, eax
jne 0x45463d
push 0x5f9488
lea ecx, [esi + 0x38]
call fcn.0046a700
jmp 0x4546db
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00453360
test eax, eax
jne 0x45466c
mov ecx, esi
call fcn.00453460
push edi
add esi, 0x38
push 0x5f9464
push esi
call fcn.004683c7
add esp, 0xc
jmp 0x4546db
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00455390
test eax, eax
je 0x4546d4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004547b0
test eax, eax
jne 0x4546f0
push edi
lea eax, [esi + 0x38]
push 0x5f9440
push eax
call fcn.004683c7
add esp, 0xc
mov ecx, esi
call fcn.00454b10
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x454798
mov ecx, dword [0x5f9728]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.004683c7
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00453410
test eax, eax
jne 0x45475a
push 0x5f9424
lea ecx, [esi + 0x38]
call fcn.0046a700
jmp 0x45476a
push 0xfa
mov ecx, esi
call fcn.00455390
test eax, eax
jne 0x454787
mov ecx, esi
call fcn.00454b10
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046a5c3
jmp 0x4546db
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046a5c3
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x4568b0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x456953
test eax, eax
jbe 0x456953
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x456953
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4568fe
xor esi, esi
jmp 0x456904
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45692f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004067c0
add esi, eax
push esi
mov ebx, esi
call fcn.004067c0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x456910
pop ebp
test edi, edi
pop edi
jne 0x456953
test ebx, ebx
je 0x456953
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045ad20
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x456a95
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x456bad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x456bad
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046bfc4
mov esi, eax
test esi, esi
je 0x456bad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x456bad
mov ecx, esi
call fcn.00456a00
cmp edi, eax
jge 0x456bad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x456b33
mov dword [esp + 0x34], 1
jmp 0x456b8e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x456bad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00455ff0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x46c967
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46c99f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046aa1e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046a9f6
jmp 0x46c9ab
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46e05d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46e09f
call fcn.00473c0f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46e09f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46e096
xor eax, eax
jmp 0x46e0a7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046e0ad
pop edi
pop esi
pop ebx
ret 4

Function at 0x47413f
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 0x47416d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47418b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004740a5
jmp 0x47418b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47418b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004740a5
test edi, edi
mov eax, edi
jne 0x474175
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x2a4
lea eax, [esp + 0x114]
push ebx
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40102e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
pop ebx
add esp, 0x2a4
ret
lea ecx, [esp + 0x18]
push 0x100
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x401052
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
pop ebx
add esp, 0x2a4
ret
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
jne 0x401073
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
pop ebx
add esp, 0x2a4
ret
mov eax, dword [ebx + 0xc]
push ebp
push esi
xor ebp, ebp
mov esi, dword [eax]
test esi, esi
jbe 0x4010e3
mov ecx, dword [esp + 0x2b4]
push edi
mov dword [esp + 0x10], ecx
movsx ecx, word [ebx + 0xa]
mov edx, ecx
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
add eax, 0x20
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x10], eax
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + ebp*4]
test esi, esi
ja 0x40108c
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x2a4
ret
Function at 0x401210
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x2bc
lea eax, [esp + 0x12c]
push esi
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x2cc]
mov edi, dword [esp + 0x2d0]
push ecx
push edi
call fcn.004010f0
add esp, 8
test eax, eax
je 0x4013b1
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [esp + 0x2c8]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x4013b1
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xfa0
mov dword [esp + 0x28], eax
mov word [esp + 0x24], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 0x14]
push 4
mov word [esp + 0x26], ax
mov eax, dword [esi]
push edx
push 4
push 0xffff
push eax
mov dword [esp + 0x28], 1
call edi
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push 4
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x24], 0x2ee0
call edi
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push 4
push eax
push 0x1005
push 0xffff
push ecx
call edi
mov eax, dword [esi]
lea edx, [esp + 0xc]
push 4
push edx
push 0x1002
push 0xffff
push eax
mov dword [esp + 0x20], 0x400
call edi
mov edx, dword [esi]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x1001
push 0xffff
push edx
mov dword [esp + 0x20], 0
call edi
mov ecx, dword [esi]
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [esp + 8]
mov dword [esp + 8], 1
push eax
push 0x8004667e
push ecx
call edi
cmp eax, 0xffffffff
je 0x4013a2
mov ecx, dword [esi]
lea eax, [esp + 0x20]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push 0
push ecx
push 0
push 0
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], 1
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x30], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4013a2
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x14], 0
call edi
cmp eax, 0xffffffff
jne 0x4013bc
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
xor eax, eax
pop esi
add esp, 0x2bc
ret
pop edi
mov eax, 1
pop esi
add esp, 0x2bc
ret

Function at 0x401490
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ecx
lea eax, [esp]
push eax
call fcn.004013d0
add esp, 4
test eax, eax
jne 0x4014b9
push 0x40
push str.FAIL
push 0x40a7e8
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
pop ecx
ret
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, dword [esp]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4014d9
xor al, al
pop ecx
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
push 0
push 0x100
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4014f9
xor al, al
pop ecx
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp]
push edx
mov dword [ecx], eax
call fcn.00401470
add esp, 4
mov al, 1
pop ecx
ret
Function at 0x401620
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x33c
lea eax, [esp + 0x1ac]
push esi
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push str.logIP.ini
push str.192.12.0.188
push str.00_60_03_6e_21_04
push str.192.12.0.25
lea ecx, [esp + 0x40]
push str.arp__s__s__s__s_2__s
push ecx
call fcn.004025a0
lea edx, [esp + 0x48]
push edx
call fcn.00402a10
push str.logIP.ini
call fcn.004015b0
add esp, 0x20
cmp al, 1
jne 0x401691
push 0x40a8b0
call fcn.00401590
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x33c
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [esp + 0x348]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x40180b
push str.192.12.0.25
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xfa0
mov dword [esp + 0x28], eax
mov word [esp + 0x24], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov word [esp + 0x22], ax
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x28], 1
call edi
mov eax, dword [esi]
lea edx, [esp + 0xc]
push 4
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x20], 0x2710
call edi
mov edx, dword [esi]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x1005
push 0xffff
push edx
call edi
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push 4
push eax
push 0x1002
push 0xffff
push ecx
mov dword [esp + 0x24], 0
call edi
mov eax, dword [esi]
lea edx, [esp + 0x10]
push 4
push edx
push 0x1001
push 0xffff
push eax
call edi
mov edx, dword [esi]
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ecx, [esp + 8]
mov dword [esp + 8], 1
push ecx
push 0x8004667e
push edx
call edi
cmp eax, 0xffffffff
je 0x4017fc
mov edx, dword [esi]
lea ecx, [esp + 0x20]
push 0x10
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xb4]
push 0
push edx
push 0
push 0
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc4], 1
mov dword [esp + 0x2c], 0xa
mov dword [esp + 0x30], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x4017e0
push 0x40a894
call fcn.00401590
add esp, 4
jmp 0x4017fc
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x14], 0
call edi
cmp eax, 0xffffffff
jne 0x401816
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
xor eax, eax
pop esi
add esp, 0x33c
ret
pop edi
mov eax, 1
pop esi
add esp, 0x33c
ret
Function at 0x4018d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
push eax
push 0xf003f
push 0
push str.SystemCurrentControlSetServicesTcpipParametersInterfaces_
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40190d
mov ecx, dword [esp + 0x10]
push 0x40a91c
push ecx
call fcn.004025a0
add esp, 8
xor eax, eax
pop esi
add esp, 8
ret
mov esi, dword [esp + 0x14]
push 4
movsx edx, word [esi + 4]
movsx eax, word [esi + 2]
movsx ecx, word [esi]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0xc]
shl edx, 0x10
or edx, ecx
mov dword [esp + 8], edx
lea edx, [esp + 8]
push edx
push 4
push 0
push 0x40a884
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401973
movsx ecx, word [esi + 4]
movsx edx, word [esi + 2]
movsx eax, word [esi]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push 0x40a900
push ecx
call fcn.004025a0
add esp, 0x14
mov eax, 1
pop esi
add esp, 8
ret
mov edx, dword [esp + 0x10]
push 0x40a8e0
push edx
call fcn.004025a0
add esp, 8
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x401fd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dx, 1
movzx si, byte [edi]
jbe 0x402033
mov eax, dword [esp + 0x14]
push ebx
and eax, 0xff
and eax, 0x8000000f
jns 0x401ffa
dec eax
or eax, 0xfffffff0
inc eax
and esi, 0xffff
and edx, 0xffff
shl eax, 6
sub esi, edi
dec edx
lea ecx, [edi + 1]
mov edi, edx
lea edx, [esi + ecx]
and edx, 0x8000003f
jns 0x402021
dec edx
or edx, 0xffffffc0
inc edx
mov dl, byte [edx + eax + 0x40aaa0]
mov bl, byte [ecx]
xor bl, dl
mov byte [ecx], bl
inc ecx
dec edi
jne 0x402011
pop ebx
pop edi
pop esi
ret

Function at 0x402110
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
sub esp, 0x3c
push esi
push edi
mov edi, dword [esp + 0x48]
push 0
push 0x402270
push 0
push 0xc9
push edi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 0xca
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0x80
push esi
call edi
push 0x3d
push 3
lea eax, [esp + 0x2c]
push 0x40b37c
push eax
call fcn.004025a0
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
push 0
push 0xc
push esi
call edi
mov edx, dword [esp + 0x54]
push edx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea eax, [esp + 0x10]
push 0
push eax
call esi
test eax, eax
je 0x4021c7
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [esp + 0xc]
push ecx
call edi
lea edx, [esp + 0xc]
push edx
call ebx
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
call esi
test eax, eax
jne 0x40219f
pop ebx
pop edi
pop esi
add esp, 0x3c
ret 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret 0x10