joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db1f0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x428134]
call fcn.004082d0
xor eax, eax
push ebp
push 0x4db33a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x53db7c], 0
jne 0x4db244
mov ecx, dword [0x53ea78]
mov dl, 1
mov eax, dword [0x417038]
call fcn.004222ec
call fcn.004066dc
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00404d68
mov eax, ebx
call fcn.004079ac
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4db348
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040a4b4
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4db28b
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4db2e0
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4db2d9
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.00407c48
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.00407c0c
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.0041d098
test eax, eax
jne 0x4db2d9
mov ebx, 0x15
jmp 0x4db2e5
mov ebx, 0x10
jmp 0x4db2e5
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x53db7c]
call fcn.004db05c
mov eax, dword [ebp - 4]
call fcn.004db05c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040a4cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db341
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00407038
lea eax, [ebp - 0xc]
mov edx, dword [0x428134]
call fcn.004083a8
ret
Function at 0x4df6e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x4df6f8
add esp, 0xfffffff0
call fcn.004059d8
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4df812
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.0040442c
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x4df7fc
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.004db05c
xor eax, eax
push ebp
push 0x4df7e9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.004db05c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.00407c48
jmp 0x4df7ba
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.00407f74
mov eax, dword [ebx + 4]
call fcn.0040749c
dec eax
jle 0x4df7ce
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x4df7a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df7f0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df819
lea eax, [ebp - 4]
call fcn.00407020
ret

Function at 0x4e0858
Capabilities:
Hide graphical window

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
mov eax, ebx
call fcn.004dfe14
test byte [ebx + 0x2a5], 4
jne 0x4e08ed
mov edx, esp
mov eax, ebx
call fcn.0047d7f4
push esp
mov eax, ebx
call fcn.00486cdc
push eax
push 0
mov eax, ebx
test eax, eax
je 0x4e088d
sub eax, 0xfffffd14
push eax
push 0
push 0xfffffffffffffffb
mov eax, dword [ebx + 0x280]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
cmp dword [ebx + 0x294], 0
jne 0x4e08be
mov ecx, dword [0x53ece4]
mov dl, 1
mov eax, dword [0x4daa48]
call fcn.004222ec
call fcn.004066dc
mov eax, ebx
call fcn.004e14e8
cmp byte [ebx + 0x59], 0
jne 0x4e08f4
mov eax, ebx
call fcn.00486f40
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4e08f4
push 0
mov eax, ebx
call fcn.00486f40
push eax
call sub.user32.dll_ShowWindow
jmp 0x4e08f4
mov eax, ebx
call fcn.00482cac
add esp, 0x10
pop ebx
ret
Function at 0x4e8f34
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4e8f9b
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
call sub.user32.dll_GetWindowTextLengthW
mov ebx, eax
lea edi, [ebx + 1]
mov edx, edi
lea eax, [ebp - 4]
call fcn.00407ce4
push edi
mov eax, dword [ebp - 4]
call fcn.00407b68
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004073b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8fa2
lea eax, [ebp - 4]
call fcn.00406fd8
ret

