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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
cmp dword [edi + 0x9c], esi
jle 0x40cb12
xor eax, eax
jmp 0x40cc89
mov eax, dword [edi + 0xc]
xor ecx, ecx
add eax, dword [edi + 0x90]
push esi
adc ecx, dword [edi + 0x94]
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], ecx
mov ecx, dword [edi + 0x78]
push eax
push ecx
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40cb5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x54]
push eax
push 0x103
push edi
call fcn.0040d57c
push 2
pop eax
jmp 0x40cc89
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 0x40cc7e
mov eax, dword [edi + 0x78]
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 0x40cc65
cmp dword [ebp - 8], esi
je 0x40cc65
mov eax, dword [0x456f60]
mov ecx, 0x456f60
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], esi
je 0x40cbc3
push dword [ebp - 4]
call fcn.004302b5
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0040dbe3
test al, al
je 0x40cc33
mov eax, dword [edi + 0x78]
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 0x40cc42
cmp dword [ebp - 8], esi
je 0x40cc42
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.004045c0
lea esi, [edi + 0x98]
lea ebx, [ebp - 0x1c]
call fcn.00423bc1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004046b1
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp eax, dword [edi + 8]
jb 0x40cb71
jmp 0x40cc7e
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004046b1
push 3
jmp 0x40cc7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x54]
push eax
push 0x103
push edi
call fcn.0040d57c
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004046b1
jmp 0x40cc7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x54]
push eax
push 0x103
push edi
call fcn.0040d57c
push 2
pop esi
push dword [ebp - 4]
call fcn.004302b5
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40e494
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x456f60
call fcn.00402131
movzx ebx, word [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0x448e60
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.0040a997
push esi
lea esi, [ebp - 4]
call fcn.004020e5
push eax
push 2
push ebx
call edi
mov esi, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push 0x449bd4
push dword [ebp + 8]
call fcn.004096ad
add esp, 0x10
lea eax, [esi - 0x10]
call fcn.004046b1
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e505
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push esi
mov word [ebx], ax
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, dword [ebp + 0xc]
lea esi, [ebp + 0xc]
mov word [ecx], ax
call fcn.0040fdb7
push str.Windows_2000
push eax
call fcn.00408fde
test eax, eax
mov eax, dword [ebp + 0xc]
setge byte [ebp + 0xb]
add eax, 0xfffffff0
call fcn.004046b1
cmp byte [ebp + 0xb], 0
je 0x40e58b
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSystemDefaultUILanguage
push eax
mov dword [ebp + 8], eax
call esi
test eax, eax
je 0x40e578
call eax
mov word [edi], ax
push str.GetUserDefaultUILanguage
push dword [ebp + 8]
call esi
test eax, eax
je 0x40e58b
call eax
mov word [ebx], ax
pop esi
pop ebp
ret

Function at 0x40ea6b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push edi
push dword [ebp + 8]
lea edi, [esi + 4]
mov eax, edi
call fcn.0040e9f5
xor eax, eax
cmp byte [esi + 0xc], al
je 0x40ea90
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x40eab4
cmp dword [edi], eax
je 0x40eab4
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push 0x40ead8
push eax
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esi, 0x10
mov edi, eax
call fcn.00408e4e
pop edi
pop esi
pop ebp
ret 4
Function at 0x40ec09
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 0x40ec90
push esi
call fcn.004302aa
mov edi, eax
pop ecx
test edi, edi
jne 0x40ec48
push 8
pop esi
push edi
call fcn.004302b5
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 0x40ec90
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x4498c0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ec99
cmp dword [ebp - 0x10], 0
je 0x40ec99
mov eax, dword [ebp - 8]
test ebx, ebx
je 0x40ec82
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40ec99
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
jmp 0x40ec99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
jmp 0x40ec3b

Function at 0x40ec9e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebx]
push esi
push edi
sub eax, 0x10
call fcn.00409baf
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 4]
call fcn.004020e5
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x40edc4
push esi
call fcn.004302aa
mov edi, eax
pop ecx
test edi, edi
jne 0x40ecf0
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
push edi
jmp 0x40edd1
push edi
push esi
push dword [ebp - 0xc]
lea esi, [ebp - 4]
call fcn.004020e5
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40ecdf
mov eax, dword [0x456f60]
mov ecx, 0x456f60
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
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 0x40ed4a
cmp dword [ebp - 0x10], 0
je 0x40ed4a
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x449c80
push ecx
push eax
jmp 0x40ed59
push 0x449c80
push 0x4e2
push 0x409
lea eax, [ebp - 8]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.004096ad
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea esi, [ebp - 8]
call fcn.004020e5
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40edb4
cmp dword [ebp - 0x18], 0
je 0x40edb4
push dword [ebp - 0x1c]
push ebx
call fcn.004045c0
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
push edi
call fcn.004302b5
mov al, 1
jmp 0x40edd8
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046b1
jmp 0x40ecdf
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
push 0
call fcn.004302b5
xor al, al
pop ecx
pop edi
pop esi
leave
ret
Function at 0x40ef83
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.004302aa
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 0x40efd5
inc dword [ebp - 4]
jmp 0x40ef96
cmp eax, ebx
jne 0x40eff7
cmp dword [ebp - 8], 1
je 0x40f005
cmp dword [ebp - 8], 4
jne 0x40ef96
push dword [esi]
push 0x449d04
push edi
call fcn.004096ad
add esp, 0xc
mov bl, 1
push esi
call fcn.004302b5
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]
call fcn.004045e3
call fcn.004088ee
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004046b1
push esi
call fcn.004302b5
mov al, 1
jmp 0x40efff

Function at 0x40f230
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f25f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40f277
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test esi, esi
je 0x40f275
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x40f3e6
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.004302c0
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 0x40f425
lea esi, [ebp - 0xc]
call fcn.004230eb
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [edx - 0xc]
neg ecx
sbb ecx, ecx
and ecx, edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x64]
push edx
push ebx
push ebx
push dword [ebp + 0x14]
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp byte [ebp + 0x18], bl
je 0x40f468
lea esi, [ebp - 0xc]
call fcn.00423101
cmp edi, ebx
jne 0x40f47b
lea esi, [ebp - 0xc]
call fcn.00423101
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0x10], ebx
je 0x40f497
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 0x40f46c
Function at 0x40f4a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
push 0x38
mov edi, eax
xor ebx, ebx
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.004302c0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x400
cmp dword [ebp + 0xc], ebx
je 0x40f4d9
mov dword [ebp - 0x38], 0x440
push esi
mov esi, dword [edi]
push edi
call fcn.0040a4b1
pop ecx
test al, al
je 0x40f4ea
add esi, 8
xor eax, eax
cmp byte [ebp + 0x10], bl
mov dword [ebp - 0x2c], esi
sete al
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x40f50c
mov dword [ebp - 0x28], eax
mov eax, edi
lea edi, [ebp + 0x10]
call fcn.00409e3e
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
mov esi, edi
call fcn.0040a4b1
pop ecx
test al, al
je 0x40f52c
lea esi, [edi + 8]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x24], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
jne 0x40f54c
lea eax, [edi - 0x10]
call fcn.004046b1
pop edi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0xc], ebx
je 0x40f56d
cmp dword [ebp - 4], ebx
je 0x40f56d
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov bl, 1
jmp 0x40f53e
Function at 0x40f803
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x455090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40f840
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40f902
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 1
push dword [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x18], ebx
call esi
cmp eax, ebx
jne 0x40f889
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40f8f5
push dword [ebp - 0x18]
call fcn.004302aa
pop ecx
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push edi
push 1
push dword [ebp - 0x14]
call esi
cmp eax, ebx
je 0x40f8f5
cmp dword [ebp - 0x18], ebx
je 0x40f8f5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40f8fb
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x1c]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call fcn.004302b5
cmp dword [ebp - 0x14], 0
pop ecx
je 0x40f8f1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x40f912
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call fcn.004302b5
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x40f910
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043029b
leave
ret

Function at 0x40f921
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x455090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f948
push eax
jmp 0x40f982
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40f979
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp + 8]
je 0x40f997
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40f961
test esi, esi
je 0x40f988
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043029b
leave
ret
push edi
mov edi, dword [ebp - 0x228]
test esi, esi
je 0x40f9a9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
jmp 0x40f98a
Function at 0x40fc9f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x455090]
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 0x80000000
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 0x40fd38
mov eax, dword [ebp - 0x410]
mov byte [ebp + eax - 0x40c], bl
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x414]
call fcn.0040aac8
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 0x40fd03
mov edi, dword [ebp - 0x414]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x40fd75
lea ecx, [eax - 2]
lea edx, [ebp - 0x414]
mov eax, edi
call fcn.00408d6f
call fcn.004088ee
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
call fcn.004046b1
cmp dword [ebp - 0x41c], ebx
je 0x40fd89
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.0043029b
leave
ret
Function at 0x4108d7
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
mov ebx, eax
push 0x44abf4
lea eax, [ebp - 4]
call fcn.004045e3
lea esi, [ebx + 0x1c]
mov edi, esi
lea ecx, [ebp - 4]
call fcn.0040a16d
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
add ebx, 4
push ebx
lea eax, [ebp - 4]
call fcn.004245ec
mov edi, dword [ebp - 4]
cmp dword [edi - 0xc], 0
pop ecx
je 0x410944
mov esi, dword [esi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
lea eax, [edi - 0x10]
inc bl
call fcn.004046b1
mov al, bl
jmp 0x4109d4
push 0x456d24
push esi
xor eax, eax
lea edi, [ebp - 0x98]
call fcn.0041d0bb
push 1
push 0
push esi
push ebx
mov ecx, edi
call fcn.0041d226
mov edi, eax
test edi, edi
je 0x4109b9
cmp byte [0x457cbc], 0
je 0x4109b9
push edi
lea eax, [ebp - 0xc]
call fcn.00420ec1
pop ecx
push dword [eax]
lea eax, [ebp - 8]
push str.Downloading_of_updates_failed._Error:
call fcn.0041630f
push eax
call fcn.00416320
push eax
call fcn.00416320
push eax
mov eax, 0x457c8c
call fcn.004156a1
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004046b1
lea esi, [ebp - 0x98]
call fcn.0041d175
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
test edi, edi
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412d91
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x30]
xor ebx, ebx
push edi
cmp dword [eax - 0xc], ebx
jne 0x412db1
mov al, 1
jmp 0x412fa0
call fcn.0040117d
test al, al
je 0x412e9f
push 0x3c
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.004302c0
add esp, 0xc
push str.kernel32.dll
mov dword [ebp - 0x5c], 0x40
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push str.GlobalMemoryStatusEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x5c]
push ecx
call eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x30]
call fcn.00420e6d
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], ebx
fild qword [ebp - 0xc]
fchs
faddp st(1)
fmul qword [0x452200]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 5
jp 0x412e5c
call fcn.004459c0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x412e81
fadd qword [0x4521f8]
jmp 0x412e7a
call fcn.004459c0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x412e81
fsub qword [0x4521f8]
call fcn.004459c0
jmp 0x412e86
mov eax, dword [ebp - 8]
fstp st(0)
cdq
mov ebx, eax
mov esi, edx
test edi, edi
je 0x412f3a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x412f3a
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 [esi + 8]
mov ecx, dword [eax + 0x30]
call fcn.00420e6d
fild dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
test eax, eax
jge 0x412ed8
fadd qword [0x4521f0]
fmul qword [0x452200]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 5
jp 0x412f0b
call fcn.004459c0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x412f30
fadd qword [0x4521f8]
jmp 0x412f29
call fcn.004459c0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x412f30
fsub qword [0x4521f8]
call fcn.004459c0
jmp 0x412f35
mov eax, dword [ebp - 8]
fstp st(0)
cdq
mov ebx, eax
mov esi, edx
cmp byte [0x457cbc], 0
je 0x412f74
push esi
push ebx
push str.Detected_RAM_amount:
lea eax, [ebp - 8]
call fcn.0041630f
push eax
call fcn.00416320
push eax
call fcn.0041643c
push eax
mov eax, 0x457c8c
call fcn.004156a1
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [ebp - 0x10]
cdq
cmp esi, edx
jb 0x412f8a
ja 0x412daa
cmp ebx, eax
jae 0x412daa
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
add eax, 0x30
push eax
push 0xd4
call fcn.004130d4
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4130d4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x54]
push ebx
push esi
sub eax, 0x10
call fcn.00409baf
add eax, 0x10
lea ebx, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.0040ec9e
mov eax, dword [0x456f60]
mov esi, 0x456f60
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004043ff
mov eax, dword [0x456f60]
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [ebp - 8]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp + 8]
push esi
push dword [ebp - 4]
push eax
call fcn.004096ad
xor ebx, ebx
add esp, 0x10
cmp byte [0x457cbc], bl
je 0x413171
push dword [ebp + 8]
lea eax, [ebp + 0xc]
call fcn.0041630f
push eax
call fcn.00416320
push eax
mov eax, 0x457c8c
call fcn.004156a1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004046b1
cmp byte [edi + 0x10], bl
je 0x413181
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41319c
mov eax, dword [edi]
call fcn.00414e7b
mov eax, dword [edi]
push ebx
call fcn.00414dad
push 0x30
push eax
lea eax, [ebp + 8]
push eax
call fcn.00414e22
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
lea eax, [esi - 0x10]
call fcn.004046b1
pop esi
pop ebx
leave
ret 8

Function at 0x414e88
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 0x424f4e
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 0x414eec
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 0x414eec
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 0x414ec5
pop edi
pop esi
pop ebx
leave
ret