joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e920
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x4f26c4], 0
jne 0x45e980
mov eax, 1
lock xadd dword [0x4f26c8], eax
inc eax
cmp eax, 1
jne 0x45e962
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4ee574], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x4f26d4], eax
call fcn.0044ebc0
mov dword [0x4f26c4], 1
ret
cmp dword [0x4f26c4], 0
jne 0x45e980
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
cmp dword [0x4f26c4], 0
je 0x45e972
pop esi
ret

Function at 0x46ff50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x4eef3c]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x4f31ec], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x46fa20
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x46fce0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0046f9d0
jne 0x4700a7
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x47009d
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004a102d
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.004a1087
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x47001b
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x470062
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004a102d
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.004a1087
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x470099
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x470096
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x470096
inc esi
cmp esi, 3
jl 0x470064
mov eax, dword [esp + 0x14]
mov dword [0x4ee808], eax
mov eax, dword [esp + 0x1c]
mov dword [0x4ee810], eax
mov eax, dword [esp + 0x24]
mov dword [fcn.0046f9d0], eax
jmp 0x470099
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x4f31ec], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x4ee808]
call fcn.00488c1c
add esp, 0x230
ret 4
Function at 0x470340
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x14]
push ebx
push edi
mov edi, dword [esp + 0x20]
push dword [esp + 0xc]
mov dword [edi], 0
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4703cf
cmp word [ebx + 8], 2
push ebp
push esi
jne 0x4703a2
cmp word [ebx + 0xa], 4
jne 0x4703a2
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4703a2
mov ebp, dword [esp + 0x1c]
push dword [eax]
push dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
call fcn.00470270
mov dword [edi], eax
test eax, eax
je 0x4703c3
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x470380
push 0x400
push dword [ebx]
push 0x401
push dword [esp + 0x30]
call fcn.004985ed
add esp, 0x10
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
ret 0x18
pop esi
pop ebp
pop edi
mov eax, 8
pop ebx
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4703df.11001
jmp dword [eax*4 + 0x470404]
pop edi
mov eax, 0x2af9
pop ebx
ret 0x18
pop edi
mov eax, 0x2afa
pop ebx
ret 0x18
pop edi
mov eax, 0x2afb
pop ebx
ret 0x18
Function at 0x470490
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4eef3c]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
push edi
mov edi, dword [esp + 0x228]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4704d6
push str.socket_failed_n
push 0
push 0xa
call fcn.0045eaa0
add esp, 0xc
jmp 0x47063e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
inc eax
neg eax
push 0x10
sbb eax, eax
neg eax
push edi
dec eax
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x470526
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x70
je 0x470526
cmp eax, 0x2733
je 0x470526
push str.error_connecting_to_HTTP_server
jmp 0x47062b
mov eax, dword [0x4ee800]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x120]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], esi
push eax
push 0
lea eax, [esi + 1]
mov dword [esp + 0x28], 1
push eax
mov dword [esp + 0x134], esi
mov dword [esp + 0x130], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x470626
test eax, eax
je 0x47061f
lea eax, [esp + 0x18]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x4705ac
lea eax, [esp + 0x11c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x4705ac
push str.select_failed_n
jmp 0x47062b
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 4
push eax
lea eax, [esp + 0xc]
push eax
push 0x1007
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jns 0x4705da
push str.getsockopt_failed_n
jmp 0x47062b
cmp dword [esp + 8], 0
je 0x470606
push str.Error_connecting_to_remote_host
push 0
push 0xa
call fcn.0045eaa0
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call fcn.00497984
mov ecx, dword [esp + 8]
mov dword [eax], ecx
jmp 0x47063e
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00488c1c
add esp, 0x21c
ret
push str.Connect_attempt_timed_out
jmp 0x47062b
push str.Connect_failed
push 0
push 0xa
call fcn.0045eaa0
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x220]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.00488c1c
add esp, 0x21c
ret
Function at 0x471e60
Capabilities:
Get socket status

