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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x144], 0x3c
mov dword [ebp - 0x140], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [ebp - 0x144]
lea ecx, [ebp - 0x108]
push edx
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], str._install
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x124], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret

Function at 0x408ef0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x144], 0x3c
mov dword [ebp - 0x140], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [ebp - 0x144]
lea ecx, [ebp - 0x108]
push edx
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], str._uninstall
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x124], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret

Function at 0x408f90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x144], 0x3c
mov dword [ebp - 0x140], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [ebp - 0x144]
lea ecx, [ebp - 0x108]
push edx
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], str._securityeditor
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x124], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x409750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4097a0
mov edx, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push 0x5446e4
push eax
push eax
push str.WallpaperStyle
push edx
mov dword [ebp - 8], 0xa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x4097b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40980c
mov eax, 0x5446e4
lea edx, [eax + 1]
jmp 0x4097e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4097e0
mov ecx, dword [ebp - 4]
sub eax, edx
push eax
push 0x5446e4
push 1
push 0
push str.WallpaperStyle
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x40a530
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
push ebx
push esi
cmp eax, 2
jne 0x40a5d1
cmp dword [edi + 0x134], 5
jne 0x40a57a
push str.SOCKS5_USER
call fcn.004aa9ad
mov esi, eax
add esp, 4
test esi, esi
jne 0x40a64e
mov ebx, str.SOCKS5_USER
call fcn.0040a050
test eax, eax
je 0x40a572
mov esi, dword [eax + 4]
test esi, esi
jne 0x40a64e
cmp dword [edi + 0x134], 4
jne 0x40a5b3
push str.SOCKS4_USER
call fcn.004aa9ad
mov esi, eax
add esp, 4
test esi, esi
jne 0x40a64e
mov ebx, str.SOCKS4_USER
call fcn.0040a050
test eax, eax
je 0x40a5ab
mov esi, dword [eax + 4]
test esi, esi
jne 0x40a64e
push str.SOCKS_USER
call fcn.004aa9ad
mov esi, eax
add esp, 4
test esi, esi
jne 0x40a64e
mov ebx, str.SOCKS_USER
jmp 0x40a5ee
cmp eax, 3
jne 0x40a5fe
push str.HTTP_PROXY_USER
call fcn.004aa9ad
mov esi, eax
add esp, 4
test esi, esi
jne 0x40a64e
mov ebx, str.HTTP_PROXY_USER
call fcn.0040a050
test eax, eax
je 0x40a5fa
mov esi, dword [eax + 4]
test esi, esi
jne 0x40a64e
push str.CONNECT_USER
call fcn.004aa9ad
mov esi, eax
add esp, 4
test esi, esi
jne 0x40a64e
mov ebx, str.CONNECT_USER
call fcn.0040a050
test eax, eax
je 0x40a622
mov esi, dword [eax + 4]
test esi, esi
jne 0x40a64e
lea eax, [ebp - 4]
push eax
push 0x548168
mov dword [ebp - 4], 0x400
mov byte [0x548168], 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
pop esi
mov eax, 0x548168
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40aa30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi], 1
push edi
lea edi, [esi + 0x10]
jne 0x40aa59
movzx ebx, word [esi + 0x110]
jmp 0x40aae1
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40aa60
sub eax, edx
push str.0123456789.
push edi
mov ebx, eax
call fcn.004aa890
add esp, 8
push edi
cmp eax, ebx
jne 0x40aa92
mov eax, 2
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x14], eax
jmp 0x40aabd
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x40aada
movsx ecx, word [ebx + 0xa]
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004b29a0
mov dx, word [ebx + 8]
add esp, 0xc
mov word [ebp - 0x18], dx
lea eax, [ebp - 0x18]
mov ecx, esi
call fcn.0040a490
test eax, eax
je 0x40aada
movzx ebx, word [esi + 0x110]
mov dword [esi], 1
jmp 0x40aae1
mov edi, dword [esi + 4]
movzx ebx, word [esi + 8]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40aae6
sub eax, edx
push str.0123456789.
push edi
mov esi, eax
call fcn.004aa890
add esp, 8
push edi
cmp eax, esi
jne 0x40ab56
mov eax, 2
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x14], eax
push ebx
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push 2
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40ab83
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x40ab83
movsx ecx, word [esi + 0xa]
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004b29a0
mov dx, word [esi + 8]
add esp, 0xc
mov word [ebp - 0x18], dx
jmp 0x40ab16
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 4

