joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415610
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4546c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc2c
mov eax, dword [0x46a850]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc34], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x818], 0x3ff
push 0x400
push 0
lea eax, [ebp - 0xc24]
push eax
call fcn.0043b1e0
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x814]
push ecx
call fcn.0043b1e0
add esp, 0xc
push 0x3ff
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc24]
push eax
call fcn.0043fe80
add esp, 0xc
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0x814]
push edx
lea eax, [ebp - 0xc24]
push eax
mov ecx, dword [ebp - 0xc34]
call fcn.004145e0
lea ecx, [ebp - 0x814]
push ecx
call fcn.0043dc1e
add esp, 4
mov dword [ebp - 0x818], eax
cmp dword [ebp + 8], 0
jne 0x4156dd
mov dword [ebp - 0xc38], 0
jmp 0x4156e9
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0xc38], eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc38]
push ecx
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 0x820], eax
push 0
push 0
push 0
mov edx, dword [ebp - 0x820]
push edx
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 0x820], eax
push 0x808
call fcn.0041c9f4
add esp, 4
mov dword [ebp - 0xc28], eax
mov eax, dword [ebp - 0xc28]
mov dword [ebp - 0x81c], eax
lea ecx, [ebp - 0x814]
push ecx
mov edx, dword [ebp - 0x81c]
push edx
call fcn.0043b1b8
add esp, 8
mov eax, dword [ebp - 0x81c]
mov ecx, dword [ebp - 0x820]
mov dword [eax + 0x800], ecx
mov edx, dword [ebp - 0x81c]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x804], eax
push 0
push 0
mov ecx, dword [ebp - 0x81c]
push ecx
push 0x4157d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc2c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004077e0
mov eax, dword [ebp - 0xc2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043b25a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4248a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4248ee
call fcn.0042797c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4248ee
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42490a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00424421
mov esi, eax
test edi, edi
je 0x424908
test ebx, ebx
je 0x424908
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4250ad
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x454dc1
call fcn.00440293
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4250d2
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x425118
lea ecx, [ebp - 0x10]
call fcn.00406890
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041cadf
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004045c0
mov eax, esi
call fcn.0044036b
ret 8

Function at 0x425a41
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x425a89
call fcn.0042797c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x425a89
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x425acc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x425ab5
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x425ab5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x425ac9
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x426fae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x426fd2
cmp dword [edi + 0x54], 0
jne 0x426fd2
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042797c
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00426f6f
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43b25a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46a850]
jne 0x43b264
repz ret
jmp fcn.004416b4

Function at 0x44ddc3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004423c2
and dword [ebp - 4], 0
cmp dword [0x46ec60], 0
mov ebx, eax
jne 0x44de74
push 0x45d304
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44df25
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45d2f8
push edi
call esi
test eax, eax
je 0x44df25
push eax
call fcn.00442350
mov dword [esp], 0x45d2e8
push edi
mov dword [0x46ec60], eax
call esi
push eax
call fcn.00442350
mov dword [esp], 0x45d2d4
push edi
mov dword [0x46ec64], eax
call esi
push eax
call fcn.00442350
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46ec68], eax
call esi
push eax
call fcn.00442350
pop ecx
mov dword [0x46ec70], eax
test eax, eax
je 0x44de74
push 0x45d2a0
push edi
call esi
push eax
call fcn.00442350
pop ecx
mov dword [0x46ec6c], eax
mov eax, dword [0x46ec6c]
cmp eax, ebx
je 0x44decc
cmp dword [0x46ec70], ebx
je 0x44decc
push eax
call fcn.004423cb
push dword [0x46ec70]
mov esi, eax
call fcn.004423cb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44decc
test edi, edi
je 0x44decc
call esi
test eax, eax
je 0x44dec3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44dec3
test byte [ebp - 0xc], 1
jne 0x44decc
or dword [ebp + 0x10], 0x200000
jmp 0x44df05
mov eax, dword [0x46ec64]
cmp eax, ebx
je 0x44df05
push eax
call fcn.004423cb
pop ecx
test eax, eax
je 0x44df05
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44df05
mov eax, dword [0x46ec68]
cmp eax, ebx
je 0x44df05
push eax
call fcn.004423cb
pop ecx
test eax, eax
je 0x44df05
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46ec60]
call fcn.004423cb
pop ecx
test eax, eax
je 0x44df25
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44df27
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x451afc
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x45e4b0
call fcn.00452dd4
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x451b68
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x451b40
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x451b6e
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x451b38
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x451b38
mov al, 1
jmp 0x451b3a
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.00452e0f
ret
Function at 0x451c70
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
mov ebx, 0x10000
jbe 0x451c93
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x451c96
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x451ca9
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x451cb0
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x46ecc0]
test eax, eax
mov ecx, dword [0x46ecbc]
jne 0x451cca
test ecx, ecx
je 0x451cdf
mov eax, ecx
mov dword [0x46ecc0], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x451cdf
cmp edx, dword [ebp - 4]
jb 0x451cdf
cmp edx, dword [ebp - 8]
jbe 0x451db3
mov eax, ecx
test ecx, ecx
jmp 0x451d03
test eax, eax
je 0x451cfe
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x451cfe
cmp ecx, dword [ebp - 4]
jb 0x451cfe
cmp ecx, dword [ebp - 8]
jbe 0x451db3
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x46ecc0], eax
jne 0x451ce5
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x451e4e
cmp edi, 0x70000000
jb 0x451d33
cmp edi, 0x80000000
ja 0x451d33
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x451e4e
cmp dword [ebp - 0x30], ebx
jne 0x451d52
cmp dword [ebp - 0x34], ebx
jae 0x451d65
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x451d1e
jmp 0x451e4e
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x46ecc0], eax
je 0x451e4e
mov ecx, dword [0x46ecbc]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x46ecbc], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x451da5
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x451e53
cmp esi, dword [ebp - 8]
ja 0x451e53
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.0043b1e0
add esp, 0xc
mov eax, esi
jmp 0x451e55
cmp esi, 0x70000000
jb 0x451df7
cmp esi, 0x80000000
ja 0x451df7
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x451e53
cmp dword [ebp - 0x14], ebx
jne 0x451e45
cmp dword [ebp - 0x18], ebx
jb 0x451e45
mov ecx, esi
and ecx, 0xffff
je 0x451e29
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x46ecc0], eax
jne 0x451d81
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x451de2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x451e7b
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x45e4c0
call fcn.00452dd4
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x451ed6
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x451ed2
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x451ed2
cmp word [eax + 0x14], 0
jne 0x451ec7
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x451ed8
mov eax, ecx
jmp 0x451ec1
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.00452e0f
ret

Function at 0x451ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x46ecc8], edi
jne 0x451f13
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x46ecc8
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x451f1a
mov eax, 0x10dd
jmp 0x451f5e
push esi
mov esi, dword [0x46ecbc]
mov dword [0x46ecc4], edi
mov dword [0x46ecd8], edi
mov dword [0x46ecd4], edi
mov dword [0x46eccc], edi
mov dword [0x46ecd0], edi
jmp 0x451f57
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x451f41
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x451f61
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x46ecc8], eax
je 0x451f77
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x46ecd8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x451fc2
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x451fb3
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x451fb3
call fcn.00451e5a
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.0041ca23
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x451f86
mov dword [0x46ecd8], ebx
call fcn.00451c49
mov esi, dword [0x46ecd4]
cmp esi, ebx
je 0x451fef
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.0041ca23
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x451fd7
pop edi
pop esi
mov dword [0x46ecd4], ebx
mov dword [0x46ecc8], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x452242
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x46eccc]
test eax, eax
jne 0x4522b2
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x45225e
xor eax, eax
jmp 0x4522b1
push esi
push 8
call fcn.0041c9f4
mov esi, eax
test esi, esi
pop ecx
jne 0x452272
push 8
pop edi
jmp 0x45228d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x45229e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.0041ca23
pop ecx
and dword [0x46ecd0], 0
mov dword [0x46eccc], edi
mov eax, edi
jmp 0x4522b0
mov eax, dword [0x46ecd4]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x46ecd4], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x404df0
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4514a2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.00405350
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0
push 0x454f04
mov edx, dword [ebp - 0x54]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00402a40
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.0041cea0
lea ecx, [ebp - 0x10]
call fcn.004031d0
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
push ecx
push 8
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], 0
je 0x404f90
mov dword [ebp - 0x20], 0
mov edx, 1
test edx, edx
je 0x404f86
lea ecx, [ebp - 0x2c]
call fcn.004031d0
mov byte [ebp - 4], 4
mov dword [ebp - 0x34], 0x104
mov dword [ebp - 0x30], 0x104
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.00403230
push eax
push 0
lea edx, [ebp - 0x34]
push edx
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00403230
push eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x404f02
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041cea0
jmp 0x404f86
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403bd0
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403bd0
lea ecx, [ebp - 0x18]
call fcn.00403250
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x10]
call fcn.00404730
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
call fcn.00407d70
push eax
lea ecx, [ebp - 0x18]
call fcn.00405130
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x39], al
lea ecx, [ebp - 0x40]
call fcn.0041cea0
movzx ecx, byte [ebp - 0x39]
test ecx, ecx
je 0x404f75
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041cea0
jmp 0x404f86
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041cea0
jmp 0x404e8e
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
je 0x404fce
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00407d70
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.00404b70
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0041cea0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041cea0
mov eax, dword [ebp - 0x44]
jmp 0x404ff3
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0041cea0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041cea0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x405010
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4514b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x10]
call fcn.004031d0
mov dword [ebp - 4], 0
push str.SoftwareMicrosoftInternet_ExplorerMain
lea eax, [ebp - 0x10]
push eax
call fcn.00403b30
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
push 2
push 0
lea ecx, [ebp - 0x10]
call fcn.00407d70
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], 0
je 0x4050c3
mov edx, dword [ebp + 8]
push edx
call fcn.00433210
add esp, 4
add eax, 1
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
push str.Start_Page
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041cea0
mov eax, dword [ebp - 0x18]
jmp 0x4050dc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041cea0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x405e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
call fcn.00409d10
mov dword [ebp - 0x10], eax
push str.Image
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405ea1
xor eax, eax
jmp 0x405f05
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00406c00
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00406c60
push eax
call fcn.00433890
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.004292d0
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x40be90
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0x43
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [0x455208]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0
jmp 0x40bece
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0x1a
jge 0x40bf43
mov edx, 1
mov ecx, dword [ebp - 0x1c]
shl edx, cl
and edx, dword [ebp - 4]
je 0x40bf41
mov eax, dword [ebp - 0x1c]
add eax, 0x41
mov byte [ebp - 8], al
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jne 0x40bf41
mov dword [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
push eax
push 0
push 0
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x14]
jb 0x40bf41
ja 0x40bf2f
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
jbe 0x40bf41
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov al, byte [ebp - 8]
mov byte [ebp - 9], al
jmp 0x40bec5
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x40bff0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x46a4c0]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], 0x9c
mov ecx, 0x26
xor eax, eax
lea edi, [ebp - 0xa4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 6
jb 0x40c047
cmp dword [ebp - 0xa0], 1
jb 0x40c047
mov eax, 1
jmp 0x40c049
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.00434040
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40e800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0
push 2
push 0
push 3
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40e86c
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
call fcn.00406c20
test eax, eax
je 0x40e862
push 0
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406c20
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00406c60
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 8