joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d617
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
push edi
cmp dword [esi + 0x10], ebx
jne 0x45d62c
xor eax, eax
pop edi
pop ebx
leave
ret
mov ecx, dword [esi + 0x84]
add ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x70]
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x45d663
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x54]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.0045e197
push 2
pop eax
jmp 0x45d628
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0040932c
mov byte [ebp - 0x10], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [esi + 0x10], ebx
jbe 0x45d735
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x70]
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0x18
lea ecx, [ebp - 0x2c]
push ecx
push eax
call edi
test eax, eax
je 0x45d73e
cmp dword [ebp - 0xc], ebx
je 0x45d73e
cmp dword [ebp - 4], ebx
je 0x45d6c8
push dword [ebp - 4]
call fcn.0049c876
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0045e1d0
test al, al
je 0x45d739
mov eax, dword [esi + 0x70]
push ebx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, ecx
push ecx
push dword [ebp - 4]
push eax
call edi
test eax, eax
je 0x45d73e
cmp dword [ebp - 0xc], ebx
je 0x45d73e
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
xor eax, eax
mov word [edx + ecx*2], ax
lea eax, [ebp - 0x2c]
lea ebx, [esi + 0x64]
push eax
call fcn.0045e22a
mov eax, dword [ebp - 8]
mov ecx, ebx
call fcn.0045e2c4
push dword [ebp - 4]
add eax, 0x18
push eax
call fcn.00405cf1
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp eax, dword [esi + 0x10]
jb 0x45d695
xor edi, edi
jmp 0x45d758
push 3
pop edi
jmp 0x45d758
push 2
pop edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x54]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.0045e197
push dword [ebp - 4]
call fcn.0049c876
pop ecx
lea ecx, [ebp - 0x14]
call fcn.004058a3
mov eax, edi
jmp 0x45d628
Function at 0x45d770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
cmp dword [edi + 0x8c], esi
jle 0x45d789
xor eax, eax
jmp 0x45d8dd
mov ecx, dword [edi + 0x84]
add ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x70]
push esi
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x45d7c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x54]
push ecx
push 0x103
push edi
mov ebx, eax
call fcn.0045e197
push 2
pop eax
jmp 0x45d8dd
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
cmp dword [edi + 8], esi
jbe 0x45d8d2
mov eax, dword [edi + 0x70]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 8]
push ecx
push 8
lea ecx, [ebp - 0x14]
push ecx
push eax
call ebx
test eax, eax
je 0x45d8b8
cmp dword [ebp - 8], esi
je 0x45d8b8
lea ecx, [ebp - 0x1c]
call fcn.0040932c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], esi
je 0x45d81f
push dword [ebp - 4]
call fcn.0049c876
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0045e1d0
test al, al
je 0x45d88b
mov eax, dword [edi + 0x70]
push esi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, ecx
push ecx
push dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x45d897
cmp dword [ebp - 8], esi
je 0x45d897
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push eax
mov word [eax + edx*2], cx
lea eax, [ebp - 0x1c]
push eax
call fcn.00405cf1
lea esi, [edi + 0x88]
lea ebx, [ebp - 0x1c]
call fcn.0046f6ce
mov ecx, ebx
call fcn.004058a3
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp eax, dword [edi + 8]
jb 0x45d7d8
jmp 0x45d8d2
lea ecx, [ebp - 0x1c]
call fcn.004058a3
push 3
jmp 0x45d8d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x54]
push ecx
push 0x103
push edi
mov ebx, eax
call fcn.0045e197
lea ecx, [ebp - 0x1c]
call fcn.004058a3
jmp 0x45d8cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x54]
push ecx
push 0x103
push edi
mov ebx, eax
call fcn.0045e197
push 2
pop esi
push dword [ebp - 4]
call fcn.0049c876
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45e9bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.0040932c
movzx ebx, word [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0x4d223c
push 2
push ebx
call edi
mov esi, eax
lea eax, [esi - 1]
push eax
push 0x78
pop ecx
lea edx, [ebp - 4]
call fcn.0043dfc5
push esi
lea esi, [ebp - 4]
call fcn.0040d2f8
push eax
push 2
push ebx
call edi
push dword [ebp - 4]
push dword [ebp + 0xc]
push 0x4dad30
push dword [ebp + 8]
call fcn.0043e898
add esp, 0x10
mov ecx, esi
call fcn.004058a3
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45ee32
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x45eeb9
push esi
call fcn.0049afc0
mov edi, eax
pop ecx
test edi, edi
jne 0x45ee71
push 8
pop esi
push edi
call fcn.0049c876
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45eeb9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x4d8c20
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45eec2
cmp dword [ebp - 0x10], 0
je 0x45eec2
mov eax, dword [ebp - 8]
test ebx, ebx
je 0x45eeab
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x45eec2
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
jmp 0x45eec2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
jmp 0x45ee64
Function at 0x45eec7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0041f17d
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 4]
call fcn.0040d2f8
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x45efd3
push esi
call fcn.0049afc0
mov edi, eax
pop ecx
test edi, edi
jne 0x45ef12
lea ecx, [ebp - 4]
call fcn.004058a3
push edi
jmp 0x45efdd
push edi
push esi
push dword [ebp - 0xc]
lea esi, [ebp - 4]
call fcn.0040d2f8
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45ef04
lea ecx, [ebp - 8]
call fcn.0040932c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45ef61
cmp dword [ebp - 0x10], 0
je 0x45ef61
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x4d47cc
push ecx
push eax
jmp 0x45ef70
push 0x4d47cc
push 0x4e2
push 0x409
lea eax, [ebp - 8]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.0043e898
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea esi, [ebp - 8]
call fcn.0040d2f8
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45efc6
cmp dword [ebp - 0x18], 0
je 0x45efc6
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.00405cf1
mov ecx, esi
call fcn.004058a3
lea ecx, [ebp - 4]
call fcn.004058a3
push edi
call fcn.0049c876
mov al, 1
jmp 0x45efe4
lea ecx, [ebp - 8]
call fcn.004058a3
jmp 0x45ef04
lea ecx, [ebp - 4]
call fcn.004058a3
push 0
call fcn.0049c876
xor al, al
pop ecx
pop edi
pop esi
leave
ret

Function at 0x45f118
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
mov dword [ebp - 4], 0xc8
xor ebx, ebx
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049afc0
pop ecx
mov esi, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push esi
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x45f16a
inc dword [ebp - 4]
jmp 0x45f12b
cmp eax, ebx
jne 0x45f18c
cmp dword [ebp - 8], 1
je 0x45f19a
cmp dword [ebp - 8], 4
jne 0x45f12b
push dword [esi]
push 0x4dae60
push edi
call fcn.0043e898
add esp, 0xc
mov bl, 1
push esi
call fcn.0049c876
mov al, bl
pop ecx
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi + ecx*2], ax
push esi
lea eax, [ebp + 0xc]
push eax
call fcn.00405d14
call fcn.00438ebc
lea ecx, [ebp + 0xc]
call fcn.004058a3
push esi
call fcn.0049c876
mov al, 1
jmp 0x45f194
Function at 0x45f3fd
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45f42c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x45f444
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test esi, esi
je 0x45f442
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45f649
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], 0x44
call fcn.0049cb00
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], bl
cmp byte [ebp + 0x18], bl
je 0x45f688
lea esi, [ebp - 0xc]
call fcn.0046e868
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push dword [ebp + 0x14]
push ebx
push ebx
push ebx
call fcn.0040d2f8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp byte [ebp + 0x18], bl
je 0x45f6bc
lea esi, [ebp - 0xc]
call fcn.0046e87e
cmp edi, ebx
jne 0x45f6cf
lea esi, [ebp - 0xc]
call fcn.0046e87e
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0x10], ebx
je 0x45f6eb
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x45f6c0
Function at 0x45f6f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push 0x38
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.0049cb00
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
cmp dword [ebp + 0xc], ebx
je 0x45f726
mov dword [ebp - 0x3c], 0x40
push edi
mov edi, dword [esi]
mov ecx, esi
call fcn.004508c0
test al, al
je 0x45f737
add edi, 8
xor eax, eax
cmp byte [ebp + 0x10], bl
mov dword [ebp - 0x30], edi
sete al
mov dword [ebp - 0x34], 0x4d42b4
pop edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x45f75a
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
push eax
call fcn.0044f7f0
mov esi, dword [ebp - 4]
pop ecx
lea ecx, [ebp - 4]
call fcn.004508c0
test al, al
je 0x45f776
add esi, 8
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x28], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x45f795
lea ecx, [ebp - 4]
call fcn.004058a3
pop esi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0xc], ebx
je 0x45f7b6
cmp dword [ebp - 8], ebx
je 0x45f7b6
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov bl, 1
jmp 0x45f787
Function at 0x45fcd5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x501344]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocStringLen
push eax
mov dword [ebp - 0x414], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x410]
push ecx
mov edi, 0x3ff
push edi
lea ecx, [ebp - 0x40c]
push ecx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x410], ebx
push eax
jmp 0x45fd6e
mov eax, dword [ebp - 0x410]
mov byte [ebp + eax - 0x40c], bl
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x414]
call fcn.004601d8
push ebx
lea eax, [ebp - 0x410]
push eax
push edi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x41c]
call esi
cmp dword [ebp - 0x410], ebx
jne 0x45fd39
mov edi, dword [ebp - 0x414]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x45fda8
lea ecx, [eax - 2]
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0042e143
call fcn.00438ebc
lea ecx, [ebp - 0x414]
call fcn.004058a3
cmp dword [ebp - 0x41c], ebx
je 0x45fdbc
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049c07b
leave
ret
Function at 0x460c9b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x501344]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push edi
push eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x460d2b
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00405d14
lea ebx, [ebp - 0x7c]
call fcn.0044e690
inc dword [ebp - 0x74]
mov ecx, ebx
call fcn.004058a3
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x104
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x460ce8
pop ebx
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop esi
call fcn.0049c07b
add ebp, 0x19c
leave
ret 4

Function at 0x460d44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov esi, eax
mov eax, dword [ebx]
push 0
push eax
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xea
jne 0x460da6
push dword [ebp - 4]
call fcn.00405bf9
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
call fcn.0040d2f8
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
or eax, 0xffffffff
call fcn.004092df
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x461633
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
mov esi, eax
push 0x4dbc78
lea eax, [ebp - 4]
push eax
call fcn.00405d14
lea edi, [esi + 0x1c]
lea ecx, [ebp - 4]
call fcn.0044ff20
lea ecx, [ebp - 4]
call fcn.004058a3
lea ebx, [esi + 4]
push ebx
lea esi, [ebp - 8]
call fcn.0046fed8
mov eax, dword [ebp - 8]
pop ecx
xor ecx, ecx
push ecx
cmp dword [eax - 0xc], ecx
je 0x46169c
mov edi, dword [edi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
lea ecx, [ebp - 8]
call fcn.004058a3
mov al, bl
jmp 0x461747
push edi
mov eax, 0x503360
lea esi, [ebp - 0x98]
call fcn.0046b208
xor esi, esi
push esi
push esi
push 1
push esi
push edi
push ebx
lea ecx, [ebp - 0x98]
call fcn.0046b32a
test eax, eax
je 0x4616d4
lea esi, [ebp - 0x98]
call fcn.0046b291
xor bl, bl
jmp 0x46168d
lea ecx, [ebp - 0x98]
call fcn.0046b3af
mov ebx, eax
cmp ebx, esi
je 0x46172f
cmp byte [0x505028], 0
je 0x46172f
lea eax, [ebp - 0xc]
push eax
call fcn.0045f4d4
pop ecx
push dword [eax]
lea eax, [ebp - 4]
push str.Downloading_of_updates_failed._Error:
push eax
call fcn.00465a6a
push eax
call fcn.00465a7a
push eax
call fcn.00465a7a
push eax
mov eax, 0x504ff8
call fcn.00464e5b
lea ecx, [ebp - 4]
call fcn.004058a3
lea ecx, [ebp - 0xc]
call fcn.004058a3
lea esi, [ebp - 0x98]
call fcn.0046b291
lea ecx, [ebp - 8]
call fcn.004058a3
test ebx, ebx
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x462ac7
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x30]
push esi
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x462ae7
mov al, 1
jmp 0x462cd4
call fcn.0044e990
test al, al
je 0x462bd5
push 0x3c
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.0049cb00
add esp, 0xc
push str.kernel32.dll
mov dword [ebp - 0x5c], 0x40
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push str.GlobalMemoryStatusEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x5c]
push ecx
call eax
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x30]
call fcn.0045f1c4
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
fild qword [ebp - 0x1c]
mov dword [ebp - 0xc], edi
fild qword [ebp - 0xc]
fchs
faddp st(1)
fmul qword [0x4e5810]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 5
jp 0x462b92
call fcn.004b7610
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x462bb7
fadd qword [0x4e57c0]
jmp 0x462bb0
call fcn.004b7610
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x462bb7
fsub qword [0x4e57c0]
call fcn.004b7610
jmp 0x462bbc
mov eax, dword [ebp - 8]
fstp st(0)
cdq
mov ebx, eax
mov edi, edx
test esi, esi
je 0x462c70
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x462c70
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x30]
call fcn.0045f1c4
fild dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
test eax, eax
jge 0x462c0e
fadd qword [0x4e57a8]
fmul qword [0x4e5810]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 5
jp 0x462c41
call fcn.004b7610
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x462c66
fadd qword [0x4e57c0]
jmp 0x462c5f
call fcn.004b7610
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x462c66
fsub qword [0x4e57c0]
call fcn.004b7610
jmp 0x462c6b
mov eax, dword [ebp - 8]
fstp st(0)
cdq
mov ebx, eax
mov edi, edx
cmp byte [0x505028], 0
je 0x462ca8
push edi
push ebx
push str.Detected_RAM_amount:
lea eax, [ebp - 8]
push eax
call fcn.00465a6a
push eax
call fcn.00465a7a
push eax
call fcn.00465b6c
push eax
mov eax, 0x504ff8
call fcn.00464e5b
lea ecx, [ebp - 8]
call fcn.004058a3
mov eax, dword [ebp - 0x10]
cdq
cmp edi, edx
jb 0x462cbe
ja 0x462ae0
cmp ebx, eax
jae 0x462ae0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
add eax, 0x30
push eax
push 0xd4
call fcn.00462e04
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x462e04
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 4]
sub esp, 0xc
add eax, 0x54
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041f17d
lea eax, [ebp - 0xc]
push eax
call fcn.0045eec7
pop ecx
lea ecx, [ebp - 8]
call fcn.0040932c
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00405a81
lea ecx, [ebp - 4]
call fcn.0040932c
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
push eax
call fcn.0043e898
add esp, 0x10
cmp byte [0x505028], 0
je 0x462e85
push dword [ebp - 4]
lea eax, [ebp + 8]
push eax
call fcn.00465a6a
push eax
call fcn.00465a7a
push eax
mov eax, 0x504ff8
call fcn.00464e5b
lea ecx, [ebp + 8]
call fcn.004058a3
cmp byte [esi + 0x10], 0
je 0x462e96
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x462eb2
mov eax, dword [esi]
call fcn.00464910
mov eax, dword [esi]
push 0
call fcn.00464831
push 0x30
push eax
lea eax, [ebp - 4]
push eax
call fcn.004648a2
lea ecx, [ebp - 4]
call fcn.004058a3
lea ecx, [ebp - 8]
call fcn.004058a3
lea ecx, [ebp - 0xc]
call fcn.004058a3
leave
ret 8

