joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ce9a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x45cec1
call fcn.0045d43b
mov dword [eax], esi
call fcn.0045d428
push 0x16
pop esi
mov dword [eax], esi
call fcn.00464620
mov eax, esi
jmp 0x45cf16
test dword [ebp + 0xc], 0xfffffff9
jne 0x45cea7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45ceee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045d44e
pop ecx
call fcn.0045d428
mov eax, dword [eax]
jmp 0x45cf16
test al, 0x10
jne 0x45cf14
test al, 1
je 0x45cf14
test byte [ebp + 0xc], 2
je 0x45cf14
call fcn.0045d43b
mov dword [eax], 5
call fcn.0045d428
mov dword [eax], 0xd
jmp 0x45cee5
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4717c0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4989d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00464969
and dword [ebp - 0x14], 0
cmp dword [0x49b184], 0
mov dword [ebp - 0x18], eax
jne 0x471873
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x47191b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x480a7c
push ebx
call edi
test eax, eax
je 0x47191b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x480a6c
push ebx
mov dword [0x49b184], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x49b188], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49b18c], eax
call edi
push eax
call esi
mov dword [0x49b194], eax
test eax, eax
je 0x471873
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x49b190], eax
mov eax, dword [0x49b190]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4718cc
cmp dword [0x49b194], ecx
je 0x4718cc
push eax
call esi
push dword [0x49b194]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4718cc
test ebx, ebx
je 0x4718cc
call edi
test eax, eax
je 0x4718c3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4718c3
test byte [ebp - 8], 1
jne 0x4718cc
or dword [ebp + 0x10], 0x200000
jmp 0x4718ff
mov eax, dword [0x49b188]
cmp eax, dword [ebp - 0x18]
je 0x4718ff
push eax
call esi
test eax, eax
je 0x4718ff
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4718ff
mov eax, dword [0x49b18c]
cmp eax, dword [ebp - 0x18]
je 0x4718ff
push eax
call esi
test eax, eax
je 0x4718ff
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49b184]
call esi
test eax, eax
je 0x47191b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x47191d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a0d3
leave
ret
Function at 0x401c86
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor edi, edi
test eax, eax
jne 0x401cc6
push edi
push 0x10
push edi
push edi
push 0x4f5
push edi
call fcn.00404172
xor eax, eax
jmp 0x401d2d
push esi
lea eax, [ebp - 0x10]
push eax
push 0x401154
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
push edi
jne 0x401d12
push 0x10
push edi
push edi
push 0x4f6
jmp 0x401cbc
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x401d2a
push edi
push 0x10
push edi
push edi
push 0x4f7
jmp 0x401cbc
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00406935
leave
ret

Function at 0x401d3f
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 8], 2
jne 0x401d54
call fcn.00401c54
cmp eax, 2
jne 0x401d91
test byte [ebp + 8], 4
jne 0x401d76
push 4
push 0x40
push 0
push 0x4010d1
push 0x522
push 0
call fcn.00404172
cmp eax, 6
jne 0x401d91
cmp word [0x409e60], 0
jne 0x401d8c
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x401d91
call fcn.00401c86
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [0x408958], 0
je 0x401ddf
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 0x401ddf
push 0x408958
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x40202e
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 [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x408958], 0
je 0x402152
push ebx
lea eax, [ebp - 0x344]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402151
push edi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x340]
push eax
push ebx
push ebx
push 0x408958
push dword [ebp - 0x344]
mov edi, 0x238
mov dword [ebp - 0x348], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402144
push esi
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4020f1
push esi
mov eax, 0x4010d1
lea ecx, [ebp - 0x108]
call fcn.00406206
push 0x409604
lea eax, [ebp - 0x108]
push eax
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
lea eax, [ebp - 0x340]
push edi
push eax
call fcn.004014b5
add esp, 0x14
lea ecx, [ebp - 0x340]
lea edx, [ecx + 1]
pop esi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40211c
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x340]
push eax
push 1
push ebx
push 0x408958
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406935
leave
ret
Function at 0x402163
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 [section..data]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x402295
cmp byte [esi], 0
je 0x402295
mov ebx, 0x104
mov edx, esi
mov eax, ebx
lea ecx, [esp + 0x150]
call fcn.0040151d
mov eax, ebx
push 0x401184
lea ebx, [esp + 0x154]
call fcn.00401450
lea eax, [esp + 0x10]
push eax
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402295
mov edx, esi
mov eax, 0x104
lea ecx, [esp + 0x150]
call fcn.0040151d
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
je 0x40224a
push 0x401188
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402273
push 0x40118c
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402273
lea eax, [esp + 0x3c]
push eax
mov eax, 0x104
lea ebx, [esp + 0x154]
call fcn.00401450
push 0x104
mov eax, 0x4010d1
mov ecx, ebx
call fcn.00406206
mov eax, ebx
push eax
call fcn.00402163
jmp 0x402273
push eax
mov eax, 0x104
lea ebx, [esp + 0x154]
call fcn.00401450
push 0x80
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, ebx
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 0x4021d7
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.00406935
mov esp, ebp
pop ebp
ret 4

Function at 0x4022b1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40232b
push edi
mov eax, 0x401190
lea ecx, [ebp - 0x108]
call fcn.00406206
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 0x40232b
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]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00406935
leave
ret
Function at 0x402a72
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 [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x8fc
xor edi, edi
push edi
push 0x409560
mov ebx, ecx
mov dword [0x409544], esi
call sub.msvcrt.dll_memset
push 0x32c
push edi
push 0x408d20
call sub.msvcrt.dll_memset
push 0x104
push edi
push 0x409440
call sub.msvcrt.dll_memset
add esp, 0x24
push 0x7f
xor eax, eax
push 0x409574
inc eax
push 0x401208
mov dword [0x40980c], eax
call fcn.00404381
test eax, eax
je 0x402cc0
cmp eax, 0x80
ja 0x402cc0
push edi
xor eax, eax
inc eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x4089b0], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
push 0x409e54
push 0x401210
call fcn.00404381
test eax, eax
jne 0x402b41
xor eax, eax
push eax
push 0x10
push eax
push eax
push 0x4b1
push eax
call fcn.00404172
mov dword [0x409e68], 0x80070714
jmp 0x402cd2
test byte [0x409e54], 0xc0
je 0x402be7
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x40121c
call fcn.00404381
test eax, eax
je 0x402b20
lea eax, [ebp - 0x108]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4089ac], eax
test eax, eax
je 0x402be7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402be7
test byte [0x409e54], 0x80
je 0x402bb0
xor eax, eax
push eax
push 0x10
push eax
push 0x409574
push 0x54b
push eax
call fcn.00404172
jmp 0x402bcc
push 4
push 0x20
push 0
push 0x409574
push 0x524
push 0
call fcn.00404172
cmp eax, 6
je 0x402be7
push dword [0x4089ac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x409e68], 0x800700b7
jmp 0x402cd2
and dword [0x409e64], edi
mov ecx, ebx
call fcn.004058d6
test eax, eax
jne 0x402c07
push eax
push 0x10
push eax
push eax
push 0x520
jmp 0x402ccc
cmp byte [0x408d3a], 0
je 0x402c1f
push 0x408d3a
call fcn.00402163
jmp 0x402cd2
push 0xa
push 0x40122c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402c3b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp dword [0x4085e0], 0
je 0x402c4a
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x408d24], 0
je 0x402c58
xor eax, eax
inc eax
jmp 0x402cd4
mov ecx, edi
call fcn.00403467
test eax, eax
je 0x402cd2
mov ax, word [0x409e60]
xor ebx, ebx
inc ebx
cmp ax, bx
je 0x402c7d
cmp ax, 2
je 0x402c7d
cmp ax, 3
jne 0x402cbc
test dword [0x409e54], 0x100
je 0x402cbc
test byte [0x408d38], 1
jne 0x402cbc
call fcn.0040162b
test eax, eax
jne 0x402cbc
push 0x83e
push 0x547
push 0x401764
push eax
push 0x7d6
call fcn.004060fe
cmp eax, 0x83d
jne 0x402cd2
mov eax, ebx
jmp 0x402cd4
xor eax, eax
push eax
push 0x10
push eax
push eax
push 0x4b1
push eax
call fcn.00404172
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00406935
leave
ret
Function at 0x402ce7
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x408d38], 0
jne 0x402d32
cmp dword [0x408d24], 0
jne 0x402d29
call fcn.00404e6e
test eax, eax
jne 0x402d1f
xor eax, eax
jmp 0x402e4d
cmp word [0x408d38], 0
jne 0x402d32
call fcn.0040375c
test eax, eax
je 0x402d18
call fcn.00404de5
test eax, eax
je 0x402d18
call fcn.0040523f
test eax, eax
je 0x402d18
push ebx
push esi
push edi
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
mov eax, 0x4010d4
lea ecx, [ebp - 0x10c]
call fcn.00406206
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
xor edi, edi
mov ebx, 0x409604
test esi, esi
je 0x402d99
push 0x401238
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402d99
push edi
push ebx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x408d24], edi
jne 0x402db9
cmp dword [0x409e50], edi
jne 0x402db9
call fcn.00405e0f
test eax, eax
je 0x402e2c
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x402de0
push edi
push 0x10
push edi
push edi
push 0x4bc
push edi
call fcn.00404172
call fcn.00405e78
mov dword [0x409e68], eax
jmp 0x402e2c
cmp dword [0x408d2c], edi
jne 0x402df1
call fcn.0040383f
test eax, eax
je 0x402e2c
test byte [0x409048], 0xc0
jne 0x402e0c
mov ax, word [0x409e60]
call fcn.00402340
mov dword [0x409e5c], eax
jmp 0x402e12
mov dword [0x409e5c], edi
mov eax, dword [0x408d24]
test eax, eax
jne 0x402e35
cmp dword [0x409e50], edi
jne 0x402e35
call fcn.004038bf
test eax, eax
jne 0x402e30
xor eax, eax
jmp 0x402e4a
mov eax, dword [0x408d24]
cmp word [0x408d38], di
jne 0x402e47
test eax, eax
jne 0x402e47
call fcn.00403e64
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406935
leave
ret
Function at 0x403cea
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
xor eax, eax
push edi
test esi, esi
je 0x403e02
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
xor edi, edi
push edi
push edi
push 0x20
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403dbc
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 ebx, dword [ebp - 0x20c]
cmp dword [0x408d28], edi
jne 0x403d89
mov eax, dword [0x409e4c]
test al, 1
je 0x403d89
test al, 2
jne 0x403d89
mov eax, ebx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x403d89
mov dword [0x409e4c], ebx
call fcn.00403e16
push dword [ebp - 0x218]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x21c]
call esi
test dword [0x409e54], 0x400
je 0x403dff
cmp dword [ebp - 0x20c], edi
jge 0x403dff
mov eax, edi
jmp 0x403e02
call fcn.00405e78
push edi
mov dword [0x409e68], eax
push 0x200
lea eax, [ebp - 0x208]
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]
push eax
push esi
push 0x4c4
push edi
call fcn.00404172
jmp 0x403db8
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406935
leave
ret
Function at 0x403f15
Capabilities:
Get common file path

Disassembly:
mov edi, edi
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 edi, eax
test edi, edi
je 0x40405f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHBrowseForFolder
push edi
call esi
mov dword [ebp - 8], eax
test eax, eax
je 0x404046
push 0xc3
push edi
call esi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x404046
push str.SHGetPathFromIDList
push edi
call esi
mov esi, eax
test esi, esi
je 0x404046
xor ebx, ebx
cmp byte [0x409440], bl
jne 0x403fce
push 0x409440
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, 0x409440
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403f95
sub ecx, edx
lea eax, [ecx + 0x409440]
push eax
push 0x409440
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
mov dword [ebp - 4], eax
jne 0x403fce
push eax
push 0x409440
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x3a
je 0x403fce
mov eax, dword [ebp - 4]
mov byte [eax], bl
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov byte [0x408bc0], bl
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x4089c0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0x403eed
mov dword [ebp - 0x14], 0x409440
call dword [ebp - 8]
mov ebx, eax
test ebx, ebx
je 0x404032
push 0x409440
push ebx
call esi
cmp byte [0x409440], 0
je 0x40402e
mov edx, 0x409440
mov esi, 0x104
mov ecx, 0x408bc0
call fcn.00401425
push ebx
call dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp byte [0x408bc0], al
setne al
jmp 0x404075
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x10
push ebx
push ebx
push 0x4c1
push eax
jmp 0x40406e
xor ebx, ebx
push ebx
push 0x10
push ebx
push ebx
push 0x4c2
push dword [ebp + 8]
call fcn.00404172
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x404381
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0xa
push dword [ebp + 8]
xor ebx, ebx
push ebx
call edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, dword [ebp + 0x10]
ja 0x4043eb
cmp dword [ebp + 0xc], ebx
je 0x4043eb
test esi, esi
jne 0x4043b5
xor eax, eax
jmp 0x4043eb
push 0xa
push dword [ebp + 8]
push ebx
call edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4043b1
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00406b35
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40448c
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push esi
xor esi, esi
push edi
inc esi
call fcn.004061de
test eax, eax
je 0x4044ee
cmp dword [0x4095fc], 0
jne 0x4044e2
test byte [0x408d38], 1
jne 0x4044e2
push 6
push 0
push 0x4031c9
push dword [0x408954]
mov dword [0x409824], edi
push 0x7d3
call fcn.004060fe
sub eax, 6
je 0x4044e2
dec eax
je 0x4044f2
sub eax, 0x832
jne 0x4044e2
mov dword [0x4095fc], esi
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret
xor esi, esi
jmp 0x4044ee

Function at 0x40462b
Capabilities:
Create directory

Disassembly:
mov al, byte [edi]
test al, al
je 0x40468b
push ebx
push esi
lea esi, [edi + 1]
mov cl, byte [esi]
xor ebx, ebx
cmp cl, 0x3a
jne 0x40464a
cmp byte [edi + 2], 0x5c
jne 0x40464a
lea esi, [edi + 3]
jmp 0x404684
cmp al, 0x5c
jne 0x404684
cmp cl, al
jne 0x404684
push 2
lea esi, [edi + 2]
pop ebx
jmp 0x404684
cmp byte [esi], 0x5c
jne 0x40467b
cmp byte [esi - 1], 0x3a
je 0x40467b
test ebx, ebx
je 0x40466c
dec ebx
jmp 0x40467b
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 0x40465a
pop esi
pop ebx
ret
Function at 0x404c74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
mov esi, 0x4012dc
push esi
call fcn.00404381
push 0xa
push esi
push ebx
mov dword [0x409564], 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 [0x409560], eax
test eax, eax
je 0x404ddd
mov eax, dword [0x408954]
push edi
test eax, eax
je 0x404ce6
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push 0x842
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 5
push 0x841
push dword [0x408954]
call edi
push eax
call esi
call fcn.00404ba5
test eax, eax
jne 0x404cfb
push ebx
push 0x10
push ebx
push ebx
push 0x4ba
jmp 0x404d76
push 0x409568
push 1
push 0x4048d3
push fcn.00404879
push 0x4047e3
push 0x404769
push fcn.00404691
push 0x4049d1
push 0x4049ba
call dword [sym.imp.Cabinet.dll_FDICreate]
mov edi, eax
add esp, 0x24
test edi, edi
je 0x404d66
push 0x409560
push ebx
push 0x4049e6
push ebx
push 0x4010d1
push str.MEMCAB
push edi
call dword [sym.imp.Cabinet.dll_FDICopy]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x404d83
push edi
call dword [sym.imp.Cabinet.dll_FDIDestroy]
pop ecx
test eax, eax
jne 0x404d83
mov eax, dword [0x409568]
push ebx
push 0x10
push ebx
push ebx
add eax, 0x514
push eax
push dword [0x408954]
call fcn.00404172
mov esi, ebx
mov eax, dword [0x409560]
pop edi
test eax, eax
je 0x404d9a
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [0x409560], ebx
test esi, esi
jne 0x404db6
cmp dword [0x4095f8], ebx
jne 0x404db6
push ebx
push 0x10
push ebx
push ebx
push 0x4f8
push ebx
call fcn.00404172
test byte [0x408d38], 1
jne 0x404ddb
test byte [0x409e54], 1
jne 0x404ddb
push ebx
push esi
push 0xfa1
push dword [0x408954]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, esi
pop esi
pop ebx
ret