joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a10
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c55a8
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x401a43
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 4]
call fcn.00443350
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.004434c0
test eax, eax
jne 0x401a9e
push str.open_reg_error_clsid__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00443440
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push 0
push 0x4e8500
lea ecx, [esp + 0xc]
call fcn.00443660
push 0
push 0x4e84fc
lea ecx, [esp + 0xc]
mov dword [esi], eax
call fcn.00443660
push 0
push 0x4e84f8
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
call fcn.00443660
mov dword [esi + 4], eax
lea eax, [esp + 0x1c]
push eax
push 0x4e84f4
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
call fcn.004438e0
test eax, eax
je 0x401b02
cmp dword [esp + 0x1c], 0xc
jb 0x401b02
mov ecx, dword [eax + 8]
mov dword [esi + 0xc], ecx
lea ecx, [esp + 4]
call fcn.00443510
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00443440
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x401b40
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4c55c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
lea ecx, [esp]
call fcn.00443350
push 0x20019
push str.SOFTWARETECOcular.3Agent
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.004434c0
test eax, eax
jne 0x401bb2
push str.open_reg_error_agent__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call fcn.00443440
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push esi
push 1
push str.NACondMatchResult
lea ecx, [esp + 0xc]
call fcn.00443660
lea ecx, [esp + 4]
mov esi, eax
call fcn.00443510
xor eax, eax
cmp esi, 1
sete al
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
call fcn.00443440
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x401c00
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4c55e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
lea ecx, [esp]
call fcn.00443350
push 0x20019
push str.SOFTWARETECOcular.3Agent
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.004434c0
test eax, eax
jne 0x401c72
push str.open_reg_error_agent__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call fcn.00443440
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push esi
push 1
push str.USCondMatchResult
lea ecx, [esp + 0xc]
call fcn.00443660
lea ecx, [esp + 4]
mov esi, eax
call fcn.00443510
xor eax, eax
cmp esi, 1
sete al
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
call fcn.00443440
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x401cc0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4c5608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
lea ecx, [esp]
call fcn.00443350
push 0x20019
push str.SOFTWARETECOcular.3Agent
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0xc]
mov dword [esp + 0x48], 0
call fcn.004434c0
test eax, eax
jne 0x401d32
push str.open_reg_error_agent__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00443440
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
lea eax, [esp + 8]
push 8
push eax
push str.ConnServerTime3
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004437a0
fld qword [esp + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 0
fstp qword [esp + 0x10]
push ecx
call fcn.0040e9bd
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.0040efc2
fld qword [esp + 0x28]
fmul qword [0x4caaa0]
fadd qword [0x4caa98]
call fcn.00418b74
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
lea ecx, [esp]
call fcn.00443510
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00443440
mov ecx, dword [esp + 0x34]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x401e60
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c5658
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4fa734]
xor esi, esi
cmp ecx, esi
mov ebx, 1
je 0x401ea1
cmp eax, ecx
jb 0x401ea1
add ecx, 0xea60
cmp ecx, eax
jae 0x401efc
lea ecx, [esp + 0x14]
call fcn.0040af70
push ecx
mov dword [esp + 0x44], esi
mov ecx, esp
mov dword [esp + 0x14], esp
push str.NAC_DisCheckInternetIP
call fcn.00431120
lea ecx, [esp + 0x18]
call fcn.0040b160
cmp dword [esp + 0x34], 0xf0000001
jne 0x401ee5
lea ecx, [esp + 0x14]
call fcn.0040b5d0
cmp eax, ebx
mov dword [0x4e8130], esi
je 0x401eeb
mov dword [0x4e8130], ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0xffffffff
call fcn.0040b0c0
mov edi, dword [esp + 0x48]
cmp edi, esi
je 0x401fa3
cmp dword [0x4e8130], esi
je 0x401fa3
lea ebp, [edi + 4]
push ebp
call sub.WSOCK32.dll_inet_addr
add edi, 0x14
push edi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x401f2d
mov esi, ebx
push edi
lea ecx, [esp + 0x14]
call fcn.00431010
mov edi, eax
push ebp
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], ebx
call fcn.00431010
mov ecx, dword [edi]
mov edx, dword [eax]
push ecx
push edx
push str.CONac::IsInternetIP____s____s_
push 0x4e81a4
push 0xf
push 0x4fe39c
mov byte [esp + 0x58], 2
call fcn.0040c300
add esp, 0x18
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], bl
call fcn.00431990
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call fcn.00431990
push esi
push str.CONac::IsInternetIP___d_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x14
mov ecx, dword [esp + 0x38]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret
Function at 0x402820
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
push esi
call fcn.00401dd0
mov esi, eax
mov al, byte [0x4fa6ec]
test al, 1
jne 0x40286a
mov dl, al
push 0x402910
or dl, 1
mov dword [0x4fa6e0], 0
mov byte [0x4fa6ec], dl
mov dword [0x4fa6e4], 0
mov dword [0x4fa6e8], 0
call fcn.004186da
add esp, 4
test esi, esi
pop esi
je 0x40287d
mov dword [0x4fa738], 0
add esp, 0x1c
ret
mov eax, dword [0x4fa738]
test eax, eax
je 0x4028d4
lea eax, [esp + 4]
push eax
call fcn.0040e9bd
lea ecx, [esp + 0x10]
push 0x4fa6e0
push ecx
lea ecx, [esp + 0xc]
call fcn.0040efc2
fld qword [esp + 0x10]
fmul qword [0x4caaa0]
fadd qword [0x4caa98]
call fcn.00418b74
mov dword [esp], eax
fild dword [esp]
fcomp qword [0x4caaa8]
fnstsw ax
test ah, 1
jne 0x402901
push 0
call fcn.00418deb
lea edx, [esp + 0x10]
mov dword [0x4fa738], 1
push edx
call fcn.0040e9bd
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [0x4fa6e0], ecx
mov dword [0x4fa6e4], edx
mov eax, dword [eax + 8]
mov dword [0x4fa6e8], eax
add esp, 0x1c
ret
Function at 0x403300
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x10]
push 0
push 0x3f
push 2
push 0x21c3
mov ecx, esi
call fcn.004c4383
test eax, eax
pop esi
jne 0x40332a
push str.create_socket_fail
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
ret

Function at 0x403330
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4c5808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, ecx
mov eax, dword [esi + 8]
push eax
push ebx
push ebp
push str.CTNacSocket::SendData__________08x___08x___d_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x1c
mov ecx, edi
call fcn.00403300
push 0x21c3
mov word [esp + 0x14], 2
call sub.WSOCK32.dll_htons
mov ecx, dword [esi + 8]
mov word [esp + 0x12], ax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x30], eax
jle 0x403485
mov ecx, dword [esi + 4]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x403471
mov edx, dword [edi]
mov dword [esp + 0x14], eax
push 0
lea eax, [esp + 0x14]
push 0x10
push eax
push ebx
push ebp
mov ecx, edi
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x14]
mov esi, eax
push ecx
push esi
push str.CTNacSocket::SendData_1___d___08x_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x18
cmp esi, 0xffffffff
jne 0x40346d
call sub.WSOCK32.dll_WSAGetLastError
mov edx, dword [0x4ea0ac]
mov esi, eax
mov dword [esp + 0x34], edx
push esi
lea eax, [esp + 0x38]
push str.send_data_error._last_error__d_
push eax
mov dword [esp + 0x34], 0
call fcn.004a84c5
mov ecx, dword [esp + 0x40]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push str.CTNacSocket::SendData_2___d_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x14
cmp esi, 0x2733
je 0x40345c
push str.reinit_socket
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, edi
call fcn.00403300
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.004ab425
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x4033a7
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10]
push str.CTNacSocket::SendData___
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
mov ecx, dword [esp + 0x30]
add esp, 0x10
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
Function at 0x404c00
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
mov esi, 0x2001f
mov dword [esp + 0xc], 0
je 0x404c27
mov esi, 0x2011f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x404c66
lea edx, [esp + 8]
push edx
push esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404ca0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x404c7d
push esi
call fcn.0041937c
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x404c7f
xor eax, eax
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x1c]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 0x10

Function at 0x404cb0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
mov esi, 0x2001f
mov dword [esp + 0xc], 0
je 0x404cd7
mov esi, 0x2011f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x404d16
lea edx, [esp + 8]
push edx
push esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404d3c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 0x10

Function at 0x404d50
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
mov esi, 0x2001f
mov dword [esp + 0xc], 0
je 0x404d77
mov esi, 0x2011f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x404db6
lea edx, [esp + 8]
push edx
push esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404ddc
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
lea eax, [esp + 0x1c]
push 8
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 0x14
Function at 0x404df0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
xor esi, esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x404e2d
lea ecx, [esp + 8]
push ecx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x404ead
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x404e97
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.004ab160
mov esi, eax
add esp, 4
test esi, esi
je 0x404e97
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8

Function at 0x404ec0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x404f02
lea ecx, [esp + 4]
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x404f3e
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop esi
add esp, 0xc
ret 8

Function at 0x404f50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 4]
mov dword [esp + 0xc], 0
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x404f9a
lea ecx, [esp + 4]
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x404fd6
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
fld qword [esp + 0xc]
pop esi
add esp, 0x10
ret 8
Function at 0x40509d
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c590b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x660
push ebx
push ebp
push esi
mov esi, ecx
push 1
call fcn.00405460
mov ebx, eax
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebx
je 0x4051e2
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x26a]
mov word [esp + 0x268], bp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x680]
stosw word es:[edi], ax
lea eax, [esp + 0x268]
push eax
push ecx
mov ecx, esi
call fcn.004056c0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bp
rep stosd dword es:[edi], eax
lea edx, [esp + 0x268]
stosw word es:[edi], ax
push edx
push ebx
lea eax, [esp + 0x470]
push 0x4e945c
push eax
call fcn.004193d6
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebp
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0x468]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4051d8
mov esi, dword [esp + 0x684]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0x44]
push 0x4e9454
push eax
call ebx
test eax, eax
je 0x4051bd
lea ecx, [esp + 0x44]
push 0x4e9450
push ecx
call ebx
test eax, eax
je 0x4051bd
test byte [esp + 0x18], 0x10
jne 0x4051bd
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.004ab4e5
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x680], ebp
call fcn.004aa220
lea ecx, [esp + 0x10]
mov dword [esp + 0x678], 0xffffffff
call fcn.004ab425
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40515d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x14]
push ebx
call fcn.004ab189
add esp, 4
pop edi
mov ecx, dword [esp + 0x66c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x66c
ret 8
Function at 0x409ee0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x664
push ebx
push esi
mov esi, dword [esp + 0x670]
xor ebx, ebx
cmp esi, ebx
je 0x40a083
push esi
call fcn.0041937c
add esp, 4
test eax, eax
je 0x40a083
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x18]
push ebx
push eax
push esi
mov dword [esp + 0x24], ebx
call fcn.004074e0
add esp, 0x1c
test eax, eax
je 0x40a083
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x40a083
test al, 1
je 0x409f4c
and al, 0xfe
push eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 8]
test al, 0x10
je 0x40a073
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bx
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
stosw word es:[edi], ax
call fcn.00419357
lea edx, [esp + 0x18]
push 0x4e9ce0
push edx
call fcn.0041932d
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x22c]
mov dword [esp + 0x228], ebx
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x218]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a062
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x248]
push 0x4e9454
push edx
call ebp
test eax, eax
je 0x40a043
lea eax, [esp + 0x248]
push 0x4e9450
push eax
call ebp
test eax, eax
je 0x40a043
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46e]
mov word [esp + 0x46c], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push esi
push ecx
stosw word es:[edi], ax
call fcn.00419357
lea edx, [esp + 0x1c]
push 0x4e9d2c
push edx
call fcn.0041932d
lea eax, [esp + 0x258]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0041932d
lea edx, [esp + 0x484]
push edx
call fcn.00409ee0
add esp, 0x1c
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409fc2
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
add esp, 0x664
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebx
add esp, 0x664
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x664
ret
Function at 0x40a0e0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x204
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebp
call ebx
cmp eax, 0xffffffff
jne 0x40a121
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x218]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
test al, 1
je 0x40a137
and al, 0xfe
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x40a1b6
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push ebp
lea edx, [esp + 0x1c]
push str._s.bak_08X
push edx
call fcn.00419b2f
add esp, 0x10
lea eax, [esp + 0x14]
xor esi, esi
push eax
call ebx
cmp eax, 0xffffffff
je 0x40a1aa
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
push ebp
lea ecx, [esp + 0x1c]
push str._s.bak_08X
push ecx
call fcn.00419b2f
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call ebx
inc esi
cmp esi, 0xa
jge 0x40a1d8
cmp eax, 0xffffffff
jne 0x40a17a
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [esp + 0x220]
mov edx, dword [esp + 0x218]
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x204
ret

Function at 0x40a400
Capabilities:
Get graphical window text

Disassembly:
call fcn.0044e520
test eax, eax
je 0x40a41f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x40a4a0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40a4a0
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.004ab160
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40a4a0
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x40a4a0
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.004068e0
add esp, 0x10
test eax, eax
je 0x40a4a0
push esi
call fcn.0041937c
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret