joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40991d
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x483982
call fcn.0048062c
push 0x40
xor esi, esi
lea eax, [ebp - 0x64]
push esi
push eax
call sub.MSVCR80.dll_memset
xor eax, eax
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x4b457c]
xor edi, edi
inc edi
add esp, 0xc
mov ecx, 0x4b457c
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push str._autorun__GetConnectStatus
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str.__s___s
push eax
mov dword [ebp - 4], esi
call fcn.00404e7f
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x10]
mov word [ebp - 0x38], 0xa
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4099ab
or ebx, 0xffffffff
jmp 0x4099d3
push 0x7530
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
cmp ebx, 0x103
jne 0x4099d3
mov ebx, edi
cmp dword [ebp - 0x24], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4099e6
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x20], esi
je 0x4099f3
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, ebx
call fcn.00480704
ret

Function at 0x409be1
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
cmp ebx, edi
je 0x409c51
lea eax, [ebp - 4]
push eax
push 0x28
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x409c51
lea eax, [ebp - 0x14]
push eax
push str.SeShutdownPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x409c51
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 4]
xor esi, esi
inc esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push edi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x409c51
mov dword [ebp - 8], esi
cmp dword [ebp - 4], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x409c64
push dword [ebp - 4]
call esi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x409c6b
push ebx
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409c73
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push 0x1ac
mov eax, 0x485076
call fcn.00480695
and dword [ebp - 4], 0
and dword [ebp - 0x1b8], 0
mov esi, ecx
mov ebx, 0x4b457c
mov ecx, ebx
mov dword [ebp - 0x1b4], esi
mov edi, edx
call fcn.00402112
and dword [ebp - 4], 0
xor esi, esi
inc esi
cmp dword [0x4b5148], 0
mov dword [ebp - 0x1b8], esi
jne 0x409cd0
lea eax, [ebp - 0x1a4]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
mov dword [0x4b5148], esi
lea eax, [ebp - 0x1a8]
push edi
push eax
call fcn.00408c2b
pop ecx
pop ecx
mov dword [ebp - 4], esi
call dword [0x4b2024]
mov esi, dword [ebp - 0x1a8]
test esi, esi
mov dword [ebp - 0x1ac], eax
je 0x409d07
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x409d0b
xor eax, eax
jmp 0x409d26
lea edi, [eax + eax]
mov eax, edi
call fcn.00480760
mov eax, esp
push dword [ebp - 0x1ac]
push edi
push esi
mov esi, eax
call fcn.0040f154
push eax
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x409dd2
mov eax, dword [0x4b457c]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1b0], eax
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.WS2_32.dll_inet_ntoa
push eax
push 0x4905a4
lea eax, [ebp - 0x1b0]
call fcn.0040fa18
mov ebx, dword [ebp - 0x1b0]
test ebx, ebx
pop ecx
pop ecx
je 0x409d88
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x409d8c
xor eax, eax
jmp 0x409da3
lea eax, [edi + edi]
call fcn.00480760
mov esi, esp
push dword [ebp - 0x1ac]
push edi
push ebx
call fcn.0040f122
mov esi, dword [ebp - 0x1b4]
push eax
push esi
call fcn.00402394
push dword [ebp - 0x1a8]
push dword [esi]
mov esi, 0x4b4d74
push str.ip:_ws__url:_ws
call fcn.00411a60
add esp, 0xc
lea eax, [ebx - 0x10]
call fcn.0040214e
mov eax, dword [ebp - 0x1a8]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x1b4]
lea esp, [ebp - 0x1c8]
call fcn.00480718
ret

Function at 0x409f61
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4b2068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x228
lea eax, [ebp - 0x234]
push ebx
push eax
mov dword [ebp - 0x238], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
call fcn.00459ed3
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x409ffb
lea eax, [ebp - 0x238]
push eax
push esi
mov dword [ebp - 0x238], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x409ff0
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x23c], eax
lea ebx, [ebp - 0x23c]
mov eax, edi
call fcn.00404098
lea eax, [ebp - 0x238]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x409fc3
xor ebx, ebx
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x40a013
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KHelper::GetAllProcess_error:_d
mov esi, 0x4b4d74
call fcn.00411a60
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0047f7b2
leave
ret
Function at 0x40a1e9
Capabilities:
Enumerate process modules

Disassembly:
push 0x430
mov eax, 0x483927
call fcn.00480695
push dword [ebp + 8]
mov edi, ecx
push 8
mov dword [ebp - 0x438], 0x428
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a22f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KHelper::GetProcessModules_CreateToolhelp32Snapshot_failed__error:_d
mov esi, 0x4b4d74
call fcn.00411a60
pop ecx
pop ecx
jmp 0x40a29a
lea eax, [ebp - 0x438]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x40a28f
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.00402357
and dword [ebp - 4], 0
lea ecx, [ebp - 0x43c]
call fcn.0040a2a3
test eax, eax
je 0x40a270
lea eax, [ebp - 0x43c]
push eax
call fcn.0040c481
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
call fcn.0040214e
lea eax, [ebp - 0x438]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x40a23e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
call fcn.00480718
ret
Function at 0x40a2a3
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4b2068]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x4838f4
call fcn.0048062c
xor esi, esi
push 0x206
lea eax, [ebp + 2]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x1c], esi
mov word [ebp], si
call sub.MSVCR80.dll_memset
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00404dff
push 0x48ee24
push eax
mov dword [ebp - 4], esi
call fcn.0040f0ca
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
inc bl
call fcn.0040214e
test bl, bl
je 0x40a47d
mov ebx, dword [sym.imp.MSVCR80.dll_wcslen]
mov esi, 0x490784
push esi
call ebx
mov dword [ebp - 0x18], eax
mov dword [esp], str.SystemRoot_
call ebx
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00404dff
push esi
push eax
mov dword [ebp - 4], 1
call fcn.0040f0ca
mov ebx, eax
neg ebx
sbb bl, bl
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.0040214e
test bl, bl
je 0x40a39e
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.0040f1a5
mov dword [ebp - 4], 2
call fcn.004024a3
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
jmp 0x40a44c
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00404dff
push str.SystemRoot_
push eax
mov dword [ebp - 4], 3
call fcn.0040f0ca
mov ebx, eax
neg ebx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.0040214e
test bl, bl
je 0x40a454
push 0x104
lea eax, [ebp]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
inc ecx
mov eax, edi
call fcn.0040f1a5
mov ebx, eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00402357
lea ecx, [ebp - 0x20]
push ebx
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040c38f
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.004024a3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040214e
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x40a467
mov esi, edi
call fcn.004024e4
jmp 0x40a484
cmp ecx, 1
jge 0x40a476
push 0x80070057
call fcn.00402429
cmp word [eax + 2], 0x3a
jne 0x40a45e
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0047f7b2
add ebp, 0x20c
leave
ret
Function at 0x40a5e9
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x40a632
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
push str.TrayNotifyWnd
push edi
push eax
call esi
cmp eax, edi
je 0x40a632
push edi
push str.SysPager
push edi
push eax
call esi
push edi
push str.ToolBarWindow32
push edi
push eax
call esi
mov ebx, eax
cmp ebx, edi
jne 0x40a637
or eax, 0xffffffff
jmp 0x40a6a6
push edi
push edi
push 0xf
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, esi
mov dword [ebp - 4], esi
jle 0x40a6a4
mov eax, dword [ebp - 8]
dec eax
xor esi, esi
inc esi
cmp eax, esi
jle 0x40a697
movzx eax, word [ebp - 4]
movzx ecx, si
shl ecx, 0x10
or ecx, eax
push ecx
push edi
push 0x200
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 8]
add esi, 0xf
dec eax
cmp esi, eax
jl 0x40a672
add dword [ebp - 4], 0xf
mov ecx, dword [ebp - 0xc]
dec ecx
cmp dword [ebp - 4], ecx
jl 0x40a66b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a6ab
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
lea eax, [ebp - 0x34]
push edi
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0040154d
call fcn.00401017
mov eax, dword [eax + 4]
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push esi
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
lea edi, [ebp - 0x34]
setne bl
call fcn.00401189
test bl, bl
jne 0x40a704
push str.NeedReboot
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40a704
inc esi
cmp dword [ebp - 4], 0
je 0x40a713
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40a87a
Capabilities:
Acquire debug privileges

Disassembly:
push 0x28
push 0x4a3c28
call fcn.0048008c
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x40a8ff
lea eax, [ebp - 0x28]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x40a8ff
xor edi, edi
inc edi
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea eax, [ebp - 0x38]
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x40a8ff
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.0040a916
mov eax, dword [ebp - 0x20]
call fcn.004800d1
ret
Function at 0x40a928
Capabilities:
Read .ini file

Disassembly:
push 0x44
mov eax, 0x483820
call fcn.0048062c
mov eax, dword [0x4b457c]
mov esi, 0x4b457c
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004081f7
lea ecx, [ebp - 0x18]
push str.ressrcchsupcfg.dat
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040400d
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004024a3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040214e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040214e
lea eax, [ebp - 0x50]
push eax
call fcn.0040154d
call fcn.0040524b
mov edi, eax
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00420b9e
add edi, 0x24
lea ecx, [ebp - 0x18]
push edi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040c38f
lea ecx, [ebp - 0x1c]
push str._ressrcchsupcfg.dat
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040400d
add esp, 0x10
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.004024a3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040214e
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0040122f
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR80.dll__waccess]
test eax, eax
pop ecx
pop ecx
push dword [ebp - 0x14]
push ebx
je 0x40aa4f
push str.AutoReupdateDelayTime
push str.common
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, esi
jmp 0x40aab6
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.alertreboot
mov edi, str.common
push edi
call esi
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
push ebx
push str.alertreboot
push edi
call esi
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push ebx
push str.forcereboot
push edi
call esi
push dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
push ebx
push str.forcereboot
push edi
call esi
push dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
push ebx
push str.AutoReupdateDelayTime
push edi
call esi
mov edx, dword [ebp - 0x24]
xor ecx, ecx
cmp dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x1c]
setne cl
mov esi, ecx
xor ecx, ecx
cmp dword [ebp - 0x18], edx
setne cl
cmp dword [0x4b4edc], ebx
mov dword [0x4b4ed4], ecx
jne 0x40aaca
mov dword [0x4b4edc], esi
push eax
push ebx
push esi
push ecx
push str.KHelper::LoadUpdateConfig_bAlertReboot:_d__groupupdate:_d__ReupdateForceReboot:_d__AutoReupdateDelayTime:_ds
mov esi, 0x4b4d74
mov dword [0x4b4f34], eax
call fcn.00411a60
mov eax, dword [ebp - 0x10]
add esp, 0x14
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040214e
xor eax, eax
call fcn.00480704
ret
Function at 0x40b1bb
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4b2068]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x1c
mov eax, 0x48371c
call fcn.0048062c
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
mov ebx, 0x4b457c
mov ecx, ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
call fcn.00402112
mov esi, 0x206
mov dword [ebp - 4], edi
and word [ebp], 0
push esi
lea eax, [ebp + 2]
push 0
inc edi
push eax
mov dword [ebp - 0x20], edi
call sub.MSVCR80.dll_memset
mov eax, dword [0x4b457c]
add esp, 0xc
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
mov eax, dword [0x4b457c]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 2
call fcn.00408c11
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004081f7
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
push dword [ecx]
push dword [eax]
lea eax, [ebp - 0x18]
push str._sressrc_suplive.svr
push eax
call fcn.00404e7f
mov eax, dword [ebp - 0x24]
add esp, 0x14
add eax, 0xfffffff0
call fcn.0040214e
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040214e
lea eax, [ebp - 0x18]
lea edi, [ebp - 0x14]
call fcn.004024a3
push 0x490070
mov eax, edi
push eax
call fcn.004021d8
push 0
push dword [ebp - 0x14]
call dword [sym.imp.MSVCR80.dll__waccess]
test eax, eax
pop ecx
pop ecx
jne 0x40b2c0
mov eax, edi
lea edi, [ebp - 0x18]
call fcn.004024a3
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x104
lea eax, [ebp]
push eax
push 0x48f268
push str.Version
push str.common
call edi
test eax, eax
jle 0x40b2f3
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call fcn.00402394
mov eax, dword [0x4b457c]
mov ecx, ebx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
push esi
lea eax, [ebp + 0x20a]
push 0
mov byte [ebp - 4], 5
and word [ebp + 0x208], 0
push eax
call sub.MSVCR80.dll_memset
mov esi, dword [ebp - 0x18]
add esp, 0xc
push esi
push 0x104
lea eax, [ebp + 0x208]
push eax
push 0x48f268
push str.MainVersion
push str.common
call edi
test eax, eax
jle 0x40b376
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea ecx, [ebp + 0x208]
mov ebx, eax
push ecx
lea eax, [ebp - 0x10]
call fcn.004023bb
push 0x48f26c
lea eax, [ebp - 0x10]
push eax
call fcn.004021d8
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.0040232d
push ebx
push 0x48fc5c
push dword [ebp - 0x1c]
call fcn.0040c207
lea eax, [ebx - 0x10]
call fcn.0040214e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040214e
lea eax, [esi - 0x10]
call fcn.0040214e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0047f7b2
add ebp, 0x414
leave
ret
Function at 0x40b9bb
Capabilities:
Resolve dns

Disassembly:
push 0x1c
mov eax, 0x481666
call fcn.0048062c
mov eax, dword [0x4b457c]
xor edi, edi
mov ecx, 0x4b457c
inc edi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
mov dword [ebp - 0x28], str.www.baidu.com
mov dword [ebp - 0x24], str.www.qq.com
mov dword [ebp - 0x20], str.www.sina.com
mov dword [ebp - 0x1c], str.www.sohu.com
mov dword [ebp - 0x18], str.www.xunlei.com
mov dword [ebp - 0x14], str.www.163.com
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCR80.dll_srand]
pop ecx
call dword [sym.imp.MSVCR80.dll_rand]
push 6
pop ecx
xor edx, edx
div ecx
push dword [ebp + edx*4 - 0x28]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x40ba66
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax + 3]
push ecx
movzx ecx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
push str._d._d._d._d
lea eax, [ebp - 0x10]
call fcn.0040fa18
mov esi, dword [ebp - 0x10]
push esi
call fcn.0040ba76
add esp, 0x18
mov edi, eax
lea eax, [esi - 0x10]
call fcn.0040214e
mov eax, edi
call fcn.00480704
ret

Function at 0x40ba76
Capabilities:
Send icmp echo request

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x4b2068]
xor eax, ebp
mov dword [ebp + 0x388], eax
mov eax, dword [ebp + 0x394]
push ebx
push esi
push edi
mov esi, str.test_net
lea edi, [ebp - 0x78]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3f7
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x6f]
push 0
push eax
movsb byte es:[edi], byte [esi]
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x7c], 1
call sub.iphlpapi.dll_IcmpCreateFile
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40bb1a
mov esi, 0x41c
push esi
call fcn.0047e92c
mov edi, eax
test edi, edi
pop ecx
je 0x40bb09
push 0x2710
push esi
push edi
push 0
push 0x400
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call sub.WS2_32.dll_inet_addr
push eax
push ebx
call sub.iphlpapi.dll_IcmpSendEcho
test eax, eax
je 0x40bb09
and dword [ebp - 0x7c], 0
push ebx
call sub.iphlpapi.dll_IcmpCloseHandle
test edi, edi
je 0x40bb1a
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov ecx, dword [ebp + 0x388]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f7b2
add ebp, 0x38c
leave
ret

Function at 0x40bcdd
Capabilities:
Create process on windows

Disassembly:
push 0x34
mov eax, 0x48360c
call fcn.0048062c
call fcn.0045d802
test eax, eax
je 0x40bd50
lea eax, [ebp - 0x40]
push eax
call fcn.0040154d
call fcn.0040524b
mov ebx, eax
xor edi, edi
lea esi, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.00420bd3
add ebx, 4
lea ecx, [ebp - 0x10]
push ebx
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040c38f
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040214e
lea esi, [ebp - 0x40]
call fcn.0040122f
push edi
push edi
push edi
push dword [ebp - 0x10]
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
call fcn.00480704
ret
Function at 0x40bdbc
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push 4
mov eax, 0x481f3f
call fcn.0048062c
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402357
and dword [ebp - 4], 0
push str..bak
lea eax, [ebp - 0x10]
push eax
call fcn.004021d8
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bdfc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, esi
call fcn.00480704
ret

Function at 0x40be1f
Capabilities:
Check if file exists
Copy file

Disassembly:
push 4
mov eax, 0x481f3f
call fcn.0048062c
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402357
and dword [ebp - 4], 0
push str..bak
lea eax, [ebp - 0x10]
push eax
call fcn.004021d8
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40be64
push 0
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
xor eax, eax
inc eax
call fcn.00480704
ret

Function at 0x40be78
Capabilities:
Check if file exists
Delete file

Disassembly:
push 4
mov eax, 0x481f3f
call fcn.0048062c
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402357
and dword [ebp - 4], 0
push str..bak
lea eax, [ebp - 0x10]
push eax
call fcn.004021d8
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40beb8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
xor eax, eax
inc eax
call fcn.00480704
ret