Function at 0x40acf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
test esi, esi
jle 0x40ad21
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push esi
lea ecx, [edi + eax]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x40ad2a
sub esi, eax
add edi, eax
test esi, esi
jg 0x40ad04
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 8
Function at 0x40ad40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
test esi, esi
jle 0x40ad75
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push esi
lea ecx, [edi + eax]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x40ad7e
test eax, eax
je 0x40ad7e
sub esi, eax
add edi, eax
test esi, esi
jg 0x40ad54
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 8

Function at 0x40ae60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0
mov dword [ebp - 0x408], edi
jne 0x40ae96
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 4
call fcn.0040a660
test eax, eax
jne 0x40aeb8
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0xc]
push eax
push ecx
push str.Enter_SOCKS5_password_for__s__s:
call fcn.0040ae20
add esp, 0xc
test eax, eax
je 0x40ae82
mov edi, dword [edi + 0xc]
push ebx
mov ecx, edi
push esi
mov byte [ebp - 0x404], 1
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40aed0
sub ecx, esi
mov ebx, ecx
lea esi, [ebp - 0x402]
mov byte [ebp - 0x403], bl
mov edx, edi
sub esi, edi
jmp 0x40aef0
mov cl, byte [edx]
mov byte [esi + edx], cl
inc edx
test cl, cl
jne 0x40aef0
mov ecx, eax
lea edi, [ebp + ebx - 0x402]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40af06
sub ecx, esi
mov ebx, ecx
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40af16
sub ecx, esi
mov byte [edi], cl
inc edi
mov esi, edi
mov ecx, eax
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x40af28
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40af37
sub ecx, esi
push ecx
push 0
push eax
call fcn.004b2d10
mov esi, dword [ebp - 0x408]
lea edx, [ebp - 0x404]
add esp, 0xc
mov eax, ebx
mov ebx, dword [ebp + 8]
mov ecx, edx
sub eax, edx
push ecx
add eax, edi
push ebx
mov dword [esi + 0x13c], 0
call fcn.0040acf0
mov dword [esi + 0x13c], 1
mov esi, 2
xor edi, edi
push 0
push esi
lea edx, [ebp + edi - 0x404]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40afa8
test eax, eax
je 0x40afa8
sub esi, eax
add edi, eax
test esi, esi
jg 0x40af85
movzx eax, byte [ebp - 0x403]
mov ecx, dword [ebp - 4]
neg eax
pop esi
sbb eax, eax
pop ebx
xor ecx, ebp
pop edi
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 4
Function at 0x40b470
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x118]
mov al, byte [esi + 0x111]
mov cl, byte [esi + 0x110]
mov word [ebp - 0x104], 0x104
mov byte [ebp - 0x102], al
mov byte [ebp - 0x101], cl
mov dword [ebp - 0x100], ebx
test ebx, ebx
jne 0x40b4bf
mov byte [ebp - 0xfd], 1
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x40b4db
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 4
push edi
lea edi, [ebp - 0xfc]
mov ecx, eax
sub edi, eax
mov dl, byte [ecx]
mov byte [edi + ecx], dl
inc ecx
test dl, dl
jne 0x40b4e6
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b4f3
sub eax, edx
cmp dword [esi + 0x134], 4
lea eax, [ebp + eax - 0xfb]
jne 0x40b53d
test ebx, ebx
jne 0x40b53d
lea edi, [esi + 0x10]
mov esi, eax
mov ecx, edi
sub esi, edi
lea esp, [esp]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x40b520
mov ecx, edi
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40b530
sub ecx, esi
lea eax, [eax + ecx + 1]
lea edx, [ebp - 0x104]
mov ecx, edx
sub eax, edx
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.0040acf0
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov esi, 8
xor edi, edi
mov edi, edi
mov ecx, dword [ebp + 8]
push 0
push esi
lea eax, [ebp + edi - 0x104]
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x40b582
test eax, eax
je 0x40b582
sub esi, eax
add edi, eax
test esi, esi
jg 0x40b560
mov ecx, dword [ebp - 4]
xor eax, eax
cmp byte [ebp - 0x103], 0x5a
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
dec eax
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 4

