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

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x90
mov eax, dword [0x438060]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
xor eax, ebp
push 3
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x74]
push 0x80000000
push ecx
mov dword [ebp - 0x18], eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x20], esi
jne 0x4113f6
push eax
jmp 0x411431
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x41142c
cmp eax, dword [ebp + 0x78]
jbe 0x41142c
sub eax, dword [ebp + 0x78]
mov edi, 0x10000
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
call fcn.00404513
cmp dword [ebp - 0xc], ebx
jne 0x41144b
push ebx
call fcn.0042ddfa
pop ecx
cmp esi, ebx
je 0x411437
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e08a
add ebp, 0x6c
leave
ret
lea eax, [ebp - 4]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 5], bl
call fcn.0041da26
jmp 0x411461
mov esi, dword [ebp - 0x20]
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4114aa
mov esi, dword [ebp - 0x14]
cmp esi, ebx
je 0x4114aa
mov eax, dword [ebp - 0x10]
lea ecx, [esi + eax]
cmp ecx, dword [ebp - 0x24]
jbe 0x411493
mov esi, dword [ebp - 0x24]
sub esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 5], 1
push dword [ebp - 0xc]
mov ebx, esi
lea eax, [ebp - 4]
call fcn.0041d8a5
add dword [ebp - 0x10], esi
xor ebx, ebx
cmp byte [ebp - 5], bl
je 0x41145e
lea esi, [ebp - 4]
call fcn.0041d93f
cmp byte [ebp + 0x7c], bl
je 0x4114c3
mov edi, dword [ebp - 0x18]
mov eax, esi
call fcn.0041d9e4
jmp 0x4114ce
push dword [ebp - 0x18]
lea ecx, [ebp - 4]
call fcn.0041d9c1
push dword [ebp - 0xc]
mov byte [ebp - 5], al
call fcn.0042ddfa
cmp dword [ebp - 0x20], ebx
pop ecx
je 0x4114e8
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 5]
jmp 0x411439

Function at 0x41157a
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x438060]
xor eax, ebp
push esi
mov dword [ebp + 0x84], eax
lea eax, [ebp - 0x80]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4115b2
call fcn.00401f8b
jmp 0x4115d0
cmp byte [ebp + eax - 0x81], 0x5c
je 0x4115c2
mov byte [ebp + eax - 0x80], 0x5c
inc eax
mov byte [ebp + eax - 0x80], 0
lea eax, [ebp - 0x80]
push eax
call fcn.004015d9
mov ecx, dword [ebp + 0x84]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042e08a
add ebp, 0x88
leave
ret
Function at 0x4118d2
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x154
mov eax, dword [0x438060]
xor eax, ebp
push esi
mov esi, dword [ebp + 0x7c]
mov dword [ebp + 0x70], eax
mov eax, dword [esi]
push edi
sub eax, 0x10
mov dword [ebp - 0xe0], esi
call fcn.00401c33
add eax, 0x10
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xd4]
call fcn.00411555
mov edi, 0x431d98
mov ecx, edi
call fcn.0040195b
push eax
push edi
lea eax, [ebp - 0xd4]
push eax
call fcn.004026e5
and dword [ebp - 0xd0], 0
push 0x4f
pop ecx
xor eax, eax
lea edi, [ebp - 0xcc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xdc], eax
je 0x411a88
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp byte [ebp - 0xa4], 0x2e
jne 0x4119a1
cmp byte [ebp - 0xa3], 0
je 0x41198b
cmp byte [ebp - 0xa3], 0x2e
jne 0x4119a1
cmp byte [ebp - 0xa2], 0
jne 0x4119a1
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xdc]
call ebx
mov edi, eax
jmp 0x411a7f
test byte [ebp - 0xd0], 0x10
je 0x411a27
mov eax, dword [esi]
sub eax, 0x10
call fcn.00401c33
add eax, 0x10
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xd8]
call fcn.00411555
lea ecx, [ebp - 0xa4]
call fcn.0040195b
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.004026e5
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xdc]
call ebx
mov edi, eax
lea eax, [ebp - 0xd8]
push eax
call fcn.004118d2
pop ecx
lea esi, [ebp - 0xd8]
call fcn.004044e7
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 0xd8]
add eax, 0xfffffff0
call fcn.0040147d
jmp 0x411a79
mov eax, esi
lea edi, [ebp - 0xd4]
call fcn.00401bc0
mov eax, edi
call fcn.00411555
lea ecx, [ebp - 0xa4]
call fcn.0040195b
push eax
lea eax, [ebp - 0xa4]
push eax
mov eax, edi
push eax
call fcn.004026e5
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xdc]
call ebx
lea esi, [ebp - 0xd4]
mov edi, eax
call fcn.004044e7
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [ebp - 0xe0]
test edi, edi
jne 0x411967
pop ebx
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xd4]
add eax, 0xfffffff0
call fcn.0040147d
mov ecx, dword [ebp + 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.0042e08a
add ebp, 0x74
leave
ret
Function at 0x411b29
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x438af8]
push esi
push edi
mov ecx, 0x438af8
call dword [eax + 0xc]
mov edi, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
lea esi, [eax - 1]
call fcn.00402671
cmp al, 0x5c
jne 0x411b7d
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
lea ecx, [ebp + 0xc]
dec eax
push ecx
mov esi, edi
call fcn.00402629
lea edi, [ebp - 4]
call fcn.00401bc0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040147d
jmp 0x411b87
mov eax, edi
lea edi, [ebp - 4]
call fcn.00401bc0
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
mov edx, dword [eax - 0xc]
cmp edx, dword [ecx - 0xc]
jge 0x411bd5
push 0x5c
call fcn.004025c0
lea ecx, [ebp - 8]
push ecx
call fcn.00402629
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x411bc7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00411b29
pop ecx
pop ecx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040147d
pop edi
pop esi
leave
ret

