joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a1a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
push dword [ebp + 8]
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1002a63
push esi
lea eax, [ebp - 4]
push esi
push esi
push esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1002a5a
mov dword [ebp - 4], esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1002abf
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1002adc
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1002adf
and eax, 0x10
ret 4

Function at 0x1002ae2
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x1002b0e
xor eax, eax
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.010044fb
mov eax, dword [esp + 0x108]
mov al, byte [eax]
sub al, byte [esp]
cmp al, 1
sbb eax, eax
add esp, 0x104
neg eax
ret 4

Function at 0x1002c0e
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov byte [esi], bl
cmp byte [edi], 0x23
jne 0x1002cda
inc edi
movsx eax, byte [edi]
push eax
call fcn.01006920
add esp, 4
mov byte [ebp - 1], al
push edi
call dword [sym.imp.USER32.dll_CharNextA]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
movsx eax, byte [ebp - 1]
cmp eax, 0x53
je 0x1002cda
cmp eax, 0x57
je 0x1002cce
push 0x10013a4
lea eax, [ebp - 0x10c]
mov dword [ebp - 8], 0x104
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [ebp - 0x10c]
push eax
call fcn.010028f3
lea eax, [ebp - 4]
lea ecx, [ebp - 0x10c]
push eax
push 0x20019
push ebx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002ce4
lea eax, [ebp - 8]
push eax
push esi
push ebx
push ebx
push 0x1001354
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002cc3
mov ebx, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002ce4
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x1002ce4
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test ebx, ebx
jne 0x1002cef
push edi
push esi
call fcn.010028f3
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002cfd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
cmp dword [eax + 0x7c], esi
jle 0x1002e5f
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
add ecx, eax
mov eax, dword [ebp - 0x18]
lea edi, [ecx + eax + 0x84]
mov eax, dword [ecx + eax + 0xbc]
add eax, dword [ebp + 8]
add eax, 0x84
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01002c0e
test eax, eax
je 0x1002e66
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x1002e29
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x1002e66
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1002e66
push eax
push ebx
push dword [ebp - 0x24]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1002e1e
lea eax, [ebp - 0x20]
lea ecx, [ebp - 8]
push eax
push ecx
push 0x10013d8
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1002e1e
cmp dword [ebp - 0x20], 0
je 0x1002e1e
add edi, 4
xor ebx, ebx
mov edx, dword [ebp - 8]
add ebx, 4
push dword [edi]
push dword [edi - 4]
push dword [edx + 0xc]
push dword [edx + 8]
call fcn.01002eba
add edi, 0x18
mov dword [ebp + ebx - 0x38], eax
mov eax, dword [ebp - 8]
push dword [edi - 0xc]
push dword [edi - 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.01002eba
mov dword [ebp + ebx - 0x30], eax
cmp ebx, 8
jl 0x1002dcc
cmp dword [ebp - 0x34], 0
jl 0x1002e12
cmp dword [ebp - 0x2c], 0
jle 0x1002e1e
cmp dword [ebp - 0x30], 0
jl 0x1002e89
cmp dword [ebp - 0x28], 0
jg 0x1002e89
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1002e45
mov eax, dword [ebp - 0x1c]
add eax, edi
cmp dword [eax], 0
jne 0x1002e66
cmp dword [eax + 4], 0
jne 0x1002e66
cmp dword [eax + 0xc], 0
jne 0x1002e66
cmp dword [eax + 0x10], 0
jne 0x1002e66
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
add dword [ebp - 0x1c], 0x18
add dword [ebp - 0x18], 0x3c
mov ecx, dword [ebp - 0xc]
cmp dword [eax + 0x7c], ecx
jg 0x1002d23
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 4], 0
mov dword [eax], ecx
je 0x1002e7d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1002e66
Function at 0x1002f60
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, 1
push 0x7f
mov dword [0x1017af4], esi
push 0x1011344
mov dword [0x10115dc], ebx
push 0x1001414
call fcn.0100467b
test eax, eax
je 0x100316b
cmp eax, 0x80
ja 0x100316b
push edi
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x1011f5c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
push 0x1011c24
push 0x1001408
call fcn.0100467b
test eax, eax
jne 0x1002ff0
push edi
push 0x10
push edi
push edi
push 0x4b1
push edi
call fcn.010044fb
mov dword [0x1017b24], 0x80070714
jmp 0x100317d
test byte [0x1011c24], 0xc0
je 0x10030b6
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0x10013f8
call fcn.0100467b
test eax, eax
jne 0x1003038
xor eax, eax
push eax
push 0x10
push eax
push eax
push 0x4b1
push eax
call fcn.010044fb
mov dword [0x1017b24], 0x80070714
jmp 0x100317d
lea eax, [ebp - 0x104]
xor ebx, ebx
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x1011f60], eax
cmp eax, ebx
je 0x10030b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10030b6
test byte [0x1011c24], 0x80
je 0x100307f
push ebx
push 0x10
push ebx
push 0x1011344
push 0x54b
push ebx
call fcn.010044fb
jmp 0x100309b
push 4
push 0x20
push 0
push 0x1011344
push 0x524
push 0
call fcn.010044fb
cmp eax, 6
je 0x10030b6
mov eax, dword [0x1011f60]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1017b24], 0x800700b7
jmp 0x100317d
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [0x1017b2c], ebx
call fcn.01005d2b
test eax, eax
jne 0x10030da
push ebx
push 0x10
push ebx
push ebx
push 0x520
push ebx
jmp 0x1003178
push 0xa
push 0x10013ec
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10030f6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call fcn.010038e9
test eax, eax
je 0x100317d
cmp dword [0x1011c2c], 0
je 0x100310f
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ax, word [0x1017ef4]
cmp ax, 1
je 0x1003121
cmp ax, 2
jne 0x1003164
test byte [0x1011c25], 1
je 0x1003164
test byte [0x1011c4c], 1
jne 0x1003164
call fcn.01001fc0
test eax, eax
jne 0x1003164
push 0x83e
mov eax, dword [0x1017af4]
push 0x547
push 0x10020db
push 0
push 0x7d6
push eax
call fcn.01006501
cmp eax, 0x83d
jne 0x100317d
mov eax, 1
jmp 0x100317f
xor eax, eax
push eax
push 0x10
push eax
push eax
push 0x4b1
push eax
call fcn.010044fb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100327d
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
jmp 0x100532b
sub esp, 0x104
push esi
push edi
mov esi, dword [0x10113d0]
mov edi, esi
test esi, esi
je 0x100537e
cmp dword [0x1011c3c], 0
jne 0x1005366
cmp dword [0x1011c20], 0
jne 0x1005366
push pe_nt_image_headers32
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 0x100533f
cmp word [0x1017ef4], 1
je 0x1005396
cmp dword [0x1011c38], 0
je 0x1005396
call fcn.01002636
xor eax, eax
cmp dword [0x1011c38], eax
je 0x10053f2
cmp dword [0x1011c3c], eax
jne 0x10053f2
cmp dword [0x1011c20], eax
jne 0x10053f2
lea eax, [esp + 8]
push 0x10113d4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x1011c24], 0x20
je 0x10053d3
lea eax, [esp + 8]
push eax
call fcn.01006573
mov dword [0x1011c38], 0
push 0x100138c
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 8]
push eax
call fcn.010027c4
pop edi
pop esi
add esp, 0x104
ret
Function at 0x1004192
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ecx, dword [esp + 8]
mov ebp, esp
sub esp, 0x14
test ecx, ecx
push esi
push edi
je 0x1004241
lea edi, [ebp - 0x14]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push dword [ebp + 0xc]
push esi
push esi
push 0x20
push esi
push esi
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1004237
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [0x1011c40], esi
jne 0x1004214
test byte [0x1011c1c], 1
je 0x1004214
test byte [0x1011c1c], 2
jne 0x1004214
mov eax, dword [ebp - 4]
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x1004214
mov eax, dword [ebp - 4]
mov dword [0x1011c1c], eax
push 0
push dword [ebp - 4]
call fcn.010062a0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1004243
call fcn.010062f2
mov dword [0x1017b24], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10042ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push str.SHELL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x100440e
push str.SHBrowseForFolder
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
call edi
mov dword [ebp - 4], eax
test eax, eax
je 0x10043f9
push 0xc3
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x10043f9
push str.SHGetPathFromIDList
push esi
call edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10043f9
cmp byte [0x1011f68], 0
jne 0x100438d
mov edi, 0x1011f68
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, edi
push eax
push edi
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
mov ebx, eax
jne 0x100438d
push ebx
push edi
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x3a
je 0x100438d
mov byte [ebx], 0
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov byte [eax], bl
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov edi, 0x1011f68
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0x10042cd
mov dword [ebp - 0x14], edi
call dword [ebp - 4]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10043e7
push edi
push eax
call dword [ebp - 0xc]
cmp byte [0x1011f68], bl
je 0x10043e1
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 4]
call dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 0x10]
cmp byte [eax], 1
sbb eax, eax
inc eax
jmp 0x1004424
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
push eax
push 0x10
push eax
push eax
push 0x4c1
jmp 0x100441a
xor eax, eax
push eax
push 0x10
push eax
push eax
push 0x4c2
push dword [ebp + 8]
call fcn.010044fb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100467b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xa
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, dword [ebp + 0x10]
mov ebx, eax
ja 0x10046e9
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10046e9
test ebx, ebx
jne 0x10046ad
xor eax, eax
jmp 0x10046eb
push 0xa
push dword [ebp + 8]
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]
test eax, eax
jne 0x10046d2
xor eax, eax
jmp 0x10046eb
mov esi, eax
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x10047b5
Capabilities:
Set file attributes

Disassembly:
push esi
push edi
mov edi, 1
mov esi, dword [esp + 0xc]
push esi
call fcn.01004781
test eax, eax
je 0x100483a
cmp dword [0x10113cc], 0
jne 0x100482a
test byte [0x1011c4c], 1
jne 0x100482a
push 6
mov eax, dword [0x1011c34]
push 0
mov dword [0x10115f4], esi
push 0x100362d
push eax
push 0x7d3
push dword [0x1017af4]
call fcn.01006501
cmp eax, 6
je 0x1004814
cmp eax, 7
je 0x100481b
cmp eax, 0x839
je 0x100481f
jmp 0x100482a
mov edi, 1
jmp 0x100482a
xor edi, edi
jmp 0x100482a
mov edi, 1
mov dword [0x10113cc], edi
test edi, edi
je 0x100483a
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x1004966
Capabilities:
Create directory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov cl, byte [esi]
test cl, cl
je 0x10049ce
xor ebx, ebx
lea edi, [esi + 1]
mov al, byte [edi]
cmp al, 0x3a
jne 0x1004989
cmp byte [esi + 2], 0x5c
jne 0x1004989
lea edi, [esi + 3]
jmp 0x100499a
cmp cl, 0x5c
jne 0x100499a
cmp al, 0x5c
jne 0x100499a
lea edi, [esi + 2]
mov ebx, 2
cmp byte [edi], 0
je 0x10049ce
cmp byte [edi], 0x5c
jne 0x10049c0
cmp byte [edi - 1], 0x3a
je 0x10049c0
test ebx, ebx
je 0x10049b1
dec ebx
jmp 0x10049c0
push 0
mov byte [edi], 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [edi], 0x5c
push edi
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
mov edi, eax
jne 0x100499f
pop edi
pop esi
pop ebx
ret 4
Function at 0x1004ff8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
call fcn.0100517c
test eax, eax
jne 0x100500b
xor eax, eax
jmp 0x1005178
mov eax, dword [0x1011c34]
test eax, eax
je 0x1005043
push 0
push 0x842
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
mov eax, dword [0x1011c34]
push 0x841
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x1011330]
push eax
call fcn.01004f3e
test eax, eax
jne 0x100506e
xor esi, esi
mov eax, dword [0x1011c34]
push esi
push 0x10
push esi
push esi
push 0x4ba
push eax
call fcn.010044fb
jmp 0x1005116
push 0x1011338
push 1
push 0x1004c10
push fcn.01004bbc
push 0x1004b2c
push 0x1004aa9
push fcn.010049d4
xor esi, esi
push 0x1004d39
push 0x1004d2c
call fcn.0100b540
add esp, 0x24
mov ebx, eax
test ebx, ebx
jne 0x10050c5
push esi
mov eax, dword [0x1011338]
push 0x10
add eax, 0x514
push esi
push esi
push eax
push dword [0x1011c34]
call fcn.010044fb
jmp 0x1005116
push 0x1011330
xor edi, edi
push edi
push 0x1004d4a
push edi
push 0x1001354
push str.MEMCAB
push ebx
call fcn.0100b710
add esp, 0x1c
mov esi, eax
test esi, esi
je 0x1005116
push ebx
call fcn.0100b5e0
add esp, 4
test eax, eax
jne 0x1005116
push edi
mov eax, dword [0x1011338]
push 0x10
add eax, 0x514
push edi
xor esi, esi
push edi
push eax
push dword [0x1011c34]
call fcn.010044fb
xor edi, edi
cmp dword [0x1011330], edi
je 0x1005132
mov eax, dword [0x1011330]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [0x1011330], edi
xor eax, eax
test esi, esi
jne 0x1005150
cmp dword [0x10113c8], eax
jne 0x1005150
push eax
push 0x10
push eax
push eax
push 0x4f8
push eax
call fcn.010044fb
test byte [0x1011c4c], 1
jne 0x1005176
test byte [0x1011c24], 1
jne 0x1005176
push 0
mov eax, dword [0x1011c34]
push esi
push 0xfa1
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x10053fb
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov esi, dword [ebp + 0xc]
cmp ebx, 0x190
jge 0x1005476
push ebx
mov eax, ebx
inc ebx
push 0x10014ec
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x104]
push ecx
push esi
call fcn.010028f3
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100540e
push 0
mov edi, 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1005476
mov edi, 1
mov dword [0x1011c38], edi
test edi, edi
jne 0x10054a4
push esi
push 0
push 0x10014e8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x10054a4
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10054af
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
cmp dword [ebp + 0xc], 0
push esi
je 0x100554d
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
call fcn.010053fb
test eax, eax
je 0x10055c8
lea eax, [ebp - 0x128]
push eax
push 0x10113d4
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x1011c24], 0x20
je 0x100553c
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
test eax, eax
je 0x1005518
cmp eax, 1
je 0x100551f
cmp eax, 2
je 0x1005526
cmp eax, 3
je 0x100552d
jmp 0x100553c
push 0x100150c
jmp 0x1005532
push 0x1001504
jmp 0x1005532
push 0x10014fc
jmp 0x1005532
push 0x10014f8
push 0x10113d4
call fcn.010028f3
push 0x1001354
push 0x10113d4
call fcn.010028f3
jmp 0x100555b
push dword [ebp + 8]
push 0x10113d4
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, 0x10113d4
push esi
call fcn.0100590c
test eax, eax
jne 0x1005581
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10055a2
mov dword [0x1011c38], 1
xor esi, esi
push esi
push dword [ebp + 0x10]
push 0x10113d4
call fcn.010059fe
test eax, eax
je 0x10055ae
mov eax, 1
mov dword [0x1017b24], esi
jmp 0x10055ca
call fcn.010062f2
mov dword [0x1017b24], eax
jmp 0x10055c8
xor eax, eax
cmp dword [0x1011c38], eax
je 0x10055c8
push 0x10113d4
mov dword [0x1011c38], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100590c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ecx, 0xffffffff
mov ebp, esp
sub eax, eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x13
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
xor eax, eax
test ebx, ebx
jne 0x1005949
push eax
push 0x10
push eax
push eax
push 0x4b5
push eax
call fcn.010044fb
jmp 0x10059eb
mov edi, dword [ebp + 8]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1001528
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, ebx
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
push eax
push 0x4000080
push 1
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 0xffffffff
je 0x10059eb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10059eb
test al, 0x10
je 0x10059eb
mov dword [0x1017b24], 0
mov eax, 1
jmp 0x10059f7
call fcn.010062f2
mov dword [0x1017b24], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x1006251
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x100628b
xor eax, eax
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.010044fb
call fcn.010062f2
mov dword [0x1017b24], eax
xor eax, eax
jmp 0x1006299
lea eax, [esp]
push 2
push 2
push eax
call fcn.010059fe
add esp, 0x104
ret

Function at 0x1006312
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 1
push ebx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x20]
push 0x10013e0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x20]
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10063b2
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 0x1006391
mov eax, dword [edi]
mov ecx, dword [edi + 4]
lea ebx, [edi + 8]
mov dword [ebp - 8], eax
push ebx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebx + eax + 1]
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [ebp + 8]
test eax, eax
je 0x10063a4
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1006324
mov dword [0x1017b24], 0x80070714
mov dword [ebp - 4], 0
jmp 0x10063b2
mov dword [ebp - 4], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100649f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x10113d4
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea ecx, [ebp - 0x104]
push ecx
call fcn.010028f3
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10064f2
test al, 0x10
jne 0x10064f2
push 8
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x10064fb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esp, ebp
pop ebp
ret 4