Function at 0x46491d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0x47077d
push esi
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x10], eax
mov ebx, 0x1ff
jmp 0x464981
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x464981
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x10]
push eax
push 1
call edi
cmp eax, 1
je 0x46495a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x464f39
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x501344]
xor eax, ebp
mov dword [ebp + 0x190], eax
push edi
lea edi, [ebx + 8]
xor ecx, ecx
cmp dword [edi], ecx
jne 0x465067
mov eax, dword [ebx]
push esi
cmp dword [eax - 0xc], ecx
jne 0x464fb0
push 0x208
lea eax, [ebp - 0x78]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x78], cx
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.00405cf1
push 0x2e
mov esi, ebx
call fcn.00438f27
mov ecx, eax
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
sub eax, ecx
push ebx
call fcn.00451420
push str..log
push ebx
call fcn.00439083
xor ecx, ecx
mov eax, dword [ebx]
push ecx
push 0x80
push 4
push ecx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov esi, edi
call fcn.0041261a
cmp dword [edi], 0xffffffff
je 0x46505f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x464ffc
mov eax, dword [edi]
test eax, eax
je 0x46502d
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x46502d
test eax, eax
jne 0x46505f
mov eax, dword [edi]
test eax, eax
je 0x46502d
push 2
pop ecx
push 0
lea edx, [ebp - 0x7c]
push edx
push ecx
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x80]
push ecx
push eax
mov dword [ebp - 0x80], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [edi], 0
je 0x465066
lea eax, [ebx + 4]
mov esi, ebx
call fcn.0046507d
lea ecx, [ebp - 0x7c]
call fcn.0040932c
lea esi, [ebp - 0x7c]
call fcn.004650a2
mov eax, esi
mov esi, ebx
call fcn.0046507d
lea ecx, [ebp - 0x7c]
call fcn.004058a3
jmp 0x465066
push 0
call fcn.0041261a
pop esi
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop edi
call fcn.0049c07b
add ebp, 0x194
leave
ret

Function at 0x46507d
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret