joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7e0990
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffd4
mov byte [0x80c065], 0
push 0x7e0b1c
call sub.kernel32.dll_GetModuleHandleW
mov ebx, eax
push 0x7e0b38
push ebx
call fcn.00412530
mov esi, eax
test esi, esi
je 0x7e0a38
lea eax, [esp + 2]
push eax
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x7e0a38
cmp word [esp], 0
je 0x7e0a38
mov byte [0x80c065], 1
movzx eax, word [esp + 2]
sub ax, 0x14c
je 0x7e09fc
sub ax, 0xb4
je 0x7e0a08
sub ax, 0x8464
je 0x7e0a14
sub ax, 0x2400
je 0x7e0a20
jmp 0x7e0a2c
mov byte [0x80254d], 1
jmp 0x7e0ad4
mov byte [0x80254d], 3
jmp 0x7e0ad4
mov byte [0x80254d], 2
jmp 0x7e0ad4
mov byte [0x80254d], 4
jmp 0x7e0ad4
mov byte [0x80254d], 0
jmp 0x7e0ad4
push 0x7e0b58
push ebx
call fcn.00412530
test eax, eax
je 0x7e0a80
lea edx, [esp + 8]
push edx
call eax
push 0x7e0b80
push ebx
call fcn.00412530
mov esi, eax
test esi, esi
je 0x7e0a8a
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x7e0a8a
cmp dword [esp + 4], 0
je 0x7e0a8a
mov byte [0x80c065], 1
jmp 0x7e0a8a
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetSystemInfo
movzx eax, word [esp + 8]
sub ax, 1
jb 0x7e0aa9
sub ax, 5
je 0x7e0ab2
sub ax, 3
je 0x7e0abb
sub ax, 3
je 0x7e0ac4
jmp 0x7e0acd
mov byte [0x80254d], 1
jmp 0x7e0ad4
mov byte [0x80254d], 3
jmp 0x7e0ad4
mov byte [0x80254d], 2
jmp 0x7e0ad4
mov byte [0x80254d], 4
jmp 0x7e0ad4
mov byte [0x80254d], 0
cmp byte [0x80c065], 0
je 0x7e0b15
call fcn.0078aea8
test al, al
je 0x7e0b0e
push 0x7e0ba0
push ebx
call fcn.00412530
test eax, eax
je 0x7e0b0e
push 0x7e0bd4
push 0x7e0bf4
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00412530
test eax, eax
jne 0x7e0b15
mov byte [0x80c065], 0
add esp, 0x2c
pop esi
pop ebx
ret

