joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100312f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
push 0xa
push dword [ebp + 8]
xor ebx, ebx
push ebx
call esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, dword [ebp + 0x10]
ja 0x1003196
cmp dword [ebp + 0xc], ebx
je 0x1003196
cmp edi, ebx
jne 0x1003163
xor eax, eax
jmp 0x1003196
push 0xa
push dword [ebp + 8]
push ebx
call esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x100315f
push edi
push esi
push dword [ebp + 0xc]
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x10031d1
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
mov cl, byte [edi]
xor ebx, ebx
cmp cl, bl
je 0x1003240
push esi
lea esi, [edi + 1]
mov al, byte [esi]
cmp al, 0x3a
mov dword [ebp + 8], ebx
jne 0x10031fb
cmp byte [edi + 2], 0x5c
jne 0x10031fb
lea esi, [edi + 3]
jmp 0x100323b
cmp cl, 0x5c
jne 0x100323b
cmp al, cl
jne 0x100323b
lea esi, [edi + 2]
mov dword [ebp + 8], 2
jmp 0x100323b
cmp byte [esi], 0x5c
jne 0x1003232
cmp byte [esi - 1], 0x3a
je 0x1003232
cmp dword [ebp + 8], ebx
je 0x1003225
dec dword [ebp + 8]
jmp 0x1003232
push ebx
push edi
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], bl
jne 0x1003210
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x1003e38
Capabilities:
Delete file
Set current directory
Set 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 ebx
push esi
mov esi, dword [0x100d2a0]
test esi, esi
mov ebx, esi
je 0x1003e9a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x100dee4], 0
jne 0x1003e89
cmp dword [0x100daf0], 0
jne 0x1003e89
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebx]
mov esi, dword [esi + 4]
call edi
push ebx
call edi
test esi, esi
mov ebx, esi
jne 0x1003e62
pop edi
xor eax, eax
cmp dword [0x100dee0], eax
pop esi
pop ebx
je 0x1003ef8
cmp dword [0x100dee4], eax
jne 0x1003ef8
cmp dword [0x100daf0], eax
jne 0x1003ef8
push 0x100d2a4
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.01001ede
test byte [0x100daf4], 0x20
je 0x1003ee1
lea eax, [ebp - 0x108]
push eax
call fcn.01007437
push 0x1001320
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
call fcn.010023d4
cmp word [0x100d0cc], 1
je 0x1003f10
cmp dword [0x100dee0], 0
je 0x1003f10
call fcn.01001bc8
mov ecx, dword [ebp - 4]
and dword [0x100dee0], 0
xor ecx, ebp
call fcn.01006b2f
leave
ret
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.010074a0
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.01006b2f
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.010074a0
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.01007826
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.01006b2f
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.01006b2f
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.01006b2f
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.010074a0
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.01006b2f
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.01006b2f
leave
ret 8
Function at 0x10051af
Capabilities:
Get common file path

Disassembly:
mov edi, edi
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 0x10052cd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHBrowseForFolder
push edi
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10052ba
push 0xc3
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x10052ba
push str.SHGetPathFromIDList
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10052ba
cmp byte [0x100d0e0], bl
mov esi, 0x100d0e0
jne 0x1005255
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 0x1005255
push eax
push esi
call edi
cmp byte [eax], 0x3a
je 0x1005255
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], 0x1003034
mov dword [ebp - 0x1c], esi
call dword [ebp - 8]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x10052a8
push esi
push eax
call dword [ebp - 0xc]
cmp byte [0x100d0e0], bl
je 0x10052a2
push esi
push dword [ebp + 0x14]
push edi
call fcn.01001ede
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 0x10052e1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 0x10
push ebx
push ebx
push 0x4c1
jmp 0x10052d7
push ebx
push 0x10
push ebx
push ebx
push 0x4c2
push dword [ebp + 8]
call fcn.010037d6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x10052ed
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
inc ebx
call fcn.010074fb
test eax, eax
je 0x100535b
cmp dword [0x100d29c], 0
jne 0x100534f
test byte [0x100def8], bl
jne 0x100534f
push 6
push 0
push 0x1003740
push dword [0x100cd68]
mov dword [0x100d4c4], esi
push 0x7d3
push dword [0x100db04]
call fcn.01004b3e
sub eax, 6
je 0x100534f
dec eax
je 0x1005363
sub eax, 0x832
jne 0x100534f
mov dword [0x100d29c], ebx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
xor ebx, ebx
jmp 0x100535b
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.010074a0
push 0x10012e1
push edi
push esi
call fcn.010074a0
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.01006b2f
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.01006b2f
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.010074a0
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.01006b2f
leave
ret