Function at 0x4f3eec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
push 0x40
push 0x1000
push pe_nt_image_headers32
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4f3f76
xor edx, edx
push ebp
push 0x4f3f57
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov dword [eax], 0x448b5050
mov dword [eax + 4], 0x44890824
mov dword [eax + 8], 0x58b0424
lea edx, [ebx + 4]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0x8244489
mov dword [eax + 0x14], 0x25ff9058
mov dword [eax + 0x18], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f3f76
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4f5348
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xfffffecc
cmp byte [0x53dec4], 0
jne 0x4f5425
mov byte [0x53dec4], 1
xor eax, eax
mov dword [0x53deac], eax
mov dword [esp + 0xc], 0x114
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetVersionExW
cmp dword [esp + 0x10], 3
ja 0x4f5390
cmp dword [esp + 0x10], 3
jne 0x4f53fb
cmp dword [esp + 0x14], 0x33
jbe 0x4f53fb
mov dword [esp + 4], 0x12
push esp
push 0x20019
push 0
push 0x4f542c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4f5425
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x4f548c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4f5425
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp word [esp + 0x120], 0x31
jne 0x4f5425
cmp word [esp + 0x122], 0
jne 0x4f5425
jmp 0x4f5410
push 0
push 0x4f548c
push 0x4f5498
call sub.kernel32.dll_GetProfileIntW
test eax, eax
je 0x4f5425
mov eax, dword [0x53dea8]
call fcn.00407b68
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [0x53deac], eax
add esp, 0x134
ret
Function at 0x4faafc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4fab2a
mov eax, ebx
call fcn.004fb5b0
cmp dword [ebx + 0x40], 0
je 0x4fab23
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4fab9b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4fab8d
cmp dword [ebx + 8], 0
je 0x4fab4c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4fab5e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4fab8d
cmp dword [ebx + 8], 0
je 0x4fab3f
cmp eax, 3
je 0x4fab71
dec eax
jne 0x4fab3f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4fab3f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4fab3f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4fabb9
cmp dword [ebx + 0x14], 0xcc
je 0x4fabb9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004fabc4
pop ebx
ret
Function at 0x50d1ec
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a528
mov eax, dword [ebp + 8]
call fcn.004070bc
xor eax, eax
push ebp
push 0x50d341
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
call fcn.0050b888
test al, al
je 0x50d31b
xor eax, eax
push ebp
push 0x50d30d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.0040a4b4
push eax
push 0x50d358
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax]
cmp dword [ebp - 8], 0
je 0x50d303
xor eax, eax
push ebp
push 0x50d2fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x45e4b0]
call fcn.00467e9c
mov ebx, eax
mov edx, dword [ebp + 0xc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, edi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0043f2b8
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, ebx
call fcn.004687bc
call fcn.00462b70
push eax
push esi
push 0
push 0
push 1
push 1
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50d303
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 8]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50d31b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50d348
lea eax, [ebp - 8]
call fcn.0040a4b4
lea eax, [ebp - 4]
call fcn.0040a4b4
lea eax, [ebp + 8]
call fcn.00406fd8
ret
Function at 0x50e1c8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004070bc
xor eax, eax
push ebp
push 0x50e38a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov dl, 1
mov eax, dword [0x4544d0]
call fcn.00456564
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x50e35b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x18]
call fcn.0045664c
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, 0x50e3a8
call fcn.00407dbc
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov eax, dword [ebp - 0x18]
call fcn.00456794
lea ecx, [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.00457110
mov eax, dword [ebp - 0x18]
call fcn.0045661c
push 0x50e3a8
push dword [ebp - 4]
push 0x50e3d8
push dword [ebp - 8]
push 0x50e3e8
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.00407e44
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov eax, dword [ebp - 0x18]
call fcn.00456794
lea ecx, [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.00457110
mov eax, dword [ebp - 0x18]
call fcn.0045661c
cmp dword [ebp - 8], 0
je 0x50e345
mov edx, dword [ebp - 8]
mov eax, 0x50e41c
call fcn.00408098
test eax, eax
jle 0x50e2fd
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x50e41c
call fcn.00408098
mov ecx, eax
sub ecx, 2
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00407f2c
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x50e2de
sub ebx, 4
mov ebx, dword [ebx]
mov esi, dword [ebp - 8]
test esi, esi
je 0x50e2ea
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 0xc]
push eax
lea edx, [ebx + 1]
mov ecx, esi
mov eax, dword [ebp - 8]
call fcn.00407f2c
jmp 0x50e310
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00407400
lea eax, [ebp - 0xc]
call fcn.00406fd8
mov byte [ebp - 0x11], 1
push 5
push 0x50e420
mov eax, dword [ebp - 0xc]
call fcn.00407b68
push eax
mov eax, dword [ebp - 0x10]
call fcn.00407b68
push eax
push 0x50e424
mov eax, dword [0x53ee50]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e362
mov eax, dword [ebp - 0x18]
call fcn.004054a8
ret
Function at 0x50e430
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov ebx, ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a528
xor eax, eax
push ebp
push 0x50e586
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x230]
call fcn.0040a4b4
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x48]
call fcn.0040a5c4
mov eax, dword [ebp - 0x230]
call fcn.0050b888
test al, al
je 0x50e552
test bl, bl
je 0x50e4ca
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push 2
push 7
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xd8]
call fcn.0040a5c4
jmp 0x50e4e7
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 7
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xd8]
call fcn.0040a5c4
xor esi, esi
call sub.kernel32.dll_GetTickCount_1
mov edi, eax
call sub.user32.dll_GetForegroundWindow
mov ebx, eax
push 0x200
lea eax, [ebp - 0x22c]
push eax
push ebx
call sub.user32.dll_GetClassNameW
mov eax, 0x50e5a0
call fcn.00407b68
push eax
lea eax, [ebp - 0x22c]
push eax
call sub.kernel32.dll_lstrcmpW
test eax, eax
jne 0x50e526
mov esi, ebx
mov eax, dword [0x53ee50]
mov eax, dword [eax]
call fcn.004d5504
call sub.kernel32.dll_GetTickCount_1
test esi, esi
jne 0x50e544
sub eax, edi
cmp eax, 0x1b58
jbe 0x50e4f0
test esi, esi
je 0x50e552
mov eax, dword [ebp - 0x2c]
push eax
push esi
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e58d
lea eax, [ebp - 0x230]
call fcn.0040a4b4
lea eax, [ebp - 0x28]
mov edx, dword [0x4012b4]
mov ecx, 2
call fcn.004083f8
lea eax, [ebp - 4]
call fcn.0040a4b4
ret

Function at 0x50f5bc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004070bc
xor eax, eax
push ebp
push 0x50f60c
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407b68
push eax
push 0x50f618
push ebx
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f613
lea eax, [ebp - 4]
call fcn.00406fd8
ret
Function at 0x50ff48
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004070bc
mov eax, dword [ebp - 8]
call fcn.004070bc
xor eax, eax
push ebp
push 0x50ffd6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x50ffaf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00407b68
push eax
mov eax, dword [ebp - 4]
call fcn.00407b68
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50ffbb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ffdd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407038
ret

