joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40189e
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x408128]
push ebx
push edi
push 2
xor ebx, ebx
mov word [ebp - 8], 0x500
pop edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp eax, edi
jne 0x4019c4
lea ecx, [ebp - 0x10]
call fcn.004017e9
test eax, eax
jne 0x4019b3
lea eax, [ebp - 0x18]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4019c4
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4019a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4019a5
push esi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4019a4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40199d
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40199d
cmp dword [esi], ebx
jbe 0x401994
lea edi, [esi + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401989
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x401970
jmp 0x401994
xor eax, eax
inc eax
mov dword [0x408128], eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x4019c4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4019c4
mov dword [0x408128], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00406cf0
mov esp, ebp
pop ebp
ret
Function at 0x401f97
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebx
mov ebx, ecx
test bl, 2
jne 0x401fab
call fcn.00401eae
cmp eax, 2
jne 0x401fe0
test bl, 4
jne 0x401fcc
push 4
push 0x40
push 0
push 0x401140
mov edx, 0x522
xor ecx, ecx
call fcn.004044a9
cmp eax, 6
jne 0x401fe0
cmp word [0x409a40], 0
jne 0x401fe2
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebx
ret
pop ebx
jmp fcn.00401ee9

Function at 0x401fe8
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [0x408530], 0
je 0x40202d
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40202d
push 0x408530
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x40226e
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 [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x408530], 0
je 0x402389
push esi
lea eax, [ebp - 0x344]
xor esi, esi
push eax
push 0x2001f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402388
push ebx
lea eax, [ebp - 0x348]
mov ebx, 0x238
push eax
lea eax, [ebp - 0x340]
mov dword [ebp - 0x348], ebx
push eax
push esi
push esi
push 0x408530
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40237b
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x402328
push 0x401140
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.0040658a
push 0x4091e4
lea eax, [ebp - 0x108]
push eax
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
lea eax, [ebp - 0x340]
push ebx
push eax
call fcn.0040171e
add esp, 0x14
lea ecx, [ebp - 0x340]
lea edx, [ecx + 1]
pop edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402353
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x340]
push eax
push 1
push esi
push 0x408530
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406cf0
mov esp, ebp
pop ebp
ret
Function at 0x402397
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x408004]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4024d2
cmp byte [esi], 0
je 0x4024d2
mov ebx, 0x104
lea ecx, [esp + 0x150]
push esi
mov edx, ebx
call fcn.00401680
push 0x4011f4
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.004016b3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4024d2
push esi
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.00401680
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
je 0x402480
push 0x4011f8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4024b0
push 0x4011fc
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4024b0
lea eax, [esp + 0x3c]
mov edx, ebx
push eax
lea ecx, [esp + 0x154]
call fcn.004016b3
push 0x401140
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.0040658a
lea ecx, [esp + 0x150]
call fcn.00402397
jmp 0x4024b0
push eax
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.004016b3
push 0x80
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40240e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406cf0
mov esp, ebp
pop ebp
ret

Function at 0x4024e7
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x402562
push 0x401200
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.0040658a
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x402562
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00406cf0
mov esp, ebp
pop ebp
ret
Function at 0x402772
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 [0x408004]
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 0x4028b1
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 0x4028b6
cmp al, 0x57
je 0x4028a7
push ecx
push 0x401210
push ecx
mov edx, esi
mov dword [ebp - 0x11c], esi
lea ecx, [ebp - 0x108]
call fcn.00401781
push dword [ebp - 0x110]
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.0040658a
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 0x4028c2
lea eax, [ebp - 0x11c]
push eax
push edi
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x401140
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402899
mov eax, dword [ebp - 0x114]
cmp eax, 2
jne 0x402891
push esi
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x40288b
lea eax, [ebp - 0x108]
mov edx, esi
push eax
mov ecx, edi
call fcn.00401680
jmp 0x402896
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x402899
xor ebx, ebx
inc ebx
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4028be
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x4028c2
mov esi, 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test ebx, ebx
jne 0x4028d1
push dword [ebp - 0x110]
mov edx, esi
mov ecx, edi
call fcn.0040658a
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00406cf0
mov esp, ebp
pop ebp
ret 4
Function at 0x402ca7
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 [0x408004]
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 0x409140
mov ebx, edx
mov dword [0x409a3c], esi
call sub.msvcrt.dll_memset
push 0x32c
push edi
push 0x408a20
call sub.msvcrt.dll_memset
push 0x104
push edi
push 0x4088c0
call sub.msvcrt.dll_memset
add esp, 0x24
xor eax, eax
inc eax
mov edx, 0x409154
mov ecx, 0x401278
mov dword [0x4093ec], eax
push 0x7f
call fcn.00404691
test eax, eax
je 0x402ef0
cmp eax, 0x80
ja 0x402ef0
push edi
xor eax, eax
inc eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x40858c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
mov edx, 0x409a34
mov ecx, 0x401280
call fcn.00404691
test eax, eax
jne 0x402d7a
xor eax, eax
mov edx, 0x4b1
push eax
push 0x10
push eax
push eax
xor ecx, ecx
call fcn.004044a9
mov dword [0x409124], 0x80070714
jmp 0x402f03
test byte [0x409a34], 0xc0
je 0x402e1c
push 0x104
lea edx, [ebp - 0x108]
mov ecx, 0x40128c
call fcn.00404691
test eax, eax
je 0x402d58
lea eax, [ebp - 0x108]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x408588], eax
test eax, eax
je 0x402e1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402e1c
xor ecx, ecx
test byte [0x409a34], 0x80
je 0x402de7
push ecx
push 0x10
push ecx
push 0x409154
mov edx, 0x54b
call fcn.004044a9
jmp 0x402e01
push 4
push 0x20
push 0
push 0x409154
mov edx, 0x524
call fcn.004044a9
cmp eax, 6
je 0x402e1c
push dword [0x408588]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x409124], 0x800700b7
jmp 0x402f03
and dword [0x409120], edi
mov ecx, ebx
call fcn.00405c99
test eax, eax
jne 0x402e37
mov edx, 0x520
jmp 0x402ef5
cmp byte [0x408a3a], 0
je 0x402e4f
mov ecx, 0x408a3a
call fcn.00402397
jmp 0x402f03
push 0xa
push 0x40129c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402e6b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp dword [0x408184], 0
je 0x402e7a
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x408a24], 0
je 0x402e88
xor eax, eax
inc eax
jmp 0x402f05
mov ecx, edi
call fcn.004036ef
test eax, eax
je 0x402f03
mov ax, word [0x409a40]
xor ebx, ebx
inc ebx
cmp ax, bx
je 0x402ead
cmp ax, 2
je 0x402ead
cmp ax, 3
jne 0x402eec
test dword [0x409a34], 0x100
je 0x402eec
test byte [0x408a38], 1
jne 0x402eec
call fcn.0040189e
test eax, eax
jne 0x402eec
push 0x83e
push 0x547
push 0x4019e0
push eax
mov edx, 0x7d6
call fcn.00406517
cmp eax, 0x83d
jne 0x402f03
mov eax, ebx
jmp 0x402f05
mov edx, 0x4b1
xor eax, eax
xor ecx, ecx
push eax
push 0x10
push eax
push eax
call fcn.004044a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406cf0
mov esp, ebp
pop ebp
ret 4
Function at 0x402f18
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x408a38], 0
push ebx
push esi
push edi
jne 0x402f66
cmp dword [0x408a24], 0
jne 0x402f5d
call fcn.004051e5
test eax, eax
jne 0x402f53
xor eax, eax
jmp 0x4030a7
cmp word [0x408a38], 0
jne 0x402f66
call fcn.00403a3b
test eax, eax
je 0x402f4c
call fcn.00405164
test eax, eax
je 0x402f4c
call fcn.004055a0
test eax, eax
je 0x402f4c
mov esi, 0x105
lea eax, [ebp - 0x10c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x401144
mov edx, esi
lea ecx, [ebp - 0x10c]
call fcn.0040658a
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x402fe0
push 0x4012a8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x402fe0
mov esi, esp
mov ecx, ebx
push 0
push 0x4091e4
call dword [0x40a288]
call ebx
cmp esi, esp
je 0x402fe0
mov ecx, 4
int 0x29
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x408a24], 0
jne 0x403006
cmp dword [0x409a30], 0
jne 0x403006
call fcn.0040621e
test eax, eax
je 0x402f4c
push 0x4091e4
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x403035
push eax
push 0x10
push eax
push eax
mov edx, 0x4bc
xor ecx, ecx
call fcn.004044a9
call fcn.00406285
mov dword [0x409124], eax
jmp 0x402f4c
cmp dword [0x408a2c], 0
jne 0x40304b
call fcn.00403b22
test eax, eax
je 0x402f4c
test byte [0x408d48], 0xc0
jne 0x403067
mov cx, word [0x409a40]
call fcn.00402574
mov dword [0x409a44], eax
jmp 0x40306e
and dword [0x409a44], 0
mov eax, dword [0x408a24]
test eax, eax
jne 0x403091
cmp dword [0x409a30], eax
jne 0x403091
call fcn.00403b9e
test eax, eax
je 0x402f4c
mov eax, dword [0x408a24]
cmp word [0x408a38], 0
jne 0x4030a4
test eax, eax
jne 0x4030a4
call fcn.00404168
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406cf0
mov esp, ebp
pop ebp
ret
Function at 0x403fee
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x408004]
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 0x404109
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 0x4040c3
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 [0x408a28], edi
jne 0x404090
mov eax, dword [0x409a2c]
test al, 1
je 0x404090
test al, 2
jne 0x404090
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x404090
mov dword [0x409a2c], ecx
call fcn.0040411a
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [0x409a34], 0x400
je 0x404107
cmp dword [ebp - 0x20c], edi
jge 0x404107
jmp 0x404105
call fcn.00406285
push edi
mov dword [0x409124], 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.004044a9
mov esi, edi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406cf0
mov esp, ebp
pop ebp
ret
Function at 0x404214
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 0x4043a2
push str.SHBrowseForFolder
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
test eax, eax
je 0x404394
push 0xc3
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x404394
push str.SHGetPathFromIDList
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x404394
xor ebx, ebx
cmp byte [0x4088c0], bl
jne 0x4042d6
push 0x4088c0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, 0x4088c0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40429d
sub ecx, edx
lea eax, [ecx + 0x4088c0]
push eax
push 0x4088c0
call dword [sym.imp.USER32.dll_CharPrevA]
mov dword [ebp - 4], eax
cmp byte [eax], 0x5c
jne 0x4042d6
push eax
push 0x4088c0
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x3a
je 0x4042d6
mov eax, dword [ebp - 4]
mov byte [eax], bl
lea eax, [ebp - 0x30]
mov byte [0x4087a0], 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], 0x408598
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x4041f0
mov dword [ebp - 0x18], 0x4088c0
call dword [0x40a288]
call ebx
cmp esi, esp
je 0x40431f
mov ecx, 4
int 0x29
mov dword [ebp - 8], eax
test eax, eax
je 0x404380
mov ebx, dword [ebp - 0xc]
mov esi, esp
push 0x4088c0
push eax
mov ecx, ebx
call dword [0x40a288]
call ebx
cmp esi, esp
je 0x404346
mov ecx, 4
int 0x29
cmp byte [0x4088c0], 0
je 0x404363
push 0x4088c0
mov edx, 0x104
mov ecx, 0x4087a0
call fcn.00401680
mov ebx, dword [ebp - 0x10]
mov esi, esp
push dword [ebp - 8]
mov ecx, ebx
call dword [0x40a288]
call ebx
cmp esi, esp
je 0x404380
mov ecx, 4
int 0x29
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp byte [0x4087a0], al
setne al
jmp 0x4043b7
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 0x4c1
jmp 0x4043a7
mov edx, 0x4c2
xor ebx, ebx
mov ecx, esi
push ebx
push 0x10
push ebx
push ebx
call fcn.004044a9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404691
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 0x4046fd
test ebx, ebx
je 0x4046fd
test esi, esi
jne 0x4046c4
xor eax, eax
jmp 0x4046fd
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 0x4046c0
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 0x40476f
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004066ae
test eax, eax
jne 0x404780
inc eax
pop esi
ret
cmp dword [0x4091dc], 0
push edi
jne 0x4047ce
test byte [0x408a38], 1
jne 0x4047ce
push 6
xor edi, edi
mov dword [0x409404], esi
push edi
push 0x403450
push dword [0x408584]
mov edx, 0x7d3
call fcn.00406517
sub eax, 6
je 0x4047ce
sub eax, 1
je 0x4047dd
sub eax, 0x832
jne 0x4047ce
mov dword [0x4091dc], 1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor edi, edi
inc edi
mov eax, edi
pop edi
pop esi
ret

Function at 0x40490e
Capabilities:
Create directory

Disassembly:
mov edi, edi
push edi
mov edi, ecx
mov al, byte [edi]
test al, al
je 0x404978
mov cl, byte [edi + 1]
push ebx
xor ebx, ebx
cmp cl, 0x3a
jne 0x40492f
cmp byte [edi + 2], 0x5c
jne 0x40492f
push 3
pop eax
jmp 0x404941
cmp al, 0x5c
jne 0x40493e
cmp cl, al
jne 0x40493e
push 2
pop ebx
mov eax, ebx
jmp 0x404941
xor eax, eax
inc eax
push esi
lea esi, [eax + edi]
jmp 0x404971
cmp byte [esi], 0x5c
jne 0x404968
cmp byte [esi - 1], 0x3a
je 0x404968
test ebx, ebx
je 0x404959
dec ebx
jmp 0x404968
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 0x404947
pop esi
pop ebx
pop edi
ret
Function at 0x404fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebx
push esi
xor ebx, ebx
mov esi, 0x40134c
push ebx
xor edx, edx
mov ecx, esi
call fcn.00404691
push 0xa
push esi
push ebx
mov dword [0x409144], 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 [0x409140], eax
test eax, eax
je 0x405161
mov eax, dword [0x408584]
test eax, eax
je 0x405057
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 [0x408584]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00404efc
test eax, eax
jne 0x40507c
mov ecx, dword [0x408584]
mov edx, 0x4ba
push ebx
push 0x10
push ebx
push ebx
call fcn.004044a9
mov esi, ebx
jmp 0x405107
push edi
push 0x409148
push 1
push 0x404bc0
push fcn.00404b60
push 0x404ad0
push 0x404a50
push fcn.00404980
push 0x404cc0
push 0x404ca0
call dword [sym.imp.Cabinet.dll_FDICreate]
mov edi, eax
add esp, 0x24
test edi, edi
je 0x4050e8
push 0x409140
push ebx
push 0x404cd0
push ebx
push 0x401140
push str.MEMCAB
push edi
call dword [sym.imp.Cabinet.dll_FDICopy]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x405106
push edi
call dword [sym.imp.Cabinet.dll_FDIDestroy]
pop ecx
test eax, eax
jne 0x405106
mov edx, dword [0x409148]
mov ecx, dword [0x408584]
push ebx
push 0x10
push ebx
push ebx
lea edx, [edx + 0x514]
call fcn.004044a9
mov esi, ebx
pop edi
mov eax, dword [0x409140]
test eax, eax
je 0x40511d
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [0x409140], ebx
test esi, esi
jne 0x40513a
cmp dword [0x4091d8], ebx
jne 0x40513a
push ebx
push 0x10
push ebx
push ebx
mov edx, 0x4f8
xor ecx, ecx
call fcn.004044a9
test byte [0x408a38], 1
jne 0x40515f
test byte [0x409a34], 1
jne 0x40515f
push ebx
push esi
push 0xfa1
push dword [0x408584]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, esi
pop esi
pop ebx
ret