Disassembly:
sub esp, 0x214
mov eax, dword [0x4eef3c]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [esp + 0x21c]
test esi, esi
je 0x471f4d
cmp dword [esi + 0x2c], 0xffffffff
je 0x471f4d
push edi
push dword [esi + 0x30]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
call edi
mov eax, dword [esi + 0x2c]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x11c], eax
push ecx
push 0
lea ecx, [esp + 0x120]
mov dword [esp + 0x20], eax
push ecx
inc eax
mov dword [esi + 0x30], 0xffffffff
push eax
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x20], 0
mov dword [esp + 0x128], 1
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x471f27
jne 0x471f19
push dword [esi + 0x2c]
call edi
mov dword [esi + 0x2c], 0xffffffff
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00488c1c
add esp, 0x214
ret
push esi
call fcn.00472db0
add esp, 4
cmp eax, 2
je 0x471f00
push dword [esi + 0x2c]
call edi
pop edi
mov dword [esi + 0x2c], 0xffffffff
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00488c1c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
or eax, 0xffffffff
pop esi
xor ecx, esp
call fcn.00488c1c
add esp, 0x214
ret

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

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x47290b
cmp dword [esi + 0x2c], 0xffffffff
je 0x47290b
mov eax, dword [esi + 0x440]
test eax, eax
js 0x47290b
cmp eax, 0x400
jg 0x47290b
mov ecx, dword [esi + 0x444]
test ecx, ecx
js 0x47290b
cmp ecx, 0x400
jg 0x47290b
cmp eax, ecx
jg 0x47290b
test eax, eax
jle 0x4728bd
sub ecx, eax
add eax, 0x3c
push ecx
add eax, esi
push eax
lea eax, [esi + 0x3c]
push eax
call fcn.0048b430
mov eax, dword [esi + 0x440]
add esp, 0xc
sub dword [esi + 0x444], eax
mov dword [esi + 0x440], 0
mov eax, 0x400
sub eax, dword [esi + 0x444]
jne 0x4728cc
pop esi
ret
push 0
push eax
mov eax, dword [esi + 0x440]
add eax, 0x3c
add eax, esi
push eax
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
test ecx, ecx
jns 0x472910
push str.recv_failed
push 0
push 9
call fcn.0045eaa0
add esp, 0xc
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x2c], 0xffffffff
or eax, 0xffffffff
pop esi
ret
add dword [esi + 0x444], ecx
mov eax, dword [esi + 0x444]
mov byte [eax + esi + 0x3c], 0
mov eax, ecx
pop esi
ret
Function at 0x472c80
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xcc
mov eax, dword [0x4eef3c]
xor eax, esp
mov dword [esp + 0xc8], eax
push esi
mov esi, dword [esp + 0xd4]
test esi, esi
je 0x472d29
cmp dword [esi + 0x2c], 0xffffffff
je 0x472d29
push str.QUIT_r_n
lea eax, [esp + 8]
push 0xc8
push eax
call fcn.004213c0
lea ecx, [esp + 0x10]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x472cc8
push 0
sub ecx, edx
lea eax, [esp + 8]
push ecx
push eax
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jns 0x472d11
push str.send_failed
push 0
push 9
call fcn.0045eaa0
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00488c1c
add esp, 0xcc
ret
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00488c1c
add esp, 0xcc
ret
mov ecx, dword [esp + 0xcc]
or eax, 0xffffffff
pop esi
xor ecx, esp
call fcn.00488c1c
add esp, 0xcc
ret

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

Disassembly:
sub esp, 0xcc
mov eax, dword [0x4eef3c]
xor eax, esp
mov dword [esp + 0xc8], eax
push esi
mov esi, dword [esp + 0xd4]
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x47313c
push str.PASS_anonymous__r_n
lea eax, [esp + 8]
push 0xc8
push eax
call fcn.004213c0
add esp, 0xc
jmp 0x473154
push eax
push str.PASS__s_r_n
lea eax, [esp + 0xc]
push 0xc8
push eax
call fcn.004213c0
add esp, 0x10
lea ecx, [esp + 4]
mov byte [esp + 0xcb], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x473163
push 0
sub ecx, edx
lea eax, [esp + 8]
push ecx
push eax
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jns 0x4731ac
push str.send_failed
push 0
push 9
call fcn.0045eaa0
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00488c1c
add esp, 0xcc
ret
mov ecx, dword [esp + 0xcc]
xor eax, eax
pop esi
xor ecx, esp
call fcn.00488c1c
add esp, 0xcc
ret

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