Function at 0x5105c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404d68
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x104
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], 1
mov eax, 0x104
call fcn.0041e4c4
mov ebx, eax
xor eax, eax
push ebp
push 0x51064b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor ecx, ecx
mov edx, 0x208
call fcn.00404d68
push 0xffffffffffffffff
push esi
push ebx
mov eax, dword [ebp - 0x38]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
test eax, eax
je 0x510635
mov dword [ebp - 4], ebx
jmp 0x51063d
mov eax, 0x51065c
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510652
ret
Function at 0x510660
Capabilities:
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004070bc
xor eax, eax
push ebp
push 0x51077f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
call sub.wininet.dll_FindFirstUrlCacheEntryW
mov eax, dword [ebp - 0xc]
call fcn.00404444
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0
call sub.wininet.dll_FindFirstUrlCacheEntryW
mov esi, eax
test esi, esi
je 0x5106de
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 4]
call fcn.00407bb8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00407ef4
jne 0x5106de
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 8]
call fcn.00407bb8
mov eax, ebx
call fcn.00404460
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x51075c
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call sub.wininet.dll_FindNextUrlCacheEntryW
call sub.kernel32.dll_GetLastError_1
mov edi, eax
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
jne 0x510754
mov eax, dword [ebp - 0xc]
call fcn.00404444
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
call sub.wininet.dll_FindNextUrlCacheEntryW
test eax, eax
je 0x51074d
lea eax, [ebp - 0x14]
mov edx, dword [ebx + 4]
call fcn.00407bb8
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00407ef4
jne 0x51074d
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 8]
call fcn.00407bb8
jmp 0x51075c
mov eax, ebx
call fcn.00404460
cmp edi, 0x103
jne 0x5106ed
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510786
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407038
lea eax, [ebp - 4]
call fcn.00406fd8
ret
Function at 0x510b30
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe4c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1b4], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x510caa
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x510b87
mov eax, dword [ebp - 0xc]
mov edx, 0x510cc8
call fcn.004073b8
jmp 0x510c89
xor eax, eax
push ebp
push 0x510c82
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x510bbd
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 0x104
call fcn.00407858
push 0x104
mov eax, dword [ebp - 4]
call fcn.004077b4
push eax
call sub.wsock32.dll_gethostname
mov eax, dword [ebp - 4]
call fcn.004077b4
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
test ebx, ebx
je 0x510c2e
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00407c28
mov eax, dword [esi]
call fcn.00407b68
call fcn.0041e058
mov edx, eax
mov eax, esi
call fcn.00407ce4
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1ac], eax
push dword [ebp - 0x1ac]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1b4]
mov ecx, 0
call fcn.00407630
mov edx, dword [ebp - 0x1b4]
mov eax, dword [ebp - 8]
call fcn.00407c28
mov byte [ebp - 0xd], 1
jmp 0x510c6f
call sub.wsock32.dll_WSAGetLastError
sub eax, 0x2734
je 0x510c62
sub eax, 0xe
je 0x510c53
sub eax, 0x2b
jne 0x510c6f
mov eax, dword [ebp - 0xc]
mov edx, 0x510d0c
call fcn.004073b8
jmp 0x510c6f
mov eax, dword [ebp - 0xc]
mov edx, 0x510d3c
call fcn.004073b8
jmp 0x510c6f
mov eax, dword [ebp - 0xc]
mov edx, 0x510d60
call fcn.004073b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510c89
call sub.wsock32.dll_WSACleanup
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510cb1
lea eax, [ebp - 0x1b4]
call fcn.00406ffc
lea eax, [ebp - 4]
call fcn.00406ffc
ret

Function at 0x510d80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x510e01
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00406fd8
lea eax, [ebp - 8]
call fcn.00406fd8
push 0x510e1c
push dword [ebp - 4]
push 0x510e4c
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00407e44
push 1
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00407b68
push eax
push 0x510e5c
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
seta bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510e08
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407038
ret
Function at 0x512a10
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov byte [ebp - 1], 0
xor eax, eax
push ebp
push 0x512a50
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 7
push 0
lea eax, [ebp - 8]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x512a5a
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x513cfc
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004070bc
mov eax, dword [ebp - 8]
call fcn.004070bc
mov eax, dword [ebp - 0xc]
call fcn.004070bc
xor eax, eax
push ebp
push 0x513e2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.00407b68
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 3
mov eax, dword [ebp - 0xc]
call fcn.00407b68
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
call fcn.004c155c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00407b68
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x513e10
xor eax, eax
push ebp
push 0x513e09
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
push 0
call sub.wininet.dll_InternetSetOptionW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x513de9
push 0
push 0
push 0x25
push 0
call sub.wininet.dll_InternetSetOptionW
test eax, eax
jne 0x513ded
xor eax, eax
jmp 0x513def
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513e10
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513e32
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407038
ret