joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b33
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x250
mov eax, dword [0x439740]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x50]
xor ebp, ebp
push eax
push ebp
push ebp
push 0x1a
push ebp
mov ebx, edx
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x406bce
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406b8b
xor al, al
jmp 0x406c7f
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push str.AppData
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x406b84
cmp dword [esp + 0x1c], 1
jne 0x406b84
cmp dword [esp + 0x18], ebp
je 0x406b84
test byte [esp + 0x18], 1
jne 0x406b84
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [edi + 0x10], ebp
je 0x406c02
push ecx
mov edx, edi
lea ecx, [esp + 0x24]
call fcn.00406429
pop ecx
cmp dword [eax + 0x14], 8
jb 0x406bee
mov eax, dword [eax]
push eax
lea eax, [esp + 0x54]
push eax
call esi
push ebp
push 1
lea ecx, [esp + 0x28]
call fcn.004097f1
push ecx
mov edx, ebx
lea ecx, [esp + 0x24]
call fcn.00406429
pop ecx
cmp dword [eax + 0x14], 8
jb 0x406c17
mov eax, dword [eax]
push eax
lea eax, [esp + 0x54]
push eax
call esi
push ebp
push 1
lea ecx, [esp + 0x28]
call fcn.004097f1
push str.Crash_Reports
lea eax, [esp + 0x54]
push eax
call esi
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x24]
call fcn.00407768
push ecx
push ecx
lea edx, [esp + 0x28]
lea ecx, [esp + 0x40]
call fcn.004064e8
pop ecx
pop ecx
lea eax, [esp + 0x38]
mov ecx, 0x43a624
push eax
call fcn.004071ff
push ebp
push 1
lea ecx, [esp + 0x40]
call fcn.004093dc
push ebp
push 1
lea ecx, [esp + 0x28]
call fcn.004097f1
mov al, 1
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410465
add esp, 0x250
ret

Function at 0x406c98
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x439740]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
mov edx, ecx
lea ecx, [ebp - 0x1c]
call fcn.00406429
pop ecx
cmp dword [eax + 0x14], 8
jb 0x406cbd
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
lea ecx, [ebp - 0x1c]
push 0
neg ebx
push 1
sbb bl, bl
call fcn.004097f1
inc bl
je 0x406ced
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406ced
xor al, al
jmp 0x406cef
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00410465
mov esp, ebp
pop ebp
ret
Function at 0x406cfe
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x439740]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ecx
mov edx, ecx
lea ecx, [ebp - 0x1c]
call fcn.00406429
pop ecx
cmp dword [eax + 0x14], 8
jb 0x406d23
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push 1
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004097f1
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, 0xffffffff
pop esi
setne al
xor ecx, ebp
call fcn.00410465
mov esp, ebp
pop ebp
ret

Function at 0x406d4f
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x439740]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x406d70
mov eax, dword [esi]
jmp 0x406d72
mov eax, esi
push dword [esi + 0x10]
push eax
push dword [edi + 0x10]
push ecx
call fcn.0040938f
test eax, eax
jne 0x406d87
mov al, 1
jmp 0x406ddc
push ecx
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.00406429
mov esi, eax
pop ecx
cmp dword [esi + 0x14], 8
jb 0x406d9d
mov esi, dword [esi]
push ecx
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.00406429
pop ecx
cmp dword [eax + 0x14], 8
jb 0x406db1
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0
push 1
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.004097f1
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004097f1
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410465
mov esp, ebp
pop ebp
ret

Function at 0x406ded
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x439740]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
mov edx, ecx
lea ecx, [ebp - 0x1c]
call fcn.00406429
pop ecx
cmp dword [eax + 0x14], 8
jb 0x406e12
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.004097f1
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00410465
mov esp, ebp
pop ebp
ret
Function at 0x409a18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x439740]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x40], ebx
je 0x409b27
cmp byte [esi + 0x45], bl
je 0x409b27
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x409a58
xor al, al
jmp 0x409b29
push ebx
push 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.0040a8be
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ebx, edi
cmp eax, 0x10
jae 0x409a89
lea ebx, [esp + 0x14]
mov edi, ebx
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x28]
add eax, ebx
mov edx, dword [ecx]
push eax
push edi
lea eax, [esi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x409ab2
dec eax
je 0x409ab6
dec eax
dec eax
je 0x409b14
xor bl, bl
jmp 0x409b16
mov byte [esi + 0x45], 0
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
mov ecx, edi
cmp eax, 0x10
jae 0x409ac9
lea ecx, [esp + 0x14]
mov ebx, dword [esp + 0x10]
sub ebx, ecx
je 0x409af5
cmp eax, 0x10
jae 0x409ada
lea edi, [esp + 0x14]
push dword [esi + 0x50]
push ebx
push 1
push edi
call fcn.004125ef
add esp, 0x10
cmp ebx, eax
jne 0x409aae
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
cmp byte [esi + 0x45], 0
je 0x409b14
test ebx, ebx
jne 0x409a7c
push ebx
push 8
lea ecx, [esp + 0x1c]
call fcn.00408f7a
jmp 0x409a74
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.004093dc
mov al, bl
jmp 0x409b29
mov al, 1
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00410465
mov esp, ebp
pop ebp
ret
Function at 0x40eba7
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
sub esp, 0x94
mov eax, dword [0x439740]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
xor eax, eax
mov dword [esp + 0x20], edx
push edi
push eax
mov byte [esp + 0x17], al
mov ebx, eax
mov dword [esp + 0x54], eax
mov esi, ecx
mov byte [esp + 0x44], al
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0x20], esi
push eax
push 5
push esi
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x68], 0xf
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40ec22
push 0xa
lea eax, [esp + 0x5c]
mov byte [esp + 0x17], 1
push ebx
push eax
call fcn.00412deb
add esp, 0xc
lea ecx, [esp + 0x40]
mov ebx, eax
push ebx
call fcn.0040d19e
xor ebp, ebp
lea eax, [esp + 0x14]
push ebp
push ebp
push eax
push esi
jmp 0x40eca1
cmp dword [esp + 0x14], 0
jbe 0x40ece2
push dword [esp + 0x14]
lea ecx, [esp + 0x2c]
call fcn.0040f5e8
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
test edi, edi
je 0x40ecd7
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40ecd7
push eax
push esi
lea ecx, [esp + 0x48]
add ebp, eax
call fcn.00408edd
test esi, esi
je 0x40ec94
push esi
call fcn.00411d35
xor eax, eax
pop ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
jmp 0x40ec96
xor eax, eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x24]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov edi, eax
test edi, edi
jne 0x40ec2e
xor bl, bl
push 0
push 1
lea ecx, [esp + 0x48]
call fcn.004093dc
mov ecx, dword [esp + 0x9c]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410465
add esp, 0x94
ret
test esi, esi
je 0x40ece2
push esi
call fcn.00411d35
pop ecx
test edi, edi
je 0x40ecad
cmp byte [esp + 0x13], 0
je 0x40ecf1
cmp ebp, ebx
jne 0x40ecad
mov esi, dword [esp + 0x24]
mov bl, 1
test esi, esi
je 0x40ecaf
lea edx, [esp + 0x40]
lea ecx, [esp + 0x28]
call fcn.0040f2ba
push eax
mov ecx, esi
call fcn.004077b9
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004097f1
jmp 0x40ecaf
Function at 0x424d54
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x439740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00415b9b
mov dword [ebp - 0x14], eax
cmp dword [0x43ba68], esi
jne 0x424e47
push 0x800
push esi
push 0x4343c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x424dd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x424f27
push esi
push esi
push 0x4343c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x424f27
push 0x4343dc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x424f27
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43ba68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43ba6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43ba70], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ba78], eax
test eax, eax
je 0x424e44
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ba74], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x424e6c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x424e5f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x424e81
push 4
pop eax
jmp 0x424f29
cmp dword [ebp - 0x14], esi
je 0x424e81
push dword [0x43ba68]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x424e66
mov eax, dword [0x43ba74]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x424edf
cmp dword [0x43ba78], edi
je 0x424edf
push eax
call ebx
push dword [0x43ba78]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x424edf
test eax, eax
je 0x424edf
call ecx
test eax, eax
je 0x424ed4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x424ed4
test byte [ebp - 8], 1
jne 0x424edf
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x424f0f
mov eax, dword [0x43ba6c]
cmp eax, edi
je 0x424f0c
push eax
call ebx
test eax, eax
je 0x424f0c
call eax
mov esi, eax
test esi, esi
je 0x424f0c
mov eax, dword [0x43ba70]
cmp eax, edi
je 0x424f0c
push eax
call ebx
test eax, eax
je 0x424f0c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43ba68]
call ebx
test eax, eax
je 0x424f27
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x424f29
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410465
mov esp, ebp
pop ebp
ret
Function at 0x4aba41
Capabilities:
Encode data using xor

Disassembly:
bound ebx, qword [edi - 0x3f]
cmpsd dword [esi], dword es:[edi]
xchg edx, eax
push ds
lahf
xlatb
push esp

Function at 0x4c6735
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cf3a0
cmp edx, dword [eax]
je 0x4c6757
add eax, 8
inc ecx
cmp eax, 0x4cf430
jl 0x4c6748
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cf3a0]
jne 0x4c6885
mov eax, dword [0x4d4de0]
cmp eax, 1
je 0x4c685f
test eax, eax
jne 0x4c6788
cmp dword [0x4cf2cc], 1
je 0x4c685f
cmp edx, 0xfc
je 0x4c6885
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c67bf
lea eax, [ebp - 0x1a4]
push 0x4cba80
push eax
call fcn.004c7120
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c75b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c6802
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c75b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cba7c
push edi
call fcn.004c9480
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cba60
push eax
call fcn.004c7120
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c7130
lea eax, [ebp - 0xa0]
push 0x4cba5c
push eax
call fcn.004c7130
push dword [esi + 0x4cf3a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c7130
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cba34
push eax
call fcn.004c93f4
add esp, 0x2c
pop edi
jmp 0x4c6885
lea eax, [ebp + 8]
lea esi, [esi + 0x4cf3a4]
push 0
push eax
push dword [esi]
call fcn.004c75b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0xc52108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c52258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc5212e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc5211a
add dl, dl
jne 0xc52139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc5218c
xor eax, eax
add dl, dl
jne 0xc52146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc5222d
add dl, dl
jne 0xc52155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc52160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc5216b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc52176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc52182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc52125
mov eax, 1
add dl, dl
jne 0xc5219a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc521a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc52191
sub eax, ebx
mov ebx, 1
jne 0xc521d8
mov ecx, 1
add dl, dl
jne 0xc521be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc521c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc521b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc52125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc521ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc521fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc521e6
cmp eax, 0x7d00
jae 0xc5221d
cmp eax, 0x500
jb 0xc52218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc52125
cmp eax, 0x7f
ja 0xc52220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc52125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc5224e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc52125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4018a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5a8
push ebx
push esi
mov esi, dword [esp + 0x5bc]
push edi
push ebp
test esi, esi
mov ebp, dword [esp + 0x5bc]
je 0x4018d0
push ebp
call fcn.00401e10
add esp, 4
test eax, eax
jne 0x4018d0
xor eax, eax
jmp 0x401a69
lea eax, [esp + 0x2a8]
push ebp
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call ebx
lea ecx, [esp + 0x2a8]
push ecx
call fcn.004023e0
mov eax, dword [esp + 0x5c0]
lea ecx, [esp + 0x2a8]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ecx
call edi
lea ecx, [esp + 0x2a8]
push 0x40e084
push ecx
call edi
mov eax, dword [0x40b9e8]
lea ecx, [esp + 0x2a8]
push eax
push ecx
call edi
lea ecx, [esp + 0x2a8]
push 0x40e088
push ecx
call edi
cmp dword [0x40b9d4], 0
je 0x40194c
lea eax, [esp + 0x2a8]
push str.__z1
push eax
call edi
cmp dword [0x40b9a4], 0
je 0x40195c
push str.__cx
jmp 0x401961
push 0x40e09c
lea eax, [esp + 0x2ac]
push eax
call edi
lea eax, [esp + 0x2a8]
push 0x40e0a0
push eax
call edi
lea eax, [esp + 0x1a0]
push ebp
push eax
call ebx
lea eax, [esp + 0x1a0]
push eax
call fcn.004027d0
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x2a8]
push eax
push ecx
call edi
lea ecx, [esp + 0x2a8]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x401a64
push 0
push 0x1b96
call fcn.004020f0
add esp, 8
test esi, esi
je 0x401a60
lea eax, [esp + 0x98]
push ebp
push eax
call ebx
lea eax, [esp + 0x98]
push eax
call fcn.004023e0
lea eax, [esp + 0x98]
push 0x40e0a4
push eax
call edi
lea eax, [esp + 0x10]
push 0x200
lea ecx, [esp + 0x9c]
push eax
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_OpenFile]
call esi
lea ecx, [esp + 0x98]
push ebp
push ecx
call ebx
lea eax, [esp + 0x98]
push eax
call fcn.004023e0
cmp dword [0x40b99c], 0
jne 0x401a3d
push 0x40e0b4
jmp 0x401a42
push 0x40e0c4
lea eax, [esp + 0x9c]
push eax
call edi
lea eax, [esp + 0x10]
push 0x200
lea ecx, [esp + 0x9c]
push eax
push ecx
call esi
xor eax, eax
jmp 0x401a69
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x5a8
ret 0xc
Function at 0x401a80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
lea eax, [esp]
push ebx
push esi
push edi
push str.TEMP
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call esi
lea ecx, [esp + 0x114]
lea eax, [esp + 0xc]
push ecx
push eax
call fcn.00402540
add esp, 8
test eax, eax
je 0x401ae3
mov ebx, dword [esp + 0x224]
push eax
push ebx
call esi
mov edi, dword [esp + 0x220]
push edi
push ebx
call fcn.00401c70
add esp, 8
test eax, eax
je 0x401af1
push ebx
call fcn.00401be0
add esp, 4
test eax, eax
je 0x401af1
jmp 0x401b57
mov edi, dword [esp + 0x220]
mov ebx, dword [esp + 0x224]
push 0x105
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x401b1c
push edi
push ebx
call fcn.00401c70
add esp, 8
test eax, eax
je 0x401b1c
push ebx
call fcn.00401be0
add esp, 4
test eax, eax
jne 0x401b57
push 0x40e0dc
push ebx
call esi
push ebx
push edi
push 3
call fcn.00401b70
add esp, 0xc
test eax, eax
jge 0x401b57
push ebx
push edi
push 4
call fcn.00401b70
add esp, 0xc
test eax, eax
jge 0x401b57
push 0
push 0x1b97
call fcn.004020f0
add esp, 8
xor eax, eax
jmp 0x401b5c
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x210
ret 8

Function at 0x401c70
Capabilities:
Get disk size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x118
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
lea eax, [esp + 4]
push ecx
lea ecx, [esp + 4]
push edx
lea edx, [esp + 0x18]
push eax
mov byte [esp + 0x1e], 0x5c
mov byte [esp + 0x1f], 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x401cbc
xor eax, eax
add esp, 0x118
ret
mov ecx, dword [esp + 8]
mov eax, 1
imul ecx, dword [esp + 4]
imul ecx, dword [esp]
cmp dword [esp + 0x120], ecx
adc eax, 0xffffffff
add esp, 0x118
ret

Function at 0x401ce0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
add al, 0x41
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add esp, 8
ret
Function at 0x402220
Capabilities:
Copy file
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x194
and eax, 0xffff
push ebx
push esi
mov ecx, dword [0x40b9c8]
push edi
push ebp
push 0xbb8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x402259
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x194
ret
push esi
mov eax, dword [0x40b9c8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x402279
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x194
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x402293
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x194
ret
push esi
mov eax, dword [0x40b9c8]
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_SizeofResource]
call ebp
mov ecx, dword [esp + 0x1b0]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esp + 0x10], eax
push ecx
lea eax, [esp + 0xa0]
push eax
call ebp
lea ecx, [esp + 0x9c]
push ecx
call fcn.004023e0
lea eax, [esp + 0x9c]
push str._INS0166.TMP
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x14]
push 0x1002
lea eax, [esp + 0xa0]
push ecx
push eax
mov esi, dword [sym.imp.KERNEL32.dll_OpenFile]
call esi
cmp eax, 0xffffffff
mov ebp, eax
jne 0x40230c
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x194
ret
mov eax, dword [esp + 0x10]
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll__lwrite]
push ebp
cmp eax, 0xffffffff
jne 0x402346
call dword [sym.imp.KERNEL32.dll__lclose]
lea eax, [esp + 0x14]
push 0x200
lea ecx, [esp + 0xa0]
push eax
push ecx
call esi
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x194
ret
call dword [sym.imp.KERNEL32.dll__lclose]
cmp eax, 0xffffffff
jne 0x402372
lea eax, [esp + 0x14]
push 0x200
lea ecx, [esp + 0xa0]
push eax
push ecx
call esi
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x194
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [esp + 0x14]
push 0x40
lea ecx, [esp + 0xa0]
push eax
push ecx
call sub.LZ32.dll_LZOpenFileA
mov ebx, eax
test ebx, ebx
jge 0x4023a0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x194
ret
mov eax, dword [esp + 0x1a8]
push eax
push ebx
call sub.LZ32.dll_LZCopy
mov edi, eax
push ebx
call sub.LZ32.dll_LZClose
lea eax, [esp + 0x14]
push 0x200
lea ecx, [esp + 0xa0]
push eax
push ecx
call esi
mov eax, 1
test edi, edi
jg 0x4023d5
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x194
ret

Function at 0x402540
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push 0x105
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp eax, 1
mov eax, 0
adc eax, 0xffffffff
and eax, esi
pop esi
ret