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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x41c05c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
push esi
mov esi, ecx
movzx ecx, word [eax + 2]
push ecx
push edx
lea eax, [ebp - 0x204]
push str._8.8X:_4.4X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareSafeGuiSAI
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x208], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x404110
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cd7c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x208]
push edi
push 0x10
push esi
push 3
push 0
lea edx, [ebp - 0x204]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
je 0x40416a
push 0x34
push str.XShare.cpp
push str.FALSE
push str.code:__s_r_nfile:__s_r_nline:__d_r_n
push 0x422940
call esi
add esp, 0x14
push 0x200000
push str.DBG_ASSERT
push 0x422940
push 0
call edi
mov ecx, dword [ebp - 0x208]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4041a9
push 0x39
push str.XShare.cpp
push str.FALSE
push str.code:__s_r_nfile:__s_r_nline:__d_r_n
push 0x422540
call esi
add esp, 0x14
push 0x200000
push str.DBG_ASSERT
push 0x422540
push 0
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040cd7c
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, dword [0x41daac]
mov edx, dword [ecx + 0x2c]
push ebx
push esi
push edi
mov esi, 0x7530
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
mov edx, eax
sub edx, ecx
cmp esi, edx
jbe 0x40430e
sub ecx, eax
add esi, ecx
mov dword [ebp - 4], eax
jmp 0x404310
xor esi, esi
push 1
push esi
push 0
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, 0xc0
ja 0x40434b
je 0x4042f4
sub eax, 0
je 0x404385
sub eax, 1
jne 0x404352
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 8]
push eax
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, 0x102
je 0x404393
push 0x42
push str.XSo.cpp
push str.FALSE
push str.code:__s_r_nfile:__s_r_nline:__d_r_n
push 0x421940
call edi
add esp, 0x14
push 0x200000
push str.DBG_ASSERT
push 0x421940
push 0
call ebx
jmp 0x4042f4
pop edi
pop esi
mov eax, 0x4c7
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, 0x5b4
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4043b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, dword [0x41daac]
mov edx, dword [ecx + 0x14]
push ebx
push esi
push edi
mov esi, 0x7530
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
mov edx, eax
sub edx, ecx
cmp esi, edx
jbe 0x4043fe
sub ecx, eax
add esi, ecx
mov dword [ebp - 4], eax
jmp 0x404400
xor esi, esi
push 0
push esi
push 0
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, 0xc0
ja 0x40443b
je 0x4043e4
sub eax, 0
je 0x404475
sub eax, 1
jne 0x404442
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0x10]
push eax
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, 0x102
je 0x404483
push 0x6c
push str.XSo.cpp
push str.FALSE
push str.code:__s_r_nfile:__s_r_nline:__d_r_n
push 0x421540
call edi
add esp, 0x14
push 0x200000
push str.DBG_ASSERT
push 0x421540
push 0
call ebx
jmp 0x4043e4
pop edi
pop esi
mov eax, 0x4c7
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, 0x5b4
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404550
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x41c05c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4045c3
push 0x18
push str.XSocket.cpp
push str.FALSE
push str.code:__s_r_nfile:__s_r_nline:__d_r_n
push 0x421140
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x200000
push str.DBG_ASSERT
push 0x421140
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cd7c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0040cd7c
mov esp, ebp
pop ebp
ret
Function at 0x404630
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebx + 0x34], 0xffffffff
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
je 0x404678
push 0x2a
push str.XSocket.cpp
push str.INVALID_SOCKETm_socket
push str.code:__s_r_nfile:__s_r_nline:__d_r_n
push 0x420940
call esi
add esp, 0x14
push 0x200000
push str.DBG_ASSERT
push 0x420940
push 0
call edi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x34], eax
cmp eax, 0xffffffff
jne 0x404698
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 4]
push ecx
push 8
push 0xffff
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4046e5
push 0x37
push str.XSocket.cpp
push str.FALSE
push str.code:__s_r_nfile:__s_r_nline:__d_r_n
push 0x420540
call esi
add esp, 0x14
push 0x200000
push str.DBG_ASSERT
push 0x420540
push 0
call edi
mov ecx, dword [ebx + 0x34]
push 0
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x98000004
push ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0xea60
mov dword [ebp - 0xc], 0x1388
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x404754
push 0x44
push str.XSocket.cpp
push str.FALSE
push str.code:__s_r_nfile:__s_r_nline:__d_r_n
push 0x420140
call esi
add esp, 0x14
push 0x200000
push str.DBG_ASSERT
push 0x420140
push 0
call edi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4047e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x41c05c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
push esi
push edi
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x18]
push edx
push eax
mov dword [ebp - 0x24], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 0x34], eax
cmp eax, 0xffffffff
jne 0x40482e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040cd7c
mov esp, ebp
pop ebp
ret 4
push 4
lea ecx, [ebp - 0x20]
push ecx
push 8
push 0xffff
push eax
mov dword [ebp - 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
je 0x404887
push 0x73
push str.XSocket.cpp
push str.FALSE
push str.code:__s_r_nfile:__s_r_nline:__d_r_n
push 0x41fd40
call esi
add esp, 0x14
push 0x200000
push str.DBG_ASSERT
push 0x41fd40
push 0
call edi
mov ecx, dword [ebx + 0x34]
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push 0xc
lea eax, [ebp - 0x30]
push eax
push 0x98000004
push ecx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0xea60
mov dword [ebp - 0x28], 0x1388
mov dword [ebp - 0x1c], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4048f9
push 0x80
push str.XSocket.cpp
push str.FALSE
push str.code:__s_r_nfile:__s_r_nline:__d_r_n
push 0x41f940
call esi
add esp, 0x14
push 0x200000
push str.DBG_ASSERT
push 0x41f940
push 0
call edi
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040cd7c
mov esp, ebp
pop ebp
ret 4
Function at 0x404910
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41c05c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov ecx, 2
push ebx
mov word [ebp - 0x14], cx
mov eax, dword [edx]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push edi
push edx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x34]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x404972
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cd7c
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x34]
push 4
lea edx, [ebp - 0x20]
push edx
push 8
push 0xffff
push eax
mov dword [ebp - 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
je 0x4049d1
push 0xa2
push str.XSocket.cpp
push str.FALSE
push str.code:__s_r_nfile:__s_r_nline:__d_r_n
push 0x41f540
call edi
add esp, 0x14
push 0x200000
push str.DBG_ASSERT
push 0x41f540
push 0
call ebx
mov eax, dword [esi + 0x34]
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x2c]
push edx
push 0x98000004
push eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0xea60
mov dword [ebp - 0x24], 0x3a98
mov dword [ebp - 0x1c], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x404a43
push 0xaf
push str.XSocket.cpp
push str.FALSE
push str.code:__s_r_nfile:__s_r_nline:__d_r_n
push 0x41f140
call edi
add esp, 0x14
push 0x200000
push str.DBG_ASSERT
push 0x41f140
push 0
call ebx
push 4
lea eax, [ebp - 0x18]
push eax
mov ecx, 1
push 0x80
mov word [ebp - 0x18], cx
mov ecx, dword [esi + 0x34]
push 0xffff
mov edx, 0xa
push ecx
mov word [ebp - 0x16], dx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x404aa4
push 0xb9
push str.XSocket.cpp
push str.FALSE
push str.code:__s_r_nfile:__s_r_nline:__d_r_n
push 0x41ed40
call edi
add esp, 0x14
push 0x200000
push str.DBG_ASSERT
push 0x41ed40
push 0
call ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040cd7c
mov esp, ebp
pop ebp
ret 8
Function at 0x404ac0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, 0x10
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x34]
lea eax, [ebp - 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x404b30
push 0xca
push str.XSocket.cpp
push str.FALSE
push str.code:__s_r_nfile:__s_r_nline:__d_r_n
push 0x41e940
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x200000
push str.DBG_ASSERT
push 0x41e940
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x34]
lea eax, [ebp - 8]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x404b8c
push 0xcf
push str.XSocket.cpp
push str.FALSE
push str.code:__s_r_nfile:__s_r_nline:__d_r_n
push 0x41e540
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x200000
push str.DBG_ASSERT
push 0x41e540
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x406800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [eax], ecx
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0x4067e0
push 0
push 0
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x406830
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret

Function at 0x40721d
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push 0x200
lea eax, [ebp - 0x258]
push eax
push str._ALLUSERSPROFILE__bug.log
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4072f8
push ebx
push edi
xor edi, edi
push edi
push edi
push 4
push edi
push 1
push 0x40000000
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4072f6
push 2
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4072ef
push esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
lea eax, [ebp - 0x58]
push str._4.4d__2.2d__2.2d__2.2d:_2.2d:_2.2d_t
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x20
push edi
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
push ecx
add eax, eax
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
call esi
test eax, eax
je 0x4072ee
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], eax
add eax, eax
push eax
push dword [ebp + 8]
push ebx
call esi
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
leave
ret

Function at 0x4072fa
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov ebx, eax
call esi
jmp 0x407321
cmp byte [eax + edi], 0x5c
je 0x407328
dec eax
test eax, eax
jg 0x40731b
jmp 0x40732c
lea edi, [edi + eax + 1]
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push edi
push str.file:__s__line:__d__error:__d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x400]
push eax
call esi
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ceba
pop ecx
push esi
mov edi, eax
push edi
push esi
lea eax, [ebp - 0x400]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40738a
push edi
call fcn.0040721d
pop ecx
push edi
call fcn.0040cf1f
pop ecx
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407769
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004153f0
push ebx
lea eax, [esi + 0x14]
push edi
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 8], 0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
je 0x4077b0
lea eax, [ebp - 0x100c]
push str._r_n
push eax
call edi
pop ecx
pop ecx
lea eax, [ebp - 0x100c]
push eax
call ebx
xor eax, eax
inc eax
cmp dword [esi + 0xc], eax
mov dword [ebp - 4], eax
jle 0x407813
mov dword [ebp - 8], 0xc
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
add eax, ecx
cmp dword [eax + 4], 0
je 0x407804
cmp dword [eax + 8], 0
mov ecx, 0x41a4d8
jne 0x4077df
mov ecx, 0x41a464
push ecx
movsx ecx, word [eax]
push ecx
push dword [eax + 4]
lea eax, [ebp - 0x100c]
push dword [ebp - 4]
push 0x41a4dc
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x100c]
push eax
call ebx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add dword [ebp - 8], 0xc
cmp eax, dword [esi + 0xc]
jl 0x4077c2
cmp dword [esi + 8], 0
je 0x407832
lea eax, [ebp - 0x100c]
push str._r_n
push eax
call edi
pop ecx
pop ecx
lea eax, [ebp - 0x100c]
push eax
call ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x407995
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x41dcd8
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebx + 0x168]
inc dword [eax]
mov eax, dword [eax]
cmp eax, 1
jg 0x407acf
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0x140], eax
cmp eax, esi
jne 0x4079e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407a91
push esi
push esi
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [ebx], eax
cmp eax, esi
je 0x4079d5
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x14]
push 4
add eax, 2
pop ecx
cmp eax, ecx
mov dword [ebx + 0x144], eax
jge 0x407a14
mov dword [ebx + 0x144], ecx
push 0x42
pop eax
cmp dword [ebx + 0x144], eax
jle 0x407a25
mov dword [ebx + 0x144], eax
xor edi, edi
cmp dword [ebx + 0x144], esi
jle 0x407a5d
mov eax, 0x407d31
cmp edi, esi
je 0x407a3d
mov eax, 0x407d8f
lea ecx, [ebp - 4]
push ecx
push esi
push esi
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + edi*4 + 0x38], eax
cmp eax, esi
je 0x407ab8
inc edi
cmp edi, dword [ebx + 0x144]
jl 0x407a2f
mov eax, dword [0x41e108]
cmp eax, esi
jne 0x407a7d
push str.WSAStartup
call fcn.00408184
push eax
call fcn.0040c589
pop ecx
pop ecx
mov dword [0x41e108], eax
mov esi, dword [ebp + 8]
push esi
push 0x101
call eax
test eax, eax
je 0x407ad2
call fcn.00408162
mov esi, eax
call fcn.00407b00
test eax, eax
je 0x407aa9
push 0x5e
mov eax, str.VStartup.cpp
call fcn.004072fa
pop ecx
push 0x41dcd8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x407af9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0x49
mov eax, str.VStartup.cpp
call fcn.004072fa
pop ecx
jmp 0x407a93
mov esi, dword [ebp + 8]
mov eax, 0xfc00
mov word [esi + 0x186], ax
mov eax, 0xb06
mov ecx, eax
push 0x41dcd8
mov word [esi + 2], cx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b0b2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004153f0
cmp dword [ebp + 8], 0x14
push ebx
push esi
mov esi, ecx
jae 0x40b0f7
mov ebx, str.VSoIoTcp.cpp
push 0x50e
mov eax, ebx
call fcn.004072fa
mov eax, ebx
mov dword [esp], 0x50f
call fcn.004072fa
mov eax, ebx
mov dword [esp], 0x510
call fcn.004072fa
pop ecx
mov eax, dword [esi + 0x406c]
cmp eax, 5
je 0x40b10b
cmp eax, 6
jne 0x40b24d
movzx eax, word [edi + 0x12]
mov cx, word [esi + 0xc1be]
sub cx, ax
test cx, cx
jle 0x40b149
movzx eax, ax
push eax
lea eax, [ebp - 0x1000]
push str.SYNC_ACK__usn_recv_cur:__d__EXPROID_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40b24d
mov ebx, dword [ebp + 8]
add ebx, 0xffffffec
cmp ebx, 0x200
jle 0x40b189
push 0x522
mov eax, str.VSoIoTcp.cpp
call fcn.004072fa
mov eax, str.VSoIoTcp.cpp
mov dword [esp], 0x523
call fcn.004072fa
mov eax, str.VSoIoTcp.cpp
mov dword [esp], 0x524
call fcn.004072fa
pop ecx
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [edi + 0x14]
push eax
movzx eax, word [edi + 0x12]
push eax
movzx eax, word [esi + 0xc1be]
push eax
lea eax, [esi + 0x4140]
push eax
call fcn.0040ca01
mov ebx, str.VSoIoTcp.cpp
test eax, eax
je 0x40b1c7
push 0x52c
mov eax, ebx
call fcn.004072fa
pop ecx
jmp 0x40b1d6
mov eax, dword [ebp + 8]
add dword [esi + 0xc204], eax
sub dword [esi + 0xc200], eax
movzx ecx, word [edi + 0xc]
lea eax, [esi + 0xc1ba]
mov dx, word [eax]
sub dx, cx
jns 0x40b1eb
mov word [eax], cx
movzx ecx, word [edi + 0x10]
lea eax, [esi + 0xc1c2]
mov dx, word [eax]
sub dx, cx
jns 0x40b200
mov word [eax], cx
movzx eax, word [edi + 0x12]
mov cx, word [esi + 0xc1be]
sub cx, ax
jns 0x40b22f
mov word [esi + 0xc1be], ax
mov eax, esi
call fcn.00409d6d
test eax, eax
je 0x40b22f
push 0x552
mov eax, ebx
call fcn.004072fa
pop ecx
push 0
call fcn.00407959
push eax
call fcn.0040b338
test eax, eax
je 0x40b24d
push 0x559
mov eax, ebx
call fcn.004072fa
pop ecx
pop esi
pop ebx
leave
ret 4

Function at 0x40bb6f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004153f0
push esi
push edi
xor edi, edi
lea esi, [ebx + 0xc218]
cmp byte [ebx + edi + 0x10220], 0
jle 0x40bbbf
mov eax, dword [esi]
cdq
mov ecx, 0x3e8
idiv ecx
push edx
push eax
push edi
lea eax, [ebp - 0x1000]
push str.___d_:_3d._3.3d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
inc edi
add esi, 4
cmp edi, 0x1000
jle 0x40bb86
pop edi
xor eax, eax
pop esi
leave
ret

Function at 0x40cd7c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c05c]
jne 0x40cd86
repz ret
jmp fcn.0040d268
Function at 0x412987
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.0040ea39
and dword [ebp - 4], 0
cmp dword [0x41d990], 0
mov ebx, eax
jne 0x412a38
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x412ae9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x418b74
push edi
call esi
test eax, eax
je 0x412ae9
push eax
call fcn.0040e9c7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41d990], eax
call esi
push eax
call fcn.0040e9c7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41d994], eax
call esi
push eax
call fcn.0040e9c7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41d998], eax
call esi
push eax
call fcn.0040e9c7
pop ecx
mov dword [0x41d9a0], eax
test eax, eax
je 0x412a38
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040e9c7
pop ecx
mov dword [0x41d99c], eax
mov eax, dword [0x41d99c]
cmp eax, ebx
je 0x412a90
cmp dword [0x41d9a0], ebx
je 0x412a90
push eax
call fcn.0040ea42
push dword [0x41d9a0]
mov esi, eax
call fcn.0040ea42
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x412a90
test edi, edi
je 0x412a90
call esi
test eax, eax
je 0x412a87
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x412a87
test byte [ebp - 0xc], 1
jne 0x412a90
or dword [ebp + 0x10], 0x200000
jmp 0x412ac9
mov eax, dword [0x41d994]
cmp eax, ebx
je 0x412ac9
push eax
call fcn.0040ea42
pop ecx
test eax, eax
je 0x412ac9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x412ac9
mov eax, dword [0x41d998]
cmp eax, ebx
je 0x412ac9
push eax
call fcn.0040ea42
pop ecx
test eax, eax
je 0x412ac9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41d990]
call fcn.0040ea42
pop ecx
test eax, eax
je 0x412ae9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412aeb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret