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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov ebx, dword [eax + 0x48]
mov dword [esp + 4], 0x4094a4
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.0040399a
cmp word [ebx], 0
je 0x404d37
mov dword [ebp - 0x44], ebx
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x404cf6
mov esi, dword [ebp - 0x44]
lea edi, [ebp - 0x38]
mov ecx, 0x10
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x404d31
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 1
mov eax, dword [ebp - 0x44]
add eax, 0x10
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], eax
jmp 0x404d6a
cmp word [ebx], 0
jne 0x404cf3
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x30]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0x18]
cmp eax, dword [edx + 8]
jne 0x404d56
mov eax, dword [ecx + 0x28]
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], eax
jmp 0x404d6a
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x3c]
cmp ecx, eax
jne 0x404d37
mov eax, 0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x405479
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, esi
add eax, dword [esi + 0x3c]
mov edi, esi
add edi, dword [eax + 0x78]
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0040401e
test eax, eax
jne 0x4054e8
mov ebx, 0
cmp ebx, dword [edi + 0x18]
jae 0x405505
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0040401e
test eax, eax
je 0x4054ff
lea eax, [ebx + ebx]
add eax, dword [edi + 0x24]
movzx eax, word [eax + esi]
shl eax, 2
add eax, dword [edi + 0x1c]
add esi, dword [eax + esi]
mov eax, esi
jmp 0x40550a
inc ebx
cmp ebx, dword [edi + 0x18]
jb 0x4054c5
mov eax, 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x404890
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x150
mov eax, dword [0x45ce14]
xor eax, esp
mov dword [esp + 0x14c], eax
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov edx, dword [esp]
shl edx, 4
sub edx, dword [esp]
shl edx, 2
mov dword [0x45e2a8], edx
mov dword [0x45e2ac], edx
cmp eax, 2
jne 0x4048de
mov ecx, dword [esp + 0xa8]
shl ecx, 4
sub ecx, dword [esp + 0xa8]
jmp 0x4048ee
cmp eax, 1
jne 0x4048f6
mov ecx, dword [esp + 0x54]
shl ecx, 4
sub ecx, dword [esp + 0x54]
lea eax, [edx + ecx*4]
mov dword [0x45e2ac], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
push 6
push 0x45b400
push 0xe
push 0x400
call esi
push 6
push 0x45b40c
push 0xf
push 0x400
call esi
push 0xa0
lea eax, [esp + 0xb8]
push 0
push eax
call fcn.0041ff40
add esp, 0xc
lea eax, [esp + 0xb4]
push 0x50
push eax
push 0x1f
push 0x400
call esi
movzx eax, word [esp + 0xb4]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov ecx, dword [0x45e2a0]
cmp ax, 0x64
push 0x50
lea eax, [esp + 0xb8]
mov edi, 1
push eax
push 0x1003
cmove ecx, edi
push 0x400
mov dword [0x45e2a0], ecx
call esi
cmp word [esp + 0xb4], 0x48
mov eax, dword [0x45e2a4]
cmove eax, edi
cmp dword [0x45e2a0], 1
pop edi
mov dword [0x45e2a4], eax
pop esi
jne 0x4049ca
push 0x3c
push dword [0x45b138]
push 0x45b040
call fcn.0040a620
mov eax, dword [0x45e2a4]
add esp, 0xc
mov dword [0x45b144], 0x43fe00
cmp eax, 1
jne 0x4049ee
push 0x3c
push dword [0x45b140]
push str.hh:mm:ss_tt
call fcn.0040a620
mov eax, dword [0x45b140]
add esp, 0xc
mov dword [0x45e2bc], eax
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.0041e282
add esp, 0x150
ret
Function at 0x404be0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x994
mov eax, dword [0x45ce14]
xor eax, esp
mov dword [esp + 0x990], eax
push edi
mov edi, dword [esp + 0x9a0]
xor eax, eax
mov word [esp + 0x194], ax
lea eax, [esp + 0x9a8]
push eax
push 0
push dword [esp + 0x9ac]
lea eax, [esp + 0x1a0]
push 0xffffffffffffffff
push 0x400
push eax
call fcn.00404ff0
push dword [eax + 4]
push dword [eax]
call fcn.00424d5a
or ecx, 0xffffffff
add esp, 0x20
test eax, eax
cmovs eax, ecx
test eax, eax
jns 0x404c4e
xor eax, eax
mov word [esp + 0x992], ax
call fcn.004192e0
test al, al
je 0x404ce1
push ebx
push esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x404c75
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404c94
test edi, edi
je 0x404c7f
cmp word [edi], 0
jne 0x404c94
push 0xc8
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edi, [esp + 0xc]
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esp + 0x9a4]
mov ebx, eax
or ecx, 0x10000
lea eax, [esp + 0x19c]
push ecx
push edi
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
test ebx, ebx
je 0x404cc7
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x990]
xor ecx, esp
call fcn.0041e282
add esp, 0x994
ret
mov ecx, dword [esp + 0x99c]
and ecx, 0xf
cmp ecx, 4
je 0x404d14
cmp ecx, 3
je 0x404d14
xor eax, eax
cmp ecx, 5
pop edi
sete al
inc eax
mov ecx, dword [esp + 0x990]
xor ecx, esp
call fcn.0041e282
add esp, 0x994
ret
mov ecx, dword [esp + 0x994]
mov eax, 6
pop edi
xor ecx, esp
call fcn.0041e282
add esp, 0x994
ret

Function at 0x404d50
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x194
mov eax, dword [0x45ce14]
xor eax, esp
mov dword [esp + 0x190], eax
push ebp
mov ebp, dword [esp + 0x1ac]
push esi
mov esi, dword [esp + 0x1a0]
push edi
mov edi, dword [esp + 0x1b0]
call fcn.004192e0
test al, al
je 0x404e0c
test esi, esi
jne 0x404da5
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x404da5
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404dc4
test edi, edi
je 0x404daf
cmp word [edi], 0
jne 0x404dc4
push 0xc8
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edi, [esp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esp + 0x1ac]
mov ebx, eax
or ecx, 0x10000
push ecx
push edi
push ebp
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
test ebx, ebx
je 0x404df1
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0041e282
add esp, 0x194
ret
mov eax, dword [esp + 0x1ac]
test eax, eax
jne 0x404e4f
mov ecx, dword [esp + 0x1a8]
and ecx, 0xf
cmp ecx, 4
je 0x404e4a
cmp ecx, 3
je 0x404e4a
cmp ecx, 5
pop edi
sete al
pop esi
inc eax
pop ebp
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0041e282
add esp, 0x194
ret
mov eax, 6
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041e282
add esp, 0x194
ret
Function at 0x406b10
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x406c27
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
movzx ecx, di
shr edi, 0x10
test ebp, ebp
je 0x406c1c
push ebx
mov edx, 0x15b0
cmp ebp, edx
cmovb edx, ebp
sub ebp, edx
cmp edx, 0x10
jb 0x406bde
mov ebx, edx
shr ebx, 4
movzx eax, byte [esi]
sub edx, 0x10
add ecx, eax
movzx eax, byte [esi + 1]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 2]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 3]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 4]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 5]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 6]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 7]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 8]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 9]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xa]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xb]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xc]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xd]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xe]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xf]
add edi, ecx
add esi, 0x10
add ecx, eax
add edi, ecx
sub ebx, 1
jne 0x406b50
test edx, edx
je 0x406bef
movzx eax, byte [esi]
inc esi
add ecx, eax
add edi, ecx
sub edx, 1
jne 0x406be2
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebp, ebp
jne 0x406b36
pop ebx
shl edi, 0x10
or edi, ecx
mov eax, edi
pop edi
pop ebp
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x407560
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [esi + 0xc]
push dword [esi + 0x10]
call edi
test eax, eax
je 0x407597
cmp eax, dword [esi + 0xc]
jb 0x40759e
push 0
add eax, eax
mov ecx, esi
push eax
call fcn.004031e0
test al, al
je 0x407597
push dword [esi + 0xc]
push dword [esi + 0x10]
call edi
test eax, eax
jne 0x407576
pop edi
xor al, al
pop esi
ret 4
mov eax, dword [esp + 0xc]
push ebx
push ebp
test eax, eax
je 0x40763c
movzx ecx, word [eax]
test cx, cx
je 0x40763c
cmp ecx, 0x5c
lea edi, [eax + 2]
mov ecx, esi
cmovne edi, eax
call fcn.00406e50
test al, al
je 0x407645
push dword [esi + 0x10]
call fcn.0040a800
add esp, 4
mov ebp, eax
test edi, edi
je 0x4075ea
push edi
call fcn.0040a800
add esp, 4
mov ebx, eax
jmp 0x4075ec
xor ebx, ebx
lea eax, [ebp + 1]
mov dword [esi + 4], ebp
add eax, ebx
cmp eax, dword [esi + 0xc]
jbe 0x40761e
push dword [esi + 0x10]
call fcn.0040a6f0
add esp, 4
mov dword [esi + 4], eax
call fcn.00411b80
push eax
lea eax, [ebp + 1]
mov ecx, esi
add eax, ebx
push eax
call fcn.004034a0
test al, al
je 0x407645
mov eax, dword [esi + 0x10]
lea esi, [eax + ebp*2]
test edi, edi
je 0x407636
lea eax, [ebx + ebx]
push eax
push edi
push esi
call fcn.0041f9c0
add esp, 0xc
xor eax, eax
mov word [esi + ebx*2], ax
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
ret 4
pop ebp
pop ebx
pop edi
xor al, al
pop esi
ret 4
Function at 0x4077c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x228
mov eax, dword [0x45ce14]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push edi
push 0
push 0x108
push 2
lea eax, [esp + 0x28]
mov edi, ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00403130
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov word [eax], cx
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x407890
mov ebx, dword [esp + 0x18]
push esi
push dword [edi + 0xc]
push dword [edi + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x40786d
test ebx, ebx
je 0x407862
push ebx
call fcn.0040a800
mov esi, eax
add esp, 4
test esi, esi
je 0x407862
push 0
lea ecx, [esi + 1]
push ecx
mov ecx, edi
call fcn.004031e0
test al, al
je 0x40786d
add esi, esi
push esi
push ebx
push dword [edi + 0x10]
call fcn.0041f9c0
mov eax, dword [edi + 0x10]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x40786d
mov eax, dword [edi + 0x10]
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 4], ecx
mov esi, dword [edi + 0x10]
push esi
call fcn.0040a800
add esp, 4
test eax, eax
je 0x40787e
dec eax
cmp word [esi + eax*2], 0x5c
jne 0x40788b
xor ecx, ecx
mov word [esi + eax*2], cx
mov bl, 1
pop esi
jmp 0x407892
xor bl, bl
lea ecx, [esp + 8]
call fcn.004031c0
mov ecx, dword [esp + 0x22c]
mov al, bl
pop edi
pop ebx
xor ecx, esp
call fcn.0041e282
add esp, 0x228
ret

Function at 0x4078c0
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0xc]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4078de
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 4], ecx
mov eax, dword [esp + 8]
test eax, eax
je 0x4078f6
push eax
mov ecx, esi
call fcn.00406d90
test al, al
jne 0x4078f6
pop esi
ret 4
mov al, 1
pop esi
ret 4
Function at 0x4081e0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push str.ROOTCIMV2
mov dword [esp + 0x18], ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x408310
mov ecx, dword [ebx + 0xc]
lea edi, [ebx + 0xc]
test ecx, ecx
je 0x408212
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
push 0x441304
push 1
push 0
push 0x44a444
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x10], eax
test eax, eax
jns 0x408295
push str.WbemLocator
push str.Failed_to_instantiate_COM_object
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x441710
push str._s__Message:___s_
push eax
mov dword [esp + 0x2c], 0
call fcn.0040baa0
add esp, 0x10
test al, al
je 0x408282
push 0
lea ecx, [esp + 0x1c]
call fcn.0040bbb0
push eax
push dword [esp + 0x18]
mov ecx, ebp
call fcn.00404f10
test al, al
je 0x408282
mov bl, 1
jmp 0x408284
xor bl, bl
lea ecx, [esp + 0x18]
call fcn.0040b470
test bl, bl
je 0x408310
mov ebx, dword [esp + 0x14]
mov edx, dword [edi]
lea edi, [ebx + 0x14]
mov ecx, dword [edi]
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x4082ae
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [esp + 0x24]
push edi
push 0
push 0
push 0
push 0
push 0
push 0
mov dword [edi], 0
mov eax, dword [edx]
push esi
push edx
call dword [eax + 0xc]
test eax, eax
jns 0x4082df
push 0
push 0x440dd8
push eax
mov ecx, ebp
call fcn.00404f10
test al, al
je 0x408310
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [edi]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x40830c
push 0
push 0x440dd8
push eax
mov ecx, ebp
call fcn.00404f10
test al, al
je 0x408310
mov bl, 1
jmp 0x408312
xor bl, bl
test esi, esi
je 0x40831d
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret 4
Function at 0x408e70
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x45ce14]
xor eax, esp
mov dword [esp + 0x114], eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push 0
push eax
call fcn.0041ff40
add esp, 0xc
mov dword [esp], 0x114
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jb 0x408ece
cmp dword [esp + 8], 2
jb 0x408ece
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041e282
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.0041e282
add esp, 0x118
ret

Function at 0x4093f0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov ebx, dword [esi + 0xc]
lea eax, [esi + 4]
mov ecx, eax
mov dword [esp + 0xc], eax
or ebx, 0xf003f
call fcn.0040bbb0
mov ecx, dword [esp + 0x10]
mov esi, dword [esi]
mov dword [esp + 8], eax
test ecx, ecx
je 0x409437
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
cmp esi, 0x80000004
je 0x409471
cmp esi, 0x80000050
je 0x409471
lea ecx, [esp + 0x10]
push ecx
push ebx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409475
mov ecx, dword [esp + 0x20]
push 0
push dword [esp + 0xc]
push eax
call fcn.00404f10
test al, al
je 0x4094a3
jmp 0x409475
mov dword [esp + 0x10], esi
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x4094a7
mov ecx, dword [esp + 0xc]
push 0
call fcn.0040bbb0
mov ecx, dword [esp + 0x24]
push eax
push esi
call fcn.00404f10
test al, al
jne 0x4094a7
xor bl, bl
jmp 0x4094a9
mov bl, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4094b8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
add esp, 0x10
ret 8
Function at 0x409600
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov ebx, dword [esi + 0xc]
lea eax, [esi + 4]
mov ecx, eax
mov dword [esp + 0xc], eax
or ebx, 0x20019
call fcn.0040bbb0
mov ecx, dword [esp + 0x10]
mov ebp, eax
mov esi, dword [esi]
test ecx, ecx
je 0x409642
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x80000004
je 0x409681
cmp esi, 0x80000050
je 0x409681
lea eax, [esp + 0x10]
push eax
push ebx
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40967b
mov ecx, dword [esp + 0x28]
push 0
push ebp
push eax
call fcn.00404f10
test al, al
jne 0x40967b
xor bl, bl
jmp 0x4096ce
mov esi, dword [esp + 0x10]
jmp 0x409685
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
push 0
push dword [esp + 0x2c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x4096cc
mov ecx, dword [esp + 0xc]
push 0
call fcn.0040bbb0
mov ecx, dword [esp + 0x2c]
push eax
push esi
call fcn.00404f10
test al, al
jne 0x4096cc
xor bl, bl
jmp 0x4096ce
mov bl, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4096dd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xc
ret 0x10
Function at 0x40a340
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov eax, dword [esi + 0xc]
lea ecx, [esi + 4]
or eax, 0x20006
mov dword [esp + 8], eax
call fcn.0040bbb0
mov esi, dword [esi]
mov ebx, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a37e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x80000004
je 0x40a3b8
cmp esi, 0x80000050
je 0x40a3b8
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a3bc
mov ecx, dword [esp + 0x24]
push 0
push ebx
push eax
call fcn.00404f10
test al, al
je 0x40a3ee
jmp 0x40a3bc
mov dword [esp + 0xc], esi
push dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push dword [esp + 0x20]
push dword [esp + 0x30]
push 0
push esi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40a3f2
mov ecx, dword [esp + 0x24]
push 0
push esi
push eax
call fcn.00404f10
test al, al
jne 0x40a3f2
xor bl, bl
jmp 0x40a3f4
mov bl, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a403
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret 0x14

Function at 0x40a440
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x28]
mov ebx, ecx
mov eax, dword [edi + 0x20]
cmp eax, 1
je 0x40a510
cmp eax, 2
je 0x40a510
cmp eax, 7
jne 0x40a4f3
push ebp
push 1
lea ecx, [esp + 0x14]
call fcn.00403100
push dword [edi + 0x28]
call fcn.0040a830
add esp, 4
lea ecx, [esp + 0x10]
mov ebp, eax
push 0
push ebp
call fcn.004031e0
test al, al
je 0x40a4dc
mov esi, dword [esp + 0x20]
push ebp
push dword [edi + 0x28]
push esi
call fcn.0041f9c0
push 0
push 0xa
push esi
call fcn.0040b3a0
add esp, 0x18
mov ecx, ebx
push dword [esp + 0x30]
push dword [esp + 0x18]
push esi
push dword [edi + 0x20]
push dword [esp + 0x38]
call fcn.0040a300
lea ecx, [esp + 0x10]
mov bl, al
call fcn.004031c0
pop ebp
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x14
ret 0xc
lea ecx, [esp + 0x10]
xor bl, bl
call fcn.004031c0
pop ebp
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x14
ret 0xc
push dword [esp + 0x2c]
push dword [edi + 0x1c]
push dword [edi + 0x28]
push eax
push dword [esp + 0x34]
call fcn.0040a300
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
mov esi, dword [edi + 0x28]
push esi
call fcn.0040a830
add esp, 4
push eax
push esi
push dword [edi + 0x20]
mov esi, dword [esp + 0x30]
push 0
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40a54e
mov ecx, dword [esp + 0x2c]
push 0
push esi
push eax
call fcn.00404f10
test al, al
jne 0x40a54e
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x14
ret 0xc
Function at 0x40ef20
Capabilities:
Get file size
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
je 0x40ef3f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x294], 0xffffffff
mov eax, dword [esi + 0x298]
cmp eax, 0xffffffff
je 0x40ef5b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x298], 0xffffffff
mov ecx, esi
pop esi
jmp fcn.00413960
Function at 0x40f8e0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x54
mov eax, dword [0x45ce14]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [esp + 0x6c]
mov eax, ebx
push ebp
mov ebp, dword [esp + 0x60]
and eax, 0x7fffeff
push esi
push edi
or eax, 0xe0000000
mov edi, ecx
mov esi, dword [edi + 8]
lea ecx, [edi + 8]
push eax
mov eax, dword [esp + 0x70]
mov edx, eax
push dword [esp + 0x78]
or edx, 0x80000000
mov byte [edi + 0x20], 1
push dword [esp + 0x78]
test eax, eax
cmovs edx, eax
mov eax, dword [esi + 0x30]
or edx, 0x40000000
push edx
push ebp
call eax
shr ebx, 0x1c
lea esi, [edi + 0x18]
not bl
mov byte [esp + 0x13], al
and bl, 1
movzx ecx, bl
push ecx
push dword [esp + 0x80]
push dword [edi + 0xc]
push esi
call fcn.0041c8f0
mov ecx, eax
call fcn.0041c5a0
mov bl, byte [esp + 0x13]
test bl, bl
je 0x40f9a4
push 0x34
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0041ff40
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x40f9a4
mov ecx, dword [esi]
push 0
push 0
push dword [esp + 0x4c]
add ecx, 0x18
push dword [esp + 0x54]
call fcn.0041cbb0
push 2
push ebp
lea eax, [esp + 0x60]
push 3
push eax
call fcn.0040a670
xor eax, eax
add esp, 0x10
mov word [esp + 0x5c], ax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x40f9e7
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1c], eax
mov ecx, dword [esp + 0x60]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e282
add esp, 0x54
ret 0x18
Function at 0x4107c0
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 0x2f4]
test ecx, ecx
je 0x41088e
mov ecx, dword [ecx + 0x364]
or eax, 0xffffffff
test ecx, ecx
je 0x410800
mov ecx, dword [ecx + 0x29c]
test ecx, ecx
je 0x410800
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x410800
or eax, 0xffffffff
or ecx, 0xffffffff
test eax, eax
cmovne ecx, eax
mov dword [esp + 8], ecx
cmp ecx, 0xffffffff
je 0x41081a
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov edi, dword [esi + 0x2f4]
mov eax, dword [edi + 0x1c4]
lea ecx, [edi + 0x1c4]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x410849
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x7c]
mov eax, dword [edi]
mov ecx, edi
push 0xffffffffffffffff
call dword [eax + 0x88]
mov ecx, dword [esi + 0x2f4]
pop edi
test ecx, ecx
je 0x41085a
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esp + 4]
mov dword [esi + 0x2f4], 0
mov dword [esp + 4], vtable.HandleClass.0
call fcn.00412610
test al, al
je 0x41088e
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
lea ecx, [esp + 4]
call dword [eax + 0x1c]
mov al, 1
pop esi
add esp, 8
ret