joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d520
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x158
mov eax, dword [0x45a080]
xor eax, esp
mov dword [esp + 0x154], eax
mov ecx, dword [esp + 0x160]
mov eax, dword [esp + 0x15c]
push ebx
mov ebx, dword [esp + 0x170]
push ebp
mov ebp, dword [esp + 0x170]
push esi
push ecx
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 1
call fcn.0041d310
mov esi, eax
add esp, 8
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41d5ab
push esi
call fcn.0042673e
add esp, 4
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.004251af
add esp, 0x158
ret
push edi
mov edi, 0x446d30
lea esi, [esp + 0x50]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41d5d4
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov edi, 0x445a7c
lea esi, [esp + 0x50]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41d5fc
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x18], 0
je 0x41d6c4
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x50]
push edx
push eax
call fcn.0041d310
add esp, 8
test byte [esp + 0x24], 0x10
mov esi, eax
je 0x41d681
mov edi, dword [esp + 0x174]
test edi, edi
je 0x41d68e
push ebp
push 1
push esi
call ebx
add esp, 0xc
test eax, eax
je 0x41d6f6
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
push edi
push ecx
push esi
call fcn.0041d520
add esp, 0x14
test eax, eax
je 0x41d713
push ebp
push 0xffffffffffffffff
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x41d68e
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
push eax
call fcn.0042673e
add esp, 4
or eax, 0xffffffff
jmp 0x41d6dd
push ebp
push 0
push esi
call ebx
add esp, 0xc
test eax, eax
je 0x41d6f6
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
test edi, edi
jne 0x41d6af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x41d713
push esi
call fcn.0042673e
add esp, 4
test edi, edi
jne 0x41d607
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x14]
push edx
call fcn.0042673e
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004251af
add esp, 0x158
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x14]
push edx
call fcn.0042673e
add esp, 4
or eax, 0xffffffff
jmp 0x41d6dd
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0042673e
add esp, 4
xor eax, eax
jmp 0x41d6dd
Function at 0x41da50
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x130
mov eax, dword [0x45a080]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebp
mov ebp, dword [esp + 0x140]
push esi
mov esi, dword [esp + 0x13c]
push edi
mov edi, dword [esp + 0x144]
push 0x103
lea eax, [esp + 0x39]
push 0
push eax
mov byte [esp + 0x40], 0
call fcn.0042cb50
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x5c]
push ecx
push esi
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x41db1e
test edi, edi
je 0x41daf6
mov edx, dword [esp + 0x10]
mov dword [edi], edx
test ebp, ebp
je 0x41db01
mov eax, dword [esp + 0xc]
mov dword [ebp], eax
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.004251af
add esp, 0x130
ret
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004251af
add esp, 0x130
ret

Function at 0x41f950
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41f9a2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 8]
push ecx
push esi
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret
Function at 0x41f9b0
Capabilities:
Get common file path

Disassembly:
push ecx
mov eax, dword [esp + 8]
cmp eax, 0x101d0
push esi
mov esi, 1
mov dword [esp + 4], 0
ja 0x41fa49
je 0x41fa2a
sub eax, 0xa
je 0x41fa15
sub eax, esi
je 0x41fa00
sub eax, 0x401b
jne 0x41fa5a
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.0041f950
add esp, 0x14
pop esi
pop ecx
ret
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, esi
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, esi
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push ecx
push edx
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
mov eax, esi
pop esi
pop ecx
ret
sub eax, 0x101d1
je 0x41fa9a
sub eax, 1
je 0x41fa85
sub eax, 1
je 0x41fa6f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, esi
pop esi
pop ecx
ret
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push 0
call sub.mscms.dll_GetColorDirectoryA
mov eax, esi
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, esi
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push ecx
push edx
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrintProcessorDirectoryA
mov eax, esi
pop esi
pop ecx
ret
Function at 0x423190
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0x80
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4231f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x423206
cmp eax, 3
je 0x423206
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edi, eax
test edi, edi
je 0x4231e6
push esi
push str.Delete_file_after_reboot:__s
call fcn.0041d170
add esp, 8
mov eax, edi
pop edi
pop esi
ret
push str.MoveFileEx
call fcn.00420510
add esp, 4
mov eax, edi
pop edi
pop esi
ret
push esi
push str.Deleted_file:__s
call fcn.0041d170
add esp, 8
mov eax, edi
pop edi
pop esi
ret

Function at 0x423210
Capabilities:
Check if file exists
Delete directory
Move file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x423268
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x423276
cmp eax, 3
je 0x423276
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esi, eax
test esi, esi
je 0x423256
push edi
push str.Delete_directory_after_reboot:__s
call fcn.0041d170
add esp, 8
pop edi
mov eax, esi
pop esi
ret
push str.MoveFileEx
call fcn.00420510
add esp, 4
pop edi
mov eax, esi
pop esi
ret
push edi
push str.Deleted_directory:__s
call fcn.0041d170
add esp, 8
pop edi
mov eax, esi
pop esi
ret

Function at 0x423400
Capabilities:
Delete registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x423484
mov edx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x1c]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
test esi, esi
je 0x423455
cmp esi, 2
je 0x423478
cmp esi, 3
je 0x423478
push str.ntdevDeleteRegValue
call fcn.00420510
add esp, 4
jmp 0x423478
push str.Registry_Delete:
call fcn.0041d170
push ebx
push str._____KEY___s
call fcn.0041d170
push edi
push str.___VALUE___s
call fcn.0041d170
add esp, 0x14
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
test esi, esi
pop esi
sete al
pop ebx
pop ecx
ret

Function at 0x424ae0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x45a080]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x424b32
cmp dword [esp + 0x10], 2
jne 0x424b32
cmp dword [esp + 4], 6
jb 0x424b32
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004251af
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor eax, eax
call fcn.004251af
add esp, 0x98
ret
Function at 0x424b50
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
sub esp, 0x3c
cmp dword [esp + 0x40], 2
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
push esi
push edi
mov ebx, 1
jne 0x424bf9
mov eax, dword [ebp + 4]
mov edi, str.__Console
mov esi, eax
mov ecx, 0xa
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x424b99
push ebp
push 2
call fcn.004249f0
add esp, 8
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x3c
ret
mov esi, eax
mov edi, str.__Restarted
mov ecx, 0xc
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x424bf9
push str.95317102_d847_4703_9022_0db6e758f0c0
push 1
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x424bdc
cmp eax, 5
je 0x424bdc
push ebp
push 2
call fcn.004249f0
add esp, 8
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ebx, edi
pop edi
pop esi
pop ebp
setne al
pop ebx
add esp, 0x3c
ret
push 0x3c
xor edi, edi
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.0042cb50
add esp, 0xc
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.00424ae0
test eax, eax
mov dword [esp + 0x1c], str.runas
jne 0x424c34
mov dword [esp + 0x1c], str.open
mov edx, dword [ebp]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], str.__Restarted
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret

Function at 0x4251af
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a080]
jne 0x4251b9
repz ret
jmp fcn.0042f7c7
Function at 0x426195
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4261d2
cmp dword [ebp + 0x14], edi
je 0x4261d2
cmp ecx, edi
jne 0x4261d9
call fcn.00427a62
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00430700
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4261ed
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x42620e
cmp ebx, 0xffffffff
je 0x4261fd
push ebx
push edi
push ecx
call fcn.0042cb50
add esp, 0xc
cmp esi, edi
je 0x4261ba
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4261ba
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x42622a
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x426231
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x426322
test word [esi + 0xc], 0x10c
je 0x426285
mov eax, dword [esi + 4]
test eax, eax
je 0x426285
jl 0x426383
cmp ebx, eax
mov edi, ebx
jb 0x426256
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x42632a
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004321bd
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x42631a
cmp ebx, dword [ebp - 0xc]
jb 0x4262f2
cmp dword [ebp - 0xc], 0
je 0x4262af
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4262a4
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4262ab
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4262ba
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4262ba
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x426356
push eax
push dword [ebp - 8]
push esi
call fcn.00432190
pop ecx
push eax
call fcn.00432093
add esp, 0xc
test eax, eax
je 0x426395
cmp eax, 0xffffffff
je 0x426383
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x42631a
push esi
call fcn.004319b2
cmp eax, 0xffffffff
pop ecx
je 0x426387
cmp dword [ebp - 4], 0
je 0x426356
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x426239
mov eax, dword [ebp + 0x14]
jmp 0x4261d4
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x426341
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0042cb50
add esp, 0xc
call fcn.00427a62
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4261ca
cmp dword [ebp + 0xc], 0xffffffff
je 0x42636c
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0042cb50
add esp, 0xc
call fcn.00427a62
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4261ca
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4261d4
or dword [esi + 0xc], 0x10
jmp 0x426387
Function at 0x42cc04
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x42cc31
call fcn.00427a75
mov dword [eax], esi
call fcn.00427a62
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00430700
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x42cc0d
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42cc60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00427a88
pop ecx
call fcn.00427a62
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x42cc87
test al, 1
je 0x42cc87
test byte [esp + 0xc], 2
je 0x42cc87
call fcn.00427a75
mov dword [eax], 5
call fcn.00427a62
mov dword [eax], 0xd
jmp 0x42cc57
xor eax, eax
pop esi
ret