Disassembly:
sub esp, 0xcc
mov eax, dword [0x4eef3c]
xor eax, esp
mov dword [esp + 0xc8], eax
push esi
mov esi, dword [esp + 0xd4]
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x47320c
push str.USER_anonymous_r_n
lea eax, [esp + 8]
push 0xc8
push eax
call fcn.004213c0
add esp, 0xc
jmp 0x473224
push eax
push str.USER__s_r_n
lea eax, [esp + 0xc]
push 0xc8
push eax
call fcn.004213c0
add esp, 0x10
lea ecx, [esp + 4]
mov byte [esp + 0xcb], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x473233
push 0
sub ecx, edx
lea eax, [esp + 8]
push ecx
push eax
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jns 0x47327c
push str.send_failed
push 0
push 9
call fcn.0045eaa0
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00488c1c
add esp, 0xcc
ret
mov ecx, dword [esp + 0xcc]
xor eax, eax
pop esi
xor ecx, esp
call fcn.00488c1c
add esp, 0xcc
ret
Function at 0x476aa0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
mov edx, 0x40000003
push ebx
push esi
push edi
push 0
mov edi, ecx
mov eax, 0x40080003
push 0xffffffffffffffff
cmove eax, edx
push dword [edi + 0x10]
mov ecx, dword [edi + 8]
push dword [edi + 0xc]
push 0xff
push dword [edi + 0x14]
push eax
mov eax, dword [ecx]
call dword [eax + 0x24]
push eax
call fcn.004801c0
add esp, 0x20
mov dword [edi + 0x20], eax
lea ecx, [edi + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.NamedPipe_Created__
mov ebx, eax
call fcn.0047a680
add esp, 4
test esi, esi
jne 0x476b39
cmp ebx, 0x217
je 0x476b21
cmp ebx, 0x3e5
jne 0x476b39
mov byte [edi + 0x1c], 0
pop edi
pop esi
pop ebx
pop ebp
ret 4
push str.Client_connected_to_NamedPipe
call fcn.0047a680
add esp, 4
mov byte [edi + 0x1c], 1
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4cf128
call fcn.00480fc0
int3

Function at 0x477500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba62b
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4eef3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x258], 1
call fcn.0048cf40
add esp, 0xc
mov dword [ebp - 0x254], 0x104
lea eax, [ebp - 0x24c]
push eax
push 0x20119
push 0
push 0x4cec80
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4775be
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x258]
push eax
push 0
push 0x4cecb4
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x24c]
test eax, eax
je 0x4775c5
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x477663
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x218], 0
jne 0x4775d9
xor ecx, ecx
jmp 0x4775f1
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4775e2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040bb60
cmp dword [esi + 0x14], 8
jb 0x47760a
mov eax, dword [esi]
jmp 0x47760c
mov eax, esi
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00477c70
push esi
mov dword [ebp - 4], 0
call fcn.00476b60
add esp, 0xc
test al, al
je 0x477650
mov ecx, dword [ebp - 0x250]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x248]
push ecx
push eax
call fcn.00496f36
add esp, 8
test eax, eax
jne 0x477650
mov bl, 1
jmp 0x477652
xor bl, bl
mov ecx, dword [ebp - 0x250]
test ecx, ecx
je 0x477661
call fcn.00479590
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488c1c
mov esp, ebp
pop ebp
ret
Function at 0x477870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x28], 0
mov eax, dword [esi + 0x1c]
lea ebx, [esi + 0x1c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4778b7
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4778e9
push ebx
mov ecx, esi
call fcn.00477810
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4778ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x47791e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
push eax
push 9
push 0x4ceffc
call fcn.00474f10
add esp, 8
lea ecx, [ebp - 0x14]
push eax
call fcn.00482220
push 0x4e9abc
lea eax, [ebp - 0x14]
push eax
call fcn.0048d64f
push eax
push 0x4ceffc
call fcn.00480fc0
int3

Function at 0x47ce70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bacbf
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4eef3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20
call fcn.0047abb0
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x47cf0c
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.00484be0
lea esi, [edi + 0x1c]
mov dword [edi], vtable.vcfoundation::thread::Thread.0
mov ecx, edi
mov dword [edi + 8], vtable.vcfoundation::thread::Thread.1.0
mov dword [edi + 0x18], 0xffffffff
mov dword [esi], 0
call fcn.004795c0
push esi
push 0
push edi
push 0x47d100
push dword [ebp + 0x10]
push 0
call fcn.004984a9
mov dword [edi + 0x18], eax
add esp, 0x18
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47d5f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bad58
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4eef3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.0047ac20
cmp dword [esi + 0xc], 0
mov dword [ebp - 4], 0
jne 0x47d652
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.0047bad0
mov edx, dword [esi + 0xc]
add esp, 8
mov ecx, dword [eax]
mov dword [esi + 0xc], ecx
mov dword [eax], edx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x47d652
call fcn.00479590
mov ecx, dword [esi + 0xc]
lea edx, [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
push edx
mov eax, dword [ecx]
push 1
call dword [eax + 0x30]
lea ecx, [ebp - 0x14]
call fcn.0047ac40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x483d30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb538
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4eef3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00484120
lea eax, [esi - 1]
mov dword [ebp - 4], 0
mov esi, dword [ebx + 4]
lea edi, [ebx + 4]
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov eax, dword [ebx + 8]
mov edx, eax
sub edx, esi
mov dword [ebp - 0x1c], edi
add edx, 3
mov dword [ebp + 8], esi
xor ebx, ebx
shr edx, 2
cmp esi, eax
mov dword [ebp - 0x10], ecx
cmova edx, ebx
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
test edx, edx
je 0x483e22
mov edi, dword [esi]
test edi, edi
je 0x483e11
mov esi, dword [ebp - 0x14]
nop
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
shl ecx, 9
not ecx
add eax, ecx
mov ecx, eax
shr ecx, 0xe
xor ecx, eax
mov eax, ecx
shl eax, 4
add eax, ecx
mov ecx, dword [edi]
mov edx, eax
shr edx, 0xa
xor edx, eax
and edx, esi
mov eax, dword [ebx + edx*4]
mov dword [edi], eax
mov dword [ebx + edx*4], edi
mov edi, ecx
test ecx, ecx
jne 0x483dd0
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
inc ecx
add esi, 4
mov dword [ebp + 8], esi
mov dword [ebp - 0x10], ecx
cmp ecx, edx
jne 0x483dc5
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmp edi, eax
je 0x483e40
mov eax, dword [edi]
mov dword [edi], ebx
mov ebx, eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 4], eax
mov ecx, dword [edi + 8]
mov eax, dword [ebp - 0x24]
mov dword [edi + 8], eax
jmp 0x483e43
mov ecx, dword [ebp - 0x24]
mov eax, dword [edi + 4]
sub eax, dword [edi]
mov edx, dword [ebp - 0x20]
sar eax, 2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x4d0ef8]
cvttsd2si eax, xmm0
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
test ebx, ebx
je 0x483ec6
sub ecx, ebx
sar ecx, 2
cmp ecx, 0x3fffffff
jbe 0x483e81
call fcn.00495911
lea eax, [ecx*4]
cmp eax, 0x1000
jb 0x483ebd
test bl, 0x1f
je 0x483e99
call fcn.00495911
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x483ea5
call fcn.00495911
sub ebx, eax
cmp ebx, 4
jae 0x483eb1
call fcn.00495911
cmp ebx, 0x23
jbe 0x483ebb
call fcn.00495911
mov ebx, eax
push ebx
call fcn.0047bf70
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x486e00
Capabilities:
Create process on windows
Enumerate gui resources
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4eef3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x486e77
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488c1c
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
push dword [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
test esi, esi
je 0x486f12
call dword [sym.imp.USER32.dll_GetShellWindow]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x486eea
lea eax, [ebp - 0x28]
push eax
push 0x4871b0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x486f12
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x486f12
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x486f25
call edi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488c1c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
mov byte [ebp - 0x15], 0
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x486f3e
call edi
jmp 0x486f80
lea eax, [ebp - 0x24]
push eax
push 1
push 2
push 0
push 0x18b
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x486f3a
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x486f3a
mov byte [ebp - 0x15], 1
push dword [ebp - 0x20]
call ebx
push dword [ebp - 0x24]
call ebx
push esi
call ebx
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x15]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00488c1c
mov esp, ebp
pop ebp
ret
Function at 0x486fb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov ecx, dword [ebp + 8]
push esi
mov eax, dword [ecx]
call dword [eax + 0x24]
push dword [ebp + 0xc]
mov esi, eax
call fcn.0047ffd0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x3c
push eax
mov dword [ebp - 0x38], 0xc400
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 4], 0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
je 0x487029
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ShellExecuteEx
call fcn.00480fc0
int3