joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d278b
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x6d8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x110], esi
mov byte [edi], bl
cmp byte [esi], 0x23
jne 0x6d28ca
inc esi
movsx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
push esi
mov byte [ebp - 0x109], al
call dword [sym.imp.USER32.dll_CharNextA]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x110], eax
mov esi, 0x104
mov al, byte [ebp - 0x109]
cmp al, 0x53
je 0x6d28cf
cmp al, 0x57
je 0x6d28c0
push ecx
push 0x6d11f0
push ecx
mov edx, esi
mov dword [ebp - 0x11c], esi
lea ecx, [ebp - 0x108]
call fcn.006d174e
push dword [ebp - 0x110]
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.006d6659
lea eax, [ebp - 0x118]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d28db
lea eax, [ebp - 0x11c]
push eax
push edi
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x6d1120
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6d28b2
mov eax, dword [ebp - 0x114]
cmp eax, 2
jne 0x6d28aa
push esi
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x6d28a4
lea eax, [ebp - 0x108]
mov edx, esi
push eax
mov ecx, edi
call fcn.006d1645
jmp 0x6d28af
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x6d28b2
xor ebx, ebx
inc ebx
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x6d28d7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x6d28db
mov esi, 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test ebx, ebx
jne 0x6d28ea
push dword [ebp - 0x110]
mov edx, esi
mov ecx, edi
call fcn.006d6659
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.006d6e20
mov esp, ebp
pop ebp
ret 4
Function at 0x6d2905
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov dword [ebp - 8], edx
mov edx, ecx
push esi
xor esi, esi
mov dword [ebp - 0xc], edx
mov ebx, esi
push edi
mov edi, esi
mov dword [ebp - 0x10], ebx
cmp dword [edx + 0x7c], esi
jle 0x6d2a7f
mov eax, esi
mov dword [ebp - 4], esi
mov ecx, dword [edx + 0x80]
add eax, edx
add edx, 0x84
mov dword [ebp - 0x14], ecx
mov eax, dword [eax + ecx + 0xbc]
mov ecx, dword [ebp - 8]
add eax, edx
push eax
call fcn.006d278b
test eax, eax
je 0x6d2a82
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x6d2a49
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x6d2a82
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x6d2a82
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x6d2a3d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x6d1224
push dword [ebp - 0x20]
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x6d2a3d
cmp dword [ebp - 0x24], 0
je 0x6d2a3d
mov eax, dword [ebp - 0x28]
mov ebx, esi
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add ecx, 0x94
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov esi, eax
push dword [esi - 0xc]
push dword [esi - 0x10]
call fcn.006d2aab
push dword [esi]
mov dword [ebp + ebx - 0x34], eax
push dword [esi - 4]
call fcn.006d2aab
mov dword [ebp + ebx - 0x3c], eax
lea esi, [esi + 0x18]
add ebx, 4
cmp ebx, 8
jl 0x6d29fc
mov ebx, dword [ebp - 0x10]
xor esi, esi
cmp dword [ebp - 0x34], esi
jl 0x6d2a33
cmp dword [ebp - 0x3c], esi
jle 0x6d2a3d
cmp dword [ebp - 0x30], esi
jl 0x6d2a9d
cmp dword [ebp - 0x38], esi
jg 0x6d2a9d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0xc]
jmp 0x6d2a69
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add eax, edx
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
cmp dword [eax + ecx + 0x84], esi
jne 0x6d2a82
cmp dword [eax + ecx + 0x88], esi
jne 0x6d2a82
mov eax, dword [ebp - 4]
inc ebx
add eax, 0x3c
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
cmp ebx, dword [edx + 0x7c]
jl 0x6d292f
xor esi, esi
inc esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
test edi, edi
je 0x6d2a92
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x6d2a82
Function at 0x6d2ce3
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6d8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x8fc
xor edi, edi
mov esi, ecx
push edi
push 0x6d9140
mov ebx, edx
mov dword [0x6d9a3c], esi
call sub.msvcrt.dll_memset
push 0x32c
push edi
push 0x6d8a20
call sub.msvcrt.dll_memset
push 0x104
push edi
push 0x6d88c0
call sub.msvcrt.dll_memset
add esp, 0x24
xor eax, eax
inc eax
mov edx, 0x6d9154
mov ecx, 0x6d1258
mov dword [0x6d93ec], eax
push 0x7f
call fcn.006d46ea
test eax, eax
je 0x6d2f2c
cmp eax, 0x80
ja 0x6d2f2c
push edi
xor eax, eax
inc eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x6d858c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
mov edx, 0x6d9a34
mov ecx, 0x6d1260
call fcn.006d46ea
test eax, eax
jne 0x6d2db6
xor eax, eax
mov edx, 0x4b1
push eax
push 0x10
push eax
push eax
xor ecx, ecx
call fcn.006d44d8
mov dword [0x6d9124], 0x80070714
jmp 0x6d2f3f
test byte [0x6d9a34], 0xc0
je 0x6d2e58
push 0x104
lea edx, [ebp - 0x108]
mov ecx, 0x6d126c
call fcn.006d46ea
test eax, eax
je 0x6d2d94
lea eax, [ebp - 0x108]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x6d8588], eax
test eax, eax
je 0x6d2e58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x6d2e58
xor ecx, ecx
test byte [0x6d9a34], 0x80
je 0x6d2e23
push ecx
push 0x10
push ecx
push 0x6d9154
mov edx, 0x54b
call fcn.006d44d8
jmp 0x6d2e3d
push 4
push 0x20
push 0
push 0x6d9154
mov edx, 0x524
call fcn.006d44d8
cmp eax, 6
je 0x6d2e58
push dword [0x6d8588]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x6d9124], 0x800700b7
jmp 0x6d2f3f
and dword [0x6d9120], edi
mov ecx, ebx
call fcn.006d5d4a
test eax, eax
jne 0x6d2e73
mov edx, 0x520
jmp 0x6d2f31
cmp byte [0x6d8a3a], 0
je 0x6d2e8b
mov ecx, 0x6d8a3a
call fcn.006d2397
jmp 0x6d2f3f
push 0xa
push 0x6d127c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x6d2ea7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp dword [0x6d8184], 0
je 0x6d2eb6
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x6d8a24], 0
je 0x6d2ec4
xor eax, eax
inc eax
jmp 0x6d2f41
mov ecx, edi
call fcn.006d3729
test eax, eax
je 0x6d2f3f
mov ax, word [0x6d9a40]
xor ebx, ebx
inc ebx
cmp ax, bx
je 0x6d2ee9
cmp ax, 2
je 0x6d2ee9
cmp ax, 3
jne 0x6d2f28
test dword [0x6d9a34], 0x100
je 0x6d2f28
test byte [0x6d8a38], 1
jne 0x6d2f28
call fcn.006d187a
test eax, eax
jne 0x6d2f28
push 0x83e
push 0x547
push 0x6d19c0
push eax
mov edx, 0x7d6
call fcn.006d65e1
cmp eax, 0x83d
jne 0x6d2f3f
mov eax, ebx
jmp 0x6d2f41
mov edx, 0x4b1
xor eax, eax
xor ecx, ecx
push eax
push 0x10
push eax
push eax
call fcn.006d44d8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d6e20
mov esp, ebp
pop ebp
ret 4
Function at 0x6d2f59
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6d8004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x6d8a38], 0
push ebx
push esi
push edi
jne 0x6d2fa7
cmp dword [0x6d8a24], 0
jne 0x6d2f9e
call fcn.006d525f
test eax, eax
jne 0x6d2f94
xor eax, eax
jmp 0x6d30e8
cmp word [0x6d8a38], 0
jne 0x6d2fa7
call fcn.006d3a2e
test eax, eax
je 0x6d2f8d
call fcn.006d51d9
test eax, eax
je 0x6d2f8d
call fcn.006d563d
test eax, eax
je 0x6d2f8d
mov esi, 0x105
lea eax, [ebp - 0x10c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x6d1124
mov edx, esi
lea ecx, [ebp - 0x10c]
call fcn.006d6659
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x6d3021
push 0x6d1288
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x6d3021
mov esi, esp
mov ecx, ebx
push 0
push 0x6d91e4
call dword [0x6da28c]
call ebx
cmp esi, esp
je 0x6d3021
mov ecx, 4
int 0x29
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x6d8a24], 0
jne 0x6d3047
cmp dword [0x6d9a30], 0
jne 0x6d3047
call fcn.006d62d0
test eax, eax
je 0x6d2f8d
push 0x6d91e4
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x6d3076
push eax
push 0x10
push eax
push eax
mov edx, 0x4bc
xor ecx, ecx
call fcn.006d44d8
call fcn.006d633c
mov dword [0x6d9124], eax
jmp 0x6d2f8d
cmp dword [0x6d8a2c], 0
jne 0x6d308c
call fcn.006d3b1a
test eax, eax
je 0x6d2f8d
test byte [0x6d8d48], 0xc0
jne 0x6d30a8
mov cx, word [0x6d9a40]
call fcn.006d257e
mov dword [0x6d9a44], eax
jmp 0x6d30af
and dword [0x6d9a44], 0
mov eax, dword [0x6d8a24]
test eax, eax
jne 0x6d30d2
cmp dword [0x6d9a30], eax
jne 0x6d30d2
call fcn.006d3b9b
test eax, eax
je 0x6d2f8d
mov eax, dword [0x6d8a24]
cmp word [0x6d8a38], 0
jne 0x6d30e5
test eax, eax
jne 0x6d30e5
call fcn.006d4174
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d6e20
mov esp, ebp
pop ebp
ret
Function at 0x6d3ff0
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x6d8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
inc esi
xor eax, eax
push edi
test ebx, ebx
je 0x6d410b
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 edx
xor edi, edi
push edi
push edi
push 0x20
push edi
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x6d40c5
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 [0x6d8a28], edi
jne 0x6d4092
mov eax, dword [0x6d9a2c]
test al, 1
je 0x6d4092
test al, 2
jne 0x6d4092
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x6d4092
mov dword [0x6d9a2c], ecx
call fcn.006d4121
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [0x6d9a34], 0x400
je 0x6d4109
cmp dword [ebp - 0x20c], edi
jge 0x6d4109
jmp 0x6d4107
call fcn.006d633c
push edi
mov dword [0x6d9124], eax
lea eax, [ebp - 0x208]
push 0x200
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push edi
push 0x10
lea eax, [ebp - 0x208]
mov edx, 0x4c4
push eax
push ebx
xor ecx, ecx
call fcn.006d44d8
mov esi, edi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d6e20
mov esp, ebp
pop ebp
ret
Function at 0x6d4239
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push str.SHELL32.DLL
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x6d43c7
push str.SHBrowseForFolder
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
test eax, eax
je 0x6d43b9
push 0xc3
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x6d43b9
push str.SHGetPathFromIDList
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x6d43b9
xor ebx, ebx
cmp byte [0x6d88c0], bl
jne 0x6d42fb
push 0x6d88c0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, 0x6d88c0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6d42c2
sub ecx, edx
lea eax, [ecx + 0x6d88c0]
push eax
push 0x6d88c0
call dword [sym.imp.USER32.dll_CharPrevA]
mov dword [ebp - 4], eax
cmp byte [eax], 0x5c
jne 0x6d42fb
push eax
push 0x6d88c0
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x3a
je 0x6d42fb
mov eax, dword [ebp - 4]
mov byte [eax], bl
lea eax, [ebp - 0x30]
mov byte [0x6d87a0], bl
mov dword [ebp - 0x30], esi
mov esi, esp
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 8]
mov ecx, ebx
push eax
mov dword [ebp - 0x24], 0x6d8598
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x6d4210
mov dword [ebp - 0x18], 0x6d88c0
call dword [0x6da28c]
call ebx
cmp esi, esp
je 0x6d4344
mov ecx, 4
int 0x29
mov dword [ebp - 8], eax
test eax, eax
je 0x6d43a5
mov ebx, dword [ebp - 0xc]
mov esi, esp
push 0x6d88c0
push eax
mov ecx, ebx
call dword [0x6da28c]
call ebx
cmp esi, esp
je 0x6d436b
mov ecx, 4
int 0x29
cmp byte [0x6d88c0], 0
je 0x6d4388
push 0x6d88c0
mov edx, 0x104
mov ecx, 0x6d87a0
call fcn.006d1645
mov ebx, dword [ebp - 0x10]
mov esi, esp
push dword [ebp - 8]
mov ecx, ebx
call dword [0x6da28c]
call ebx
cmp esi, esp
je 0x6d43a5
mov ecx, 4
int 0x29
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp byte [0x6d87a0], al
setne al
jmp 0x6d43dc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 0x4c1
jmp 0x6d43cc
mov edx, 0x4c2
xor ebx, ebx
mov ecx, esi
push ebx
push 0x10
push ebx
push ebx
call fcn.006d44d8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x6d46ea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xa
mov edi, ecx
mov ebx, edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, dword [ebp + 8]
ja 0x6d4756
test ebx, ebx
je 0x6d4756
test esi, esi
jne 0x6d471d
xor eax, eax
jmp 0x6d4756
push 0xa
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x6d4719
push esi
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x6d47fd
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push esi
push edi
xor esi, esi
mov edi, ecx
inc esi
call fcn.006d6790
test eax, eax
je 0x6d4862
cmp dword [0x6d91dc], 0
jne 0x6d4856
test byte [0x6d8a38], 1
jne 0x6d4856
push 6
push 0
push 0x6d3480
push dword [0x6d8584]
mov edx, 0x7d3
mov dword [0x6d9404], edi
call fcn.006d65e1
sub eax, 6
je 0x6d4856
sub eax, esi
je 0x6d4867
sub eax, 0x832
jne 0x6d4856
mov dword [0x6d91dc], esi
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
mov eax, esi
pop esi
ret
xor esi, esi
jmp 0x6d4862

Function at 0x6d49a6
Capabilities:
Create directory

Disassembly:
mov edi, edi
push edi
mov edi, ecx
mov al, byte [edi]
test al, al
je 0x6d4a0b
push ebx
push esi
lea esi, [edi + 1]
xor ebx, ebx
mov cl, byte [esi]
cmp cl, 0x3a
jne 0x6d49ca
cmp byte [edi + 2], 0x5c
jne 0x6d49ca
lea esi, [edi + 3]
jmp 0x6d4a04
cmp al, 0x5c
jne 0x6d4a04
cmp cl, al
jne 0x6d4a04
push 2
lea esi, [edi + 2]
pop ebx
jmp 0x6d4a04
cmp byte [esi], 0x5c
jne 0x6d49fb
cmp byte [esi - 1], 0x3a
je 0x6d49fb
test ebx, ebx
je 0x6d49ec
dec ebx
jmp 0x6d49fb
push 0
push edi
mov byte [esi], 0
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], 0
jne 0x6d49da
pop esi
pop ebx
pop edi
ret
Function at 0x6d5050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebx
push esi
xor ebx, ebx
mov esi, 0x6d132c
push ebx
xor edx, edx
mov ecx, esi
call fcn.006d46ea
push 0xa
push esi
push ebx
mov dword [0x6d9144], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x6d9140], eax
test eax, eax
je 0x6d51d1
mov eax, dword [0x6d8584]
test eax, eax
je 0x6d50c7
push ebx
push 0x842
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x841
push dword [0x6d8584]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.006d4f70
test eax, eax
jne 0x6d50ec
mov ecx, dword [0x6d8584]
mov edx, 0x4ba
push ebx
push 0x10
push ebx
push ebx
call fcn.006d44d8
mov esi, ebx
jmp 0x6d5177
push edi
push 0x6d9148
push 1
push 0x6d4c70
push fcn.006d4c10
push 0x6d4b70
push 0x6d4af0
push fcn.006d4a20
push 0x6d4d80
push 0x6d4d60
call dword [sym.imp.Cabinet.dll_FDICreate]
mov edi, eax
add esp, 0x24
test edi, edi
je 0x6d5158
push 0x6d9140
push ebx
push 0x6d4da0
push ebx
push 0x6d1120
push str.MEMCAB
push edi
call dword [sym.imp.Cabinet.dll_FDICopy]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x6d5176
push edi
call dword [sym.imp.Cabinet.dll_FDIDestroy]
pop ecx
test eax, eax
jne 0x6d5176
mov edx, dword [0x6d9148]
mov ecx, dword [0x6d8584]
push ebx
push 0x10
push ebx
push ebx
lea edx, [edx + 0x514]
call fcn.006d44d8
mov esi, ebx
pop edi
mov eax, dword [0x6d9140]
test eax, eax
je 0x6d518d
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [0x6d9140], ebx
test esi, esi
jne 0x6d51aa
cmp dword [0x6d91d8], ebx
jne 0x6d51aa
push ebx
push 0x10
push ebx
push ebx
mov edx, 0x4f8
xor ecx, ecx
call fcn.006d44d8
test byte [0x6d8a38], 1
jne 0x6d51cf
test byte [0x6d9a34], 1
jne 0x6d51cf
push ebx
push esi
push 0xfa1
push dword [0x6d8584]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, esi
pop esi
pop ebx
ret
Function at 0x6d5335
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6d8004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x6d91e0]
push edi
jmp 0x6d538d
cmp dword [0x6d8a24], 0
jne 0x6d537b
cmp dword [0x6d9a30], 0
jne 0x6d537b
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, esi
test esi, esi
jne 0x6d5354
mov eax, dword [0x6d8a20]
pop edi
pop esi
test eax, eax
je 0x6d53f6
cmp dword [0x6d8a24], 0
jne 0x6d53f6
cmp dword [0x6d9a30], 0
jne 0x6d53f6
push ecx
push 0x6d91e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.006d174e
test byte [0x6d9a34], 0x20
je 0x6d53db
lea ecx, [ebp - 0x108]
call fcn.006d66bc
push 0x6d11dc
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x108]
call fcn.006d2397
mov eax, dword [0x6d8a20]
cmp word [0x6d9a40], 1
je 0x6d5409
test eax, eax
je 0x6d5409
call fcn.006d1fe5
mov ecx, dword [ebp - 4]
and dword [0x6d8a20], 0
xor ecx, ebp
call fcn.006d6e20
mov esp, ebp
pop ebp
ret

