joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408074
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], 0x54574641
mov eax, 0x30
mul dword [0x40e5d0]
add eax, 0xc
mov dword [ebp - 4], eax
push 2
push 0
push 0
push dword [ebp + 8]
call sub.KERNEL32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x408117
push 0
lea eax, [ebp - 0xc]
push eax
push 8
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteFile
cmp dword [ebp - 0xc], 8
jne 0x408117
push 0
lea eax, [ebp - 0xc]
push eax
push 0xc
push 0x40e5d0
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteFile
cmp dword [ebp - 0xc], 0xc
jne 0x408117
mov dword [ebp - 0x10], 0x40e5d4
push dword [ebp - 0x10]
call fcn.00403212
cmp eax, 0x40e5d4
je 0x40810e
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x30
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteFile
cmp dword [ebp - 0xc], 0x30
jne 0x408117
jmp 0x4080e1
mov eax, 1
leave
ret 4
mov eax, 0
leave
ret 4

Function at 0x408c5d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push 0
push 0
push 8
push dword [ebp + 8]
call sub.KERNEL32.dll_SetFilePointer
cmp eax, 0xffffffff
jne 0x408c7f
call fcn.00408c2f
leave
ret 4
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadFile
cmp dword [ebp - 4], 8
je 0x408ca2
call fcn.00408c2f
leave
ret 4
cmp dword [ebp - 0xc], 0x4f4d534f
je 0x408cbc
push 1
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call sub.KERNEL32.dll_SetFilePointer
jmp 0x408c7f
push 0
lea eax, [ebp - 4]
push eax
push 0x14
push 0x40e5f0
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadFile
cmp dword [ebp - 4], 0x14
je 0x408ce0
call fcn.00408c2f
leave
ret 4
push 0x40e5fc
call fcn.004031d0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x40e5f4]
jae 0x408d59
push 0x30
call fcn.0040231f
or eax, eax
jne 0x408d15
call fcn.00408bf6
call fcn.00408c2f
leave
ret 4
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 4]
push eax
push 0x30
push dword [ebp - 0x14]
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadFile
cmp dword [ebp - 4], 0x30
je 0x408d47
push dword [ebp - 0x14]
call fcn.00402336
call fcn.00408bf6
call fcn.00408c2f
leave
ret 4
push dword [ebp - 0x14]
push 0x40e5fc
call fcn.00403222
inc dword [ebp - 0x10]
jmp 0x408cf1
leave
ret 4
Function at 0x408d5d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], 0x4f4d534f
mov eax, 0x30
mul dword [0x40e5f4]
add eax, 0x14
mov dword [ebp - 4], eax
push 2
push 0
push 0
push dword [ebp + 8]
call sub.KERNEL32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x408e00
push 0
lea eax, [ebp - 0xc]
push eax
push 8
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteFile
cmp dword [ebp - 0xc], 8
jne 0x408e00
push 0
lea eax, [ebp - 0xc]
push eax
push 0x14
push 0x40e5f0
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteFile
cmp dword [ebp - 0xc], 0x14
jne 0x408e00
mov dword [ebp - 0x10], 0x40e5fc
push dword [ebp - 0x10]
call fcn.00403212
cmp eax, 0x40e5fc
je 0x408df7
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x30
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteFile
cmp dword [ebp - 0xc], 0x30
jne 0x408e00
jmp 0x408dca
mov eax, 1
leave
ret 4
mov eax, 0
leave
ret 4

Function at 0x408e1e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push str.Tencent:__Message__MenuYESUin
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.dll_lstrcpyA
lea eax, [ebp - 0x40]
add eax, 0x20
push 0x20
push eax
push 0x4b0
push dword [ebp + 8]
call sub.USER32.dll_GetDlgItemTextA
push 0xa
push 0
push 0
lea eax, [ebp - 0x40]
push eax
push 0
push 0
call sub.SHELL32.dll_ShellExecuteA
leave
ret 4
Function at 0x41a34c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41a3bb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea edx, [ebp - 0x104]
lea eax, [ebp - 0x100]
call fcn.004082f4
mov edx, dword [ebp - 0x104]
mov eax, ebx
mov ecx, 0x41a3d0
call fcn.00404ab0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a3c2
lea eax, [ebp - 0x104]
call fcn.004047ac
ret

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

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x34117b78
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..text_1
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x56290169
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x492600
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x38000]
push edi
or ebp, 0xffffffff
jmp 0x492622
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x492629
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x492618
mov eax, 1
add ebx, ebx
jne 0x49263b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x49264c
jne 0x49266b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49266b
dec eax
add ebx, ebx
jne 0x492658
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x492630
add ebx, ebx
jne 0x492667
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4926bd
xor ecx, ecx
sub eax, 3
jb 0x492683
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4926f2
sar eax, 1
mov ebp, eax
jmp 0x49268e
add ebx, ebx
jne 0x49268e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49265c
inc ecx
add ebx, ebx
jne 0x49269c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49265c
add ebx, ebx
jne 0x4926a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x49269e
jne 0x4926ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49269e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4926dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4926ce
jmp 0x49261e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4926dc
add edi, ecx
jmp 0x49261e
pop esi
mov edi, esi
mov ecx, 0x12
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4926fa
cmp byte [edi], 0
jne 0x4926fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4926ff
lea edi, [esi + 0x90000]
mov eax, dword [edi]
or eax, eax
je 0x49276e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb9cec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb9d3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x49272c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb9d40]
or eax, eax
je 0x492768
mov dword [ebx], eax
add ebx, 4
jmp 0x492749
call dword [esi + 0xb9d50]
mov ebp, dword [esi + 0xb9d44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4927a2
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4015a0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4015b2
mov eax, dword [0x4d808b]
shl eax, 2
mov dword [0x4d808f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004b8738
pop edx
call fcn.004b869c
call fcn.004b8778
push 0
call fcn.004b9bfc
pop ecx
push 0x4d8034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4d8093], eax
push 0
jmp fcn.004bf1bc

Function at 0x408bc0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
mov dword [ebp - 0x30], eax
mov eax, 0x4da448
call fcn.004b8f5c
mov byte [ebp - 0x31], 0x3a
mov word [ebp - 0x34], 0x12
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x78]
add eax, 0x838
call fcn.00408a44
test al, al
jne 0x408cd1
mov dl, 1
mov eax, dword [0x444940]
call fcn.00408a5c
mov dword [ebp - 0x38], eax
mov word [ebp - 0x1c], 8
mov dword [ebp - 0x3c], 0x10
mov word [ebp - 0x1c], 8
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x5c]
push ecx
call sub.KERNEL32.DLL_GetComputerNameA
mov eax, dword [ebp - 0x30]
mov dl, byte [eax + 0x148]
mov byte [ebp - 0x74], dl
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov al, byte [ecx + 0x149]
mov word [ebp - 0x72], ax
or word [ebp - 0x72], 0x8000
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x70]
push ecx
call fcn.004b8ca8
add esp, 8
lea edx, [ebp - 0x31]
mov ecx, 1
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x34]
mov ecx, 2
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x74]
mov ecx, 0x18
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x78]
mov edx, dword [ebp - 0x38]
call fcn.00431d00
mov word [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x408cc9
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov dword [ebp - 4], edx
mov word [ebp - 0x1c], 0x20
mov edx, 3
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x1c], 0x14
cmp word [ebp - 0x1a], 0
je 0x408cd1
ret
mov eax, dword [ebp - 0x2c]
mov dword fs:[0], eax
mov edi, dword [ebp - 0x80]
mov esi, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x78]
mov esp, ebp
pop ebp
ret
Function at 0x40c0d8
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov dword [ebp - 0x2c], eax
mov eax, 0x4daf00
call fcn.004b8f5c
mov edx, dword [sym.Client.exe__ScreenFrm]
mov ecx, dword [edx]
mov eax, dword [ecx + 0x2f4]
call fcn.004aa160
mov word [ebp - 0x18], 8
mov edx, 0x4d9d6c
lea eax, [ebp - 4]
call fcn.004c3004
inc dword [ebp - 0xc]
mov edx, dword [eax]
mov ecx, dword [sym.Client.exe__ScreenFrm]
mov eax, dword [ecx]
mov eax, dword [eax + 0x304]
call fcn.004a9c68
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004c3164
mov ecx, dword [sym.Client.exe__SystemSetFrm]
cmp dword [ecx], 0
je 0x40c150
mov eax, dword [sym.Client.exe__SystemSetFrm]
mov eax, dword [eax]
call fcn.0049ba40
mov edx, dword [sym.Client.exe__UserInforFrm]
cmp dword [edx], 0
je 0x40c168
mov ecx, dword [sym.Client.exe__UserInforFrm]
mov eax, dword [ecx]
call fcn.0049ba40
mov edx, dword [sym.Client.exe__GlassFrm]
cmp dword [edx], 0
je 0x40c180
mov ecx, dword [sym.Client.exe__GlassFrm]
mov eax, dword [ecx]
call fcn.0049ba40
mov edx, dword [sym.Client.exe__ModiPasswordForm]
cmp dword [edx], 0
je 0x40c198
mov ecx, dword [sym.Client.exe__ModiPasswordForm]
mov eax, dword [ecx]
call fcn.0049ba40
push 0
push 0x4d9d6d
call sub.USER32.DLL_FindWindowA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40c1b7
push 0
push dword [ebp - 0x30]
call sub.USER32.DLL_ShowWindow
push 0
push 0x4d9d7b
call sub.USER32.DLL_FindWindowA
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x40c1d6
push 0
push dword [ebp - 0x34]
call sub.USER32.DLL_ShowWindow
push 0x4d9d8a
push 0x4d9d83
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x38], eax
push 1
call dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
cmp byte [edx + 0xd9], 0
je 0x40c216
call fcn.004120e8
mov eax, dword [ebp - 0x2c]
call fcn.004090ac
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0xd9], 0
mov eax, dword [ebp - 0x2c]
call fcn.00409cac
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x412130
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0
push 0x4dc972
call sub.USER32.DLL_FindWindowA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x412155
push 5
push dword [ebp - 4]
call sub.USER32.DLL_ShowWindow
push 0
push 0x4dc980
call sub.USER32.DLL_FindWindowA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x412174
push 5
push dword [ebp - 8]
call sub.USER32.DLL_ShowWindow
push 0x4dc98f
push 0x4dc988
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0xc], eax
push 0
call dword [ebp - 0xc]
call fcn.00412450
push 0
push 0
call fcn.00412228
add esp, 8
mov eax, dword [sym.Client.exe__ScreenFrm]
mov eax, dword [eax]
call fcn.0049bbe0
mov esp, ebp
pop ebp
ret

Function at 0x4121b4
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0
push str.Shell_TrayWnd
call sub.USER32.DLL_FindWindowA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4121d9
push 5
push dword [ebp - 4]
call sub.USER32.DLL_ShowWindow
push 0
push str.ProgMan
call sub.USER32.DLL_FindWindowA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4121f8
push 5
push dword [ebp - 8]
call sub.USER32.DLL_ShowWindow
push str.BlockInput
push str.user32
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0xc], eax
push 0
call dword [ebp - 0xc]
mov eax, dword [sym.Client.exe__ScreenFrm]
mov eax, dword [eax]
call fcn.0049bbe8
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x412554
Capabilities:
Enumerate process modules
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffed8
push esi
push edi
mov esi, str.UnknownProcess
lea edi, [ebp - 0x1118]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
push str.taskmgr.exe
lea eax, [ebp - 0x1128]
push eax
call fcn.004b8ca8
add esp, 8
lea edx, [ebp - 4]
push edx
push 0x1000
lea ecx, [ebp - 0x1014]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4125b4
push str.EnumProcesses_Error_n
call sub.KERNEL32.DLL_OutputDebugStringA
jmp 0x41265f
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 8]
jae 0x412657
mov eax, dword [ebp - 0x14]
push dword [ebp + eax*4 - 0x1014]
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x412648
lea edx, [ebp - 4]
push edx
push 4
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0xc]
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x412648
push 0x104
lea eax, [ebp - 0x1118]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call sub.PSAPI.DLL_GetModuleBaseNameA
lea edx, [ebp - 0x1128]
push edx
lea ecx, [ebp - 0x1118]
push ecx
call fcn.004b8e6c
add esp, 8
test eax, eax
jne 0x412648
push 0
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_TerminateProcess
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
jmp 0x41265f
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jb 0x4125ce
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x412668
Capabilities:
Create process on windows
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov eax, dword [sym.Client.exe__DataModule1]
mov eax, dword [eax]
call fcn.0040ddc0
lea edx, [ebp - 4]
push edx
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x14]
push ecx
push 0x4dca75
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
mov dword [ebp - 0xc], 2
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x18]
push edx
push 0x10
lea ecx, [ebp - 0x18]
push ecx
push 0
push dword [ebp - 4]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
push 0
push 0xd
call sub.USER32.DLL_ExitWindowsEx
push 0
push str.shutdown__s__f__t_0
call sub.KERNEL32.DLL_WinExec
mov esp, ebp
pop ebp
ret
Function at 0x4126dc
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov eax, dword [sym.Client.exe__DataModule1]
mov eax, dword [eax]
call fcn.0040ddc0
lea edx, [ebp - 4]
push edx
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x14]
push ecx
push str.SeShutdownPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
mov dword [ebp - 0xc], 2
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x18]
push edx
push 0x10
lea ecx, [ebp - 0x18]
push ecx
push 0
push dword [ebp - 4]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
push 0
push 6
call sub.USER32.DLL_ExitWindowsEx
mov esp, ebp
pop ebp
ret
Function at 0x4127d0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
mov eax, 0x4dcc90
call fcn.004b8f5c
mov word [ebp - 0x36], 2
lea edx, [ebp - 0x21c]
push edx
mov cx, word [ebp - 0x36]
push ecx
call sub.WSOCK32.DLL_WSAStartup
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x41282c
mov word [ebp - 0x18], 8
mov edx, dword [ebp + 0xc]
add edx, 0x18
mov eax, dword [ebp + 8]
call fcn.004c3194
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x412993
mov cl, byte [ebp - 0x21c]
and cl, 0xff
cmp cl, 2
je 0x412876
movzx eax, word [ebp - 0x21c]
shr eax, 8
test al, al
je 0x412876
call sub.WSOCK32.DLL_WSACleanup
mov word [ebp - 0x18], 0x14
mov edx, dword [ebp + 0xc]
add edx, 0x18
mov eax, dword [ebp + 8]
call fcn.004c3194
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x412993
push 0x50
lea ecx, [ebp - 0x8c]
push ecx
call sub.WSOCK32.DLL_gethostname
inc eax
jne 0x4128b0
mov word [ebp - 0x18], 0x20
mov edx, dword [ebp + 0xc]
add edx, 0x18
mov eax, dword [ebp + 8]
call fcn.004c3194
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x412993
lea ecx, [ebp - 0x8c]
push ecx
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4128ee
mov word [ebp - 0x18], 0x2c
mov edx, dword [ebp + 0xc]
add edx, 0x18
mov eax, dword [ebp + 8]
call fcn.004c3194
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x412993
push 0
push 4
lea ecx, [ebp - 0x30]
push ecx
call fcn.004b8bc8
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov eax, dword [ecx]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
call sub.WSOCK32.DLL_inet_ntoa
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x412942
mov word [ebp - 0x18], 0x38
mov edx, dword [ebp + 0xc]
add edx, 0x18
mov eax, dword [ebp + 8]
call fcn.004c3194
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x412993
call sub.WSOCK32.DLL_WSACleanup
mov word [ebp - 0x18], 0x44
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x34]
call fcn.004c3004
mov edx, eax
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.004c3194
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], 0x50
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004c3164
pop eax
mov word [ebp - 0x18], 0x44
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x431b8c
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff7c
mov ebx, eax
mov edi, dword [0x4ed44c]
lea eax, [esp + 1]
mov edx, dword [ebx + 0x838]
call fcn.00455fbc
push eax
call sub.WSOCK32.DLL_inet_addr
mov esi, eax
mov dword [ebx + 0x848], esi
inc esi
jne 0x431cd5
xor esi, esi
mov byte [ebx + 0x868], 0
push 0x400
mov eax, dword [ebx + 0x86c]
push eax
lea eax, [esp + 9]
push eax
push 0x465
mov eax, dword [ebx + 0x864]
push eax
call sub.WSOCK32.DLL_WSAAsyncGetHostByName
mov eax, dword [edi]
call fcn.0049ee38
cmp byte [ebx + 0x868], 0
jne 0x431c05
cmp byte [ebx + 0x870], 0
je 0x431bec
cmp byte [ebx + 0x870], 0
je 0x431c24
mov ecx, 0x431ce8
mov dl, 1
mov eax, dword [0x431494]
call fcn.004595ec
call fcn.00467600
cmp byte [ebx + 0x871], 0
jne 0x431c80
cmp esi, 1
jge 0x431c68
inc esi
mov byte [esp], 0
cmp word [ebx + 0xa3a], 0
je 0x431c4f
mov edx, esp
mov eax, dword [ebx + 0xa3c]
call dword [ebx + 0xa38]
cmp byte [esp], 0
jne 0x431cc8
mov ecx, 0x431ce8
mov dl, 1
mov eax, dword [0x431494]
call fcn.004595ec
jmp 0x431cc8
mov ecx, 0x431ce8
mov dl, 1
mov eax, dword [0x431494]
call fcn.004595ec
call fcn.00467600
jmp 0x431cc8
lea eax, [ebx + 0x848]
mov edx, dword [ebx + 0x86c]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx]
mov byte [eax], dl
mov edx, dword [ebx + 0x86c]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 1]
mov byte [eax + 1], dl
mov edx, dword [ebx + 0x86c]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 2]
mov byte [eax + 2], dl
mov edx, dword [ebx + 0x86c]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 3]
mov byte [eax + 3], dl
cmp byte [ebx + 0x871], 1
jne 0x431bc3
add esp, 0x84
pop edi
pop esi
pop ebx
ret