joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100311b
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 0x1003182
cmp dword [ebp + 0xc], ebx
je 0x1003182
cmp edi, ebx
jne 0x100314f
xor eax, eax
jmp 0x1003182
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 0x100314b
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 0x10031bd
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 0x100322c
push esi
lea esi, [edi + 1]
mov al, byte [esi]
mov dword [ebp + 8], ebx
cmp al, 0x3a
jne 0x10031e7
cmp byte [edi + 2], 0x5c
jne 0x10031e7
lea esi, [edi + 3]
jmp 0x1003227
cmp cl, 0x5c
jne 0x1003227
cmp al, cl
jne 0x1003227
lea esi, [edi + 2]
mov dword [ebp + 8], 2
jmp 0x1003227
cmp byte [esi], 0x5c
jne 0x100321e
cmp byte [esi - 1], 0x3a
je 0x100321e
cmp dword [ebp + 8], ebx
je 0x1003211
dec dword [ebp + 8]
jmp 0x100321e
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 0x10031fc
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x1003e27
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]
mov ebx, esi
test esi, esi
je 0x1003e89
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x100dee4], 0
jne 0x1003e78
cmp dword [0x100daf0], 0
jne 0x1003e78
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
mov ebx, esi
test esi, esi
jne 0x1003e51
pop edi
xor eax, eax
pop esi
pop ebx
cmp dword [0x100dee0], eax
je 0x1003ee7
cmp dword [0x100dee4], eax
jne 0x1003ee7
cmp dword [0x100daf0], eax
jne 0x1003ee7
push 0x100d2a4
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.01001eb0
test byte [0x100daf4], 0x20
je 0x1003ed0
lea eax, [ebp - 0x108]
push eax
call fcn.01007417
push 0x1001320
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
call fcn.010023be
cmp word [0x100d0cc], 1
je 0x1003eff
cmp dword [0x100dee0], 0
je 0x1003eff
call fcn.01001b97
mov ecx, dword [ebp - 4]
and dword [0x100dee0], 0
xor ecx, ebp
call fcn.01006b07
leave
ret
Function at 0x1003f17
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.01001f43
add esp, 0x10
push dword [ebp - 0x110]
inc ebx
push dword [ebp + 0x10]
push esi
call fcn.01001eb0
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
push esi
call fcn.01007480
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 0xffffffff
je 0x1003fa0
cmp ebx, 0x190
jl 0x1003f43
jmp 0x1003fc0
push 0
push esi
call edi
test eax, eax
je 0x1003fb9
xor eax, eax
inc eax
mov dword [0x100dee0], eax
mov dword [ebp - 0x10c], eax
jmp 0x1003fee
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 0x1003fee
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.01006b07
leave
ret 0xc

Function at 0x100400a
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 0x1004054
push ebx
push 0x10
push ebx
push ebx
push 0x4b5
push ebx
call fcn.010037c2
call fcn.010035aa
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.01001eb0
push 0x100145c
push esi
push edi
call fcn.01007480
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 0x1004041
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004041
test al, 0x10
je 0x1004041
xor eax, eax
mov dword [0x100d0c4], ebx
inc eax
jmp 0x100404d
Function at 0x10040b7
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
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x318], ebx
cmp dword [ebp + 0xc], ebx
jne 0x10040e6
xor eax, eax
inc eax
jmp 0x10042ec
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 0x1004125
push ebx
push 0x10
push ebx
push ebx
push 0x4bc
push ebx
call fcn.010037c2
call fcn.010035aa
mov dword [0x100d0c4], eax
jmp 0x100425e
lea eax, [ebp - 0x318]
push eax
push ebx
call fcn.01007807
mov dword [ebp - 0x314], eax
cmp eax, ebx
jne 0x1004194
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.010035aa
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 0x1004208
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 0x1004219
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.010035aa
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.010037c2
lea eax, [ebp - 0x310]
push eax
call esi
jmp 0x100425e
lea eax, [ebp - 0x310]
push eax
call esi
push 2
push edi
push 6
lea eax, [ebp - 0xc]
push eax
call fcn.0100360e
mov ecx, 0x200
xor eax, eax
cmp dword [ebp - 0x318], ecx
je 0x1004248
add ecx, ecx
inc eax
cmp ax, 8
jb 0x1004237
cmp ax, 8
jne 0x1004265
push ebx
push 0x10
push ebx
push ebx
push 0x4c5
push ebx
call fcn.010037c2
xor eax, eax
jmp 0x10042eb
test byte [0x100daf4], 8
je 0x1004295
test dword [ebp - 0x31c], 0x8000
je 0x1004295
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 0x10042a5
mov ecx, dword [0x100daf8]
movzx eax, ax
mov eax, dword [eax*4 + 0x100e220]
mov esi, dword [ebp + 0xc]
and esi, 1
je 0x10042be
test byte [ebp + 0xc], 2
je 0x10042be
lea edx, [ecx + eax]
cmp edx, dword [ebp - 0x314]
jmp 0x10042d0
cmp esi, ebx
je 0x10042ca
cmp eax, dword [ebp - 0x314]
jmp 0x10042d0
cmp ecx, dword [ebp - 0x314]
jbe 0x10042e2
lea edx, [ebp - 0xc]
push edx
push ecx
push eax
push dword [ebp + 0x10]
call fcn.0100253f
jmp 0x10042eb
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.01006b07
leave
ret 0xc
Function at 0x100485b
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 0x10048a4
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.010037c2
call fcn.010035aa
mov dword [0x100d0c4], eax
xor eax, eax
jmp 0x10048b4
push 2
push 2
lea eax, [ebp - 0x108]
push eax
call fcn.010040b7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01006b07
leave
ret

