joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003f28
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], ebx
push ebx
push 0x1001450
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.01001f59
add esp, 0x10
push dword [ebp - 0x110]
inc ebx
push dword [ebp + 0x10]
push esi
call fcn.01001ede
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
push esi
call fcn.01007460
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
je 0x1003fb1
cmp ebx, 0x190
jl 0x1003f54
jmp 0x1003fd1
push 0
push esi
call edi
test eax, eax
je 0x1003fca
xor eax, eax
inc eax
mov dword [0x100dee0], eax
mov dword [ebp - 0x10c], eax
jmp 0x1003fff
and dword [ebp - 0x10c], 0
push esi
push 0
push 0x100144c
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1003fff
push esi
mov dword [ebp - 0x10c], 1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006b33
leave
ret 0xc

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 0x14
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x1004065
push ebx
push 0x10
push ebx
push ebx
push 0x4b5
push ebx
call fcn.010037d6
call fcn.010035be
mov dword [0x100d0c4], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
push dword [ebp + 8]
push esi
push edi
call fcn.01001ede
push 0x100145c
push esi
push edi
call fcn.01007460
push ebx
push 0x4000080
push 1
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 0xffffffff
je 0x1004052
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004052
test al, 0x10
je 0x1004052
xor eax, eax
mov dword [0x100d0c4], ebx
inc eax
jmp 0x100405e
Function at 0x10040c8
Capabilities:
Get common file path
Get disk information
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x318], ebx
jne 0x10040f7
xor eax, eax
inc eax
jmp 0x10042fc
push esi
lea eax, [ebp - 0x310]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
call esi
test eax, eax
jne 0x1004136
push ebx
push 0x10
push ebx
push ebx
push 0x4bc
push ebx
call fcn.010037d6
call fcn.010035be
mov dword [0x100d0c4], eax
jmp 0x100426f
lea eax, [ebp - 0x318]
push eax
push ebx
call fcn.010077e6
cmp eax, ebx
mov dword [ebp - 0x314], eax
jne 0x10041a5
push 0x1ff
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
call fcn.010035be
push ebx
mov dword [0x100d0c4], eax
push 0x200
lea eax, [ebp - 0x20c]
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
push 0x10
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x4b0
jmp 0x1004219
push ebx
push ebx
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x320]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x100422a
push 0x1ff
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
call fcn.010035be
push ebx
mov dword [0x100d0c4], eax
push 0x200
lea eax, [ebp - 0x20c]
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
push 0x10
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x4f9
push ebx
call fcn.010037d6
lea eax, [ebp - 0x310]
push eax
call esi
jmp 0x100426f
lea eax, [ebp - 0x310]
push eax
call esi
push 2
push edi
push 6
lea eax, [ebp - 0xc]
push eax
call fcn.01003622
mov ecx, 0x200
xor eax, eax
cmp dword [ebp - 0x318], ecx
je 0x1004259
add ecx, ecx
inc eax
cmp ax, 8
jb 0x1004248
cmp ax, 8
jne 0x1004276
push ebx
push 0x10
push ebx
push ebx
push 0x4c5
push ebx
call fcn.010037d6
xor eax, eax
jmp 0x10042fb
test byte [0x100daf4], 8
je 0x10042a5
test word [ebp - 0x31c], 0x8000
je 0x10042a5
mov edx, dword [0x100daf8]
movzx eax, ax
mov eax, dword [eax*4 + 0x100e220]
mov ecx, edx
shr ecx, 2
add eax, eax
add ecx, edx
jmp 0x10042b5
mov ecx, dword [0x100daf8]
movzx eax, ax
mov eax, dword [eax*4 + 0x100e220]
mov esi, dword [ebp + 0xc]
and esi, 1
je 0x10042ce
test byte [ebp + 0xc], 2
je 0x10042ce
lea edx, [ecx + eax]
cmp edx, dword [ebp - 0x314]
jmp 0x10042e0
cmp esi, ebx
je 0x10042da
cmp eax, dword [ebp - 0x314]
jmp 0x10042e0
cmp ecx, dword [ebp - 0x314]
jbe 0x10042f2
lea edx, [ebp - 0xc]
push edx
push ecx
push eax
push dword [ebp + 0x10]
call fcn.01002555
jmp 0x10042fb
xor eax, eax
mov dword [0x100d0c4], ebx
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01006b33
leave
ret 0xc
Function at 0x1004873
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x10048bc
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.010037d6
call fcn.010035be
mov dword [0x100d0c4], eax
xor eax, eax
jmp 0x10048cc
push 2
push 2
lea eax, [ebp - 0x108]
push eax
call fcn.010040c8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01006b33
leave
ret

Function at 0x10048dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
push edi
push 0x10013c0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
push 0x14
push eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], edi
call fcn.01001f59
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
add esp, 0x10
push 0xa
lea eax, [ebp - 0x18]
push eax
push edi
call ebx
cmp eax, edi
je 0x10049ba
push esi
jmp 0x1004933
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 0x10049a0
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 4]
lea edi, [esi + 8]
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi + 1]
push eax
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
call dword [ebp - 0x28]
test eax, eax
push esi
je 0x10049af
call dword [sym.imp.KERNEL32.dll_FreeResource]
inc dword [ebp - 0x20]
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push 0x10013c0
push 0x14
push eax
call fcn.01001f59
add esp, 0x10
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0
call ebx
test eax, eax
jne 0x1004931
jmp 0x10049b9
mov dword [0x100d0c4], 0x80070714
mov dword [ebp - 0x1c], edi
jmp 0x10049b9
and dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
pop edi
xor ecx, ebp
pop ebx
call fcn.01006b33
leave
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x100d2a4
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001ede
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01007460
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004b22
test al, 0x10
jne 0x1004b22
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x1004b29
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01006b33
leave
ret 4
Function at 0x1004fdc
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
xor eax, eax
cmp ebx, esi
mov dword [ebp - 0x208], 1
je 0x1005108
push edi
lea edi, [ebp - 0x21c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push eax
push ecx
push esi
push esi
push 0x20
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10050ba
push 0xffffffffffffffff
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [0x100dee8], esi
mov ecx, dword [ebp - 0x20c]
jne 0x1005089
mov al, byte [0x100daec]
test al, 1
je 0x1005089
test al, 2
jne 0x1005089
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x1005089
mov dword [0x100daec], ecx
push ecx
call fcn.01002fd9
push dword [ebp - 0x218]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x21c]
call edi
test word [0x100daf4], 0x400
je 0x1005101
cmp dword [ebp - 0x20c], esi
jge 0x1005101
jmp 0x10050fb
call fcn.010035be
push esi
mov dword [0x100d0c4], eax
push 0x200
lea eax, [ebp - 0x204]
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
push 0x10
lea eax, [ebp - 0x204]
push eax
push ebx
push 0x4c4
push esi
call fcn.010037d6
mov dword [ebp - 0x208], esi
mov eax, dword [ebp - 0x208]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01006b33
leave
ret 8
Function at 0x10056a0
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
je 0x100574d
mov edi, 0x104
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.01003f28
test eax, eax
je 0x10057b6
lea eax, [ebp - 0x108]
push eax
push edi
mov esi, 0x100d2a4
push esi
call fcn.01001ede
test byte [0x100daf4], 0x20
je 0x100573f
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x12c]
sub eax, ebx
je 0x1005733
dec eax
je 0x100572c
dec eax
je 0x1005725
dec eax
jne 0x100573f
push 0x10014c0
jmp 0x1005738
push 0x10014b8
jmp 0x1005738
push 0x10014b0
jmp 0x1005738
push 0x10014a8
push edi
push esi
call fcn.01007460
push 0x10012e1
push edi
push esi
call fcn.01007460
jmp 0x100575e
push eax
push 0x104
mov esi, 0x100d2a4
push esi
call fcn.01001ede
push esi
call fcn.0100401b
xor edi, edi
inc edi
test eax, eax
jne 0x100577d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1005795
mov dword [0x100dee0], edi
push ebx
push dword [ebp + 0x10]
push esi
call fcn.010040c8
test eax, eax
je 0x10057a1
mov dword [0x100d0c4], ebx
mov eax, edi
jmp 0x10057b8
call fcn.010035be
mov dword [0x100d0c4], eax
jmp 0x10057b6
cmp dword [0x100dee0], ebx
je 0x10057b6
push esi
mov dword [0x100dee0], ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006b33
leave
ret 0xc
Function at 0x10057ce
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x8fc
push ebx
push 0x100d200
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], ebx
mov dword [0x100db04], edi
call sub.msvcrt.dll_memset
push 0x32c
push ebx
push 0x100dee0
call sub.msvcrt.dll_memset
push 0x104
push ebx
push 0x100d0e0
call sub.msvcrt.dll_memset
add esp, 0x24
push 0x7f
mov esi, 0x100d214
push esi
push 0x10014ec
mov dword [0x100d4ac], 1
call fcn.0100312f
cmp eax, ebx
je 0x1005a2a
cmp eax, 0x80
ja 0x1005a2a
push ebx
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x100cd6c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
push 0x100daf4
push 0x10014e0
call fcn.0100312f
test eax, eax
jne 0x10058ae
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.010037d6
mov dword [0x100d0c4], 0x80070714
jmp 0x1005a3a
test byte [0x100daf4], 0xc0
je 0x1005947
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x10014d0
call fcn.0100312f
test eax, eax
je 0x100588f
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [0x100cd70], eax
je 0x1005947
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1005947
test byte [0x100daf4], 0x80
je 0x1005916
push ebx
push 0x10
push ebx
push esi
push 0x54b
push ebx
call fcn.010037d6
jmp 0x100592c
push 4
push 0x20
push ebx
push esi
push 0x524
push ebx
call fcn.010037d6
cmp eax, 6
je 0x1005947
push dword [0x100cd70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100d0c4], 0x800700b7
jmp 0x1005a3a
push dword [ebp - 0x110]
mov dword [0x100d0c8], ebx
call fcn.01004311
test eax, eax
jne 0x100596b
push ebx
push 0x10
push ebx
push ebx
push 0x520
jmp 0x1005a34
cmp byte [0x100defa], bl
je 0x1005982
push 0x100defa
call fcn.010023d4
jmp 0x1005a3a
push 0xa
push 0x10014c4
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x10059a2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10c], eax
cmp dword [0x100c2bc], ebx
je 0x10059b0
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x100dee4], ebx
je 0x10059bd
xor eax, eax
inc eax
jmp 0x1005a3c
push dword [ebp - 0x10c]
call fcn.01004bb1
test eax, eax
je 0x1005a3a
mov ax, word [0x100d0cc]
cmp ax, 1
je 0x10059e4
cmp ax, 2
je 0x10059e4
cmp ax, 3
jne 0x10059b8
test word [0x100daf4], 0x100
je 0x10059b8
test byte [0x100def8], 1
jne 0x10059b8
call fcn.010018b8
test eax, eax
jne 0x10059b8
push 0x83e
push 0x547
push 0x10019f9
push ebx
push 0x7d6
push dword [0x100db04]
call fcn.01004b3e
cmp eax, 0x83d
jne 0x1005a3a
jmp 0x10059b8
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.010037d6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006b33
leave
ret 0xc
Function at 0x100662d
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp word [0x100def8], di
jne 0x1006678
cmp dword [0x100dee4], edi
jne 0x100666f
call fcn.01003d67
test eax, eax
jne 0x1006666
xor eax, eax
jmp 0x1006790
cmp word [0x100def8], di
jne 0x1006678
call fcn.01004ef0
test eax, eax
je 0x100665f
call fcn.01005612
test eax, eax
je 0x100665f
call fcn.01006342
test eax, eax
je 0x100665f
push ebx
push esi
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x10012d4
push esi
lea eax, [ebp - 0x10c]
push eax
call fcn.01007460
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
mov ebx, 0x100d2a4
je 0x10066dd
push 0x1001548
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x10066dd
push edi
push ebx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x100dee4], edi
jne 0x10066fd
cmp dword [0x100daf0], edi
jne 0x10066fd
call fcn.01004873
test eax, eax
je 0x1006771
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x1006724
push edi
push 0x10
push edi
push edi
push 0x4bc
push edi
call fcn.010037d6
call fcn.010035be
mov dword [0x100d0c4], eax
jmp 0x1006771
cmp dword [0x100deec], edi
jne 0x1006735
call fcn.01005e20
test eax, eax
je 0x1006771
test byte [0x100e208], 0xc0
jne 0x1006752
movzx eax, word [0x100d0cc]
push eax
call fcn.01001d98
mov dword [0x100d1e4], eax
jmp 0x1006758
mov dword [0x100d1e4], edi
cmp dword [0x100dee4], edi
jne 0x1006775
cmp dword [0x100daf0], edi
jne 0x1006775
call fcn.01005ea4
test eax, eax
jne 0x1006775
xor eax, eax
jmp 0x100678e
cmp word [0x100def8], di
jne 0x100678b
cmp dword [0x100dee4], edi
jne 0x100678b
call fcn.0100511d
xor eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01006b33
leave
ret
Function at 0x1006b24
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x100ab50
call fcn.01006fc4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x100e254
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x10068ce
cmp eax, esi
jne 0x10068c1
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10068d1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10068a8
xor esi, esi
inc esi
mov eax, dword [0x100e250]
cmp eax, esi
jne 0x10068e4
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1006913
mov eax, dword [0x100e250]
test eax, eax
jne 0x100690d
mov dword [0x100e250], esi
push 0x100129c
push 0x1001290
call fcn.0100680d
pop ecx
pop ecx
test eax, eax
je 0x1006913
jmp 0x1006a3b
mov dword [0x100cd94], esi
mov eax, dword [0x100e250]
cmp eax, esi
jne 0x1006937
push 0x100128c
push 0x1001284
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100e250], 2
test ebx, ebx
jne 0x1006943
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100e25c], 0
je 0x1006967
push 0x100e25c
call fcn.01006f3b
pop ecx
test eax, eax
je 0x1006967
push 0
push 2
push 0
call dword [0x100e25c]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x10069c3
test al, al
je 0x1006981
cmp dword [ebp - 0x1c], 0
jne 0x10069c3
mov al, byte [esi]
test al, al
je 0x1006991
cmp al, 0x20
ja 0x1006991
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1006981
test byte [ebp - 0x3c], 1
je 0x100699d
movzx eax, word [ebp - 0x38]
jmp 0x10069a0
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x100cd90], eax
cmp dword [0x100cd84], 0
jne 0x1006a17
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x10069d2
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x10069e5
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x100696e
cmp dword [0x100cd94], 0
jne 0x1006a26
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100cd90]
jmp 0x1006a47
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01007009
ret
call fcn.01007106
jmp 0x100686e