Function at 0x411be1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x438060]
and dword [ebp - 0x80], 0
and dword [ebp - 0x7c], 0
and dword [ebp - 0x78], 0
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x68]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x6c], eax
xor edi, edi
lea esi, [ebp + edi - 0x68]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x411c52
push esi
lea esi, [ebp - 0x74]
call fcn.004015d9
mov eax, esi
push eax
lea esi, [ebp - 0x80]
call fcn.00408a14
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff0
call fcn.0040147d
jmp 0x411c52
cmp byte [ebp + edi - 0x68], 0
je 0x411c57
inc edi
cmp edi, dword [ebp - 0x6c]
jb 0x411c4a
inc edi
cmp edi, dword [ebp - 0x6c]
jb 0x411c19
mov eax, dword [ebp - 0x70]
lea edi, [ebp - 0x80]
call fcn.00412343
lea edi, [ebp - 0x80]
call fcn.004045dd
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.0042e08a
leave
ret
Function at 0x411f65
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, eax
mov ecx, esi
call fcn.00411c81
test al, al
je 0x411f80
xor eax, eax
jmp 0x412078
push ebx
push edi
call fcn.00411d48
mov byte [ebp - 1], al
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
mov eax, esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00411de1
mov edi, dword [ebp - 0x1c]
cmp edi, ebx
pop ecx
jg 0x411fb7
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401c33
mov esi, eax
add esi, 0x10
dec edi
cmp byte [ebp + 8], 0
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edi
je 0x411fd9
inc dword [ebp - 0xc]
xor edi, edi
inc edi
cmp dword [ebp - 0xc], edi
mov dword [ebp - 0x14], ebx
jle 0x412057
jmp 0x411fe8
xor ebx, ebx
lea eax, [esi - 0x10]
call fcn.00401c33
push dword [0x4382ac]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00404612
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.0042a0d7
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004026e5
push ebx
mov ebx, dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41207b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 0x14], eax
je 0x41208b
cmp byte [ebp - 1], 0
jne 0x41208b
cmp edi, 1
jle 0x41204f
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [ebx - 0x10]
call fcn.0040147d
lea eax, [esi - 0x10]
call fcn.0040147d
lea edi, [ebp - 0x20]
call fcn.004045dd
mov eax, dword [ebp - 0x14]
sub eax, 0xb7
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
pop edi
pop ebx
pop esi
leave
ret
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41208b
lea eax, [ebp - 8]
push eax
call fcn.00408a14
push dword [0x4382ac]
lea eax, [ebp - 0x10]
push eax
call fcn.00404612
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.0042a0d7
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004026e5
lea eax, [ebx - 0x10]
call fcn.0040147d
mov esi, dword [ebp - 0x10]
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x411fe6
jmp 0x412057

Function at 0x4120ca
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push esi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4120f0
push eax
jmp 0x412103
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x41210d
test esi, esi
je 0x412109
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
ret
test esi, esi
mov ecx, dword [esp + 8]
mov dword [ecx], eax
je 0x41211e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret
Function at 0x412122
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea edi, [ebp - 4]
call fcn.00412152
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, eax
mov eax, dword [ebp - 4]
dec ebx
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.0040147d
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x41372a
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x438060]
xor eax, ebp
push ebx
push esi
mov dword [ebp + 0x88], eax
call fcn.0040765f
test al, al
jne 0x4137de
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.ProgramFilesFolder
push eax
call esi
test eax, eax
mov ebx, str.AppDataFolder
je 0x413785
mov eax, dword [edi]
push 0x431ed0
push eax
call esi
test eax, eax
je 0x413785
mov eax, dword [edi]
push ebx
push eax
call esi
test eax, eax
jne 0x4137de
mov eax, dword [edi]
push ebx
push eax
call esi
neg eax
sbb al, al
inc al
push 0
pop ebx
mov byte [ebp - 0x7d], al
mov byte [ebp - 0x7c], bl
mov eax, str.APPDATA
jne 0x4137a6
mov eax, str.PROGRAMFILES
push 0x104
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
jbe 0x4137c2
mov byte [ebp + esi - 0x7c], 0x5c
inc esi
mov byte [ebp + esi - 0x7c], bl
cmp byte [ebp - 0x7c], bl
je 0x4137d5
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.004018a3
xor eax, eax
cmp esi, ebx
setne al
jmp 0x4137e0
xor al, al
mov ecx, dword [ebp + 0x88]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e08a
add ebp, 0x8c
leave
ret

Function at 0x413ea6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [eax]
push ebx
push esi
xor esi, esi
cmp dword [eax - 0xc], esi
mov ebx, ecx
jne 0x413ebe
xor eax, eax
jmp 0x413f61
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413ee0
push eax
jmp 0x413f57
push esi
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x413ef5
cmp edi, esi
jmp 0x413f54
push 0x78
lea eax, [ebp + 0xc]
call fcn.00404493
push esi
lea eax, [ebp - 4]
push eax
push ebx
lea esi, [ebp + 0xc]
call fcn.004044e7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413f47
cmp dword [ebp - 4], 0
je 0x413f47
mov eax, esi
push eax
push dword [ebp + 8]
call fcn.0041397a
movzx esi, al
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040147d
test edi, edi
je 0x413f43
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x413f60
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040147d
test edi, edi
je 0x413f5d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x415f71
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x438060]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1ac]
push ebx
push edi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x68]
push eax
push 0x104
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x78], eax
je 0x416117
lea eax, [ebp + 0x9c]
push eax
push ebx
push 0x43251c
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x416117
push esi
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp + 0x9c]
push eax
lea esi, [ebp - 0x6c]
call fcn.004015d9
mov esi, str..url
mov ecx, esi
call fcn.0040195b
push eax
push esi
lea eax, [ebp - 0x6c]
push eax
call fcn.004026e5
push ebx
push 0x80
push 2
push ebx
push ebx
mov ebx, dword [ebp - 0x6c]
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x80], esi
jne 0x41603a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 0x10]
jmp 0x416111
mov eax, dword [0x438af8]
mov ecx, 0x438af8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x70], eax
mov eax, dword [edi]
sub eax, 0x10
call fcn.00401c33
mov edi, eax
add edi, 0x10
push edi
lea eax, [ebp - 0x70]
push str._InternetShortcut__r_nURL_s_r_n
push eax
call fcn.004044d4
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebx - 0xc]
add esp, 0xc
push 0
lea ecx, [ebp - 0x78]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
mov dword [ebp - 0x70], eax
je 0x416095
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x80], 0
xor eax, eax
cmp dword [ebp - 0x70], eax
je 0x4160af
push 5
push eax
push eax
push dword [ebp - 0x6c]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp - 0x6c]
push 0x5c
call fcn.004026aa
test eax, eax
pop ecx
jne 0x4160c3
or eax, 0xffffffff
jmp 0x4160c6
sub eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
add ecx, 0x18
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea esi, [ebp - 0x6c]
call fcn.00402629
push eax
call fcn.00411b29
mov eax, dword [ebp - 0x70]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040147d
lea eax, [edi - 0x10]
call fcn.0040147d
lea eax, [ebx - 0x10]
call fcn.0040147d
cmp dword [ebp - 0x80], 0
je 0x41610b
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff0
call fcn.0040147d
pop esi
mov ecx, dword [ebp + 0x1a0]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042e08a
add ebp, 0x1a4
leave
ret 4

Function at 0x41886f
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [esi + 0x10]
test eax, eax
mov dword [esi], 0x4327c4
je 0x418883
push eax
push esi
call dword [esi + 8]
pop ecx
pop ecx
cmp byte [esi + 0xc], 0
je 0x418897
push dword [esi + 4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esi + 4]
sub eax, 0x10
jmp fcn.0040147d
Function at 0x4198ee
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x30]
cmp dword [eax - 0xc], 0
je 0x419af6
push ebx
push edi
call fcn.00407484
test al, al
je 0x4199fc
push 0xf
pop ecx
push dword [0x438538]
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54], 0x40
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x43853c]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x54]
push ecx
call eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x30]
call fcn.00408f91
mov ecx, dword [ebp - 0x4c]
and dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], eax
and dword [ebp - 4], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
fild qword [ebp - 0x14]
fild qword [ebp - 8]
fchs
faddp st(1)
fmul qword [0x435f28]
fcom qword [0x435f40]
fld st(0)
fnstsw ax
test ah, 0x41
jne 0x4199b7
call fcn.0042f1c4
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fsubr st(1)
fcomp qword [0x435f40]
fnstsw ax
test ah, 0x41
jne 0x4199de
fadd qword [0x435f38]
jmp 0x4199d7
call fcn.0042f1c4
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fsubr st(1)
fcomp qword [0x435f40]
fnstsw ax
test ah, 5
jp 0x4199de
fsub qword [0x435f38]
call fcn.0042f1c4
jmp 0x4199e3
mov eax, dword [ebp - 4]
fstp st(0)
test ebx, ebx
cdq
mov esi, eax
mov edi, edx
je 0x419a9d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x419a9d
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x30]
call fcn.00408f91
fild dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
jge 0x419a35
fadd qword [0x435f30]
fmul qword [0x435f28]
fcom qword [0x435f40]
fld st(0)
fnstsw ax
test ah, 0x41
jne 0x419a6c
call fcn.0042f1c4
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fsubr st(1)
fcomp qword [0x435f40]
fnstsw ax
test ah, 0x41
jne 0x419a93
fadd qword [0x435f38]
jmp 0x419a8c
call fcn.0042f1c4
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fsubr st(1)
fcomp qword [0x435f40]
fnstsw ax
test ah, 5
jp 0x419a93
fsub qword [0x435f38]
call fcn.0042f1c4
jmp 0x419a98
mov eax, dword [ebp - 4]
fstp st(0)
cdq
mov esi, eax
mov edi, edx
cmp byte [0x438cec], 0
je 0x419ae6
mov eax, dword [0x438af8]
mov ecx, 0x438af8
call dword [eax + 0xc]
push edi
add eax, 0x10
push esi
push dword [0x4387e0]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004063dd
push eax
call fcn.004064f9
push eax
mov ebx, 0x438cbc
call fcn.00405df0
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp - 0xc]
cdq
cmp edi, edx
pop edi
pop ebx
jb 0x419afa
ja 0x419af6
cmp esi, eax
jb 0x419afa
mov al, 1
jmp 0x419b10
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
add eax, 0x30
push eax
push 0xd4
call fcn.00419c25
xor al, al
pop esi
leave
ret 4
Function at 0x419c25
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x54]
push ebx
push edi
push 0x10
pop ebx
sub eax, ebx
call fcn.00401c33
add eax, ebx
push 0x4317a0
lea edi, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.0040789b
mov eax, dword [0x438af8]
pop ecx
mov edi, 0x438af8
mov ecx, edi
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0040162d
mov eax, dword [0x438af8]
mov ecx, edi
call dword [eax + 0xc]
add eax, ebx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp + 8]
push dword [ebp - 8]
push dword [ebp - 4]
push eax
call fcn.004044d4
add esp, 0x10
cmp byte [0x438cec], 0
je 0x419ccf
mov eax, dword [0x438af8]
mov ecx, edi
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, ebx
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
call fcn.004063dd
push eax
mov ebx, 0x438cbc
call fcn.00405df0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040147d
cmp byte [esi + 0x10], 0
pop edi
pop ebx
je 0x419ce2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x419cfe
mov eax, dword [esi]
call fcn.0042b55a
mov eax, dword [esi]
push 0
call fcn.0042b499
push 0x30
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042b508
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040147d
leave
ret 8

Function at 0x41b977
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
xor ebx, ebx
mov byte [esi + 0x19], bl
mov byte [esi + 0x18], bl
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esi + 0x1c], eax
lea eax, [esp + 4]
push eax
push ebx
push esi
push 0x41b9a4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebx
pop ecx
ret

Function at 0x41bd04
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.0040863b
test eax, eax
je 0x41bd8e
lea eax, [ebp - 8]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41bd45
cmp dword [ebp - 8], esi
je 0x41bd41
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x41bda5
lea eax, [ebp - 0x14]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41bd33
cmp dword [ebp - 8], esi
je 0x41bd93
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41bd93
call fcn.0041bda8
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
pop esi
leave
ret