joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100286e
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [0x100b6dc], eax
mov ecx, 0x23f
xor eax, eax
mov edi, 0x100ade0
rep stosd dword es:[edi], eax
mov ecx, 0xcb
mov edi, 0x100aaa0
rep stosd dword es:[edi], eax
push 0x41
mov edi, 0x100b720
pop ecx
mov esi, 0x100adf4
rep stosd dword es:[edi], eax
push 1
xor ebx, ebx
pop edi
mov dword [ebp - 4], ebx
push 0x7f
push esi
push 0x10013b4
mov dword [0x100b08c], edi
call fcn.01003e60
cmp eax, ebx
je 0x1002a8d
cmp eax, 0x80
ja 0x1002a8d
push ebx
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x100aa7c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
push 0x100b6d4
push 0x10013a8
call fcn.01003e60
test eax, eax
je 0x100292b
test byte [0x100b6d4], 0xc0
je 0x10029bb
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0x1001398
call fcn.01003e60
test eax, eax
jne 0x100294a
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.01003d0d
mov dword [0x100b704], 0x80070714
jmp 0x1002a9d
lea eax, [ebp - 0x108]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [0x100aa80], eax
je 0x10029bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10029bb
test byte [0x100b6d4], 0x80
je 0x100298a
push ebx
push 0x10
push ebx
push esi
push 0x54b
push ebx
call fcn.01003d0d
jmp 0x10029a0
push 4
push 0x20
push ebx
push esi
push 0x524
push ebx
call fcn.01003d0d
cmp eax, 6
je 0x10029bb
push dword [0x100aa80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100b704], 0x800700b7
jmp 0x1002a9d
push dword [ebp + 0xc]
mov dword [0x100b824], ebx
call fcn.01005255
test eax, eax
jne 0x10029dc
push ebx
push 0x10
push ebx
push ebx
push 0x520
jmp 0x1002a97
cmp byte [0x100aaba], bl
je 0x10029f3
push 0x100aaba
call fcn.01001f9c
jmp 0x1002a9d
push 0xa
push 0x100138c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x1002a14
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [0x100a2f8], ebx
je 0x1002a22
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x100aaa4], ebx
jne 0x1002a89
push dword [ebp - 4]
call fcn.01003191
test eax, eax
je 0x1002a9d
mov ax, word [0x100bc04]
cmp ax, di
je 0x1002a47
cmp ax, 2
jne 0x1002a89
test byte [0x100b6d5], 1
je 0x1002a89
test byte [0x100aab8], 1
jne 0x1002a89
call fcn.01001610
test eax, eax
jne 0x1002a89
push 0x83e
push 0x547
push 0x100171a
push ebx
push 0x7d6
push dword [0x100b6dc]
call fcn.01005987
cmp eax, 0x83d
jne 0x1002a9d
mov eax, edi
jmp 0x1002a9f
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.01003d0d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1002ba6
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
jmp 0x10049ed
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [0x100ae80]
xor ebp, ebp
push edi
cmp esi, ebp
mov edi, esi
je 0x1004a40
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x100aaa4], ebp
jne 0x1004a30
cmp dword [0x100b6d0], ebp
jne 0x1004a30
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call ebx
push edi
call ebx
cmp esi, ebp
mov edi, esi
jne 0x1004a0b
cmp dword [0x100aaa0], ebp
je 0x1004a90
cmp dword [0x100aaa4], ebp
jne 0x1004a90
cmp dword [0x100b6d0], ebp
jne 0x1004a90
lea eax, [esp + 0x10]
push 0x100ae84
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100b6d4], 0x20
je 0x1004a7b
lea eax, [esp + 0x10]
push eax
call fcn.01005ae8
push 0x1001328
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0x10]
push eax
call fcn.01001f9c
cmp word [0x100bc04], 1
je 0x1004aa7
cmp dword [0x100aaa0], ebp
je 0x1004aa7
call fcn.01001c67
pop edi
mov dword [0x100aaa0], ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x1003936
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
xor esi, esi
push 1
cmp dword [ebp + 8], esi
pop ebx
jne 0x1003952
xor eax, eax
jmp 0x1003a2a
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10039e2
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [0x100aaa8], esi
mov ecx, dword [ebp + 0xc]
jne 0x10039bc
mov al, byte [0x100b6cc]
test bl, al
je 0x10039bc
test al, 2
jne 0x10039bc
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x10039bc
mov dword [0x100b6cc], ecx
push ecx
call fcn.01003a30
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x10]
call edi
test byte [0x100b6d5], 4
je 0x1003a27
cmp dword [ebp + 0xc], esi
jge 0x1003a27
jmp 0x1003a25
call fcn.0100575a
mov dword [0x100b704], eax
push esi
lea eax, [ebp - 0x210]
push 0x200
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push esi
lea eax, [ebp - 0x210]
push 0x10
push eax
push dword [ebp + 8]
push 0x4c4
push esi
call fcn.01003d0d
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1003b0d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push str.SHELL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x14], edi
je 0x1003c27
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHBrowseForFolder
push edi
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1003c14
push 0xc3
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x1003c14
push str.SHGetPathFromIDList
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1003c14
cmp byte [0x100b720], bl
mov esi, 0x100b720
jne 0x1003bb1
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.USER32.dll_CharPrevA]
add eax, esi
push eax
push esi
call edi
cmp byte [eax], 0x5c
mov dword [ebp - 4], eax
jne 0x1003bb1
push eax
push esi
call edi
cmp byte [eax], 0x3a
je 0x1003bb1
mov eax, dword [ebp - 4]
mov byte [eax], bl
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
mov byte [edi], bl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x1003aec
mov dword [ebp - 0x1c], esi
call dword [ebp - 8]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x1003c02
push esi
push eax
call dword [ebp - 0xc]
cmp byte [0x100b720], bl
je 0x1003bfc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
call dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp byte [edi], bl
setne al
jmp 0x1003c3b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 0x10
push ebx
push ebx
push 0x4c1
jmp 0x1003c31
push ebx
push 0x10
push ebx
push ebx
push 0x4c2
push dword [ebp + 8]
call fcn.01003d0d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1003e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
push 0xa
xor edi, edi
push dword [ebp + 8]
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, dword [ebp + 0x10]
ja 0x1003ec9
cmp dword [ebp + 0xc], edi
je 0x1003ec9
cmp ebx, edi
je 0x1003ea9
push 0xa
push dword [ebp + 8]
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
jne 0x1003ead
xor eax, eax
jmp 0x1003ecb
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1003f60
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 1
pop ebx
push edi
mov esi, ebx
call fcn.01005a59
test eax, eax
jne 0x1003f7a
mov eax, ebx
jmp 0x1003fd9
cmp dword [0x100ae7c], 0
jne 0x1003fc7
test byte [0x100aab8], bl
jne 0x1003fc7
push 6
push 0
push 0x1002f15
mov dword [0x100b0a4], edi
push dword [0x100aa78]
push 0x7d3
push dword [0x100b6dc]
call fcn.01005987
sub eax, 6
je 0x1003fc5
dec eax
je 0x1003fdf
sub eax, 0x832
jne 0x1003fc7
mov dword [0x100ae7c], ebx
mov esi, ebx
test esi, esi
je 0x1003fd7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop edi
pop esi
pop ebx
ret 4
xor esi, esi
jmp 0x1003fc7

