joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f9a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x11c
xor ebx, ebx
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.004b7180
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
mov dword [ebp - 0x128], ebx
call fcn.004074e0
cmp eax, 5
jge 0x40fa4e
lea ecx, [ebp - 0x128]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsProcessInJob]
test eax, eax
je 0x40fa4e
cmp dword [ebp - 0x128], ebx
je 0x40fa4e
call fcn.0043bf80
test al, al
je 0x40fa4c
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40fa4e
test byte [ebp - 8], 0x10
je 0x40fa4e
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40fa4e
cmp dword [ebp - 0x124], ebx
je 0x40fa4e
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret

Function at 0x40fa60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ecx
xor eax, eax
push 0x104
mov word [ebp - 0x20c], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40fad5
cmp eax, 0x104
ja 0x40fad5
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40faa6
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, esi
call fcn.00406040
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.00401306
mov esp, ebp
pop ebp
ret

Function at 0x411840
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push 0
push 0
push 0
push 0xffffc000
push 0xffffc000
push 0x10000000
push 0x4e696c
push str.EDIT
push 0x80
call fcn.004118a0
cmp byte [ebp + 8], 0
mov dword [0x52612c], eax
jne 0x411891
test eax, eax
je 0x411891
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret
Function at 0x414970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e075b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x240], ebx
push 0x2c
xor eax, eax
push str.SoftwareAdobeAcrobat_Reader11.0Installer
lea ecx, [ebp - 0x238]
mov byte [ebp - 0x239], bl
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], ax
call fcn.00406040
mov ecx, dword [0x527178]
mov dword [ebp - 4], ebx
cmp byte [ecx + 0x49], bl
je 0x4149fd
push 0x2b
push str.SoftwareAdobeAdobe_Acrobat11.0Installer
lea ecx, [ebp - 0x238]
call fcn.00406040
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x414a12
lea eax, [ebp - 0x238]
lea edx, [ebp - 0x244]
push edx
push 0x20019
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414abe
push 0x20a
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004b7180
mov eax, dword [ebp - 0x244]
add esp, 0xc
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x21c]
push edx
push ebx
push ebx
push str.Path
push eax
mov dword [ebp - 0x240], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414aa3
cmp word [ebp - 0x21c], bx
je 0x414aa3
cmp edi, ebx
je 0x414a9c
cmp word [edi], bx
je 0x414a9c
push edi
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x414aa3
mov byte [ebp - 0x239], 1
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x21c]
cmp byte [ebp - 0x239], bl
jne 0x414ac3
mov edx, 0x4e696c
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x414ad7
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00406040
cmp dword [ebp - 0x224], 8
jb 0x414b07
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00406d09
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret

Function at 0x414c08
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 0x414c2f
call fcn.00414d4c
mov dword [eax], esi
call fcn.00409769
push 0x16
pop esi
mov dword [eax], esi
call fcn.004b7d65
mov eax, esi
jmp 0x414c84
test dword [ebp + 0xc], 0xfffffff9
jne 0x414c15
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x414c5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00414d29
pop ecx
call fcn.00409769
mov eax, dword [eax]
jmp 0x414c84
test al, 0x10
jne 0x414c82
test al, 1
je 0x414c82
test byte [ebp + 0xc], 2
je 0x414c82
call fcn.00414d4c
mov dword [eax], 5
call fcn.00409769
mov dword [eax], 0xd
jmp 0x414c53
xor eax, eax
pop esi
pop ebp
ret
Function at 0x416230
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x4162c9
push esi
push esi
call fcn.00416360
add esp, 8
test al, al
je 0x4162c9
cmp byte [ebp + 0xc], 0
jne 0x41626c
cmp dword [esi + 0x14], 8
jb 0x41625f
mov eax, dword [esi]
jmp 0x416261
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4162c9
push 1
push 0
push 0x4feebc
mov ecx, esi
call fcn.0040a0c0
cmp eax, 0xffffffff
jne 0x4162c9
push 1
push 0
push 0x4feeb8
mov ecx, esi
call fcn.0040a0c0
cmp eax, 0xffffffff
jne 0x4162c9
cmp dword [esi + 0x14], 8
jb 0x4162a0
mov eax, dword [esi]
jmp 0x4162a2
mov eax, esi
push esi
push eax
call fcn.00416900
add esp, 8
test al, al
je 0x4162c9
cmp dword [esi + 0x14], 8
jb 0x4162b8
mov esi, dword [esi]
push esi
call fcn.00416bb0
add esp, 4
test al, al
setne al
pop esi
pop ebp
ret
xor al, al
pop esi
pop ebp
ret
Function at 0x41bed0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2e63
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5246a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [ebp + 8]
lea ebx, [esi + 0x1c]
mov dword [esi], vtable.acrobat_broker::SandboxMAPIDispatcher.0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], eax
mov dword [ebx], eax
push 0x18
mov dword [ebp - 4], eax
mov dword [esi + 0x48], eax
call fcn.00404fcd
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x41bfff
mov dword [esi + 0x44], eax
mov dword [eax], eax
mov eax, dword [esi + 0x44]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x44]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x44]
mov al, 1
mov byte [edx + 0x14], al
mov edx, dword [esi + 0x44]
mov byte [edx + 0x15], al
mov dword [esi + 0x3c], ecx
mov byte [ebp - 4], al
lea eax, [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x508598
lea ecx, [esi + 4]
call fcn.00413dd0
push 0x50855c
lea ecx, [esi + 4]
call fcn.00413dd0
push 0x508520
lea ecx, [esi + 4]
call fcn.00413dd0
push 0x5084e4
lea ecx, [esi + 4]
call fcn.00413dd0
push 0x5084a8
lea ecx, [esi + 4]
call fcn.00413dd0
push 0x50846c
lea ecx, [esi + 4]
call fcn.00413dd0
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x20], eax
call edi
push ebx
push 0
push esi
push 0x41c2a0
push 0
push 0
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004b6c0a
push 0x5127c0
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.004b6d49
int3
Function at 0x41c120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2c38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5246a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov ecx, dword [ebp + 8]
lea edx, [edi + 0x3c]
lea ebx, [edi + 0x38]
push edx
mov dword [ebp - 4], eax
mov dword [edi], vtable.acrobat_broker::SandboxClipboardDispatcher.0
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x508340
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x508304
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x5082c8
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x50828c
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x508250
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x508214
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x5081d8
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x50819c
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x508160
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x508124
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x5080e8
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x5080ac
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x508070
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x508034
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x507ff8
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x507fbc
lea ecx, [edi + 4]
call fcn.00413dd0
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x1c], eax
call esi
push ebx
push 0
push edi
push 0x41d510
mov dword [edi + 0x20], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x18], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41cb80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x41cb9c
mov eax, dword [eax]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0x20019
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41cc0a
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
push esi
mov esi, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0xc], esi
mov dword [ebp - 8], esi
jb 0x41cbcf
mov eax, dword [eax]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
lea ecx, [ebp + 0xc]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41cbff
cmp dword [ebp + 0xc], esi
jne 0x41cbff
cmp dword [ebp - 8], esi
jne 0x41cbff
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov bl, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1833
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5246a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [ebp + 8]
mov dword [esi], vtable.acrobat_broker::SandboxPreviewDispatcher.0
mov dword [esi + 0x14], eax
push 0x2c
mov dword [ebp - 4], ebx
mov dword [esi + 0x20], ebx
call fcn.00404fcd
add esp, 4
cmp eax, ebx
je 0x41d6cf
mov dword [esi + 0x1c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x1c]
mov al, 1
mov byte [ecx + 0x28], al
mov edx, dword [esi + 0x1c]
mov byte [edx + 0x29], al
mov byte [ebp - 4], al
mov dword [esi + 0x28], ebx
lea eax, [esi + 0x4c]
lea ebx, [esi + 0x2c]
push eax
mov dword [ebx], 0
mov byte [esi + 0x64], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x5053a4
lea ecx, [esi + 4]
call fcn.00413dd0
push 0x505368
lea ecx, [esi + 4]
call fcn.00413dd0
push 0x50532c
lea ecx, [esi + 4]
call fcn.00413dd0
push 0x5052f0
lea ecx, [esi + 4]
call fcn.00413dd0
push 0x5052b4
lea ecx, [esi + 4]
call fcn.00413dd0
push 0x505278
lea ecx, [esi + 4]
call fcn.00413dd0
push 0x50523c
lea ecx, [esi + 4]
call fcn.00413dd0
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x30], eax
call edi
push ebx
push 0
push esi
push 0x41d7e0
push 0
push 0
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x28], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], ebx
call fcn.004b6c0a
push 0x5127c0
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.004b6d49
int3
Function at 0x41d700
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1598
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5246a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [ebp + 8]
lea ebx, [esi + 0x1c]
mov dword [esi], vtable.acrobat_broker::SandboxDDEDispatcher.0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], eax
mov dword [ebx], eax
mov dword [ebp - 4], eax
cmp dword [0x527178], eax
jne 0x41d76d
lea ecx, [ebp - 0x1c]
call fcn.004b6b71
push 0x514640
lea edx, [ebp - 0x1c]
push edx
call fcn.004b6d49
lea eax, [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x504e7c
lea ecx, [esi + 4]
call fcn.00413dd0
push 0x504e40
lea ecx, [esi + 4]
call fcn.00413dd0
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x20], eax
call edi
push ebx
push 0
push esi
push 0x41dce0
push 0
push 0
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3068
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5246a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x18]
push ecx
mov dword [ebp - 4], 0
mov dword [edi], vtable.acrobat_broker::AtomDispatcher.0
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x504aec
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x504ab0
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x504a74
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x504a38
lea ecx, [edi + 4]
call fcn.00413dd0
push 0x80000
call fcn.00416893
push 0x80000
push 0
push eax
mov dword [edi + 0x30], eax
call fcn.004b7180
add esp, 0x10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41fec0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 4], 0
jne 0x41ff21
lea eax, [ebp - 0x20]
push str.Readerplug_insTest_Tools_aaFEAT.api
push eax
mov byte [esi + 4], 1
call fcn.00414970
add esp, 8
cmp dword [ebp - 0x10], 0
je 0x41ff0f
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x41ff00
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41ff0f
mov byte [esi + 5], 1
cmp dword [ebp - 0xc], 8
jb 0x41ff21
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406d09
add esp, 4
mov ecx, dword [ebp - 4]
mov al, byte [esi + 5]
xor ecx, ebp
pop esi
call fcn.00401306
mov esp, ebp
pop ebp
ret

Function at 0x420570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push ecx
push 0
mov dword [ebp - 0x214], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x420609
cmp word [ebp - 0x210], 0
je 0x420609
test edi, edi
je 0x4205d0
push edi
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x420609
cmp byte [ebp + 0x14], 0
je 0x420601
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x420609
push 0x4feebc
push 0x105
lea ecx, [ebp - 0x210]
push ecx
call fcn.00420830
test eax, eax
js 0x420609
lea edx, [ebp - 0x210]
jmp 0x42060e
mov edx, 0x4e696c
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420626
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00406040
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x421280
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push 0x105
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x42131d
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x42131d
cmp byte [ebp + 0xc], 0
je 0x4212e8
push 0x4feebc
push 0x105
lea edx, [ebp - 0x210]
push edx
call fcn.00420830
test eax, eax
js 0x42131d
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421304
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x210]
push ecx
jmp 0x421336
xor edx, edx
push edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
push 0x4e696c
mov ecx, esi
call fcn.00406040
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401306
mov esp, ebp
pop ebp
ret 8

Function at 0x421840
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x4218bc
mov ecx, ebx
cmp word [ebx], si
je 0x42187a
mov eax, ecx
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x421860
sub eax, esi
sar eax, 1
cmp word [ecx + eax*2 + 2], dx
lea ecx, [ecx + eax*2 + 2]
jne 0x421857
sub ecx, ebx
push edi
lea edi, [ecx + 2]
sar edi, 1
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
push 0x527ef9
neg ecx
or ecx, eax
push ecx
call fcn.004218c1
mov esi, eax
add esp, 8
test esi, esi
je 0x4218b6
lea eax, [edi + edi]
push eax
push ebx
push esi
call fcn.004b64a0
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov eax, esi
pop esi
pop ebx
ret
Function at 0x421c70
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de6c8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x421cf2
cmp word [esi], bx
je 0x421cf2
mov edi, 7
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040fa60
add esp, 4
test al, al
jne 0x421d10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x421ce6
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406d09
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x48]
push ecx
call fcn.00421de0
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], ebx
jne 0x421d42
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00409ff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00409ff0
jmp 0x421cf2
mov eax, dword [ebp - 0x48]
mov ebx, 8
cmp dword [ebp - 0x34], ebx
jae 0x421d52
lea eax, [ebp - 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call edi
test eax, eax
je 0x421d25
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x64]
call fcn.00421ee0
mov byte [ebp - 4], 2
push 0x4e9370
lea ecx, [ebp - 0x64]
call fcn.00421f10
push esi
lea ecx, [ebp - 0x64]
call fcn.00421f10
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x421d90
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x421da4
lea eax, [ebp - 0x2c]
push eax
call edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00409ff0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00409ff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00409ff0
mov eax, esi
jmp 0x421cf4
Function at 0x421de0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de682
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
mov dword [ebp - 0x21c], edi
push ecx
mov dword [ebp - 0x220], esi
mov word [ebp - 0x218], ax
call fcn.004b7180
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
je 0x421e91
cmp eax, 0x104
jae 0x421e91
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x421e71
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, esi
call fcn.00406040
jmp 0x421ead
push edi
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
push 0x4e696c
mov ecx, esi
mov word [esi], dx
call fcn.00406040
mov dword [ebp - 4], edi
mov dword [ebp - 0x21c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret