joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027ee
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x7c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
jle 0x100292f
mov dword [ebp - 0xc], ebx
jmp 0x1002817
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi + 0x80]
add eax, edi
lea esi, [eax + ecx + 0x84]
mov eax, dword [esi + 0x38]
lea eax, [eax + edi + 0x84]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0100267a
test eax, eax
je 0x1002936
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1002913
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002936
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x1002936
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1002908
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x1001364
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1002908
cmp dword [ebp - 0x1c], 0
je 0x1002908
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax + 8]
lea ecx, [esi + 0x10]
xor edx, edx
push dword [ecx - 0xc]
push dword [ecx - 0x10]
push edi
push ebx
call fcn.01001f00
push dword [ecx]
mov dword [ebp + edx - 0x28], eax
push dword [ecx - 4]
push edi
push ebx
call fcn.01001f00
mov dword [ebp + edx - 0x30], eax
add edx, 4
add ecx, 0x18
cmp edx, 8
jl 0x10028c1
cmp dword [ebp - 0x28], 0
jl 0x10028f9
cmp dword [ebp - 0x30], 0
jle 0x1002905
cmp dword [ebp - 0x24], 0
jl 0x1002957
cmp dword [ebp - 0x2c], 0
jg 0x1002957
mov edi, dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x100291c
cmp dword [esi], ebx
jne 0x1002936
cmp dword [esi + 4], ebx
jne 0x1002936
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], 0x3c
cmp eax, dword [edi + 0x7c]
jl 0x1002815
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
je 0x1002950
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10]
leave
ret 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1002936
Function at 0x100317f
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 0x10031e6
cmp dword [ebp + 0xc], ebx
je 0x10031e6
cmp edi, ebx
jne 0x10031b3
xor eax, eax
jmp 0x10031e6
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 0x10031af
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 0x1003221
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 0x1003290
push esi
lea esi, [edi + 1]
mov al, byte [esi]
cmp al, 0x3a
mov dword [ebp + 8], ebx
jne 0x100324b
cmp byte [edi + 2], 0x5c
jne 0x100324b
lea esi, [edi + 3]
jmp 0x100328b
cmp cl, 0x5c
jne 0x100328b
cmp al, cl
jne 0x100328b
lea esi, [edi + 2]
mov dword [ebp + 8], 2
jmp 0x100328b
cmp byte [esi], 0x5c
jne 0x1003282
cmp byte [esi - 1], 0x3a
je 0x1003282
cmp dword [ebp + 8], ebx
je 0x1003275
dec dword [ebp + 8]
jmp 0x1003282
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 0x1003260
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x1003e88
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 0x1003eea
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x100dee4], 0
jne 0x1003ed9
cmp dword [0x100daf0], 0
jne 0x1003ed9
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 0x1003eb2
pop edi
xor eax, eax
cmp dword [0x100dee0], eax
pop esi
pop ebx
je 0x1003f48
cmp dword [0x100dee4], eax
jne 0x1003f48
cmp dword [0x100daf0], eax
jne 0x1003f48
push 0x100d2a4
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.01001f2e
test byte [0x100daf4], 0x20
je 0x1003f31
lea eax, [ebp - 0x108]
push eax
call fcn.01007487
push 0x1001320
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
call fcn.01002424
cmp word [0x100d0cc], 1
je 0x1003f60
cmp dword [0x100dee0], 0
je 0x1003f60
call fcn.01001c18
mov ecx, dword [ebp - 4]
and dword [0x100dee0], 0
xor ecx, ebp
call fcn.01006b7f
leave
ret
Function at 0x1003f78
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.01001fa9
add esp, 0x10
push dword [ebp - 0x110]
inc ebx
push dword [ebp + 0x10]
push esi
call fcn.01001f2e
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
push esi
call fcn.010074f0
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 0x1004001
cmp ebx, 0x190
jl 0x1003fa4
jmp 0x1004021
push 0
push esi
call edi
test eax, eax
je 0x100401a
xor eax, eax
inc eax
mov dword [0x100dee0], eax
mov dword [ebp - 0x10c], eax
jmp 0x100404f
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 0x100404f
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.01006b7f
leave
ret 0xc

Function at 0x100406b
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 0x10040b5
push ebx
push 0x10
push ebx
push ebx
push 0x4b5
push ebx
call fcn.01003826
call fcn.0100360e
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.01001f2e
push 0x100145c
push esi
push edi
call fcn.010074f0
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 0x10040a2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10040a2
test al, 0x10
je 0x10040a2
xor eax, eax
mov dword [0x100d0c4], ebx
inc eax
jmp 0x10040ae
Function at 0x1004118
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 0x1004147
xor eax, eax
inc eax
jmp 0x100434c
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 0x1004186
push ebx
push 0x10
push ebx
push ebx
push 0x4bc
push ebx
call fcn.01003826
call fcn.0100360e
mov dword [0x100d0c4], eax
jmp 0x10042bf
lea eax, [ebp - 0x318]
push eax
push ebx
call fcn.01007876
cmp eax, ebx
mov dword [ebp - 0x314], eax
jne 0x10041f5
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.0100360e
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 0x1004269
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 0x100427a
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.0100360e
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.01003826
lea eax, [ebp - 0x310]
push eax
call esi
jmp 0x10042bf
lea eax, [ebp - 0x310]
push eax
call esi
push 2
push edi
push 6
lea eax, [ebp - 0xc]
push eax
call fcn.01003672
mov ecx, 0x200
xor eax, eax
cmp dword [ebp - 0x318], ecx
je 0x10042a9
add ecx, ecx
inc eax
cmp ax, 8
jb 0x1004298
cmp ax, 8
jne 0x10042c6
push ebx
push 0x10
push ebx
push ebx
push 0x4c5
push ebx
call fcn.01003826
xor eax, eax
jmp 0x100434b
test byte [0x100daf4], 8
je 0x10042f5
test word [ebp - 0x31c], 0x8000
je 0x10042f5
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 0x1004305
mov ecx, dword [0x100daf8]
movzx eax, ax
mov eax, dword [eax*4 + 0x100e220]
mov esi, dword [ebp + 0xc]
and esi, 1
je 0x100431e
test byte [ebp + 0xc], 2
je 0x100431e
lea edx, [ecx + eax]
cmp edx, dword [ebp - 0x314]
jmp 0x1004330
cmp esi, ebx
je 0x100432a
cmp eax, dword [ebp - 0x314]
jmp 0x1004330
cmp ecx, dword [ebp - 0x314]
jbe 0x1004342
lea edx, [ebp - 0xc]
push edx
push ecx
push eax
push dword [ebp + 0x10]
call fcn.010025a5
jmp 0x100434b
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.01006b7f
leave
ret 0xc
Function at 0x10048c3
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 0x100490c
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.01003826
call fcn.0100360e
mov dword [0x100d0c4], eax
xor eax, eax
jmp 0x100491c
push 2
push 2
lea eax, [ebp - 0x108]
push eax
call fcn.01004118
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01006b7f
leave
ret

Function at 0x100492d
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.01001fa9
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 0x1004a0a
push esi
jmp 0x1004983
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 0x10049f0
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 0x10049ff
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.01001fa9
add esp, 0x10
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0
call ebx
test eax, eax
jne 0x1004981
jmp 0x1004a09
mov dword [0x100d0c4], 0x80070714
mov dword [ebp - 0x1c], edi
jmp 0x1004a09
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.01006b7f
leave
ret 4

