joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a240
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x40a3a1
mov ecx, dword [esp + 0x18]
cmp ecx, edi
je 0x40a3a1
push edi
push edi
push 3
push edi
push 1
push closesocket
push eax
mov dword [ecx], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40a29b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsPE64Format__CreateFile_errorCode___d
call fcn.00401fc0
add esp, 8
xor eax, eax
pop edi
pop ebx
add esp, 8
ret
push ebp
lea eax, [esp + 0x18]
push esi
push eax
push ebx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a37a
cmp dword [esp + 0x1c], edi
jne 0x40a37a
mov ecx, dword [sym.imp.MSVCP60.dll_struct_std::nothrow_t_const_std::nothrow]
push ecx
push esi
call fcn.0040e74d
mov ebp, eax
add esp, 8
cmp ebp, edi
je 0x40a330
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a35d
cmp word [ebp], 0x5a4d
jne 0x40a373
mov ecx, dword [ebp + 0x3c]
cmp word [ecx + ebp + 4], 0x8664
jne 0x40a326
mov edx, dword [esp + 0x20]
mov dword [edx], 1
mov dword [esp + 0x10], 1
jmp 0x40a33d
push str._IsPE64Format__new_buffer__NULL
call fcn.00401fc0
add esp, 4
test ebp, ebp
je 0x40a34a
push ebp
call fcn.0040e742
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsPE64Format__ReadFile_errorCode___d
call fcn.00401fc0
add esp, 8
jmp 0x40a33d
push str._IsPE64Format__not_a_PE_file
jmp 0x40a335
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsPE64Format__GetFileSize_errorCode___d
call fcn.00401fc0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
pop ebx
add esp, 8
ret
push str._IsPE64Format__FileName__NULL__bIsPE64__NULL
call fcn.00401fc0
add esp, 4
xor eax, eax
pop edi
pop ebx
add esp, 8
ret
Function at 0x40a3c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x19c
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x110]
mov dword [esp + 0x110], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40a418
mov dword [esp + 0x114], 5
jmp 0x40a438
cmp dword [esp + 0x114], 6
jb 0x40a438
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.00409f40
add esp, 8
cmp eax, ebx
jne 0x40a466
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.00409e90
add esp, 8
cmp eax, ebx
jne 0x40a466
push str._GetDefaultBrowserType_GetBrowserPath_failed
call fcn.00401fc0
add esp, 4
xor eax, eax
pop edi
pop ebx
add esp, 0x19c
ret
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40a48e
push str._GetDefaultBrowserType_strlen_szBrwPath___0
call fcn.00401fc0
add esp, 4
xor eax, eax
pop edi
pop ebx
add esp, 0x19c
ret
lea eax, [esp + 0xc]
push eax
call fcn.0040a100
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x14], ebx
call fcn.0040a240
add esp, 0xc
test eax, eax
jne 0x40a4bb
pop edi
pop ebx
add esp, 0x19c
ret
cmp dword [esp + 8], ebx
je 0x40a4cf
pop edi
mov eax, 5
pop ebx
add esp, 0x19c
ret
push esi
mov esi, dword [sym.imp.MSVCRT.dll__strlwr]
lea eax, [esp + 0x10]
push str.iexplore
push eax
call esi
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
add esp, 4
push eax
call edi
add esp, 8
test eax, eax
je 0x40a506
mov ebx, 5
pop esi
mov eax, ebx
pop edi
pop ebx
add esp, 0x19c
ret
lea ecx, [esp + 0x10]
push 0x415590
push ecx
call esi
add esp, 4
push eax
call edi
add esp, 8
test eax, eax
je 0x40a530
mov ebx, 3
pop esi
mov eax, ebx
pop edi
pop ebx
add esp, 0x19c
ret
lea edx, [esp + 0x10]
push 0x415588
push edx
call esi
add esp, 4
push eax
call edi
add esp, 8
test eax, eax
je 0x40a55a
mov ebx, 4
pop esi
mov eax, ebx
pop edi
pop ebx
add esp, 0x19c
ret
lea eax, [esp + 0x10]
push 0x415580
push eax
call esi
add esp, 4
push eax
call edi
add esp, 8
test eax, eax
je 0x40a584
mov ebx, 1
pop esi
mov eax, ebx
pop edi
pop ebx
add esp, 0x19c
ret
lea ecx, [esp + 0x10]
push str.chrome
push ecx
call esi
add esp, 4
push eax
call edi
add esp, 8
test eax, eax
je 0x40a5a2
mov ebx, 2
pop esi
mov eax, ebx
pop edi
pop ebx
add esp, 0x19c
ret
Function at 0x40aa90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, dword [esp + 0x118]
xor ebx, ebx
cmp esi, ebx
jne 0x40aab0
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
mov dword [esi], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer_
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
pop edi
je 0x40ab09
push eax
push str.RegQueryValue_errorCode___d
call fcn.00401fc0
add esp, 8
xor eax, eax
pop esi
pop ebx
add esp, 0x10c
ret
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push ebx
push ebx
push str.Version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40ab4d
push eax
push str.RegQueryValue_errorCode___d
call fcn.00401fc0
mov ecx, dword [esp + 0x10]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 6
jl 0x40ab6e
cmp eax, 9
jg 0x40ab6e
mov dword [esi], eax
mov ebx, 1
jmp 0x40ab7d
push str.Unknown_IE_Version
call fcn.00401fc0
add esp, 4
mov dword [esi], ebx
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop esi
pop ebx
add esp, 0x10c
ret
Function at 0x40ad50
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
test ebx, ebx
push edi
jne 0x40ad70
push str._CreateExeFile__strFilePath__NULL
call fcn.00401fc0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x415ce8
push 0x6b
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40ad99
push str._CreateExeFile__hResouce__NULL
call fcn.00401fc0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40adba
push str._CreateExeFile__hGresouce__NULL
call fcn.00401fc0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x40addb
push str._CreateExeFile__pResource__NULL
call fcn.00401fc0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40adfe
push str._CreateExeFile__dwResuorceSize__0
call fcn.00401fc0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40ae36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CreateExeFile__CreateFile_errorCode___d
call fcn.00401fc0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
xor esi, esi
test edi, edi
mov dword [esp + 0x14], esi
jbe 0x40ae90
mov ecx, edi
lea eax, [esp + 0x14]
push 0
sub ecx, esi
push eax
lea edx, [esi + ebp]
push ecx
push edx
push ebx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ae7c
add esi, dword [esp + 0x14]
cmp esi, edi
jb 0x40ae40
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CreateExeFile__WriteFile_errorCode___d
call fcn.00401fc0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x40aeb0
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x54
test edx, edx
jne 0x40aece
push str._RunClearCache__strFilePath__NULL
call fcn.00401fc0
add esp, 4
xor eax, eax
add esp, 0x54
ret
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 4]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x40af37
mov ecx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 4]
push edx
call esi
mov eax, 1
pop esi
add esp, 0x54
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._RunClearCache__CreateProcess_errorCode___d
call fcn.00401fc0
add esp, 8
xor eax, eax
add esp, 0x54
ret

Function at 0x40afa0
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x40afc2
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
push 0xf01ff
push str.DnsCache
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40afe9
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov ecx, 7
xor eax, eax
mov edi, 0x438d68
push 0x438d68
rep stosd dword es:[edi], eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40b01c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
cmp dword [0x438d6c], 4
je 0x40b03d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
add esp, 0x1c
ret
Function at 0x40b3e0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
call fcn.0040b380
test eax, eax
jne 0x40b3f1
mov eax, 1
pop ecx
ret
lea eax, [esp]
mov dword [esp], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
jne 0x40b411
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp]
xor eax, eax
cmp edx, 2
setge al
add eax, 2
pop ecx
ret

Function at 0x40ce10
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x418480]
cmp eax, ecx
jne 0x40ce77
push eax
mov dword [0x4184a0], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x41849c]
push 0
push 0
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push str._DealSingleObject__g_Global.Sync.hWaitMutex__n
call fcn.00401fc0
push 0
push 0
push 0
push 0x40cdf0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x1c
test eax, eax
je 0x40ce71
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
cmp eax, dword [0x418488]
jne 0x40cf1b
push str._DealSingleObject__g_hLogFileThread_n
call fcn.00401fc0
mov eax, dword [0x438d88]
add esp, 4
cmp eax, 0xa
jbe 0x40cec4
push str._DealSingleObject_dwTryCount_Upto_Max_n
call fcn.00401fc0
mov ecx, dword [0x418488]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x418488], 0
mov eax, 1
ret
mov edx, dword [0x438d88]
push esi
inc edx
push 0xa
mov dword [0x438d88], edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x418488]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4184a4]
push 0x418488
push eax
mov dword [0x418488], 0
call fcn.0040d960
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cf17
push str._DealSingleObject__CreateLogFileThread_Failed_n
call fcn.00401fc0
add esp, 4
mov eax, esi
pop esi
ret
mov ecx, dword [0x418484]
cmp eax, ecx
jne 0x40cf5a
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._DealSingleObject__g_Global.Sync.hSystemMutex_n
call fcn.00401fc0
mov ecx, dword [0x4184a4]
push 0x418484
push ecx
mov dword [0x418484], 0
call fcn.0040b5e0
add esp, 0xc
mov eax, 1
ret
cmp eax, dword [0x418478]
jne 0x40cfa2
push str._DealSingleObject__g_Global.Module.hSangforSd__n
call fcn.00401fc0
mov edx, dword [0x418478]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x418478]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
mov dword [0x418478], 0
call fcn.00406c80
add esp, 4
mov eax, 1
ret
xor eax, eax
ret

Function at 0x40d210
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
push eax
push esi
push esi
push 0x40d0d0
push esi
push esi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [esp + 0x20]
add esp, 0x18
test eax, eax
mov dword [ecx], eax
jne 0x40d245
push str._CreateMonitorThread__beginthreadex_Failed_n
call fcn.00401fc0
add esp, 4
mov eax, esi
pop esi
ret
mov eax, 1
pop esi
ret
Function at 0x40d760
Capabilities:
Create udp socket

Disassembly:
push ecx
push esi
push 0x11
push 2
push 2
mov dword [esp + 0x10], 0
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d781
or eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push ecx
push esi
call fcn.0040d650
add esp, 0xc
cmp eax, 1
je 0x40d7b2
push str._CreateLogFileSocket__BindLogFileSocket_Failed_n
call fcn.00401fc0
add esp, 4
push esi
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
push str._CreateLogFileSocket__Listen_Port_u_n
call fcn.00401fc0
mov eax, dword [esp + 0xc]
push eax
call fcn.0040d560
add esp, 0xc
cmp eax, 1
je 0x40d7ec
push str._CreateLogFileSocket__SaveLogFilePort_Failed_n
call fcn.00401fc0
add esp, 4
push esi
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
pop esi
pop ecx
ret
mov ecx, dword [esp + 0xc]
push 1
push 0x7ea
push ecx
push esi
call sub.WS2_32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x40d822
call sub.WS2_32.dll_WSAGetLastError
push eax
push str._CreateLogFileSocket_WSAAsyncSelect_Failed__Error_u_n
call fcn.00401fc0
add esp, 8
push esi
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret

Function at 0x40d960
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 4], 3
je 0x40d999
push 0
push 0
push 0
push 0x40d830
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [esp + 0x20]
add esp, 0x18
test eax, eax
mov dword [ecx], eax
jne 0x40d999
push str._CreateLogFileThread__beginthreadex_Failed_n
call fcn.00401fc0
add esp, 4
xor eax, eax
ret
mov eax, 1
ret