Function at 0x6d5423
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, 0x10c
mov eax, dword [0x6d8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10c], ecx
mov edi, edx
xor esi, esi
push ebx
push 0x6d1358
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.006d16e6
add esp, 0x10
mov edx, 0x104
mov ecx, edi
inc ebx
push dword [ebp - 0x10c]
call fcn.006d1645
lea eax, [ebp - 0x108]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.006d6659
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6d54e2
cmp ebx, 0x190
jl 0x6d5447
push edi
push 0
push 0x6d1364
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x6d54cd
xor esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d6e20
mov esp, ebp
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor esi, esi
test eax, eax
je 0x6d54a2
inc esi
mov dword [0x6d8a20], esi
jmp 0x6d54cd
Function at 0x6d5965
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x6d5975
sub edx, ecx
lea esi, [edx + 0x14]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x6d59b6
xor esi, esi
mov edx, 0x4b5
push esi
push 0x10
push esi
push esi
xor ecx, ecx
call fcn.006d44d8
call fcn.006d633c
mov dword [0x6d9124], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edx, esi
mov ecx, ebx
call fcn.006d1645
push 0x6d1398
mov edx, esi
mov ecx, ebx
call fcn.006d6659
xor esi, esi
push esi
push 0x4000080
push 1
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x6d59a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6d59a3
test al, 0x10
je 0x6d59a3
xor eax, eax
mov dword [0x6d9124], esi
inc eax
jmp 0x6d59af