Function at 0x4359f7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x45b1d8]
je 0x435a12
inc edi
cmp edi, 0x17
jb 0x435a03
cmp edi, 0x17
jae 0x435b92
push ebp
push 3
call fcn.00442493
cmp eax, 1
pop ecx
je 0x435b5e
push 3
call fcn.00442493
test eax, eax
pop ecx
jne 0x435a46
cmp dword [0x45a690], 1
je 0x435b5e
cmp ebx, 0xfc
je 0x435b91
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45f068
push ebp
call fcn.0042cd5e
add esp, 0xc
test eax, eax
je 0x435a7c
push esi
push esi
push esi
push esi
push esi
call fcn.00430604
add esp, 0x14
push 0x104
mov esi, 0x45f081
push esi
push 0
mov byte [0x45f185], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x435ac0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042cd5e
add esp, 0xc
test eax, eax
je 0x435ac0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00430604
add esp, 0x14
push esi
call fcn.004307d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x435b05
push esi
call fcn.004307d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45f37c
push 0x445a78
sub ecx, eax
push ecx
push eax
call fcn.00435944
add esp, 0x14
test eax, eax
je 0x435b05
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00430604
add esp, 0x14
jmp 0x435b07
xor esi, esi
push 0x44d978
push ebx
push ebp
call fcn.00436a92
add esp, 0xc
test eax, eax
je 0x435b27
push esi
push esi
push esi
push esi
push esi
call fcn.00430604
add esp, 0x14
push dword [edi*8 + 0x45b1dc]
push ebx
push ebp
call fcn.00436a92
add esp, 0xc
test eax, eax
je 0x435b49
push esi
push esi
push esi
push esi
push esi
call fcn.00430604
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004422d6
add esp, 0xc
jmp 0x435b91
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x435b91
cmp ebp, 0xffffffff
je 0x435b91
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x45b1dc]
push dword [esi]
call fcn.004307d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4422d6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00430062
xor ebx, ebx
cmp dword [0x45f4d4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4423ac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44248c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x455b84
push edi
call esi
cmp eax, ebx
je 0x44248c
push eax
call fcn.0042fff4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45f4d4], eax
call esi
push eax
call fcn.0042fff4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45f4d8], eax
call esi
push eax
call fcn.0042fff4
mov dword [0x45f4dc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00427b4f
test eax, eax
pop ecx
pop ecx
je 0x44237a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00430604
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4423ac
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042fff4
cmp eax, ebx
pop ecx
mov dword [0x45f4e4], eax
je 0x4423ac
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042fff4
pop ecx
mov dword [0x45f4e0], eax
mov eax, dword [0x45f4e0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x442431
cmp dword [0x45f4e4], ecx
je 0x442431
push eax
call fcn.0043006b
push dword [0x45f4e4]
mov esi, eax
call fcn.0043006b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x442431
cmp edi, ebx
je 0x442431
call esi
cmp eax, ebx
je 0x4423fe
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4423fe
test byte [ebp - 0x18], 1
jne 0x442431
lea eax, [ebp - 0x10]
push eax
call fcn.00427bc2
test eax, eax
pop ecx
je 0x442419
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00430604
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x442428
or dword [ebp + 0x10], 0x200000
jmp 0x44246c
or dword [ebp + 0x10], 0x40000
jmp 0x44246c
mov eax, dword [0x45f4d8]
cmp eax, dword [ebp - 8]
je 0x44246c
push eax
call fcn.0043006b
cmp eax, ebx
pop ecx
je 0x44246c
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44246c
mov eax, dword [0x45f4dc]
cmp eax, dword [ebp - 8]
je 0x44246c
push eax
call fcn.0043006b
cmp eax, ebx
pop ecx
je 0x44246c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45f4d4]
call fcn.0043006b
cmp eax, ebx
pop ecx
je 0x44248c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44248e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4033c3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
lea ecx, [esi + 0x68]
call fcn.00403348
mov edx, 0xce4
lea ecx, [ebp - 0xc]
call fcn.004032d3
push dword [eax]
add esi, 0x6c
mov ecx, esi
call fcn.004032e5
push dword [ebp - 0xc]
call fcn.00403f1a
pop ecx
push 1
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
leave
ret 8

Function at 0x403a06
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4243bf
call fcn.00418f58
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.0040436a
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0040326a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x403a60
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4243f2
call fcn.00418f58
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.0040bb1e
lea ecx, [esi + 0x30]
call fcn.004032bc
push dword [esi + 0x24]
call fcn.00403f1a
pop ecx
lea ecx, [esi + 0xc]
call fcn.0040f499
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004039b5
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40506e
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x4050e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, ecx
mov eax, dword [esi]
and dword [esi + 4], 0
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push edi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.0040442a
dec edi
mov eax, 0x103
cmp eax, edi
sbb eax, eax
pop edi
inc eax
pop esi
leave
ret

Function at 0x405176
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, ecx
mov eax, dword [esi]
and dword [esi + 4], 0
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push edi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.0040442a
dec edi
mov eax, 0x103
cmp eax, edi
sbb eax, eax
pop edi
inc eax
pop esi
leave
ret