Function at 0x1004103
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov cl, byte [edi]
test cl, cl
je 0x1004167
mov al, byte [edi + 1]
lea esi, [edi + 1]
xor ebx, ebx
cmp al, 0x3a
jne 0x1004127
cmp byte [edi + 2], 0x5c
jne 0x1004127
lea esi, [edi + 3]
jmp 0x1004136
cmp cl, 0x5c
jne 0x1004136
cmp al, cl
jne 0x1004136
push 2
lea esi, [edi + 2]
pop ebx
mov al, byte [esi]
test al, al
je 0x1004167
cmp al, 0x5c
jne 0x100415c
cmp byte [esi - 1], 0x3a
je 0x100415c
test ebx, ebx
je 0x100414d
dec ebx
jmp 0x100415c
and byte [esi], 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x1004136
pop edi
pop esi
pop ebx
ret 4

Function at 0x1004ab8
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
xor edi, edi
xor ebp, ebp
mov eax, edi
inc edi
push eax
lea eax, [esp + 0x14]
push 0x1001480
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esp + 0x118]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.01005aa9
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 0xffffffff
je 0x1004b20
cmp edi, 0x190
jl 0x1004acd
jmp 0x1004b33
xor ebp, ebp
push ebp
push esi
call ebx
test eax, eax
je 0x1004b33
push 1
pop ebp
mov dword [0x100aaa0], ebp
test ebp, ebp
jne 0x1004b5e
push esi
push ebp
push 0x100147c
push dword [esp + 0x124]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1004b5e
push 1
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8
Function at 0x1004b6d
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
je 0x1004bfa
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
call fcn.01004ab8
test eax, eax
je 0x1004c57
lea eax, [ebp - 0x128]
mov esi, 0x100ae84
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100b6d4], 0x20
je 0x1004bed
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
sub eax, ebx
je 0x1004be2
dec eax
je 0x1004bdb
dec eax
je 0x1004bd4
dec eax
jne 0x1004bed
push 0x10014a4
jmp 0x1004be7
push 0x100149c
jmp 0x1004be7
push 0x1001494
jmp 0x1004be7
push 0x100148c
push esi
call fcn.01005aa9
push 0x10012d4
push esi
call fcn.01005aa9
jmp 0x1004c09
push dword [ebp + 8]
mov esi, 0x100ae84
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.01004f3f
test eax, eax
jne 0x1004c29
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1004c5f
mov dword [0x100aaa0], 1
push ebx
push dword [ebp + 0x10]
push esi
call fcn.01004fde
test eax, eax
je 0x1004c42
push 1
mov dword [0x100b704], ebx
pop eax
jmp 0x1004c59
cmp dword [0x100aaa0], ebx
je 0x1004c57
push esi
mov dword [0x100aaa0], ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
pop esi
pop ebx
leave
ret 0xc
call fcn.0100575a
mov dword [0x100b704], eax
jmp 0x1004c57
Function at 0x1004f3f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x14
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x1004f85
push ebp
push 0x10
push ebp
push ebp
push 0x4b5
push ebp
call fcn.01003d0d
call fcn.0100575a
mov dword [0x100b704], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10014bc
push esi
call fcn.01005aa9
push ebp
push 0x4000080
push 1
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x1004f72
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004f72
test al, 0x10
je 0x1004f72
push 1
mov dword [0x100b704], ebp
pop eax
jmp 0x1004f7e
Function at 0x1004fde
Capabilities:
Get common file path
Get disk information
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov dword [ebp - 4], ebx
je 0x10051cf
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x1005038
push ebx
push 0x10
push ebx
push ebx
push 0x4bc
push ebx
call fcn.01003d0d
call fcn.0100575a
mov dword [0x100b704], eax
jmp 0x100515a
lea eax, [ebp - 4]
push eax
push ebx
call fcn.01005b95
mov edi, eax
cmp edi, ebx
jne 0x100509d
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x317]
mov byte [ebp - 0x318], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0100575a
mov dword [0x100b704], eax
push ebx
lea eax, [ebp - 0x318]
push 0x200
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
lea eax, [ebp - 0x318]
push 0x10
push eax
push dword [ebp + 8]
push 0x4b0
jmp 0x1005106
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x1005117
push 0x7f
lea edi, [ebp - 0x317]
pop ecx
mov byte [ebp - 0x318], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0100575a
mov dword [0x100b704], eax
push ebx
lea eax, [ebp - 0x318]
push 0x200
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
lea eax, [ebp - 0x318]
push 0x10
push eax
push dword [ebp + 8]
push 0x4f9
push ebx
call fcn.01003d0d
lea eax, [ebp - 0x118]
push eax
call esi
jmp 0x100515a
lea eax, [ebp - 0x118]
push eax
call esi
push 3
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, 0x200
xor eax, eax
cmp dword [ebp - 4], ecx
je 0x1005144
shl ecx, 1
inc eax
cmp ax, 8
jb 0x1005136
cmp ax, 8
jne 0x100515e
push ebx
push 0x10
push ebx
push ebx
push 0x4c5
push ebx
call fcn.01003d0d
xor eax, eax
jmp 0x10051d2
test byte [0x100b6d4], 8
je 0x1005188
test byte [ebp - 0xf], 0x80
je 0x1005188
mov edx, dword [0x100b6d8]
movzx eax, ax
mov ecx, edx
mov eax, dword [eax*4 + 0x100b6e0]
shr ecx, 2
shl eax, 1
add ecx, edx
jmp 0x1005198
mov ecx, dword [0x100b6d8]
movzx eax, ax
mov eax, dword [eax*4 + 0x100b6e0]
mov esi, dword [ebp + 0xc]
and esi, 1
je 0x10051ad
test byte [ebp + 0xc], 2
je 0x10051ad
lea edx, [ecx + eax]
cmp edx, edi
jmp 0x10051b7
cmp esi, ebx
je 0x10051b5
cmp eax, edi
jmp 0x10051b7
cmp ecx, edi
jbe 0x10051c9
lea edx, [ebp - 0xc]
push edx
push ecx
push eax
push dword [ebp + 0x10]
call fcn.010022eb
jmp 0x10051d2
mov dword [0x100b704], ebx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100570b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x1005748
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.01003d0d
call fcn.0100575a
mov dword [0x100b704], eax
xor eax, eax
leave
ret
push 2
lea eax, [ebp - 0x104]
push 2
push eax
call fcn.01004fde
leave
ret

Function at 0x1005779
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x24]
push edi
push 0x1001380
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
call ebx
add esp, 0xc
lea eax, [ebp - 0x24]
push 0xa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1005842
jmp 0x10057bc
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x1005828
mov eax, dword [esi]
lea edi, [esi + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 4]
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi + 1]
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [ebp + 8]
test eax, eax
je 0x1005837
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
inc dword [ebp - 4]
lea eax, [ebp - 0x24]
push dword [ebp - 4]
push 0x1001380
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x24]
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x10057ba
jmp 0x1005842
mov dword [0x100b704], 0x80070714
mov dword [ebp - 8], edi
jmp 0x1005842
and dword [ebp - 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1005927
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x100ae84
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.01005aa9
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100597a
test al, 0x10
jne 0x100597a
push 8
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x1005983
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

Function at 0x1005a59
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1005a6c
xor eax, eax
jmp 0x1005a74
not eax
shr eax, 4
and eax, 1
ret 4
Function at 0x1005b41
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
cmp byte [ecx], al
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
je 0x1005b77
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x1005b7b
xor eax, eax
jmp 0x1005b91
mov eax, dword [ebp - 8]
push 0x400
imul eax, dword [ebp - 0xc]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
leave
ret 4

Function at 0x10074ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x1007533
cmp edx, 0x10
jl 0x100751f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x100750c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x1007533
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x100752b
and edx, 3
cmp edx, 3
jne 0x1007547
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x100754c
cmp edx, 2
jne 0x1007558
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x100755d
cmp edx, 1
jne 0x1007563
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x4066ed
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x406732
push 0x59
push 0x401556b
push 6
call fcn.00450664
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00458400
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x406795
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004582f0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x4067c3
push 0xfb
push 0x401556b
push 6
call fcn.00450664
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00458400
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x406826
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004582f0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x406854
push 0x19d
push 0x401556b
push 6
call fcn.00450664
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00458400
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4068b7
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004582f0
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4068bf
mov esp, ebp
pop ebp
ret