Function at 0x40b5b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push ecx
push 0x545180
call fcn.004a9fb7
mov eax, 0x545180
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b5d0
push 0
sub eax, edx
mov edx, dword [ebp + 8]
push eax
push 0x545180
push edx
call dword [sym.imp.WS2_32.dll_send]
inc eax
neg eax
sbb eax, eax
neg eax
dec eax
pop ebp
ret
Function at 0x40b600
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b610
sub eax, ecx
mov ebx, eax
lea ecx, [ebx + 2]
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
add esi, esi
add esi, esi
lea eax, [esi + 1]
push eax
mov dword [ebp - 0xc], ebx
call fcn.004aa188
mov ecx, eax
add esp, 4
xor eax, eax
xor edx, edx
mov dword [ebp - 8], edi
mov dword [0x548568], ecx
mov edi, ecx
test esi, esi
je 0x40b6a9
mov dword [ebp - 4], 0xfffffffa
jmp 0x40b660
dec esi
cmp edx, 6
jge 0x40b681
mov ecx, dword [ebp - 8]
mov cl, byte [ecx]
add dword [ebp - 4], 8
movzx ebx, cl
shl eax, 8
or eax, ebx
add edx, 8
test cl, cl
je 0x40b681
inc dword [ebp - 8]
mov ecx, dword [ebp - 4]
sub dword [ebp - 4], 6
mov ebx, eax
sar ebx, cl
inc edi
sub edx, 6
and ebx, 0x3f
mov cl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 1], cl
test esi, esi
jne 0x40b660
mov ebx, dword [ebp - 0xc]
mov ecx, dword [0x548568]
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
sub ebx, edx
dec ebx
mov byte [edi], 0
je 0x40b6ce
dec ebx
je 0x40b6d2
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
dec edi
mov byte [edi], 0x3d
mov byte [edi - 1], 0x3d
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40be10
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x198]
push eax
push 0x101
mov ebx, ecx
mov edi, edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, 1
add dword [esi + 0x124], eax
push pe_nt_image_headers32
mov dword [esi + 0x130], eax
lea eax, [esi + 0x10]
mov ecx, 0x457
push edi
push eax
mov word [esi + 0x12c], cx
call fcn.004a9c60
mov eax, dword [ebp + 8]
mov dx, word [ebp + 0xc]
add esp, 0xc
push ebx
push eax
push esi
mov word [esi + 0x110], dx
call fcn.0040a720
cmp dword [esi], 1
jne 0x40bea7
movzx ecx, word [esi + 0x110]
push ecx
mov ecx, esi
call fcn.0040aa30
mov edi, eax
mov dword [ebp - 0x19c], edi
cmp edi, 0xffffffff
je 0x40bf81
jmp 0x40bec4
movzx edx, word [esi + 8]
push edx
mov ecx, esi
call fcn.0040aa30
mov dword [ebp - 0x19c], eax
cmp eax, 0xffffffff
je 0x40bf81
mov edi, eax
cmp dword [esi], 2
jne 0x40bf52
cmp dword [esi + 0x138], 1
jne 0x40bf52
lea eax, [esi + 0x10]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bee0
sub eax, edx
push str.0123456789.
lea edi, [esi + 0x10]
push edi
mov ebx, eax
call fcn.004aa890
add esp, 8
push edi
cmp eax, ebx
jne 0x40bf1b
mov eax, 2
mov word [esi + 0x114], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0x118], eax
jmp 0x40bf4c
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x40bf81
movsx ecx, word [ebx + 0xa]
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esi + 0x118]
push ecx
call fcn.004b29a0
mov dx, word [ebx + 8]
add esp, 0xc
mov word [esi + 0x114], dx
mov edi, dword [ebp - 0x19c]
mov eax, dword [esi]
sub eax, 2
je 0x40bf95
dec eax
jne 0x40bfbd
push edi
mov ecx, esi
call fcn.0040b810
cmp eax, 0xffffffff
je 0x40bf7a
cmp eax, 1
jne 0x40bfbd
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x40be80
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0x134], 5
jne 0x40bfa8
push esi
call fcn.0040b160
test eax, eax
js 0x40bf81
cmp dword [esi + 0x134], 4
jne 0x40bfbd
push edi
mov ecx, esi
call fcn.0040b470
test eax, eax
js 0x40bf81
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 8
Function at 0x40c410
Capabilities:
Create process on windows
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x218]
push eax
mov esi, ecx
push 0
mov dword [ebp - 0x224], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
jmp 0x40c450
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x40c450
lea eax, [ebp - 0x110]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40c470
mov ecx, dword [str.__settingshelper]
mov edx, dword [0x4d65ec]
mov dword [eax], ecx
mov ecx, dword [0x4d65f0]
mov dword [eax + 4], edx
mov edx, dword [0x4d65f4]
mov dword [eax + 8], ecx
mov cl, byte [0x4d65f8]
lea edi, [ebp - 0x110]
mov dword [eax + 0xc], edx
mov byte [eax + 0x10], cl
dec edi
jmp 0x40c4b0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40c4b0
mov dx, word [0x4d552c]
mov eax, esi
mov word [edi], dx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c4c6
lea edi, [ebp - 0x110]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40c4d6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x44
lea eax, [ebp - 0x280]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x21c], 0
call fcn.004b2d10
xor eax, eax
add esp, 0xc
push eax
mov ecx, 5
push str.Shell_TrayWnd
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov word [ebp - 0x250], cx
mov dword [ebp - 0x278], str.Winsta0Default
mov dword [ebp - 0x280], 0x44
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40c618
lea edx, [ebp - 0x220]
push edx
push eax
mov dword [ebp - 0x220], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x40c618
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40c618
lea eax, [ebp - 0x21c]
push eax
push 0x2000000
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [ebp - 0x234]
push ecx
mov ecx, dword [ebp - 0x21c]
lea edx, [ebp - 0x280]
push edx
push 0
push 0
push 8
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x40c5f6
push eax
call esi
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x40c603
push eax
call esi
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x40c610
push eax
call esi
cmp edi, 0x522
jne 0x40c623
mov esi, dword [ebp - 0x224]
call fcn.00407820
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x40c7a0
Capabilities:
Read file via mapping

