joyce8/EMBER2024-capa huggingface dataset:
Function at 0x518724
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x5187ac
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x536324
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x518796
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0042264c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x5187c4
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, 0x516d84
mov dl, 1
mov eax, dword [0x516dbc]
call fcn.004237a0
call fcn.00406260
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5187b3
lea eax, [ebp - 0x1c]
call fcn.00406b28
ret

Function at 0x518dc8
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x518e24]
cmp al, byte [ebx + 0x28]
je 0x518dec
mov esi, 0x401
mov eax, ebx
call fcn.00518f34
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x518e24]
cmp al, byte [ebx + 0x28]
jne 0x518e1c
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x518ebc
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00518dc8
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00405248
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x518f24
call fcn.0051866c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x518f12
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00405248
pop esi
pop ebx
ret

Function at 0x5193ac
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
push edx
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00404a40
test ebx, ebx
je 0x5193f2
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [esp + 4], cl
movzx ecx, byte [edx + 1]
mov byte [esp + 5], cl
movzx ecx, byte [edx + 2]
mov byte [esp + 6], cl
movzx eax, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x5195c4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x5195f4
mov ecx, 0x516dac
mov dl, 1
mov eax, dword [0x516dbc]
call fcn.004236d0
call fcn.00406260
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x519620
mov ecx, 0x516da4
mov dl, 1
mov eax, dword [0x516dbc]
call fcn.004236d0
call fcn.00406260
xor eax, eax
push ebp
push 0x51969c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00405248
cmp byte [ebp + 8], 0
je 0x519678
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0051942c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.00518ebc
jmp 0x519692
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00518978
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5196b9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5198c8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00518c6c
xor eax, eax
push ebp
push 0x519a3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x519a25
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x519914
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x51991e
call fcn.00406354
jmp 0x519a42
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004484dc
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x519a1a
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x5199cd
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x5199ba
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00405248
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.00519880
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x519a50]
cmp dl, byte [eax + 0x28]
je 0x519a21
call fcn.00423570
jmp 0x519a21
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004484fc
jmp 0x519a21
cmp edi, ebx
jge 0x5199e9
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004484fc
jmp 0x51991e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004484dc
cmp edx, dword [esp + 4]
jne 0x519a09
cmp eax, dword [esp]
pop edx
pop eax
jne 0x51991e
push ebp
call fcn.00519880
pop ecx
jmp 0x519a21
push ebp
call fcn.00519880
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519a42
mov eax, dword [ebp - 4]
call fcn.00518c74
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x519a84
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x519ba5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00518c6c
xor eax, eax
push ebp
push 0x519b88
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x519ad4
call fcn.00406354
jmp 0x519b8f
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x519b72
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x519b72
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00405248
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x519b72
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0042264c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x519bc4
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, 0x516d84
mov dl, 1
mov eax, dword [0x516dbc]
call fcn.004237a0
call fcn.00406260
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519b8f
mov eax, dword [ebp - 4]
call fcn.00518c74
ret
xor eax, eax
pop edx
pop ecx
Function at 0x519c14
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x519d5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00518c6c
xor eax, eax
push ebp
push 0x519d40
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x519c79
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x519c79
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x519d2a
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x519c8c
call fcn.00406354
jmp 0x519d47
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x519d2a
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x519d2a
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00405248
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x519d2a
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0042264c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x519d7c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, 0x516d84
mov dl, 1
mov eax, dword [0x516dbc]
call fcn.004237a0
call fcn.00406260
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519d47
mov eax, dword [ebp - 4]
call fcn.00518c74
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519d64
lea eax, [ebp - 0x28]
call fcn.00406b28
ret
Function at 0x18045b4
Capabilities:
Persist via netsh registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x18122e8]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
cmp dword [0x1812310], ebx
mov dword [ebp - 0xa8], eax
jbe 0x180460b
xor esi, esi
push dword [ebp - 0xa8]
mov eax, dword [0x18176a4]
push dword [esi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x18046f4
inc edi
add esi, 0x14
cmp edi, dword [0x1812310]
jb 0x18045e1
push ebx
lea eax, [ebp - 0xac]
push eax
push ebx
push 0xf003f
push ebx
push 0x18013cc
push ebx
push 0x180136c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x18046d9
push dword [ebp - 0xa8]
call dword [sym.imp.msvcrt.dll__wcsdup]
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x1804655
push 8
pop eax
jmp 0x180470f
mov esi, dword [sym.imp.msvcrt.dll_wcsrchr]
push 0x2f
push edi
mov ebx, edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1804673
push 0x5c
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x1804676
lea ebx, [eax + 2]
lea eax, [ebp - 0xa4]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0xa4]
push 0x2e
push eax
call esi
add esp, 0x10
test eax, eax
je 0x180469a
and word [eax], 0
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xac]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.msvcrt.dll_free]
test esi, esi
pop ecx
je 0x18046f4
push dword [ebp - 0xa8]
push 0x3e8
push dword [0x1813678]
call sym.NETSH.EXE_PrintMessageFromModule
add esp, 0xc
jmp 0x180470d
push dword [ebp - 0xa8]
lea eax, [ebp - 0xa4]
push eax
call fcn.0180447a
mov esi, eax
call fcn.01802f63
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01808747
leave
ret 4
Function at 0x1805db8
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x18122e8]
mov dword [ebp - 4], eax
mov eax, dword [0x1812314]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [ebp + 8]
je 0x1805deb
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x1805e21
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [0x1812314], eax
jne 0x1805e15
push 8
pop eax
jmp 0x1805e90
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x1805e28
and dword [0x1812314], 0
push 0x1801360
call fcn.01804b84
push dword [0x1812314]
call fcn.018081b3
mov esi, eax
test esi, esi
jge 0x1805e8e
mov eax, dword [0x1812314]
test eax, eax
jne 0x1805e70
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x20c]
push eax
push 0xb4
push dword [0x1813678]
call sym.NETSH.EXE_PrintMessageFromModule
add esp, 0xc
push esi
push 0
call sym.NETSH.EXE_PrintError
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01808747
leave
ret 4
Function at 0x1806d4d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.018089e0
mov eax, dword [0x18122e8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2014], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push esi
mov esi, dword [ebp + 0xc]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fflush]
push esi
lea eax, [ebp - 0x2004]
push 0x2000
push eax
call dword [sym.imp.msvcrt.dll_fgets]
add esp, 0x10
test eax, eax
je 0x1806eab
push ebx
xor ebx, ebx
push ebx
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
mov eax, dword [0x1812324]
cmp eax, ebx
mov dword [ebp - 0x2008], ecx
je 0x1806e5c
push edi
push ebx
lea edx, [ebp - 0x2010]
push edx
add ecx, 0xfffffffe
mov esi, 0x18015e8
lea edi, [ebp - 0x200c]
movsw word es:[edi], word [esi]
push ecx
lea ecx, [ebp - 0x2004]
push ecx
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x1806e21
push dword [0x1812324]
call edi
mov dword [0x1812324], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call sym.NETSH.EXE_PrintError
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x2010]
push eax
push 2
lea eax, [ebp - 0x200c]
push eax
push dword [0x1812324]
call esi
test eax, eax
jne 0x1806e5b
push dword [0x1812324]
call edi
mov dword [0x1812324], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call sym.NETSH.EXE_PrintError
pop ecx
pop ecx
pop edi
mov eax, dword [ebp - 0x2008]
add eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x1806e9a
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push esi
push 0x2000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x2008]
mov ecx, dword [ebp - 0x2014]
mov dword [ecx], eax
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01808747
leave
ret 8
Function at 0x18076a8
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.018089e0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push dword [esi]
push dword [0x1812314]
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
test eax, eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
jne 0x18076de
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180785d
mov eax, dword [esi + 0xc]
test eax, eax
je 0x180785d
test al, 8
je 0x18076fd
mov dword [ebp - 0x18], 0x1801664
mov dword [ebp - 0x14], 0x1775
jmp 0x1807709
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
and dword [ebp - 0x10], 0
xor esi, esi
and dword [ebp - 0xc], esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x101c]
push eax
push 0
push 9
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
cmp eax, 1
jne 0x1807807
mov eax, dword [ebp - 4]
lea edi, [ebp - 0x101c]
lea eax, [ebp + eax - 0x101c]
mov ecx, edi
cmp ecx, eax
jae 0x18077fb
cmp dword [ebp - 0xc], 0
jne 0x1807812
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
mov ebx, edi
add edi, dword [edi]
test eax, eax
jbe 0x18077e6
cmp eax, 2
jbe 0x180779a
cmp eax, 4
je 0x180777d
cmp eax, 8
jne 0x18077e6
push dword [ebp - 0x18]
lea eax, [ebx + 0x38]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x18077e6
mov eax, dword [ebp - 0x14]
cmp dword [ebx + 0x14], eax
jne 0x18077e6
jmp 0x18077cf
push ecx
push ebx
call fcn.01806c81
test eax, eax
je 0x18077e6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc], 1
jne 0x18077b3
inc dword [ebp - 0x10]
jmp 0x18077c7
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.msvcrt.dll_time]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebx + 0xc]
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jb 0x18077e6
mov eax, dword [ebp - 4]
lea eax, [ebp + eax - 0x101c]
cmp edi, eax
sbb esi, esi
and esi, edi
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
lea eax, [ebp + eax - 0x101c]
cmp edi, eax
jb 0x1807756
cmp dword [ebp - 0xc], 0
je 0x1807713
jmp 0x1807812
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x180785c
test esi, esi
je 0x180785a
mov edi, dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0x101c]
push eax
push dword [esi + 8]
push 6
push dword [ebx]
call edi
cmp dword [ebp - 8], 0x1000
jae 0x180785a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x101c]
push eax
push dword [esi + 8]
push 6
push dword [ebx]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x180885f
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x18018c0
call fcn.01808a34
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x180889a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x180889a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x18088b2
cmp eax, 0x20b
je 0x180889f
mov dword [ebp - 0x1c], edi
jmp 0x18088c6
cmp dword [ecx + 0x84], 0xe
jbe 0x180889a
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x18088c0
cmp dword [ecx + 0x74], 0xe
jbe 0x180889a
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1817a10], 0xffffffff
or dword [0x1817a14], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1812b70]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1812b6c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1817a18], eax
call fcn.01808ab4
cmp dword [0x18122f0], edi
jne 0x1808921
push fcn.01808ab4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01808a9d
push 0x180a010
push 0x180a00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1812b68]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1812b64]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x180a008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.018063b5
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1808998
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x18089cd
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01808a6f
ret
Function at 0x401000
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
test eax, eax
jne 0x40100f
add esp, 0x14
ret
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4010c3
push ebp
lea eax, [esp + 0xc]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x28]
push ebx
push ecx
lea edx, [esp + 0x1c]
push 0x10
push edx
push esi
mov edi, eax
call ebp
test eax, eax
je 0x4010ba
cmp dword [esp + 0x28], 0x10
jb 0x4010ba
cmp dword [esp + 0x14], 0x50534350
jne 0x4010ba
cmp dword [esp + 0x18], edi
jne 0x4010ba
cmp dword [esp + 0x1c], edi
jae 0x4010ba
lea eax, [edi + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4010ba
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x28]
push 0
push ecx
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x4010b1
cmp dword [esp + 0x28], edi
jae 0x4010ba
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov eax, ebx
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4022a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movsd xmm0, qword [0x4661c8]
addsd xmm0, qword [0x45bf98]
movsd qword [0x4661c8], xmm0
movss xmm0, dword [0x45b72c]
subss xmm0, dword [0x4662f0]
cvtss2sd xmm0, xmm0
movsd qword [0x4662c8], xmm0
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx*4]
mov dword [ebp - 0xc], eax
movss xmm0, dword [0x466400]
subss xmm0, dword [0x45ade8]
movss dword [0x466400], xmm0
movss xmm0, dword [0x466400]
cvtss2sd xmm0, xmm0
addsd xmm0, qword [0x4663a0]
movsx ecx, word [0x4662ec]
cvtsi2sd xmm1, ecx
addsd xmm0, xmm1
movsd qword [0x466080], xmm0
movsd xmm0, qword [0x4663a0]
addsd xmm0, qword [0x45adf0]
movsd qword [0x4663a0], xmm0
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
jmp 0x402358
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
je 0x4023ee
mov edx, dword [ebp - 8]
mov eax, dword [edx]
xor eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
mov eax, dword [ebp - 4]
shl eax, 0x1f
or edx, eax
mov dword [ebp - 4], edx
movsd xmm0, qword [0x466338]
addsd xmm0, qword [0x45b2a0]
movsd qword [0x466338], xmm0
mov ecx, 1
shl ecx, 0
mov edx, 1
imul eax, edx, 0
movzx edx, byte [ebp + eax - 4]
movzx eax, byte [ebp + ecx - 4]
add eax, edx
mov ecx, 1
shl ecx, 0
mov byte [ebp + ecx - 4], al
mov edx, 1
imul eax, edx, 0
mov ecx, 1
shl ecx, 0
movzx edx, byte [ebp + ecx - 4]
movzx eax, byte [ebp + eax - 4]
add eax, edx
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 4], al
jmp 0x40234f
movss xmm0, dword [0x466490]
subss xmm0, dword [0x45c038]
movss xmm1, dword [0x466460]
mulss xmm1, xmm0
movss dword [0x466460], xmm1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret