joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406684
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call fcn.004ccc0d
test eax, eax
jne 0x406849
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4066b1
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4066ba
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x4066c3
mov dword [eax], ebx
push dword [ebp + 8]
mov esi, 0x5528c8
call fcn.004ccd7a
mov esi, dword [ebp + 8]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xffffb1e0
add edi, 0x4e20
mov dword [esp], str..exe
call fcn.004cd54a
push eax
call fcn.005318fe
test eax, eax
pop ecx
pop ecx
jne 0x406708
mov ecx, esi
call fcn.00406f62
mov esi, eax
jmp 0x40670a
xor esi, esi
push ebx
push edi
push 3
push 7
push closesocket
push dword [ebp + 8]
mov eax, SQLGetDiagRec
call fcn.0042eb42
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
jne 0x40676e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x406849
cmp eax, 3
je 0x406849
cmp eax, 0xf
je 0x406849
cmp eax, 0x35
je 0x406849
push eax
push str._GetLastError_
push dword [ebp + 8]
push str.:6:CalculateArchiveCheckSum___s___FAILED:_CreateFileTimeOut___FAILED:__s_ld
call fcn.0042bd38
jmp 0x406846
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x406796
push str._GetLastError_
push dword [ebp + 8]
push str.:7:CalculateArchiveCheckSum___s___EAP:_GetFileSize___FAILED:__s
call fcn.0042bd38
add esp, 0xc
mov dword [ebp - 0x10], ebx
push ebx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push edi
call esi
test eax, eax
je 0x406827
cmp dword [ebp - 4], 4
jb 0x406827
push ebx
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call esi
test eax, eax
je 0x406810
cmp dword [ebp - 4], 4
jb 0x406810
mov ecx, dword [ebp - 8]
push 1
push edi
call fcn.00408256
pop ecx
pop ecx
mov esi, eax
call fcn.00435716
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4067f3
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4067ff
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x40680b
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x40684b
call fcn.00435716
push str._GetLastError_
push dword [ebp - 4]
push dword [ebp + 8]
push str.:7:CalculateArchiveCheckSum___s___FAILED:_ReadFile___FAILED_to_read_the_Archive_CheckSum:_Only_read__ld_bytes:__s
jmp 0x406841
call fcn.00435716
cmp dword [ebp - 0x10], ebx
jbe 0x406849
push str._GetLastError_
push dword [ebp - 4]
push dword [ebp + 8]
push str.:7:CalculateArchiveCheckSum___s___FAILED:_ReadFile___FAILED_to_read_the_archive_size:_Only_read__ld_bytes:__s
call fcn.0042b70b
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407039
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
push 0x4d
lea eax, [ebp - 0x57]
push ebx
push eax
mov byte [ebp - 0x58], bl
call fcn.005306b0
add esp, 0xc
cmp esi, ebx
jne 0x40706b
or eax, 0xffffffff
jmp 0x40711f
lea eax, [ebp - 0x58]
push eax
mov edx, str.____This_is_the_beginning_of_a_PAULA_Arkive_self_extracting_compilation.____
call fcn.004cf445
push esi
call fcn.00532513
push esi
mov dword [ebp - 0x5c], ebx
call fcn.0053256f
add esp, 0xc
cmp eax, 0xffffffff
je 0x4070b2
push 1
push eax
lea eax, [ebp - 0x5c]
lea ebx, [ebp - 0x58]
call fcn.0043c7c9
test eax, eax
pop ecx
pop ecx
jne 0x407118
push esi
call fcn.0053256f
cmp eax, 0xffffffff
pop ecx
jne 0x407090
xor ebx, ebx
push 2
push ebx
push esi
call fcn.00532310
add esp, 0xc
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00530f70
pop ecx
push eax
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.00531aad
mov edi, eax
lea eax, [ebp - 0x58]
push eax
call fcn.00530f70
add esp, 0x14
cmp edi, eax
je 0x4070f6
push str.:7:TagSelfExtractingExe___FAILED:_fwrite___failed_to_write_the_tag_
call fcn.0042b70b
or eax, 0xffffffff
jmp 0x40711e
push esi
call fcn.00532513
push 2
push 0xffffffffffffffff
push esi
call fcn.00532310
push esi
call fcn.0053256f
push 2
push ebx
push esi
call fcn.00532310
add esp, 0x20
push esi
call fcn.005321ec
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
Function at 0x408256
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00544890
push esi
push edi
xor esi, esi
push 0xffc
lea eax, [ebp - 0x1004]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x1008], esi
call fcn.005306b0
add esp, 0xc
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
jne 0x408293
xor eax, eax
jmp 0x408341
shr edi, 2
mov eax, 0x40000
cmp edi, eax
jbe 0x4082a1
mov edi, eax
push ebx
shr edi, 2
mov ebx, 0x400
cmp edi, ebx
jbe 0x4082be
push 4
push edi
call fcn.00530848
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x4082c6
mov edi, ebx
lea esi, [ebp - 0x1008]
xor ebx, ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 0xc], 0
je 0x4082ed
push 0
lea eax, [ebp - 4]
push eax
mov eax, edi
shl eax, 2
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
shr dword [ebp - 4], 2
jmp 0x4082ff
push dword [ebp + 8]
push edi
push 4
push esi
call fcn.00530e93
add esp, 0x10
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], eax
jbe 0x40831d
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add ebx, dword [esi + eax*4]
inc eax
cmp eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jb 0x408309
add ebx, dword [ebp - 4]
jmp 0x4082cb
cmp ebx, eax
jne 0x408329
cmp dword [ebp - 8], eax
je 0x408329
xor ebx, ebx
inc ebx
cmp esi, eax
je 0x40833e
lea eax, [ebp - 0x1008]
cmp esi, eax
je 0x40833e
push esi
call fcn.0053061e
pop ecx
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x409692
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
push 0x10
pop ecx
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
cmp edx, esi
je 0x4097b7
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x4097b7
cmp ebx, esi
je 0x4097b7
mov eax, ebx
call fcn.004ccb8b
xor ecx, ecx
test edi, edi
mov dword [ebp - 0x4c], esi
jbe 0x4097a1
dec edi
mov dword [ebp - 0x50], edi
jmp 0x4096f2
mov edx, dword [ebp + 8]
test esi, esi
jbe 0x409715
xor edx, edx
push 3
pop edi
mov eax, esi
div edi
xor edx, edx
push 0x4c
pop edi
shl eax, 2
div edi
test edx, edx
mov edx, dword [ebp + 8]
jne 0x409715
mov byte [ebx + ecx], 0xa
inc ecx
cmp esi, dword [ebp - 0x50]
jb 0x409727
movzx eax, byte [esi + edx]
shl eax, 0x10
add dword [ebp - 0x4c], 2
jmp 0x40975b
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffe
cmp esi, eax
movzx eax, byte [esi + edx]
jb 0x409747
movzx edx, byte [esi + edx + 1]
shl eax, 8
add eax, edx
shl eax, 8
inc dword [ebp - 0x4c]
jmp 0x40975b
movzx edi, byte [esi + edx + 1]
movzx edx, byte [esi + edx + 2]
shl eax, 8
add eax, edi
shl eax, 8
add eax, edx
mov edx, eax
shr edx, 0x12
push 0x3f
pop edi
and edx, edi
mov dl, byte [ebp + edx - 0x48]
mov byte [ebx + ecx], dl
mov edx, eax
shr edx, 0xc
and edx, edi
mov dl, byte [ebp + edx - 0x48]
inc ecx
mov byte [ebx + ecx], dl
mov edx, eax
shr edx, 6
and edx, edi
mov dl, byte [ebp + edx - 0x48]
inc ecx
and eax, edi
mov al, byte [ebp + eax - 0x48]
mov byte [ebx + ecx], dl
inc ecx
mov byte [ebx + ecx], al
add esi, 3
inc ecx
cmp esi, dword [ebp + 0xc]
jb 0x4096ef
mov eax, dword [ebp - 0x4c]
test eax, eax
jbe 0x4097b3
lea ebx, [ebx + ecx - 1]
mov byte [ebx], 0x3d
dec ebx
dec eax
jne 0x4097ac
mov eax, ecx
jmp 0x4097b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
Function at 0x411212
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x108], 0
call fcn.005306b0
add esp, 0xc
test edi, edi
jne 0x411250
lea edi, [ebp - 0x108]
mov esi, 0x104
push esi
push edi
push str.windir
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x411275
cmp eax, esi
jae 0x411275
mov edx, edi
call fcn.004ccc0d
test eax, eax
je 0x41128e
push 0
xor eax, eax
call fcn.00492b68
push eax
push str._sWindows
push esi
push edi
call fcn.004ce4e5
add esp, 0x14
mov eax, edi
call fcn.004cd338
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.005317e7
leave
ret

Function at 0x4112a5
Capabilities:
Query environment variable

Disassembly:
mov edx, str.Desktop
jmp fcn.004112af
Function at 0x411c51
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x114
mov eax, dword [0x5f2e68]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call fcn.005306b0
add esp, 0xc
call fcn.00411b9d
xor edi, edi
inc edi
call fcn.00414d56
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
mov esi, str._GetLastError_
jne 0x411cad
push esi
push str.:7:InitConsole___FAILED:_AllocConsole___FAILED:__s
xor edi, edi
call fcn.0042b70b
pop ecx
pop ecx
mov ebp, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 7
push 0xfffffffffffffff6
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push eax
call ebx
test eax, eax
jne 0x411cd5
push esi
push str.:7:InitConsole___FAILED:_SetConsoleMode_STD_INPUT_HANDLE__FAILED:__s
xor edi, edi
call fcn.0042b70b
pop ecx
pop ecx
push 3
push 0xfffffffffffffff5
call ebp
push eax
call ebx
test eax, eax
jne 0x411cf1
push esi
push str.:7:InitConsole___FAILED:_SetConsoleMode_STD_OUTPUT_HANDLE__FAILED:__s
xor edi, edi
call fcn.0042b70b
pop ecx
pop ecx
push 1
push 0x411e0d
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x411d11
push esi
push str.:7:InitConsole___FAILED:_SetConsoleCtrlHandler___FAILED:__s
xor edi, edi
call fcn.0042b70b
pop ecx
pop ecx
mov ebp, 0x35c
push ebp
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
test eax, eax
jne 0x411d30
push ebp
push str.:9:InitConsole___FAILED:_SetConsoleOutputCP___FAILED:_could_not_set_code_page__d___
xor edi, edi
call fcn.0042b70b
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor ebx, ebx
cmp eax, ebx
mov dword [0x607db4], eax
jne 0x411d50
push esi
push str.:7:InitConsole___FAILED:_GetConsoleWindow___FAILED:__s
xor edi, edi
call fcn.0042b70b
pop ecx
pop ecx
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x411d8f
lea edx, [esp + 0x14]
call fcn.004cd7e8
mov eax, edx
push eax
mov esi, 0x5528c8
call fcn.004ccd7a
test eax, eax
pop ecx
jne 0x411d8f
push ebx
push ebx
call fcn.00493030
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.Sounds_
push ebx
call fcn.00493030
pop ecx
pop ecx
mov ebx, eax
call fcn.004c891b
call fcn.004fa8e4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0053114a
pop ecx
call fcn.00531157
call fcn.00531157
call fcn.00531157
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005317e7
add esp, 0x114
ret
Function at 0x411e6d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor ebx, ebx
push ebx
mov esi, eax
call fcn.00412039
cmp esi, ebx
pop ecx
mov dword [0x607ce4], ebx
jne 0x411ea5
xor eax, eax
jmp 0x41202a
push 0x400
mov eax, 0x6078e0
push ebx
push eax
mov dword [0x607ce8], eax
xor edi, edi
mov dword [ebp - 0x114], ebx
call fcn.005306b0
mov eax, dword [0x607ce4]
mov edx, dword [0x607ce0]
add esp, 0xc
cmp byte [esi], bl
je 0x411f94
mov dword [ebp - 0x118], esi
cmp eax, 0x32
jge 0x411f80
lea esi, [edx + edi]
cmp esi, 0x3f6
jge 0x411f80
mov ecx, dword [ebp - 0x118]
mov cl, byte [ecx]
cmp cl, 0x20
ja 0x411f40
xor ebx, ebx
cmp dword [ebp - 0x114], ebx
jne 0x411f40
cmp edi, ebx
jle 0x411f3c
inc eax
cmp eax, 1
lea edx, [esi + 6]
mov dword [0x607ce4], eax
mov dword [0x607ce0], edx
jne 0x411f2f
add edx, 4
mov dword [0x607ce0], edx
lea ecx, [edx + 0x6078e0]
mov dword [eax*4 + 0x607ce8], ecx
xor edi, edi
jmp 0x411f6c
cmp cl, 0x22
jne 0x411f61
cmp dword [ebp - 0x114], ebx
jne 0x411f59
mov dword [ebp - 0x114], 1
jmp 0x411f6c
mov dword [ebp - 0x114], ebx
jmp 0x411f6c
mov esi, dword [eax*4 + 0x607ce8]
mov byte [edi + esi], cl
inc edi
inc dword [ebp - 0x118]
mov ecx, dword [ebp - 0x118]
cmp byte [ecx], bl
jne 0x411edf
cmp edi, ebx
jle 0x411f94
inc eax
lea edx, [edx + edi + 1]
mov dword [0x607ce4], eax
mov dword [0x607ce0], edx
push 0x32
pop ecx
cmp eax, ecx
jge 0x411fac
lea edi, [eax*4 + 0x607ce8]
sub ecx, eax
lea eax, [edx + 0x6078e0]
rep stosd dword es:[edi], eax
mov esi, dword [0x607ce8]
call fcn.004cd54a
mov edx, eax
call fcn.004ccc0d
test eax, eax
je 0x412025
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.005306b0
add esp, 0xc
push dword [0x607ce8]
mov esi, 0x104
mov ecx, esi
lea eax, [ebp - 0x110]
call fcn.004ccc3f
mov eax, esi
lea esi, [ebp - 0x110]
mov dword [esp], str..exe
call fcn.004ccd0f
pop ecx
mov edi, esi
call fcn.00432263
test eax, eax
je 0x412025
mov eax, esi
push eax
push dword [0x607ce8]
call fcn.005312a0
pop ecx
pop ecx
mov eax, dword [0x607ce4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
Function at 0x412585
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test esi, esi
push ebx
mov ebx, eax
jne 0x412595
xor eax, eax
jmp 0x41260a
test ebx, ebx
jne 0x41259e
mov byte [esi], 0
jmp 0x412591
jge 0x4125c4
push edi
call fcn.00414c7a
mov edi, eax
sub edi, dword [ebp + 8]
push ebx
call fcn.0053146e
cmp edi, eax
pop ecx
jge 0x4125ba
mov ebx, edi
jmp 0x4125c3
push ebx
call fcn.0053146e
pop ecx
mov ebx, eax
pop edi
mov ax, word [ebp + 8]
mov word [ebp - 8], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 6], ax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push esi
call fcn.00414d12
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x4125fa
cmp eax, ebx
jg 0x412599
mov byte [eax + esi], 0
jmp 0x412591
cmp eax, ebx
jg 0x412604
mov byte [eax + esi], 0
jmp 0x412607
mov byte [esi], 0
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x412b29
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x124
lea eax, [ebp - 0x230]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], ebx
call fcn.005306b0
add esp, 0xc
push 0xff
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call fcn.005306b0
add esp, 0xc
push 9
xor eax, eax
pop ecx
mov dword [ebp - 0x26c], ebx
lea edi, [ebp - 0x268]
rep stosd dword es:[edi], eax
mov eax, esi
call fcn.004d08a1
test eax, eax
jne 0x412bbe
cmp esi, ebx
je 0x412bac
push str.GetAllProcesses___was_passed_an_invalid_string_list.
call fcn.0042b70b
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x244], edi
jne 0x412bda
push str.GetAllProcesses___FAILED:_CreateToolhelp32Snapshot___FAILED_
jmp 0x412ba6
lea eax, [ebp - 0x234]
push eax
push edi
mov dword [ebp - 0x234], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x412c0c
push str.GetAllProcesses___FAILED:_Process32First___FAILED_
call fcn.0042b70b
pop ecx
or ebx, 0xffffffff
call fcn.00435716
mov eax, ebx
jmp 0x412baf
mov dword [ebp - 0x240], ebx
mov esi, 0x100
cmp dword [ebp + 8], ebx
je 0x412d06
push dword [ebp - 0x22c]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x412c66
push 0x28
lea eax, [ebp - 0x26c]
push ebx
push eax
call fcn.005306b0
add esp, 0xc
push 0x28
pop eax
push eax
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x26c]
push eax
push edi
call sub.PSAPI.DLL_GetProcessMemoryInfo
call fcn.00435716
mov eax, dword [ebp - 0x264]
fild dword [ebp - 0x264]
test eax, eax
jge 0x412c7c
fadd dword [0x5edb68]
fmul qword [0x5edbe8]
push ecx
fstp dword [ebp - 0x238]
fld dword [ebp - 0x238]
fstp dword [esp]
push 2
pop ecx
call fcn.00468e14
mov eax, dword [ebp - 0x260]
test eax, eax
push ecx
fstp qword [esp]
push dword [ebp - 0x264]
fild dword [ebp - 0x260]
push ecx
jge 0x412cbb
fadd dword [0x5edb68]
fmul qword [0x5edbe8]
push ecx
fstp dword [ebp - 0x238]
fld dword [ebp - 0x238]
fstp dword [esp]
push 2
pop ecx
call fcn.00468e14
fstp qword [esp]
push dword [ebp - 0x260]
lea eax, [ebp - 0x210]
push dword [ebp - 0x220]
push eax
push str.__17s_t__3d_t__10d_t_7.2fmb_t__10d_t_7.2fmb
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.004ce4e5
add esp, 0x2c
jmp 0x412d1b
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
lea eax, [ebp - 0x10c]
call fcn.004ccc3f
pop ecx
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x23c]
call fcn.004d08bc
mov ecx, dword [ebp - 0x23c]
add esp, 0xc
push dword [ebp - 0x22c]
or eax, 0xffffffff
call fcn.004d125e
mov eax, dword [ebp - 0x23c]
pop ecx
push dword [ebp - 0x220]
call fcn.004d12f5
mov edi, dword [ebp - 0x244]
inc dword [ebp - 0x240]
pop ecx
lea eax, [ebp - 0x234]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x412c17
mov ebx, dword [ebp - 0x240]
jmp 0x412c03
Function at 0x412e07
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x124
lea eax, [ebp - 0x12c]
push esi
push eax
mov dword [ebp - 0x130], esi
call fcn.005306b0
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x13c], esi
call fcn.004ccc0d
test eax, eax
je 0x412e5d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x13c], eax
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x138], eax
jne 0x412e91
push esi
push esi
push str.GetProcessThreadCount__s___d__FAILED:_CreateToolhelp32Snapshot___FAILED_
call fcn.0042b70b
add esp, 0xc
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
lea ecx, [ebp - 0x130]
push ecx
push eax
mov dword [ebp - 0x130], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x412ecd
push esi
push esi
push str.GetProcessThreadCount__s___d__FAILED:_Process32First___FAILED_
call fcn.0042b70b
add esp, 0xc
or esi, 0xffffffff
mov edi, dword [ebp - 0x138]
call fcn.00435716
mov eax, esi
jmp 0x412e82
xor ebx, ebx
xor edi, edi
mov eax, dword [ebp - 0x13c]
cmp dword [ebp - 0x128], eax
jne 0x412ee9
mov dword [ebp - 0x134], 1
cmp dword [ebp - 0x134], esi
je 0x412ef7
add ebx, dword [ebp - 0x11c]
inc edi
cmp edi, 0x300
jle 0x412f1e
cmp edi, 0x309
jge 0x412f34
lea eax, [ebp - 0x10c]
push eax
push esi
push esi
push str.:9:GetProcessThreadCount__s___d__FAILED:_Process32Next__s__wont_stop_
call fcn.0042b70b
add esp, 0x10
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x138]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x412ed1
mov esi, ebx
jmp 0x412ebe
Function at 0x412f38
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push edi
xor ebx, ebx
push 0x124
lea eax, [ebp - 0x130]
push ebx
push eax
mov dword [ebp - 0x134], ebx
call fcn.005306b0
add esp, 0xc
cmp esi, ebx
je 0x413024
cmp byte [esi], bl
je 0x413024
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x412fa2
push dword [ebp + 8]
push esi
push str.CountProcesses__s___d__FAILED:_CreateToolhelp32Snapshot___FAILED_
call fcn.0042b70b
add esp, 0xc
or eax, 0xffffffff
jmp 0x413026
lea eax, [ebp - 0x134]
push eax
push edi
mov dword [ebp - 0x134], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x412fd5
push dword [ebp + 8]
push esi
push str.CountProcesses__s___d__FAILED:_Process32First___FAILED_
call fcn.0042b70b
add esp, 0xc
call fcn.00435716
jmp 0x412f9a
mov dword [ebp - 0x138], ebx
cmp dword [ebp + 8], ebx
push esi
lea eax, [ebp - 0x110]
push eax
je 0x412ff5
call fcn.005318fe
test eax, eax
pop ecx
pop ecx
je 0x413000
jmp 0x413006
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
je 0x413006
inc dword [ebp - 0x138]
lea eax, [ebp - 0x134]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x412fdb
call fcn.00435716
mov eax, dword [ebp - 0x138]
jmp 0x413026
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
Function at 0x413de3
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 8], 0
push esi
push edi
mov edi, eax
jne 0x413df2
xor eax, eax
jmp 0x413e41
test edi, edi
jne 0x413dfb
mov edi, 0x54f4ea
push edi
call fcn.00530f70
pop ecx
inc eax
push eax
push edi
push 1
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x413e3e
push esi
push str._GetLastError_
push edi
push dword [esp + 0x1c]
push str.:4:SetRegString___s_____s___FAILED:_RegSetValueEx___FAILED:__s_ld
call fcn.0042bd38
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x413dee
xor eax, eax
inc eax
pop edi
pop esi
ret

Function at 0x413ecf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1a4]
mov esi, 0x207
xor ebx, ebx
push esi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x73]
push ebx
push eax
mov byte [ebp - 0x74], bl
call fcn.005306b0
add esp, 0xc
cmp dword [ebp + 0x1a8], ebx
mov dword [ebp - 0x7c], ebx
jge 0x413f27
mov dword [ebp + 0x1a8], esi
push 0x208
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.005306b0
mov eax, dword [ebp - 0x78]
add esp, 0xc
call fcn.004ccb8b
mov edx, edi
call fcn.004ccc0d
test eax, eax
je 0x413f50
xor eax, eax
jmp 0x413f9e
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
je 0x413f8a
push esi
push str._GetLastError_
push edi
push str.:4:GetRegString___s___FAILED:_RegQueryValueEx___FAILED:__s_ld
call fcn.0042bd38
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x413f4c
mov ecx, dword [ebp + 0x1a8]
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x78]
dec ecx
call fcn.004ccc3f
pop ecx
mov ecx, dword [ebp + 0x194]
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
add ebp, 0x198
leave
ret

Function at 0x413fb5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
jne 0x413fc3
xor eax, eax
jmp 0x414004
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x414001
push esi
push str._GetLastError_
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.:4:SetRegDword___s____ld__FAILED:_RegSetValueEx___FAILED:__s_ld
call fcn.0042bd38
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x413fbf
xor eax, eax
inc eax
pop esi
pop ebp
ret