joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40399d
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
lea eax, [ebp - 0x2c]
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
push eax
push dword [ebp + 8]
call edi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call esi
xor ebx, ebx
push eax
push ebx
call esi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0x1e
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
cmp dword [0x410f10], 1
mov dword [ebp - 8], eax
je 0x4039fc
cmp dword [0x410f0c], ebx
je 0x403a51
push ebx
push 0x40f1f4
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403a51
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push esi
call edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403f5d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push edi
push 0x65
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x404006
lea eax, [ebp - 0x200]
push 0x200
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov cl, byte [ebp - 0x200]
lea eax, [ebp - 0x200]
test cl, cl
je 0x404006
cmp cl, 0x25
jne 0x403fb2
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x50
je 0x403fbd
cmp cl, 0x70
je 0x403fbd
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
jmp 0x403f9b
mov byte [eax], 0x73
mov eax, dword [ebp + 0xc]
push esi
cmp byte [eax + 0x14], 0
lea esi, [eax + 0x14]
je 0x403fd9
push 0x40f204
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x200]
push esi
push eax
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
pop eax
pop esi
pop edi
leave
ret
push 1
pop eax
jmp 0x404003
Function at 0x404544
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0xc]
add ecx, eax
cmp ecx, dword [esi + 0x14]
jb 0x4045a6
add eax, dword [esi + 0x18]
push 0
push 0
mov edi, eax
push edi
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0x4107e8
push 0x1830
push dword [esi]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4107ec], eax
mov eax, dword [0x4107e8]
and dword [esi + 0xc], 0
mov dword [esi + 0x14], eax
test eax, eax
mov dword [esi + 0x18], edi
jne 0x4045a6
push 0xfffffffffffffffd
pop eax
jmp 0x4045d0
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0xc]
cmp eax, dword [ebp + 0x10]
jle 0x4045b4
mov eax, dword [ebp + 0x10]
xor ecx, ecx
test eax, eax
jle 0x4045d0
mov edx, dword [esi]
mov edi, dword [esi + 0xc]
mov dl, byte [edx + edi]
mov edi, dword [ebp + 0xc]
mov byte [ecx + edi], dl
inc dword [esi + 0xc]
inc ecx
cmp ecx, eax
jl 0x4045ba
pop edi
pop esi
pop ebp
ret

Function at 0x4046cd
Capabilities:
Get file size

Disassembly:
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
ret
Function at 0x405538
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push esi
push 1
pop esi
lea eax, [ebp - 0xb8]
push eax
mov dword [0x410f10], esi
mov dword [ebp - 0xb8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xa8]
sub eax, 0
je 0x4055c5
dec eax
je 0x4055bd
dec eax
jne 0x4055cf
lea eax, [ebp - 0x24]
mov dword [0x410f10], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
push 4
dec eax
pop ecx
je 0x4055af
dec eax
je 0x4055a3
dec eax
jne 0x4055b5
mov dword [0x410f10], 5
jmp 0x4055b5
mov dword [0x410f10], 3
jmp 0x4055b5
mov dword [0x410f10], ecx
cmp dword [ebp - 0xb4], ecx
jb 0x4055cf
mov dword [0x410f0c], esi
jmp 0x4055cf
mov dword [0x410f10], 7
pop esi
leave
ret
Function at 0x405be0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x410bbc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
shl eax, 0xa
add ebx, eax
lea eax, [ebp - 0x108]
push 0x40f460
push eax
call esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00405fa9
mov edi, dword [ebp + 0xc]
pop ecx
test eax, eax
pop ecx
je 0x405c50
push eax
push edi
call esi
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
push edi
call fcn.00405d88
pop ecx
test eax, eax
pop ecx
je 0x405c50
push edi
call fcn.00405d26
test eax, eax
pop ecx
jne 0x405cb4
push 0x105
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x405c78
push ebx
push edi
call fcn.00405d88
pop ecx
test eax, eax
pop ecx
je 0x405c78
push edi
call fcn.00405d26
test eax, eax
pop ecx
jne 0x405cb4
push 0x410790
push edi
call esi
push edi
push ebx
push 3
call fcn.00405cbc
add esp, 0xc
test eax, eax
jge 0x405cb4
push edi
push ebx
push 4
call fcn.00405cbc
add esp, 0xc
test eax, eax
jge 0x405cb4
shr ebx, 0xa
push ebx
push 0x1b97
call fcn.00405ea1
pop ecx
xor eax, eax
pop ecx
jmp 0x405cb7
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405cbc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
mov byte [ebp + 0x11], 0x3a
mov byte [ebp + 0x12], 0x5c
mov byte [esi], al
mov byte [esi + 1], 0x3a
mov byte [esi + 2], 0x5c
mov byte [esi + 3], al
mov byte [ebp + 0x13], al
xor ebx, ebx
mov al, bl
add al, 0x41
mov byte [ebp + 0x10], al
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, dword [ebp + 8]
jne 0x405d15
push dword [ebp + 0xc]
mov al, byte [ebp + 0x10]
mov byte [esi], al
push esi
call fcn.00405d88
pop ecx
test eax, eax
pop ecx
je 0x405d15
push esi
call fcn.00405d26
test eax, eax
pop ecx
jne 0x405d22
inc ebx
cmp ebx, 0x1a
jl 0x405ce0
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x405d1e

Function at 0x405d26
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x40f468
lea eax, [ebp - 0x108]
push dword [ebp + 8]
push eax
call fcn.00406fbf
push 0
push 0x80
push 2
push 0
push 1
lea eax, [ebp - 0x108]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [0x410904], eax
jge 0x405d6f
xor eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
leave
ret
Function at 0x405d88
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push 0x107
push 1
call fcn.0040400b
mov ecx, dword [ebp + 8]
and byte [eax], 0
mov dl, byte [ecx]
mov byte [eax], dl
mov dl, byte [ecx + 1]
mov byte [eax + 1], dl
mov dl, byte [ecx + 2]
and byte [eax + 3], 0
mov byte [eax + 2], dl
movsx cx, byte [ecx]
sub ecx, 0x40
cmp cx, 0x1a
jbe 0x405dcb
add ecx, 0xffe0
test cx, cx
jbe 0x405e0c
cmp cx, 0x1a
ja 0x405e0c
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x405e0c
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.0040658c
add esp, 0xc
cmp eax, dword [ebp + 0xc]
jbe 0x405e0c
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40626f
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
cmp dword [esp + 0x2c], esi
push edi
je 0x4062db
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push esi
push esi
lea eax, [esp + 0x18]
push esi
push eax
call edi
test eax, eax
je 0x406368
push dword [0x410ecc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4062bb
lea eax, [esp + 0x10]
push eax
push dword [0x410ecc]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x4062d1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
lea eax, [esp + 0x18]
push esi
push eax
jmp 0x40628c
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
push esi
mov edi, eax
push esi
push esi
lea eax, [esp + 0x1c]
push esi
add edi, 0x1f4
push eax
call ebp
test eax, eax
je 0x40636d
call ebx
cmp eax, edi
jae 0x40636d
cmp dword [esp + 0x14], 0x12
je 0x406361
push dword [0x410ecc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x406332
lea eax, [esp + 0x10]
push eax
push dword [0x410ecc]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x406356
push esi
push esi
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
push esi
lea eax, [esp + 0x1c]
push esi
push eax
jmp 0x4062fa
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 1
pop eax
jmp 0x40636f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x406762
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x406774
push 0x40f45c
jmp 0x406775
push esi
push dword [ebp + 8]
push 0x40f390
call fcn.004067be
add esp, 0xc
push esi
push dword [ebp + 8]
push 0x40f384
call fcn.004067be
push esi
push dword [ebp + 8]
push 0x40f378
call fcn.004067be
add esp, 0x18
cmp dword [0x40f214], esi
pop esi
je 0x4067b9
push dword [0x410ed4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
pop ebp
ret

Function at 0x4067be
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
lea eax, [ebp - 0x324]
push eax
push dword [ebp + 8]
push dword [0x410db0]
call fcn.004041aa
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x108]
push dword [ebp + 0xc]
push eax
call fcn.00406fbf
cmp dword [ebp + 0x10], 0
je 0x406807
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
call fcn.0040718a
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
leave
ret

Function at 0x4068a5
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x214
and dword [esp], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x228]
mov esi, 0x40f4b8
mov ebp, 0x40f4b0
push dword [esp + 0x10]
push 0x40f208
push edi
call ebx
add esp, 0xc
lea eax, [esp + 0x14]
push dword [0x410ed4]
push 0x105
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x14]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40690e
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x14
jl 0x4068cb
push dword [0x410ed4]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [esp + 0x230]
push ebp
push edi
call esi
push dword [0x410ed4]
push dword [esp + 0x234]
push 0x40f4ac
push edi
call esi
push dword [0x410f14]
lea eax, [esp + 0x120]
push 0x40f05c
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x11c]
push dword [0x410ed4]
push eax
push 0x40f4a0
push edi
call esi
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
Function at 0x4069b5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x105
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
push edi
call fcn.00406f04
push 0x40f4e4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x220]
push 0x20a
mov esi, 0x1b9c
push eax
push esi
call fcn.0040550b
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x14]
push 0x40f05c
push eax
call esi
lea eax, [ebp - 0x220]
push eax
call fcn.00406bd1
add esp, 0x10
lea eax, [ebp - 0x220]
mov ebx, 0x40f4d4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call edi
lea eax, [ebp - 0x220]
push 0x20a
push eax
push 0x1b97
call fcn.0040550b
push 0x1b97
lea eax, [ebp - 0x14]
push 0x40f05c
push eax
call esi
lea eax, [ebp - 0x220]
push eax
call fcn.00406bd1
add esp, 0x10
lea eax, [ebp - 0x220]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call edi
lea eax, [ebp - 0x220]
push 0x20a
push eax
push 0x1b98
call fcn.0040550b
push 0x1b98
lea eax, [ebp - 0x14]
push 0x40f05c
push eax
call esi
lea eax, [ebp - 0x220]
push eax
call fcn.00406bd1
add esp, 0x10
lea eax, [ebp - 0x220]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call edi
push 0x20a
lea eax, [ebp - 0x220]
push eax
push 0x1bc6
call fcn.0040550b
push 0x1bc6
lea eax, [ebp - 0x14]
push 0x40f05c
push eax
call esi
lea eax, [ebp - 0x220]
push eax
call fcn.00406bd1
add esp, 0x10
lea eax, [ebp - 0x220]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406b10
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebx
push esi
push edi
push 0x4000
push 1
call fcn.0040400b
mov ebx, dword [esp + 0x10]
push 0x105
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
push ebx
call fcn.00406f04
push 0x40f4f4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x410c00]
mov esi, edi
mov eax, dword [ecx]
test eax, eax
je 0x406b74
push ebp
mov ebp, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add ebp, 4
lea esi, [esi + eax + 1]
mov eax, dword [ebp]
test eax, eax
jne 0x406b56
pop ebp
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x410904], eax
mov ebx, eax
jne 0x406b9d
xor eax, eax
jmp 0x406bcd
sub esi, edi
push 0
inc esi
push 0x410908
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [0x41090c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
call fcn.00404057
push 1
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x406d64
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push 0x40f558
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.00406fbf
push 0
push 0x80
push 2
push 0
push 1
lea eax, [ebp - 0x108]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x410908
push dword [ebp + 0xc]
mov dword [0x410904], eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [0x41090c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop esi
leave
ret

Function at 0x409385
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4102b0
cmp edx, dword [eax]
je 0x4093a7
add eax, 8
inc ecx
cmp eax, 0x410340
jl 0x409398
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4102b0]
jne 0x4094d5
mov eax, dword [0x410c2c]
cmp eax, 1
je 0x4094af
test eax, eax
jne 0x4093d8
cmp dword [0x40fe74], 1
je 0x4094af
cmp edx, 0xfc
je 0x4094d5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40940f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a290
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004087f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409452
lea eax, [ebp - 0x1a4]
push eax
call fcn.004087f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d5a0
push edi
call fcn.0040b280
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a290
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a2a0
lea eax, [ebp - 0xa0]
push 0x40d580
push eax
call fcn.0040a2a0
push dword [esi + 0x4102b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a2a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b1f4
add esp, 0x2c
pop edi
jmp 0x4094d5
lea eax, [ebp + 8]
lea esi, [esi + 0x4102b4]
push 0
push eax
push dword [esi]
call fcn.004087f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10005bd2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
mov dword [ebp - 8], edx
push edi
mov edi, ecx
cmp word [edx], ax
jne 0x10005bed
mov eax, edi
jmp 0x10005c73
movzx eax, word [edi]
push ebx
push esi
test ax, ax
je 0x10005c6f
mov esi, edi
mov ebx, edx
test ax, ax
je 0x10005c52
movzx eax, word [ebx]
test ax, ax
je 0x10005c78
movzx ecx, word [esi]
sub ecx, eax
jne 0x10005c52
push esi
call dword [sym.imp.USER32.dll_CharNextW]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, dword [ebp - 4]
mov ecx, eax
mov eax, edx
sub ecx, ebx
sub eax, esi
xor ecx, eax
test ecx, 0xfffffffe
jne 0x10005c52
jmp 0x10005c47
add esi, 2
add ebx, 2
movzx eax, word [ebx]
movzx ecx, word [esi]
sub ecx, eax
je 0x10005c4b
cmp esi, edx
jb 0x10005c37
xor eax, eax
cmp word [esi], ax
jne 0x10005c00
xor edx, edx
cmp word [ebx], dx
je 0x10005c78
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, dword [ebp - 8]
mov edi, eax
movzx ecx, word [edi]
mov eax, ecx
test cx, cx
jne 0x10005bf7
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, edi
jmp 0x10005c71
Function at 0x1000608a
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1001e7e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
pop eax
call fcn.1001c6d0
mov eax, esp
lea ecx, [ebp - 0x28]
push 0x1c
push ecx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10006142
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x48]
lea eax, [esi + 0x2000]
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 8]
sub edi, ebx
mov dword [ebp - 8], eax
cmp edi, eax
jb 0x10006142
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10006142
add esi, dword [ebp - 0x1c]
mov ecx, 0x1000
test dword [ebp - 0x18], ecx
je 0x100060e8
test dword [ebp - 0x14], 0x100
mov esi, dword [ebp - 0x28]
je 0x10006117
xor eax, eax
inc eax
jmp 0x10006144
cmp edi, esi
jb 0x10006142
mov eax, dword [ebp - 8]
cmp esi, eax
jae 0x10006124
mov esi, eax
push 4
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [ebp - 0xc]
push eax
push 0x104
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10006144
xor eax, eax
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001bdd0
mov esp, ebp
pop ebp
ret

Function at 0x100062a6
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x220
mov eax, 0x1001c938
call fcn.1001c65a
mov edi, ecx
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], ecx
push eax
push 0x2001f
push ecx
push ebx
push dword [edi]
mov dword [ebp - 0x224], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x100063ad
cmp dword [ebp - 0x21c], esi
je 0x1000630d
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x21c], eax
test esi, esi
jne 0x100063ad
lea ecx, [ebp - 0x22c]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push esi
push eax
jmp 0x10006374
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x21c]
call fcn.100062a6
mov esi, eax
test esi, esi
jne 0x100063ad
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x220], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1000633d
cmp dword [ebp - 0x21c], 0
je 0x100063a3
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c], esi
push ebx
mov ecx, edi
call fcn.100063e3
mov esi, eax
cmp dword [ebp - 0x21c], 0
je 0x100063c2
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.1001c618
ret 4