joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446540
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x483c18
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x446579
inc eax
mov dword [esi + 0x10], eax
jmp 0x44668c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x44658d
mov eax, 0xffffffc7
jmp 0x44668e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x44659e
cmp dword [esi + 8], eax
jne 0x44658d
cmp dword [esi + 8], eax
jne 0x4465b7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4465b7
mov eax, 0xffffffc7
jmp 0x44668e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4465cb
push eax
mov ecx, ebx
call fcn.00445d70
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00415440
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4465fc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00415460
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004454e0
test eax, eax
mov dword [esp + 0x38], eax
je 0x44662f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5d7d88
call fcn.00415640
mov eax, dword [esp + 0x38]
jmp 0x44668e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004463a0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x446673
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004463c0
mov esi, eax
test esi, esi
jne 0x4466a3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004463a0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x446645
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5d7d88
call fcn.00415640
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5d7d88
call fcn.00415640
mov eax, esi
jmp 0x44668e

Function at 0x449900
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x449960
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x449960
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x449960
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x449960
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4499a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x44f8c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4842b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047ce55
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044f260
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0047cd83
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00479644
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00479644
push 1
push 0
push 0
mov ecx, esi
call fcn.004795ec
push 1
push 0
push 1
mov ecx, esi
call fcn.004795ec
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047cec7
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44fa40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4842d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047ce55
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044f260
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0047cd83
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x44fb04
cmp dword [esp + 0x40], 1
jne 0x44fb02
cmp ecx, eax
jge 0x44fb04
mov eax, ecx
cmp eax, 0xc8
jge 0x44fb10
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044f8c0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047cec7
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x450280
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x484343
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00477a65
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047d0fd
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047e619
test eax, eax
je 0x45039c
mov ecx, dword [esp + 0x3c]
call fcn.0047d12a
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x450360
push edi
mov ecx, esi
call fcn.0047a78b
mov ecx, esi
call fcn.00450500
cmp dword [esp + 0x38], 1
jne 0x450395
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047a8c6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x452db0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x452de3
push esi
call fcn.00455ec0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x452ddc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x452e69
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x452e52
mov eax, dword [esi + 8]
test eax, eax
je 0x452e07
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x452e4e
cmp eax, 2
je 0x452e52
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x452dfa
cmp eax, 3
je 0x452e2d
cmp eax, 1
jne 0x452dfa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x452dfa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x452dfa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00452e90
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x452e78
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00452e90
add esp, 4
pop esi
ret

Function at 0x45e9a0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45ea43
test eax, eax
jbe 0x45ea43
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45ea43
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45e9ee
xor esi, esi
jmp 0x45e9f4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45ea1f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00415e70
add esi, eax
push esi
mov ebx, esi
call fcn.00415e70
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45ea00
pop ebp
test edi, edi
pop edi
jne 0x45ea43
test ebx, ebx
je 0x45ea43
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004674f0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x45eba5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45ecbd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45ecbd
mov eax, dword [esi + 0x3c]
push eax
call fcn.00477eb7
mov esi, eax
test esi, esi
je 0x45ecbd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45ecbd
mov ecx, esi
call fcn.0045eb30
cmp edi, eax
jge 0x45ecbd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45ec43
mov dword [esp + 0x34], 1
jmp 0x45ec9e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45ecbd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045e0f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4622d0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x46231a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x462349
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x46238b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x47885a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x478892
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004768e7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004768bf
jmp 0x47889e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x479f48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x479f8a
call fcn.0047fa04
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x479f8a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x479f81
xor eax, eax
jmp 0x479f92
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00479f98
pop edi
pop esi
pop ebx
ret 4

Function at 0x47ff34
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47ff62
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47ff80
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047fe9a
jmp 0x47ff80
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47ff80
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047fe9a
test edi, edi
mov eax, edi
jne 0x47ff6a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4010ad
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.00401a60
push ebx
xor ebx, ebx
push 0x4000000
push ebx
push ebx
push 1
push str.W5zlaXf8
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x4010f5
push 0x10
push 0x4081a4
push 0x4091a0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4012a2
push esi
push edi
lea eax, [ebp - 0x1030]
push 0x408138
push eax
call fcn.00401970
lea eax, [ebp - 0x1030]
push eax
call fcn.004012a8
mov edi, eax
mov al, byte [0x409f40]
add esp, 0xc
test al, al
je 0x40114a
mov esi, 0x409f40
movzx eax, al
push eax
lea eax, [ebp + edi - 0x1030]
push str._02X
push eax
call fcn.00401918
add esp, 0xc
add edi, eax
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x401127
push ebx
push 0x84000000
push ebx
lea eax, [ebp - 0x1030]
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x401192
push 0x409174
lea eax, [ebp - 0x1030]
push eax
call fcn.00401918
pop ecx
lea eax, [ebp - 0x1030]
pop ecx
push 0x10
push 0x4081a4
push eax
push dword [ebp + 8]
jmp 0x401259
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x30]
push 0x1f
push ecx
push eax
call esi
cmp eax, 1
je 0x4011b1
push 0x409140
jmp 0x40116e
push 0x17
lea eax, [ebp - 0x28]
push 0x409128
push eax
call fcn.004018e0
add esp, 0xc
test eax, eax
je 0x4011cf
push 0x409100
jmp 0x40116e
lea eax, [ebp - 4]
mov ebx, 0x104
push eax
push ebx
xor edi, edi
push 0x409e20
push dword [ebp - 8]
call esi
cmp eax, 1
jne 0x401205
cmp dword [ebp - 4], 0
je 0x401228
add edi, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
mov eax, ebx
sub eax, edi
push eax
lea eax, [edi + 0x409e20]
push eax
jmp 0x4011e0
lea eax, [ebp - 0x1030]
push 0x4090cc
push eax
call fcn.00401918
pop ecx
lea eax, [ebp - 0x1030]
pop ecx
push 0x10
push 0x4081a4
push eax
jmp 0x401253
and byte [edi + 0x409e20], 0
push 7
push str.http:__
push 0x409e20
call fcn.004018e0
add esp, 0xc
test eax, eax
je 0x401261
push 0x10
push 0x4081a4
push 0x409078
push dword [0x409f24]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40128a
call fcn.004017da
mov esi, eax
test esi, esi
je 0x40128a
push dword [ebp - 0x2c]
push str.Install_Volume
push esi
call fcn.00401841
push esi
call fcn.00401814
add esp, 0x10
mov dword [ebp - 0x10], 1
cmp dword [ebp - 8], 0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x40129b
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
mov eax, dword [ebp - 0x10]
pop ebx
leave
ret
Function at 0x401814
Capabilities:
Terminate process

Disassembly:
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40183d
push 0x10
push str.reg_close_error
push 0x409350
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 2
call fcn.00401abc
push 1
pop eax
ret

Function at 0x401841
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40188c
push dword [ebp + 0xc]
lea eax, [ebp - 0x64]
push 0x409398
push eax
call fcn.00401918
add esp, 0xc
lea eax, [ebp - 0x64]
push 0x10
push str.reg_int_save_error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
leave
ret
push 1
pop eax
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403684
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004020ca
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4036a5
test byte [esp + 8], 2
je 0x4036a5
mov dword [0x409c64], 0xd
mov dword [0x409c68], 5
jmp 0x403680
xor eax, eax
ret

Function at 0x404129
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409610
cmp edx, dword [eax]
je 0x40414b
add eax, 8
inc ecx
cmp eax, 0x4096a0
jl 0x40413c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409610]
jne 0x404279
mov eax, dword [0x409cb8]
cmp eax, 1
je 0x404253
test eax, eax
jne 0x40417c
cmp dword [0x4093d4], 1
je 0x404253
cmp edx, 0xfc
je 0x404279
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4041b3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00401970
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00401f10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4041f6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401f10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4085c0
push edi
call fcn.00405fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00401970
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00401980
lea eax, [ebp - 0xa0]
push 0x4085a0
push eax
call fcn.00401980
push dword [esi + 0x409614]
lea eax, [ebp - 0xa0]
push eax
call fcn.00401980
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405f11
add esp, 0x2c
pop edi
jmp 0x404279
lea eax, [ebp + 8]
lea esi, [esi + 0x409614]
push 0
push eax
push dword [esi]
call fcn.00401f10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401a90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4097ab
mov eax, dword fs:[0]
push eax
sub esp, 0x49c
mov eax, dword [0x40e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x44
push 0
lea eax, [ebp - 0x484]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x401ae9
mov dword [ebp - 0x458], 1
xor edx, edx
mov word [ebp - 0x454], dx
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x484]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401ca4
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x401c89
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x494]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x48c]
push edx
lea eax, [ebp - 0x440]
push eax
call fcn.00401620
add esp, 8
mov dword [ebp - 4], 0
mov byte [ebp - 0x495], 1
movzx ecx, byte [ebp - 0x495]
test ecx, ecx
je 0x401c76
lea ecx, [ebp - 0x428]
call fcn.00404b20
mov byte [ebp - 4], 1
xor edx, edx
mov byte [ebp - 0x496], dl
push 0x40a344
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x496]
call fcn.00401d10
mov ecx, eax
call fcn.00403910
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
add esp, 8
mov dword [ebp - 0x49c], eax
cmp dword [ebp - 0x49c], 0
jne 0x401bf4
mov ecx, dword [ebp - 0x494]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x490]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.00404a30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00404a30
nop
jmp 0x401ca4
mov eax, dword [ebp - 0x49c]
push eax
push 0x400
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
test eax, eax
je 0x401c29
lea edx, [ebp - 0x410]
push edx
lea ecx, [ebp - 0x428]
call fcn.00404a10
nop
jmp 0x401bf4
mov eax, dword [ebp - 0x49c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
add esp, 4
push 0
lea ecx, [ebp - 0x440]
push ecx
lea ecx, [ebp - 0x428]
call fcn.00404900
cmp eax, 0xffffffff
jne 0x401c59
mov byte [ebp - 0x495], 0
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.00404a30
nop
jmp 0x401b56
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00404a30
nop
mov edx, dword [ebp - 0x494]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408891
mov esp, ebp
pop ebp
ret