Disassembly:
push ebx
xor bl, bl
cmp dword [esi + 4], 0
jne 0x40c7bb
push str.34F673E0_878F_11D5_B98A_00B0D07B8C7C
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40c7e2
push 0
push 0
push 0
push 6
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40c7dc
xor bl, bl
mov dword [esi + 0x109c4], eax
mov al, bl
pop ebx
ret

Function at 0x40c7f0
Capabilities:
Read file via mapping

Disassembly:
push ebx
xor bl, bl
cmp dword [esi + 0x10], 0
jne 0x40c80b
push str.34F673E0_878F_11D5_B98A_57B0D07B8C7C
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40c832
push 0
push 0
push 0
push 6
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x40c82c
xor bl, bl
mov dword [esi + 0x109c8], eax
mov al, bl
pop ebx
ret
Function at 0x40efa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c6208
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4ea5e0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x4ea5e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, ecx
mov dword [esp + 0x1c], eax
lea eax, [edi + 0x14]
push ebx
push eax
lea esi, [esp + 0x28]
call fcn.0040dff0
lea eax, [edi + 4]
push ebx
push eax
lea esi, [esp + 0x1c]
mov dword [esp + 0x58], 0
call fcn.0040dff0
lea eax, [edi + 0xc]
push ebx
push eax
lea esi, [esp + 0x30]
call fcn.0040dff0
mov byte [esp + 0x50], 2
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 0x14]
mov esi, dword [sym.imp.GDI32.dll_CombineRgn]
push 4
push ecx
push eax
push eax
call esi
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 4]
push 4
push edx
push eax
push eax
call esi
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + 0xc]
push 4
push ecx
push eax
push eax
call esi
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.GDI32.dll_GetRgnBox]
lea edx, [esp + 0x30]
push edx
push eax
call esi
mov ebx, dword [esp + 0x1c]
cmp eax, 1
je 0x40f077
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
add edi, 0x1c
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push ecx
call esi
cmp eax, 1
je 0x40f096
mov edx, dword [ebx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
push ecx
call esi
cmp eax, 1
je 0x40f0b5
mov edx, dword [ebx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004aa14e
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call fcn.004aa14e
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0x24]
push edx
call fcn.004aa14e
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 8
Function at 0x40f310
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x544798], 0
jne 0x40f33b
push esi
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
neg eax
sbb eax, eax
and eax, 2
mov esp, ebp
pop ebp
ret
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x40f352
xor eax, eax
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40f34c
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [ebp + 8]
mov dword [edx], eax
test eax, eax
je 0x40f34c
push esi
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, 2
mov esp, ebp
pop ebp
ret