Function at 0x40da10
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
mov eax, dword [esi]
test eax, eax
jne 0x40da26
pop edi
mov eax, 1
pop esi
ret
push ebx
mov ebx, dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test ebx, ebx
pop ebx
jne 0x40da51
mov ecx, dword [esi]
mov edi, 1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esi], 0
pop edi
pop esi
ret
cmp eax, 0x102
jne 0x40da65
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor edi, edi
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esi], 0
pop edi
pop esi
ret
Function at 0x40dac0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi], 0
jne 0x40dad1
mov eax, 1
pop esi
ret
push 0
push 0
push 0x7e8
push str.SangforLogFileWin
push str.SangforLogFileClass
call fcn.0040da80
add esp, 0x14
test eax, eax
jne 0x40db04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._EndLogFileThread_SendMessageToWnd_Faield__Error_u
call fcn.00401fc0
add esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esi]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40db30
mov eax, dword [esi]
mov edi, 1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esi], 0
pop edi
pop esi
ret
push eax
push str._EndLogFileThread_WaitForSingleObject_Faield__Error_u
call fcn.00401fc0
mov edx, dword [esi]
add esp, 8
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi]
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
mov eax, edi
pop edi
pop esi
ret
Function at 0x40ddc0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x218
push edi
push 0x4033a0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push str._WinMain__Enter_Main_Thread_..._n
call fcn.00401fc0
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x92]
mov word [esp + 0x90], 0
rep stosd dword es:[edi], eax
add esp, 4
mov dword [0x4184a0], 0
stosw word es:[edi], ax
lea eax, [esp + 0x8c]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
pop edi
je 0x40de34
push str._WinMain__WSAStartup_Failed_n
call fcn.00401fc0
add esp, 4
xor eax, eax
add esp, 0x218
ret 0x10
call fcn.0040dc10
test eax, eax
jne 0x40de55
push str._WinMain__InitialProc_Failed_n
call fcn.00401fc0
add esp, 4
xor eax, eax
add esp, 0x218
ret 0x10
cmp dword [0x4184a4], 3
je 0x40de75
push str.SSOClientPrj.SSOClientBHO.1
call fcn.004052b0
push str.SangforBHO.SangforIEBHO.1
call fcn.004052b0
add esp, 8
mov ecx, dword [0x418460]
push 0
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0x12
call fcn.00403c70
mov edx, dword [0x4184a4]
push 0x418484
push edx
call fcn.0040b5e0
add esp, 8
test eax, eax
jne 0x40deb9
push str._WinMain__CreateSystemProc_Failed_n
call fcn.00401fc0
add esp, 4
jmp 0x40df4f
mov eax, dword [esp + 0x21c]
mov ecx, dword [0x4184a4]
push eax
push ecx
call fcn.0040cc40
add esp, 8
mov dword [0x41849c], eax
test eax, eax
jne 0x40dee8
push str._WinMain__CreateMainWindow_Failed_n
call fcn.00401fc0
add esp, 4
jmp 0x40df4f
mov edx, dword [0x4184a4]
push 0x418488
push edx
call fcn.0040d960
add esp, 8
test eax, eax
jne 0x40df0f
push str._WinMain__CreateLogFileThread_Failed_n
call fcn.00401fc0
add esp, 4
jmp 0x40df4f
push 0x41848c
push 0x418494
call fcn.0040d210
add esp, 8
test eax, eax
jne 0x40df34
push str._WinMain__CreateMonitorThread_Failed_n
call fcn.00401fc0
add esp, 4
jmp 0x40df4f
call fcn.004089f0
call fcn.0040d9a0
mov eax, dword [0x41847c]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00408d80
lea ecx, [esp]
push 4
push ecx
push 7
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0x18
call fcn.00404290
push 0x2710
push 0x418494
mov dword [0x4184a0], 1
call fcn.0040da10
push 0x2710
push 0x418498
call fcn.0040dac0
push 0x41849c
call fcn.0040db60
push 0x418484
call fcn.0040db80
add esp, 0x18
call fcn.0040dcd0
call fcn.0040dd30
call sub.WS2_32.dll_WSACleanup
push str._WinMain__Leave_Main_Thread_..._n
call fcn.00401fc0
add esp, 4
lea ecx, [esp + 4]
call fcn.00403cc0
xor eax, eax
add esp, 0x218
ret 0x10
Function at 0x401170
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x568
mov eax, dword [0x40e0ec]
mov dword [esp + 0x564], eax
xor eax, eax
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov ecx, 0x10
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov byte [esp + 0x60], al
mov dword [esp + 0x14], eax
mov word [esp + 0x48], ax
mov ecx, 0x140
lea edi, [esp + 0x61]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
stosw word es:[edi], ax
push ecx
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0x44
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0xc]
test eax, eax
mov eax, str.__RegServer
jne 0x4011ea
mov eax, str.__UnregServer
push eax
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x8000008
push 0
push 0
push 0
lea eax, [esp + 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401278
mov ecx, dword [esp + 8]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40124e
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, 0x80004005
jmp 0x401250
xor esi, esi
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
mov ecx, dword [esp + 0x56c]
call fcn.00402e46
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x401298
call esi
mov ecx, dword [esp + 0x56c]
call fcn.00402e46
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call esi
mov ecx, dword [esp + 0x56c]
and eax, 0xffff
or eax, 0x80070000
call fcn.00402e46
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4019f0
Capabilities:
Create thread

Disassembly:
push ecx
push 0x40ed84
push 0
lea eax, [esp + 8]
push eax
push 0x401930
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret