joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46758c
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x581fb1
call fcn.00552eab
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00410494
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5c9b58
call fcn.0040fb43
cmp eax, 0xffffffff
jne 0x467657
push 0
push 0x591214
lea ecx, [ebp - 0x4d0]
call fcn.0040fb43
cmp eax, 0xffffffff
jne 0x467657
push 0
push 0x5c9cec
lea ecx, [ebp - 0x4d0]
call fcn.0040fb43
cmp eax, 0xffffffff
jne 0x467657
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00410494
mov edi, eax
pop ecx
mov dword [ebp - 0x4d4], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x4d8], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x218]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x467634
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.00552e3a
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.0041067e
jmp 0x46768f
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00410475
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0041067e
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x46767d
mov edi, dword [ebp - 0x4cc]
jmp 0x46768f
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.00552e3a
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.0041067e
mov eax, edi
call fcn.00552e55
ret

Function at 0x4e3e2c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00425181
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4e3e68
call fcn.004e404e
mov dword [esi + 0xc], 1
jmp 0x4e3e6d
call fcn.004e404e
cmp dword [esi], 0
je 0x4e3eb6
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4e3e90
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004202cc
jmp 0x4e3ea1
push 0xff
mov ecx, esi
call fcn.0041079a
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041c35c
jmp 0x4e3eda
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4e3eda
push dword [esi]
push dword [ebp - 4]
call fcn.00428d0a
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e3fa3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004e404e
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4e3feb
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004202cc
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041c35c
jmp 0x4e3ff6
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00428d0a
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x56ee0d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056ead0

Function at 0x56ee18
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056ec51

Function at 0x5705d3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00570293

Function at 0x5779e6
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x58c066
call fcn.00552eab
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x577b03
cmp byte [ebx + 0x3e], 0
je 0x577b03
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.00552e3a
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x577a32
xor al, al
jmp 0x577b05
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00577d09
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x577a62
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x40]
mov ecx, dword [esi + 0x20]
push eax
call fcn.00552e3a
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x577a97
sub eax, 1
je 0x577a9b
dec eax
sub eax, 1
je 0x577af1
xor bl, bl
jmp 0x577af3
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x577aab
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x577ad3
cmp eax, 0x10
jae 0x577aba
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00564165
add esp, 0x10
cmp esi, eax
jne 0x577a93
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x577af1
test esi, esi
jne 0x577a56
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00409e67
jmp 0x577a50
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040980b
mov al, bl
jmp 0x577b05
mov al, 1
call fcn.00552e55
ret
Function at 0x474069
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4740a4
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x47408b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x47409c
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4740a6
inc edi
add eax, 0x28
cmp edi, esi
jb 0x474081
xor eax, eax
pop edi
pop esi
ret

Function at 0x4748ce
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00473fee
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
mov ebp, 0xfffffccd
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
inc dword [ebx]

Function at 0x474906
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00473fee
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
mov ebp, 0xfffffccd
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
inc dword [ebx]

Function at 0x47853a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00467fc9
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x478572
xor eax, eax
jmp 0x47859e
cmp esi, dword [ebp - 4]
je 0x47859b
cmp dword [ebp + 0xc], 0
je 0x47859b
push dword [edi + 0x9c]
call fcn.00478148
push dword [edi + 0x9c]
mov esi, eax
call fcn.00463ce5
pop ecx
pop ecx
cmp esi, eax
je 0x47856e
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x401be0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x118
lea eax, [esp]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push eax
push 3
push ebx
push str.SOFTWAREEPSONSD_LilacEPSON_SD_Printer_Port
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401c15
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x118
ret
mov eax, dword [esp + 0x130]
mov dword [esp + 0x18], ebx
cmp eax, ebx
jle 0x401cf6
mov ebp, dword [esp + 0x12c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, 4
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x401c52
lea ecx, [ebp + 1]
lea edx, [esp + 0x24]
push ecx
push str.CHG_u_DMAON
push edx
jmp 0x401c60
lea eax, [ebp + 1]
lea ecx, [esp + 0x24]
push eax
push str.LPT_u_DMAON
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x20]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
push 0
push edx
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401cce
test byte [esp + 0x14], 2
je 0x401cce
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
sub ecx, 2
push esi
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push 0
push eax
push ecx
mov ebx, 1
mov dword [esp + 0x38], esi
call edi
test eax, eax
jne 0x401d11
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x130]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x401c3a
test bx, bx
je 0x401cf6
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x118
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x118
ret
Function at 0x4032c0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x45c
lea eax, [esp + 4]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
push 0x40e220
push eax
call ebp
mov edi, dword [esp + 0x47c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp edi, 1
jne 0x4032fa
lea ecx, [esp + 0x14]
push str.Drivers_
push ecx
call esi
mov ebx, dword [esp + 0x478]
lea edx, [esp + 0x14]
push ebx
push edx
call esi
lea eax, [esp + 0x32c]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x403342
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push ebx
call fcn.004019c0
cmp eax, 1
je 0x403342
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x45c
ret
lea edx, [esp + 0x118]
push 0x40e100
push edx
call ebp
mov eax, dword [esp + 0x470]
lea ecx, [esp + 0x118]
push eax
push ecx
call esi
lea edx, [esp + 0x2a4]
push 0
lea eax, [esp + 0x11c]
push edx
push eax
call sub.LZ32.dll_LZOpenFileA
mov ebx, eax
test ebx, ebx
jge 0x40338e
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x45c
ret
lea ecx, [esp + 0x14]
push 0x40e220
push ecx
call ebp
cmp edi, 1
jne 0x4033ab
lea edx, [esp + 0x14]
push str.Drivers_
push edx
call esi
mov eax, dword [esp + 0x478]
lea ecx, [esp + 0x14]
push eax
push ecx
call esi
lea edx, [esp + 0x21c]
push 0x1001
lea eax, [esp + 0x18]
push edx
push eax
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
test edi, edi
jge 0x4033eb
push ebx
call sub.LZ32.dll_LZClose
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x45c
ret
push edi
push ebx
call sub.LZ32.dll_LZCopy
push ebx
mov dword [esp + 0x14], eax
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
mov eax, dword [esp + 0x10]
test eax, eax
jge 0x403418
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x45c
ret
mov edi, dword [esp + 0x478]
mov ebx, dword [esp + 0x474]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4034d4
lea ecx, [esp + 0x14]
push 0x40e220
push ecx
call ebp
cmp dword [esp + 0x47c], 1
jne 0x403458
lea edx, [esp + 0x14]
push str.Drivers_
push edx
call esi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x118]
push eax
push ecx
call ebp
lea edx, [esp + 0x118]
push edi
push edx
call esi
lea eax, [esp + 0x14]
push ebx
push eax
call esi
mov ecx, dword [esp + 0x480]
lea edx, [esp + 0x14]
push ecx
push 1
lea eax, [esp + 0x120]
push edx
push eax
call fcn.00403ce0
add esp, 0x10
cmp eax, 1
jne 0x4034eb
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
lea ecx, [esp + 0x18]
push 0
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
je 0x4034bc
call edi
lea edx, [esp + 0x14]
push 4
lea eax, [esp + 0x11c]
push edx
push eax
call esi
cmp eax, 1
je 0x4034d4
call edi
pop edi
pop esi
pop ebp
mov dword [0x40e204], 1
xor eax, eax
pop ebx
add esp, 0x45c
ret
test eax, eax
jne 0x40340a
lea ecx, [esp + 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x45c
ret
Function at 0x403840
Capabilities:
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x460
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push 0x40e220
push eax
mov dword [esp + 0x18], 0
call ebx
mov edi, dword [esp + 0x480]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp edi, 1
jne 0x403882
lea ecx, [esp + 0x18]
push str.Drivers_
push ecx
call esi
mov ebp, dword [esp + 0x47c]
lea edx, [esp + 0x18]
push ebp
push edx
call esi
lea eax, [esp + 0x330]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4038ca
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push ebp
call fcn.004019c0
cmp eax, 1
je 0x4038ca
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x460
ret
lea edx, [esp + 0x11c]
push 0x40e100
push edx
call ebx
mov eax, dword [esp + 0x474]
lea ecx, [esp + 0x11c]
push eax
push ecx
call esi
lea edx, [esp + 0x2a8]
push 0
lea eax, [esp + 0x120]
push edx
push eax
call sub.LZ32.dll_LZOpenFileA
mov ebp, eax
test ebp, ebp
jge 0x403916
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x460
ret
lea ecx, [esp + 0x18]
push 0x40e220
push ecx
call ebx
cmp edi, 1
jne 0x403933
lea edx, [esp + 0x18]
push str.Drivers_
push edx
call esi
mov eax, dword [esp + 0x47c]
lea ecx, [esp + 0x18]
push eax
push ecx
call esi
lea edx, [esp + 0x220]
push 0x1001
lea eax, [esp + 0x1c]
push edx
push eax
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
test edi, edi
jge 0x403973
push ebp
call sub.LZ32.dll_LZClose
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x460
ret
push edi
push ebp
call sub.LZ32.dll_LZCopy
push ebp
mov dword [esp + 0x18], eax
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
mov eax, dword [esp + 0x14]
test eax, eax
jge 0x4039a0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x460
ret
mov edi, dword [esp + 0x47c]
mov ebp, dword [esp + 0x478]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403a59
lea ecx, [esp + 0x18]
push 0x40e220
push ecx
call ebx
cmp dword [esp + 0x480], 1
jne 0x4039e0
lea edx, [esp + 0x18]
push str.Drivers_
push edx
call esi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x11c]
push eax
push ecx
call ebx
lea edx, [esp + 0x11c]
push edi
push edx
call esi
lea eax, [esp + 0x18]
push ebp
push eax
call esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.00403ce0
add esp, 0x10
cmp eax, 1
jne 0x403a70
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
je 0x403a41
call edi
lea edx, [esp + 0x18]
push 4
lea eax, [esp + 0x120]
push edx
push eax
call esi
cmp eax, 1
je 0x403a59
call edi
pop edi
pop esi
pop ebp
mov dword [0x40e204], 1
xor eax, eax
pop ebx
add esp, 0x460
ret
test eax, eax
jne 0x403992
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x460
ret
Function at 0x403aa0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x450
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x40e220
push eax
mov dword [esp + 0x18], 0
call ebx
mov eax, dword [esp + 0x46c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp eax, 1
jne 0x403ae2
lea ecx, [esp + 0x14]
push str.Drivers_
push ecx
call esi
mov edi, dword [esp + 0x464]
lea edx, [esp + 0x14]
push edi
push edx
call esi
lea eax, [esp + 0x320]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, dword [esp + 0x468]
cmp eax, 0xffffffff
je 0x403b38
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x46c]
push edx
push ebp
call fcn.004019c0
cmp eax, 1
je 0x403b38
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x450
ret
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403b95
lea eax, [esp + 0x118]
push 0x40e100
push eax
call ebx
lea ecx, [esp + 0x118]
push edi
push ecx
call esi
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push 0
lea ecx, [esp + 0x120]
push eax
push ecx
call fcn.00403ce0
add esp, 0x10
test eax, eax
je 0x403cc5
cmp eax, 1
je 0x403b95
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x450
ret
lea edx, [esp + 0x14]
push 0x40e220
push edx
call ebx
cmp dword [esp + 0x46c], 1
jne 0x403bb7
lea eax, [esp + 0x14]
push str.Drivers_
push eax
call esi
lea ecx, [esp + 0x14]
push ebp
push ecx
call esi
lea edx, [esp + 0x118]
push 0x40e100
push edx
call ebx
lea eax, [esp + 0x118]
push edi
push eax
call esi
lea ecx, [esp + 0x14]
push 1
lea edx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, 1
je 0x403c01
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x450
ret
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403cbb
lea eax, [esp + 0x14]
push 0x40e220
push eax
call ebx
cmp dword [esp + 0x46c], 1
jne 0x403c33
lea ecx, [esp + 0x14]
push str.Drivers_
push ecx
call esi
lea edx, [esp + 0x14]
push edi
push edx
call esi
lea eax, [esp + 0x21c]
push 0x40e220
push eax
call ebx
mov eax, dword [esp + 0x46c]
mov edi, 1
cmp eax, edi
jne 0x403c69
lea ecx, [esp + 0x21c]
push str.Drivers_
push ecx
call esi
lea edx, [esp + 0x21c]
push ebp
push edx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
lea eax, [esp + 0x18]
push 0
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x403c91
call ebx
lea ecx, [esp + 0x14]
push 4
lea edx, [esp + 0x220]
push ecx
push edx
call esi
cmp eax, edi
je 0x403ca8
call ebx
mov dword [0x40e204], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x450
ret
mov dword [0x40e204], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x450
ret
Function at 0x404480
Capabilities:
Copy file

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x110
lea eax, [esp]
push esi
push edi
push 0
push eax
push ecx
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
test edi, edi
jge 0x4044ab
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x110
ret
mov eax, dword [esp + 0x120]
lea edx, [esp + 0x90]
push 0x1001
push edx
push eax
call sub.LZ32.dll_LZOpenFileA
mov esi, eax
test esi, esi
jge 0x4044dd
push edi
call sub.LZ32.dll_LZClose
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x110
ret
push ebx
push esi
push edi
call sub.LZ32.dll_LZCopy
push edi
mov ebx, eax
call sub.LZ32.dll_LZClose
push esi
call sub.LZ32.dll_LZClose
xor eax, eax
test ebx, ebx
setge al
pop ebx
pop edi
dec eax
pop esi
add esp, 0x110
ret

Function at 0x404530
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40454c
pop edi
xor eax, eax
pop esi
ret
test al, 1
je 0x40455c
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
mov eax, esi
pop edi
pop esi
ret

Function at 0x404590
Capabilities:
Query service status

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebp, 1
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x404662
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
cmp edx, ecx
je 0x404662
mov edx, dword [esp + 0x10]
push edx
call fcn.00404570
mov ecx, dword [esp + 0x28]
add esp, 4
cmp ecx, 0xffffffff
je 0x4045e9
cmp eax, ecx
ja 0x40464b
test ebp, ebp
je 0x4045f7
mov ebx, dword [esi + 4]
mov edi, dword [esi + 0x14]
xor ebp, ebp
jmp 0x40460e
mov eax, dword [esi + 4]
cmp ebx, eax
je 0x404605
mov edi, dword [esi + 0x14]
mov ebx, eax
jmp 0x40460e
mov eax, dword [esi + 0x14]
cmp eax, edi
jb 0x404660
mov edi, eax
mov eax, 0xcccccccd
mul dword [esi + 0x18]
shr edx, 3
cmp edx, 0x3e8
jae 0x404632
mov edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4045ac
cmp edx, 0x2710
jbe 0x40463f
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4045ac
push 0x5b4
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40670d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b738
cmp edx, dword [eax]
je 0x40672f
add eax, 8
inc ecx
cmp eax, 0x40b7c8
jl 0x406720
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b738]
jne 0x40685d
mov eax, dword [0x40d8f8]
cmp eax, 1
je 0x406837
test eax, eax
jne 0x406760
cmp dword [0x40b474], 1
je 0x406837
cmp edx, 0xfc
je 0x40685d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406797
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405780
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407ca0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4067da
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407ca0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40954c
push edi
call fcn.00408130
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405780
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405790
lea eax, [ebp - 0xa0]
push 0x40952c
push eax
call fcn.00405790
push dword [esi + 0x40b73c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405790
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408098
add esp, 0x2c
pop edi
jmp 0x40685d
lea eax, [ebp + 8]
lea esi, [esi + 0x40b73c]
push 0
push eax
push dword [esi]
call fcn.00407ca0
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