Function at 0x10048c5
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.01001f43
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 0x10049a2
push esi
jmp 0x100491b
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 0x1004988
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]
push esi
test eax, eax
je 0x1004997
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.01001f43
add esp, 0x10
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0
call ebx
test eax, eax
jne 0x1004919
jmp 0x10049a1
mov dword [0x100d0c4], 0x80070714
mov dword [ebp - 0x1c], edi
jmp 0x10049a1
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.01006b07
leave
ret 4

Function at 0x1004aa2
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.01001eb0
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01007480
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004b0a
test al, 0x10
jne 0x1004b0a
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x1004b11
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01006b07
leave
ret 4
Function at 0x1004fc3
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
mov dword [ebp - 0x208], 1
cmp ebx, esi
je 0x10050f0
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 0x10050a2
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]
mov ecx, dword [ebp - 0x20c]
cmp dword [0x100dee8], esi
jne 0x1005070
mov al, byte [0x100daec]
test al, 1
je 0x1005070
test al, 2
jne 0x1005070
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x1005070
mov dword [0x100daec], ecx
push ecx
call fcn.01002fc3
push dword [ebp - 0x218]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x21c]
call edi
test dword [0x100daf4], 0x400
je 0x10050e9
cmp dword [ebp - 0x20c], esi
jge 0x10050e9
jmp 0x10050e3
call fcn.010035aa
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.010037c2
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.01006b07
leave
ret 8
Function at 0x1005197
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
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x10052b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHBrowseForFolder
push edi
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10052a2
push 0xc3
push edi
call esi
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10052a2
push str.SHGetPathFromIDList
push edi
call esi
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x10052a2
mov esi, 0x100d0e0
cmp byte [0x100d0e0], bl
jne 0x100523d
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 0x100523d
push eax
push esi
call edi
cmp byte [eax], 0x3a
je 0x100523d
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], 0x1003020
mov dword [ebp - 0x1c], esi
call dword [ebp - 8]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x1005290
push esi
push eax
call dword [ebp - 0xc]
cmp byte [0x100d0e0], bl
je 0x100528a
push esi
push dword [ebp + 0x14]
push edi
call fcn.01001eb0
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 0x10052c9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 0x10
push ebx
push ebx
push 0x4c1
jmp 0x10052bf
push ebx
push 0x10
push ebx
push ebx
push 0x4c2
push dword [ebp + 8]
call fcn.010037c2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x10052d5
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.010074db
test eax, eax
je 0x1005343
cmp dword [0x100d29c], 0
jne 0x1005337
test byte [0x100def8], bl
jne 0x1005337
push 6
push 0
push 0x100372c
push dword [0x100cd68]
mov dword [0x100d4c4], esi
push 0x7d3
push dword [0x100db04]
call fcn.01004b26
sub eax, 6
je 0x1005337
dec eax
je 0x100534b
sub eax, 0x832
jne 0x1005337
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 0x1005343
Function at 0x1005688
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
push esi
push edi
cmp dword [ebp + 0xc], ebx
je 0x1005735
mov edi, 0x104
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.01003f17
test eax, eax
je 0x100579e
lea eax, [ebp - 0x108]
push eax
push edi
mov esi, 0x100d2a4
push esi
call fcn.01001eb0
test byte [0x100daf4], 0x20
je 0x1005727
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x12c]
sub eax, ebx
je 0x100571b
dec eax
je 0x1005714
dec eax
je 0x100570d
dec eax
jne 0x1005727
push 0x10014c0
jmp 0x1005720
push 0x10014b8
jmp 0x1005720
push 0x10014b0
jmp 0x1005720
push 0x10014a8
push edi
push esi
call fcn.01007480
push 0x10012e1
push edi
push esi
call fcn.01007480
jmp 0x1005746
push eax
push 0x104
mov esi, 0x100d2a4
push esi
call fcn.01001eb0
push esi
call fcn.0100400a
xor edi, edi
inc edi
test eax, eax
jne 0x1005765
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x100577d
mov dword [0x100dee0], edi
push ebx
push dword [ebp + 0x10]
push esi
call fcn.010040b7
test eax, eax
je 0x1005789
mov dword [0x100d0c4], ebx
mov eax, edi
jmp 0x10057a0
call fcn.010035aa
mov dword [0x100d0c4], eax
jmp 0x100579e
cmp dword [0x100dee0], ebx
je 0x100579e
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.01006b07
leave
ret 0xc
Function at 0x10057b6
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.0100311b
cmp eax, ebx
je 0x1005a16
cmp eax, 0x80
ja 0x1005a16
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.0100311b
test eax, eax
jne 0x1005896
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.010037c2
mov dword [0x100d0c4], 0x80070714
jmp 0x1005a26
test byte [0x100daf4], 0xc0
je 0x100592f
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x10014d0
call fcn.0100311b
test eax, eax
je 0x1005877
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x100cd70], eax
cmp eax, ebx
je 0x100592f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100592f
test byte [0x100daf4], 0x80
je 0x10058fe
push ebx
push 0x10
push ebx
push esi
push 0x54b
push ebx
call fcn.010037c2
jmp 0x1005914
push 4
push 0x20
push ebx
push esi
push 0x524
push ebx
call fcn.010037c2
cmp eax, 6
je 0x100592f
push dword [0x100cd70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100d0c4], 0x800700b7
jmp 0x1005a26
push dword [ebp - 0x110]
mov dword [0x100d0c8], ebx
call fcn.01004301
test eax, eax
jne 0x1005953
push ebx
push 0x10
push ebx
push ebx
push 0x520
jmp 0x1005a20
cmp byte [0x100defa], bl
je 0x100596a
push 0x100defa
call fcn.010023be
jmp 0x1005a26
push 0xa
push 0x10014c4
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x100598a
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10c], eax
cmp dword [0x100c2bc], ebx
je 0x1005998
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x100dee4], ebx
je 0x10059a8
xor eax, eax
inc eax
jmp 0x1005a28
push dword [ebp - 0x10c]
call fcn.01004b99
test eax, eax
je 0x1005a26
mov ax, word [0x100d0cc]
cmp ax, 1
je 0x10059cf
cmp ax, 2
je 0x10059cf
cmp ax, 3
jne 0x10059a0
test dword [0x100daf4], 0x100
je 0x10059a0
test byte [0x100def8], 1
jne 0x10059a0
call fcn.01001881
test eax, eax
jne 0x10059a0
push 0x83e
push 0x547
push 0x10019c2
push ebx
push 0x7d6
push dword [0x100db04]
call fcn.01004b26
cmp eax, 0x83d
jne 0x1005a26
jmp 0x10059a0
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.010037c2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006b07
leave
ret 0xc
Function at 0x100660e
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 0x1006659
cmp dword [0x100dee4], edi
jne 0x1006650
call fcn.01003d56
test eax, eax
jne 0x1006647
xor eax, eax
jmp 0x1006771
cmp word [0x100def8], di
jne 0x1006659
call fcn.01004ed7
test eax, eax
je 0x1006640
call fcn.010055fa
test eax, eax
je 0x1006640
call fcn.01006323
test eax, eax
je 0x1006640
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.01007480
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov ebx, 0x100d2a4
cmp esi, edi
je 0x10066be
push 0x1001548
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x10066be
push edi
push ebx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x100dee4], edi
jne 0x10066de
cmp dword [0x100daf0], edi
jne 0x10066de
call fcn.0100485b
test eax, eax
je 0x1006752
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x1006705
push edi
push 0x10
push edi
push edi
push 0x4bc
push edi
call fcn.010037c2
call fcn.010035aa
mov dword [0x100d0c4], eax
jmp 0x1006752
cmp dword [0x100deec], edi
jne 0x1006716
call fcn.01005e0c
test eax, eax
je 0x1006752
test byte [0x100e208], 0xc0
jne 0x1006733
movzx eax, word [0x100d0cc]
push eax
call fcn.01001d67
mov dword [0x100d1e4], eax
jmp 0x1006739
mov dword [0x100d1e4], edi
cmp dword [0x100dee4], edi
jne 0x1006756
cmp dword [0x100daf0], edi
jne 0x1006756
call fcn.01005e90
test eax, eax
jne 0x1006756
xor eax, eax
jmp 0x100676f
cmp word [0x100def8], di
jne 0x100676c
cmp dword [0x100dee4], edi
jne 0x100676c
call fcn.01005105
xor eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01006b07
leave
ret