joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100316f
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 0x10031d6
cmp dword [ebp + 0xc], ebx
je 0x10031d6
cmp edi, ebx
jne 0x10031a3
xor eax, eax
jmp 0x10031d6
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 0x100319f
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 0x1003211
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 0x1003280
push esi
lea esi, [edi + 1]
mov al, byte [esi]
cmp al, 0x3a
mov dword [ebp + 8], ebx
jne 0x100323b
cmp byte [edi + 2], 0x5c
jne 0x100323b
lea esi, [edi + 3]
jmp 0x100327b
cmp cl, 0x5c
jne 0x100327b
cmp al, cl
jne 0x100327b
lea esi, [edi + 2]
mov dword [ebp + 8], 2
jmp 0x100327b
cmp byte [esi], 0x5c
jne 0x1003272
cmp byte [esi - 1], 0x3a
je 0x1003272
cmp dword [ebp + 8], ebx
je 0x1003265
dec dword [ebp + 8]
jmp 0x1003272
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 0x1003250
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x1003e78
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 0x1003eda
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x100dee4], 0
jne 0x1003ec9
cmp dword [0x100daf0], 0
jne 0x1003ec9
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 0x1003ea2
pop edi
xor eax, eax
cmp dword [0x100dee0], eax
pop esi
pop ebx
je 0x1003f38
cmp dword [0x100dee4], eax
jne 0x1003f38
cmp dword [0x100daf0], eax
jne 0x1003f38
push 0x100d2a4
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.01001f1e
test byte [0x100daf4], 0x20
je 0x1003f21
lea eax, [ebp - 0x108]
push eax
call fcn.01007467
push 0x1001320
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
call fcn.01002414
cmp word [0x100d0cc], 1
je 0x1003f50
cmp dword [0x100dee0], 0
je 0x1003f50
call fcn.01001c08
mov ecx, dword [ebp - 4]
and dword [0x100dee0], 0
xor ecx, ebp
call fcn.01006b69
leave
ret
Function at 0x1003f6a
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.01001f99
add esp, 0x10
push dword [ebp - 0x110]
inc ebx
push dword [ebp + 0x10]
push esi
call fcn.01001f1e
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
push esi
call fcn.010074d0
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 0x1003ff3
cmp ebx, 0x190
jl 0x1003f96
jmp 0x1004013
push 0
push esi
call edi
test eax, eax
je 0x100400c
xor eax, eax
inc eax
mov dword [0x100dee0], eax
mov dword [ebp - 0x10c], eax
jmp 0x1004041
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 0x1004041
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.01006b69
leave
ret 0xc

Function at 0x100405d
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 0x10040a7
push ebx
push 0x10
push ebx
push ebx
push 0x4b5
push ebx
call fcn.01003816
call fcn.010035fe
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.01001f1e
push 0x100145c
push esi
push edi
call fcn.010074d0
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 0x1004094
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004094
test al, 0x10
je 0x1004094
xor eax, eax
mov dword [0x100d0c4], ebx
inc eax
jmp 0x10040a0
Function at 0x100410a
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 0x1004139
xor eax, eax
inc eax
jmp 0x100433e
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 0x1004178
push ebx
push 0x10
push ebx
push ebx
push 0x4bc
push ebx
call fcn.01003816
call fcn.010035fe
mov dword [0x100d0c4], eax
jmp 0x10042b1
lea eax, [ebp - 0x318]
push eax
push ebx
call fcn.01007856
cmp eax, ebx
mov dword [ebp - 0x314], eax
jne 0x10041e7
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.010035fe
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 0x100425b
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 0x100426c
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.010035fe
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.01003816
lea eax, [ebp - 0x310]
push eax
call esi
jmp 0x10042b1
lea eax, [ebp - 0x310]
push eax
call esi
push 2
push edi
push 6
lea eax, [ebp - 0xc]
push eax
call fcn.01003662
mov ecx, 0x200
xor eax, eax
cmp dword [ebp - 0x318], ecx
je 0x100429b
add ecx, ecx
inc eax
cmp ax, 8
jb 0x100428a
cmp ax, 8
jne 0x10042b8
push ebx
push 0x10
push ebx
push ebx
push 0x4c5
push ebx
call fcn.01003816
xor eax, eax
jmp 0x100433d
test byte [0x100daf4], 8
je 0x10042e7
test word [ebp - 0x31c], 0x8000
je 0x10042e7
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 0x10042f7
mov ecx, dword [0x100daf8]
movzx eax, ax
mov eax, dword [eax*4 + 0x100e220]
mov esi, dword [ebp + 0xc]
and esi, 1
je 0x1004310
test byte [ebp + 0xc], 2
je 0x1004310
lea edx, [ecx + eax]
cmp edx, dword [ebp - 0x314]
jmp 0x1004322
cmp esi, ebx
je 0x100431c
cmp eax, dword [ebp - 0x314]
jmp 0x1004322
cmp ecx, dword [ebp - 0x314]
jbe 0x1004334
lea edx, [ebp - 0xc]
push edx
push ecx
push eax
push dword [ebp + 0x10]
call fcn.01002595
jmp 0x100433d
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.01006b69
leave
ret 0xc
Function at 0x10048b5
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 0x10048fe
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.01003816
call fcn.010035fe
mov dword [0x100d0c4], eax
xor eax, eax
jmp 0x100490e
push 2
push 2
lea eax, [ebp - 0x108]
push eax
call fcn.0100410a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01006b69
leave
ret

