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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001d27
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001d1e
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret 8

Function at 0x1001d34
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001d83
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
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 0x1001d7a
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001e17
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1001e1a
and eax, 0x10
pop ebp
ret 4

Function at 0x1002002
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 8], 2
jne 0x1002017
call fcn.01001fd0
cmp eax, 2
jne 0x1002054
test byte [ebp + 8], 4
jne 0x1002039
push 4
push 0x40
push 0
push 0x10012f1
push 0x522
push 0
call fcn.01003810
cmp eax, 6
jne 0x1002054
cmp word [0x100d0cc], 0
jne 0x100204f
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x1002054
call fcn.01001b07
pop ebp
ret 4
Function at 0x10022bd
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp byte [0x100c600], bl
je 0x10023da
lea eax, [ebp - 0x344]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10023da
push esi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x340]
push eax
push ebx
push ebx
mov esi, 0x100c600
push esi
push dword [ebp - 0x344]
mov dword [ebp - 0x348], 0x238
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10023cd
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002382
push 0x10012f1
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.01007610
push 0x100d2a4
lea eax, [ebp - 0x108]
push eax
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
lea eax, [ebp - 0x340]
push 0x238
push eax
call fcn.01001f71
add esp, 0x14
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x340]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01006b51
leave
ret
Function at 0x10023ec
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1002532
cmp byte [edi], 0
je 0x1002532
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001edb
push 0x1001338
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f17
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x24c], eax
cmp eax, 0xffffffff
je 0x1002531
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001edb
test byte [ebp - 0x248], 0x10
lea eax, [ebp - 0x21c]
je 0x10024d5
push 0x1001334
push eax
call ebx
test eax, eax
je 0x1002502
push 0x1001330
lea eax, [ebp - 0x21c]
push eax
call ebx
test eax, eax
je 0x1002502
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f17
push 0x10012f1
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01007610
lea eax, [ebp - 0x108]
push eax
call fcn.010023ec
jmp 0x1002502
push eax
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f17
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1002466
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01006b51
leave
ret 4
Function at 0x1002638
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 [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x110], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov byte [esi], 0
cmp byte [ebx], 0x23
push edi
jne 0x1002776
inc ebx
movsx eax, byte [ebx]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push ebx
mov byte [ebp - 0x109], al
call edi
push eax
call edi
cmp byte [ebp - 0x109], 0x53
mov ebx, eax
je 0x1002776
cmp byte [ebp - 0x109], 0x57
je 0x100276a
push 0x1001340
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x11c], edi
call fcn.01001edb
push ebx
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.01007610
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002789
lea eax, [ebp - 0x11c]
push eax
push esi
lea eax, [ebp - 0x114]
push eax
push 0
push 0x10012f1
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100275c
cmp dword [ebp - 0x114], 2
jne 0x1002749
push edi
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x1002749
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
push esi
call fcn.01001edb
jmp 0x1002752
cmp dword [ebp - 0x114], 1
jne 0x100275c
mov dword [ebp - 0x110], 1
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002780
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x1002789
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp - 0x110], 0
jne 0x1002793
push ebx
push dword [ebp + 0xc]
push esi
call fcn.01007610
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.01006b51
leave
ret 0xc
Function at 0x10027ac
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]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
cmp dword [edi + 0x7c], ebx
jle 0x10028ed
mov dword [ebp - 0xc], ebx
jmp 0x10027d5
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.01002638
test eax, eax
je 0x10028f4
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x10028d1
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10028f4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x10028f4
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10028c6
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x1001374
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10028c6
cmp dword [ebp - 0x1c], 0
je 0x10028c6
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.01001ead
push dword [ecx]
mov dword [ebp + edx - 0x28], eax
push dword [ecx - 4]
push edi
push ebx
call fcn.01001ead
mov dword [ebp + edx - 0x30], eax
add edx, 4
add ecx, 0x18
cmp edx, 8
jl 0x100287f
cmp dword [ebp - 0x28], 0
jl 0x10028b7
cmp dword [ebp - 0x30], 0
jle 0x10028c3
cmp dword [ebp - 0x24], 0
jl 0x1002915
cmp dword [ebp - 0x2c], 0
jg 0x1002915
mov edi, dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x10028da
cmp dword [esi], ebx
jne 0x10028f4
cmp dword [esi + 4], ebx
jne 0x10028f4
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], 0x3c
cmp eax, dword [edi + 0x7c]
jl 0x10027d3
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 0x100290e
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 0x10028f4
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 edi, edi
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, dword [ebp + 0x10]
ja 0x10031d9
cmp dword [ebp + 0xc], edi
je 0x10031d9
cmp ebx, edi
jne 0x10031a3
xor eax, eax
jmp 0x10031d9
push 0xa
push dword [ebp + 8]
push edi
call esi
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 0x100319f
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01006c80
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x1003214
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 0x1003283
push esi
lea esi, [edi + 1]
mov al, byte [esi]
mov dword [ebp + 8], ebx
cmp al, 0x3a
jne 0x100323e
cmp byte [edi + 2], 0x5c
jne 0x100323e
lea esi, [edi + 3]
jmp 0x100327e
cmp cl, 0x5c
jne 0x100327e
cmp al, cl
jne 0x100327e
lea esi, [edi + 2]
mov dword [ebp + 8], 2
jmp 0x100327e
cmp byte [esi], 0x5c
jne 0x1003275
cmp byte [esi - 1], 0x3a
je 0x1003275
cmp dword [ebp + 8], ebx
je 0x1003268
dec dword [ebp + 8]
jmp 0x1003275
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 0x1003253
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x1003e89
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x100d2a0]
mov ebx, esi
test esi, esi
je 0x1003eeb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x100dee4], 0
jne 0x1003eda
cmp dword [0x100daf0], 0
jne 0x1003eda
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebx]
mov esi, dword [esi + 4]
call edi
push ebx
call edi
mov ebx, esi
test esi, esi
jne 0x1003eb3
pop edi
xor eax, eax
pop esi
pop ebx
cmp dword [0x100dee0], eax
je 0x1003f49
cmp dword [0x100dee4], eax
jne 0x1003f49
cmp dword [0x100daf0], eax
jne 0x1003f49
push 0x100d2a4
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.01001edb
test byte [0x100daf4], 0x20
je 0x1003f32
lea eax, [ebp - 0x108]
push eax
call fcn.010075a7
push 0x1001330
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
call fcn.010023ec
cmp word [0x100d0cc], 1
je 0x1003f61
cmp dword [0x100dee0], 0
je 0x1003f61
call fcn.01001bc0
mov ecx, dword [ebp - 4]
and dword [0x100dee0], 0
xor ecx, ebp
call fcn.01006b51
leave
ret
Function at 0x1003f79
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 0x1001460
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.01001f71
add esp, 0x10
push dword [ebp - 0x110]
inc ebx
push dword [ebp + 0x10]
push esi
call fcn.01001edb
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
push esi
call fcn.01007610
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 0xffffffff
je 0x1004002
cmp ebx, 0x190
jl 0x1003fa5
jmp 0x1004022
push 0
push esi
call edi
test eax, eax
je 0x100401b
xor eax, eax
inc eax
mov dword [0x100dee0], eax
mov dword [ebp - 0x10c], eax
jmp 0x1004050
and dword [ebp - 0x10c], 0
push esi
push 0
push 0x100145c
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1004050
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.01006b51
leave
ret 0xc

Function at 0x100406c
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]
lea esi, [eax + 0x14]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x10040b4
push ebx
push 0x10
push ebx
push ebx
push 0x4b5
push ebx
call fcn.01003810
call fcn.010035f7
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.01001edb
push 0x100146c
push esi
push edi
call fcn.01007610
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 0x10040a1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10040a1
test al, 0x10
je 0x10040a1
xor eax, eax
mov dword [0x100d0c4], ebx
inc eax
jmp 0x10040ad
Function at 0x1004117
Capabilities:
Get common file path
Get disk information
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x318], ebx
cmp dword [ebp + 0xc], ebx
jne 0x1004146
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 0x1004185
push ebx
push 0x10
push ebx
push ebx
push 0x4bc
push ebx
call fcn.01003810
call fcn.010035f7
mov dword [0x100d0c4], eax
jmp 0x10042be
lea eax, [ebp - 0x318]
push eax
push ebx
call fcn.01007997
mov dword [ebp - 0x314], eax
cmp eax, ebx
jne 0x10041f4
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.010035f7
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 0x1004268
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 0x1004279
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.010035f7
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.01003810
lea eax, [ebp - 0x310]
push eax
call esi
jmp 0x10042be
lea eax, [ebp - 0x310]
push eax
call esi
push 2
push edi
push 6
lea eax, [ebp - 0xc]
push eax
call fcn.0100365b
mov ecx, 0x200
xor eax, eax
cmp dword [ebp - 0x318], ecx
je 0x10042a8
add ecx, ecx
inc eax
cmp ax, 8
jb 0x1004297
cmp ax, 8
jne 0x10042c5
push ebx
push 0x10
push ebx
push ebx
push 0x4c5
push ebx
call fcn.01003810
xor eax, eax
jmp 0x100434b
test byte [0x100daf4], 8
je 0x10042f5
test dword [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.0100256d
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.01006b51
leave
ret 0xc
Function at 0x10048b7
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 0x1004900
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.01003810
call fcn.010035f7
mov dword [0x100d0c4], eax
xor eax, eax
jmp 0x1004910
push 2
push 2
lea eax, [ebp - 0x108]
push eax
call fcn.01004117
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01006b51
leave
ret

Function at 0x1004921
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 0x10013d0
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.01001f71
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 0x10049fe
push esi
jmp 0x1004977
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 0x10049e4
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 4]
lea edi, [esi + 8]
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi + 1]
push eax
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
call dword [ebp - 0x28]
push esi
test eax, eax
je 0x10049f3
call dword [sym.imp.KERNEL32.dll_FreeResource]
inc dword [ebp - 0x20]
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push 0x10013d0
push 0x14
push eax
call fcn.01001f71
add esp, 0x10
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0
call ebx
test eax, eax
jne 0x1004975
jmp 0x10049fd
mov dword [0x100d0c4], 0x80070714
mov dword [ebp - 0x1c], edi
jmp 0x10049fd
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.01006b51
leave
ret 4

Function at 0x1004afe
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.01001edb
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01007610
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004b66
test al, 0x10
jne 0x1004b66
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x1004b6d
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01006b51
leave
ret 4
Function at 0x100502b
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x208], 1
cmp ebx, esi
je 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]
mov ecx, dword [ebp - 0x20c]
cmp dword [0x100dee8], esi
jne 0x10050d8
mov al, byte [0x100daec]
test al, 1
je 0x10050d8
test al, 2
jne 0x10050d8
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x10050d8
mov dword [0x100daec], ecx
push ecx
call fcn.01002ff9
push dword [ebp - 0x218]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x21c]
call edi
test dword [0x100daf4], 0x400
je 0x1005151
cmp dword [ebp - 0x20c], esi
jge 0x1005151
jmp 0x100514b
call fcn.010035f7
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.01003810
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.01006b51
leave
ret 8