Function at 0x1004b0a
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.01001f2e
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.010074f0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004b72
test al, 0x10
jne 0x1004b72
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x1004b79
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01006b7f
leave
ret 4
Function at 0x100502c
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 0x1005158
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 0x100510a
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 0x10050d9
mov al, byte [0x100daec]
test al, 1
je 0x10050d9
test al, 2
jne 0x10050d9
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x10050d9
mov dword [0x100daec], ecx
push ecx
call fcn.01003029
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 0x1005151
cmp dword [ebp - 0x20c], esi
jge 0x1005151
jmp 0x100514b
call fcn.0100360e
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.01003826
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.01006b7f
leave
ret 8
Function at 0x10051ff
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 0x100531d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHBrowseForFolder
push edi
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100530a
push 0xc3
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x100530a
push str.SHGetPathFromIDList
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x100530a
cmp byte [0x100d0e0], bl
mov esi, 0x100d0e0
jne 0x10052a5
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 0x10052a5
push eax
push esi
call edi
cmp byte [eax], 0x3a
je 0x10052a5
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], 0x1003084
mov dword [ebp - 0x1c], esi
call dword [ebp - 8]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x10052f8
push esi
push eax
call dword [ebp - 0xc]
cmp byte [0x100d0e0], bl
je 0x10052f2
push esi
push dword [ebp + 0x14]
push edi
call fcn.01001f2e
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 0x1005331
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 0x10
push ebx
push ebx
push 0x4c1
jmp 0x1005327
push ebx
push 0x10
push ebx
push ebx
push 0x4c2
push dword [ebp + 8]
call fcn.01003826
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x100533d
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.0100754b
test eax, eax
je 0x10053ab
cmp dword [0x100d29c], 0
jne 0x100539f
test byte [0x100def8], bl
jne 0x100539f
push 6
push 0
push 0x1003790
push dword [0x100cd68]
mov dword [0x100d4c4], esi
push 0x7d3
push dword [0x100db04]
call fcn.01004b8e
sub eax, 6
je 0x100539f
dec eax
je 0x10053b3
sub eax, 0x832
jne 0x100539f
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 0x10053ab
Function at 0x10056f0
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 0x100579d
mov edi, 0x104
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.01003f78
test eax, eax
je 0x1005806
lea eax, [ebp - 0x108]
push eax
push edi
mov esi, 0x100d2a4
push esi
call fcn.01001f2e
test byte [0x100daf4], 0x20
je 0x100578f
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x12c]
sub eax, ebx
je 0x1005783
dec eax
je 0x100577c
dec eax
je 0x1005775
dec eax
jne 0x100578f
push 0x10014c0
jmp 0x1005788
push 0x10014b8
jmp 0x1005788
push 0x10014b0
jmp 0x1005788
push 0x10014a8
push edi
push esi
call fcn.010074f0
push 0x10012e1
push edi
push esi
call fcn.010074f0
jmp 0x10057ae
push eax
push 0x104
mov esi, 0x100d2a4
push esi
call fcn.01001f2e
push esi
call fcn.0100406b
xor edi, edi
inc edi
test eax, eax
jne 0x10057cd
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10057e5
mov dword [0x100dee0], edi
push ebx
push dword [ebp + 0x10]
push esi
call fcn.01004118
test eax, eax
je 0x10057f1
mov dword [0x100d0c4], ebx
mov eax, edi
jmp 0x1005808
call fcn.0100360e
mov dword [0x100d0c4], eax
jmp 0x1005806
cmp dword [0x100dee0], ebx
je 0x1005806
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.01006b7f
leave
ret 0xc
Function at 0x100581e
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.0100317f
cmp eax, ebx
je 0x1005a7a
cmp eax, 0x80
ja 0x1005a7a
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.0100317f
test eax, eax
jne 0x10058fe
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.01003826
mov dword [0x100d0c4], 0x80070714
jmp 0x1005a8a
test byte [0x100daf4], 0xc0
je 0x1005997
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x10014d0
call fcn.0100317f
test eax, eax
je 0x10058df
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 0x1005997
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1005997
test byte [0x100daf4], 0x80
je 0x1005966
push ebx
push 0x10
push ebx
push esi
push 0x54b
push ebx
call fcn.01003826
jmp 0x100597c
push 4
push 0x20
push ebx
push esi
push 0x524
push ebx
call fcn.01003826
cmp eax, 6
je 0x1005997
push dword [0x100cd70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100d0c4], 0x800700b7
jmp 0x1005a8a
push dword [ebp - 0x110]
mov dword [0x100d0c8], ebx
call fcn.01004361
test eax, eax
jne 0x10059bb
push ebx
push 0x10
push ebx
push ebx
push 0x520
jmp 0x1005a84
cmp byte [0x100defa], bl
je 0x10059d2
push 0x100defa
call fcn.01002424
jmp 0x1005a8a
push 0xa
push 0x10014c4
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x10059f2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10c], eax
cmp dword [0x100c2bc], ebx
je 0x1005a00
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x100dee4], ebx
je 0x1005a0d
xor eax, eax
inc eax
jmp 0x1005a8c
push dword [ebp - 0x10c]
call fcn.01004c01
test eax, eax
je 0x1005a8a
mov ax, word [0x100d0cc]
cmp ax, 1
je 0x1005a34
cmp ax, 2
je 0x1005a34
cmp ax, 3
jne 0x1005a08
test word [0x100daf4], 0x100
je 0x1005a08
test byte [0x100def8], 1
jne 0x1005a08
call fcn.01001908
test eax, eax
jne 0x1005a08
push 0x83e
push 0x547
push 0x1001a49
push ebx
push 0x7d6
push dword [0x100db04]
call fcn.01004b8e
cmp eax, 0x83d
jne 0x1005a8a
jmp 0x1005a08
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.01003826
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006b7f
leave
ret 0xc