Function at 0x100491f
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.01001f99
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 0x10049fc
push esi
jmp 0x1004975
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 0x10049e2
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 0x10049f1
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.01001f99
add esp, 0x10
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0
call ebx
test eax, eax
jne 0x1004973
jmp 0x10049fb
mov dword [0x100d0c4], 0x80070714
mov dword [ebp - 0x1c], edi
jmp 0x10049fb
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.01006b69
leave
ret 4

Function at 0x1004afc
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.01001f1e
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.010074d0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004b64
test al, 0x10
jne 0x1004b64
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x1004b6b
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01006b69
leave
ret 4
Function at 0x100501e
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 0x100514a
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 0x10050fc
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 0x10050cb
mov al, byte [0x100daec]
test al, 1
je 0x10050cb
test al, 2
jne 0x10050cb
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x10050cb
mov dword [0x100daec], ecx
push ecx
call fcn.01003019
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 0x1005143
cmp dword [ebp - 0x20c], esi
jge 0x1005143
jmp 0x100513d
call fcn.010035fe
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.01003816
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.01006b69
leave
ret 8
Function at 0x10051f1
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 0x100530f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHBrowseForFolder
push edi
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10052fc
push 0xc3
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x10052fc
push str.SHGetPathFromIDList
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10052fc
cmp byte [0x100d0e0], bl
mov esi, 0x100d0e0
jne 0x1005297
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 0x1005297
push eax
push esi
call edi
cmp byte [eax], 0x3a
je 0x1005297
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], 0x1003074
mov dword [ebp - 0x1c], esi
call dword [ebp - 8]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x10052ea
push esi
push eax
call dword [ebp - 0xc]
cmp byte [0x100d0e0], bl
je 0x10052e4
push esi
push dword [ebp + 0x14]
push edi
call fcn.01001f1e
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 0x1005323
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 0x10
push ebx
push ebx
push 0x4c1
jmp 0x1005319
push ebx
push 0x10
push ebx
push ebx
push 0x4c2
push dword [ebp + 8]
call fcn.01003816
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x100532f
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.0100752b
test eax, eax
je 0x100539d
cmp dword [0x100d29c], 0
jne 0x1005391
test byte [0x100def8], bl
jne 0x1005391
push 6
push 0
push 0x1003780
push dword [0x100cd68]
mov dword [0x100d4c4], esi
push 0x7d3
push dword [0x100db04]
call fcn.01004b80
sub eax, 6
je 0x1005391
dec eax
je 0x10053a5
sub eax, 0x832
jne 0x1005391
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 0x100539d
Function at 0x10056e2
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 0x100578f
mov edi, 0x104
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.01003f6a
test eax, eax
je 0x10057f8
lea eax, [ebp - 0x108]
push eax
push edi
mov esi, 0x100d2a4
push esi
call fcn.01001f1e
test byte [0x100daf4], 0x20
je 0x1005781
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x12c]
sub eax, ebx
je 0x1005775
dec eax
je 0x100576e
dec eax
je 0x1005767
dec eax
jne 0x1005781
push 0x10014c0
jmp 0x100577a
push 0x10014b8
jmp 0x100577a
push 0x10014b0
jmp 0x100577a
push 0x10014a8
push edi
push esi
call fcn.010074d0
push 0x10012e1
push edi
push esi
call fcn.010074d0
jmp 0x10057a0
push eax
push 0x104
mov esi, 0x100d2a4
push esi
call fcn.01001f1e
push esi
call fcn.0100405d
xor edi, edi
inc edi
test eax, eax
jne 0x10057bf
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10057d7
mov dword [0x100dee0], edi
push ebx
push dword [ebp + 0x10]
push esi
call fcn.0100410a
test eax, eax
je 0x10057e3
mov dword [0x100d0c4], ebx
mov eax, edi
jmp 0x10057fa
call fcn.010035fe
mov dword [0x100d0c4], eax
jmp 0x10057f8
cmp dword [0x100dee0], ebx
je 0x10057f8
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.01006b69
leave
ret 0xc
Function at 0x1005810
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.0100316f
cmp eax, ebx
je 0x1005a6c
cmp eax, 0x80
ja 0x1005a6c
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.0100316f
test eax, eax
jne 0x10058f0
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.01003816
mov dword [0x100d0c4], 0x80070714
jmp 0x1005a7c
test byte [0x100daf4], 0xc0
je 0x1005989
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x10014d0
call fcn.0100316f
test eax, eax
je 0x10058d1
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 0x1005989
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1005989
test byte [0x100daf4], 0x80
je 0x1005958
push ebx
push 0x10
push ebx
push esi
push 0x54b
push ebx
call fcn.01003816
jmp 0x100596e
push 4
push 0x20
push ebx
push esi
push 0x524
push ebx
call fcn.01003816
cmp eax, 6
je 0x1005989
push dword [0x100cd70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100d0c4], 0x800700b7
jmp 0x1005a7c
push dword [ebp - 0x110]
mov dword [0x100d0c8], ebx
call fcn.01004353
test eax, eax
jne 0x10059ad
push ebx
push 0x10
push ebx
push ebx
push 0x520
jmp 0x1005a76
cmp byte [0x100defa], bl
je 0x10059c4
push 0x100defa
call fcn.01002414
jmp 0x1005a7c
push 0xa
push 0x10014c4
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x10059e4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10c], eax
cmp dword [0x100c2bc], ebx
je 0x10059f2
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x100dee4], ebx
je 0x10059ff
xor eax, eax
inc eax
jmp 0x1005a7e
push dword [ebp - 0x10c]
call fcn.01004bf3
test eax, eax
je 0x1005a7c
mov ax, word [0x100d0cc]
cmp ax, 1
je 0x1005a26
cmp ax, 2
je 0x1005a26
cmp ax, 3
jne 0x10059fa
test word [0x100daf4], 0x100
je 0x10059fa
test byte [0x100def8], 1
jne 0x10059fa
call fcn.010018f8
test eax, eax
jne 0x10059fa
push 0x83e
push 0x547
push 0x1001a39
push ebx
push 0x7d6
push dword [0x100db04]
call fcn.01004b80
cmp eax, 0x83d
jne 0x1005a7c
jmp 0x10059fa
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.01003816
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006b69
leave
ret 0xc
Function at 0x100666f
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 0x10066ba
cmp dword [0x100dee4], edi
jne 0x10066b1
call fcn.01003da7
test eax, eax
jne 0x10066a8
xor eax, eax
jmp 0x10067d2
cmp word [0x100def8], di
jne 0x10066ba
call fcn.01004f32
test eax, eax
je 0x10066a1
call fcn.01005654
test eax, eax
je 0x10066a1
call fcn.01006384
test eax, eax
je 0x10066a1
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.010074d0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
mov ebx, 0x100d2a4
je 0x100671f
push 0x1001548
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x100671f
push edi
push ebx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x100dee4], edi
jne 0x100673f
cmp dword [0x100daf0], edi
jne 0x100673f
call fcn.010048b5
test eax, eax
je 0x10067b3
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x1006766
push edi
push 0x10
push edi
push edi
push 0x4bc
push edi
call fcn.01003816
call fcn.010035fe
mov dword [0x100d0c4], eax
jmp 0x10067b3
cmp dword [0x100deec], edi
jne 0x1006777
call fcn.01005e62
test eax, eax
je 0x10067b3
test byte [0x100e208], 0xc0
jne 0x1006794
movzx eax, word [0x100d0cc]
push eax
call fcn.01001dd8
mov dword [0x100d1e4], eax
jmp 0x100679a
mov dword [0x100d1e4], edi
cmp dword [0x100dee4], edi
jne 0x10067b7
cmp dword [0x100daf0], edi
jne 0x10067b7
call fcn.01005ee6
test eax, eax
jne 0x10067b7
xor eax, eax
jmp 0x10067d0
cmp word [0x100def8], di
jne 0x10067cd
cmp dword [0x100dee4], edi
jne 0x10067cd
call fcn.0100515f
xor eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01006b69
leave
ret