Function at 0x1006eb0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1006ec3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1006ebf
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x1006ef0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1006f2f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1006f25
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1006f31
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1006f15
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10074d2
xor eax, eax
jmp 0x10074da
shr eax, 4
not eax
and eax, 1
pop ebp
ret 4

Function at 0x1007640
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xa8], 0
cmp dword [0x100c5e8], 0xfffffffe
mov dword [ebp - 0xb0], 0xc
jne 0x1007765
and dword [0x100c5e8], 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1007765
cmp dword [ebp - 0x94], 1
jne 0x1007765
cmp dword [ebp - 0xa0], 4
jne 0x1007765
cmp dword [ebp - 0x9c], 0xa
jae 0x1007765
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1007765
lea eax, [ebp - 0xac]
push eax
push 0x20019
push 0
push 0x10015bc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007765
push edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
push 0x10012e1
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xac]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1007765
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0100751e
test eax, eax
je 0x1007765
and dword [ebp - 0xa8], 0x3ff
cmp dword [ebp - 0xa8], 1
je 0x100775b
cmp dword [ebp - 0xa8], 0xd
jne 0x1007765
mov dword [0x100c5e8], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x100c5e8]
xor ecx, ebp
call fcn.01006b33
leave
ret

Function at 0x10077d6
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0100777b
Function at 0x1008b36
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 2
test eax, eax
jle 0x1008b75
push esi
movzx esi, byte [ecx]
xor ebx, ebx
dec eax
inc ecx
mov bh, byte [ecx]
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or esi, ebx
inc ecx
xor edx, esi
test eax, eax
jg 0x1008b50
pop esi
and edi, 3
xor eax, eax
dec edi
je 0x1008b91
dec edi
je 0x1008b8a
dec edi
jne 0x1008b96
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
xor eax, edx
pop ebx
pop ebp
ret 0xc