Function at 0x7e0c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 1
lea eax, [ebp - 4]
push eax
mov ecx, 0x7e0c80
mov edx, 0x80000002
xor eax, eax
call fcn.005e2608
test eax, eax
jne 0x7e0c79
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x7e0cd4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x7e0c70
cmp dword [ebp - 0xc], 4
jne 0x7e0c70
cmp dword [ebp - 8], 4
jne 0x7e0c70
movzx eax, word [ebp - 0x10]
mov word [0x80c07c], ax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
mov esp, ebp
pop ebp
ret
Function at 0x7e0e7c
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffdd0
mov dword [esp], 0x114
push esp
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x7e0f2b
movzx eax, byte [esp + 4]
shl eax, 0x18
movzx edx, byte [esp + 8]
shl edx, 0x10
or eax, edx
movzx edx, word [esp + 0xc]
or eax, edx
mov dword [0x80c078], eax
cmp byte [0x80c064], 0
je 0x7e0f2b
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x7e0f1c
mov dword [esp + 0x114], 0x11c
lea eax, [esp + 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x7e0f2b
movzx eax, byte [esp + 0x228]
shl eax, 8
movzx edx, byte [esp + 0x22a]
or ax, dx
mov word [0x80c07c], ax
movzx eax, byte [esp + 0x22e]
mov byte [0x80c07e], al
movzx eax, word [esp + 0x22c]
mov word [0x80c080], ax
jmp 0x7e0f2b
cmp eax, 4
jne 0x7e0f2b
call fcn.007e0c10
call fcn.007e0cec
add esp, 0x230
ret

Function at 0x7e1f18
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x7e1fc0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7e1fdc
push ebx
push 0x7e1fec
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00409bfc
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00405d9c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040990c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x7e1f9e
mov eax, dword [0x802f10]
mov eax, dword [eax + 0x1c8]
call fcn.007e1e70
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
mov ebx, dword [ebp - 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e1fc7
lea eax, [ebp - 4]
call fcn.00408844
ret
Function at 0x7e2934
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x7e2b22
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.005e21d8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0078c2dc
test al, al
jne 0x7e29a1
xor eax, eax
push ebp
push 0x7e2997
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
xor eax, eax
call fcn.0078c7d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x7e29a1
push 0
mov eax, dword [ebp - 4]
call fcn.0040990c
push eax
mov eax, dword [0x80c158]
call fcn.0040990c
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x7e29d0
mov eax, dword [0x802f10]
mov eax, dword [eax + 0x1c4]
call fcn.007e1e70
push 0x80
mov eax, dword [ebp - 4]
call fcn.0040990c
push eax
call sub.kernel32.dll_SetFileAttributesW
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x807634]
push eax
push 0
mov ecx, 0x7e2b30
mov edx, 0x7e2b34
xor eax, eax
call fcn.0041362c
mov dword [ebp - 8], eax
push 0x7e2030
push 0xfffffffffffffffc
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetWindowLongW
mov dword [0x80c184], eax
xor eax, eax
push ebp
push 0x7e2aeb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x802ef8]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call fcn.00413454
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.005e1ba4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x7e2b50
call fcn.00422b14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
call fcn.005e1a84
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00409b1c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.007e1f18
mov dword [ebp - 0xc], eax
call fcn.007e1ff4
test al, al
jne 0x7e2acb
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call fcn.0041327c
cmp eax, 1
je 0x7e2aa9
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e2af2
mov eax, dword [ebp - 8]
push eax
call fcn.00412e08
ret
Function at 0x7e430c
Capabilities:
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x7e4449
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
mov ecx, 0x7e4464
mov edx, ebx
call fcn.00409b74
mov eax, dword [ebp - 0x25c]
call fcn.0040990c
push eax
call sub.kernel32.dll_FindFirstFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x7e4423
xor eax, eax
push ebp
push 0x7e441c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x7e4480
lea eax, [ebp - 0x22c]
mov ecx, 5
call fcn.004227bc
test eax, eax
jne 0x7e43ed
test byte [ebp - 0x258], 0x10
jne 0x7e43ed
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.004099c4
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409b74
mov esi, dword [ebp - 0x258]
test esi, 1
je 0x7e43e5
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 4]
call fcn.0040990c
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 4]
call fcn.00421eac
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x7e437d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e4423
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e4450
lea eax, [ebp - 0x260]
mov edx, 2
call fcn.004088a4
lea eax, [ebp - 4]
call fcn.00408844
ret
Function at 0x7e448c
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x7e458a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.00408844
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.005e10fc
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x7e45a4
call fcn.00422b14
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00409b74
mov eax, dword [ebp - 8]
call fcn.0040990c
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x7e452a
test esi, 0x10
jne 0x7e455a
test esi, 1
je 0x7e452a
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 8]
call fcn.0040990c
push eax
call sub.kernel32.dll_SetFileAttributesW
push 1
mov eax, dword [ebp - 8]
call fcn.0040990c
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040990c
push eax
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x7e4554
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00408c24
jmp 0x7e4567
inc edi
cmp edi, 0xa
je 0x7e4567
inc ebx
cmp ebx, 0x3e8
jne 0x7e44cb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e4591
lea eax, [ebp - 0x14]
call fcn.00408844
lea eax, [ebp - 8]
mov edx, 2
call fcn.004088a4
ret
Function at 0x401060
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
push ebx
push esi
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, dword [esp + 0x38]
mov edi, 0x3e8
push edi
push esi
mov dword [0x40a0f4], esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov ebx, dword [esp + 0x3c]
mov dword [0x40a0fc], eax
test ebx, ebx
jne 0x4010f7
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push str.AMCapIcon
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], 6
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], 0x100b
mov dword [esp + 0x14], 0x401340
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x4010f7
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
push 0xc
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0
mov dword [0x40a350], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x40a350]
mov edi, eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x4098e8
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
push esi
push 0
push 0
mov edi, dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x12c
push 0x140
push 0
push 0x80000000
push 0x2cf0000
push str.AMCAP
push 0x3e8
push 0
call edi
push ebx
push esi
mov dword [0x409920], eax
call fcn.00406120
mov edx, dword [0x409920]
add esp, 8
push 0
push esi
push 0
push edx
push 0
push 0
push 0
push 0
push 0x54800000
push 0
push str.StatusClass
push 0
call edi
test eax, eax
mov dword [0x40a0f8], eax
jne 0x4011a5
pop edi
pop esi
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x40]
mov ecx, dword [0x409920]
push eax
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x104
push 0x40a100
push 0x40a35c
push str.CaptureFile
push str.annie
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProfileIntA]
push 0
push str.VideoDevice
push str.annie
mov dword [0x40a25c], 0xffffffff
mov dword [0x40a260], 0xffffffff
call esi
push 0
push str.AudioDevice
push str.annie
mov edi, eax
call esi
mov ebx, eax
call fcn.00403a30
push 1
push str.CaptureAudio
push str.annie
call esi
push 1
push str.WantPreview
push str.annie
mov dword [0x40a254], eax
call esi
push 0xffffffffffffffff
push str.MasterStream
push str.annie
mov dword [0x40a270], eax
call esi
push ebx
push edi
mov dword [0x40a240], eax
mov dword [0x40a2f8], 1
mov dword [0x40a268], 0
mov dword [0x40a26c], 0x403e0000
call fcn.00403850
add esp, 8
call fcn.00401000
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret
Function at 0x406440
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xa8
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb8]
lea eax, [esp + 0xc]
push edi
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x38]
push 0x80
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
mov edi, eax
call ebx
push eax
mov esi, dword [esp + 0xc4]
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0x12
call ebx
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [0x40a364]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push esi
call ebp
push 0
push edi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
inc eax
dec ecx
inc edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x40]
lea edx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
push edx
push 2
push 1
dec eax
push 4
push esi
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov eax, dword [0x40a36c]
mov edx, dword [esp + 0x14]
sub edi, ebx
mov ebx, dword [esp + 0x1c]
push eax
push esi
sub ebx, edx
call ebp
mov ebp, dword [sym.imp.GDI32.dll_PatBlt]
push 0xf00021
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push 1
push ecx
push edx
push esi
mov dword [esp + 0x3c], eax
call ebp
push 0xf00021
push 1
mov eax, dword [esp + 0x1c]
push edi
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push esi
call ebp
mov edx, dword [0x40a360]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
dec ebx
push 0xf00021
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebx
inc eax
push 1
dec ecx
push eax
push ecx
push esi
call ebp
push 0xf00021
dec edi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 1
dec edx
push edi
inc eax
push edx
push eax
push esi
call ebp
mov eax, dword [esp + 0x20]
test eax, eax
je 0x406586
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x406596
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret 8
Function at 0x401e70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x401ebe
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x4221d4
call fcn.00402340
add esp, 0xc
xor eax, eax
jmp 0x401eda
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401ee0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x401f3f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x4221f0
call fcn.00402340
add esp, 0xc
xor eax, eax
jmp 0x401ff6
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jbe 0x401fe9
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call fcn.0040eaf7
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401f99
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.alloc_memory_errors__d__s_r_n
call fcn.00402340
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x401ff6
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x401fe9
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x422228
call fcn.00402340
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040ea1a
add esp, 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x401ff6
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x402000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x402051
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x422240
call fcn.00402340
add esp, 0xc
xor eax, eax
jmp 0x4020dd
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40208e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x42225c
call fcn.00402340
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x4020dd
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4020d0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.ReadFile_errors__d__s_r_n
call fcn.00402340
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x4020dd
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4020f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x402145
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x422290
call fcn.00402340
add esp, 0xc
xor eax, eax
jmp 0x402194
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x402187
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x4222ac
call fcn.00402340
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x402194
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4021a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4021f8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CreateFile_errors__d__s_r_n
call fcn.00402340
add esp, 0xc
xor eax, eax
jmp 0x402282
push 2
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x402233
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.SetFilePoint_Errors__d__s_r_n
call fcn.00402340
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x402282
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x402275
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.WriteFile_errors__d__s_r_n
call fcn.00402340
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x402282
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4024a0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4024ca
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
jmp 0x4024cf
mov eax, 0x422f0e
mov esp, ebp
pop ebp
ret

Function at 0x402570
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402591
xor eax, eax
jmp 0x4025fb
lea ecx, [ebp - 0x1c]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x4025b4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x4025fb
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4025f6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x4025fb
mov eax, 1
mov esp, ebp
pop ebp
ret