joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409870
Capabilities:
Contain obfuscated stackstrings
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f7db
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x42a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x40], 0x626f6c47
push 0x5a
push eax
mov word [ebp - 0xa0], ax
lea eax, [ebp - 0x9e]
push eax
mov dword [ebp - 0x3c], 0x7b5c6c61
mov dword [ebp - 0x38], 0x45313038
mov dword [ebp - 0x34], 0x36434243
mov dword [ebp - 0x30], 0x3234342d
mov dword [ebp - 0x2c], 0x45342d32
mov dword [ebp - 0x28], 0x422d3243
mov dword [ebp - 0x24], 0x2d413545
mov dword [ebp - 0x20], 0x42333435
mov dword [ebp - 0x1c], 0x35423132
mov dword [ebp - 0x18], 0x44413238
mov byte [ebp - 0x14], 0x7d
call fcn.00411600
add esp, 0xc
xor ecx, ecx
lea esp, [esp]
movzx eax, byte [ebp + ecx - 0x40]
mov word [ebp + ecx*2 - 0xa0], ax
inc ecx
cmp ecx, 0x2d
jl 0x409910
lea eax, [ebp - 0xa0]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
lea ecx, [ebp - 0xa0]
mov dword [esi + 0x1f0], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409943
sub ecx, edx
lea eax, [ebp - 0xa0]
sar ecx, 1
je 0x409969
lea ebx, [ebx]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x409960
mov ecx, 0x2d
lea eax, [ebp - 0x40]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x409971
cmp dword [esi + 0x1f0], ecx
jne 0x4099e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0xb8]
call fcn.0040b400
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x4099a4
mov eax, dword [eax]
push eax
push 0x426988
push 3
push str.AgNet::CAgTcpServer::InitDog
push 0x286
push str.CTcpServer.cpp
call fcn.0040bc30
add esp, 0x18
cmp dword [ebp - 0xa4], 8
jb 0x4099da
push dword [ebp - 0xb8]
call fcn.0040ed3b
add esp, 4
push 0
call fcn.0040f750
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ed40
mov esp, ebp
pop ebp
ret
Function at 0x409a00
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f8b6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a0
mov eax, dword [0x42a010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x44
lea eax, [ebp - 0x280]
push 0
push eax
call fcn.00411600
add esp, 0xc
mov dword [ebp - 0x280], 0x44
xorps xmm0, xmm0
lea ecx, [ebp - 0x238]
movdqa xmmword [ebp - 0x290], xmm0
call fcn.0040b750
push 0xc
push str.AgDeamon.exe
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0
call fcn.004012b0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.00411600
add esp, 0xc
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
cmovae eax, dword [ebp - 0x238]
push eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.0040fb31
add esp, 0xc
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x280]
push eax
push 0
push 0
push 8
push 0
push 0
push 0
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x409b56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2a8]
call fcn.0040b400
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x409b1e
mov eax, dword [eax]
push eax
push 0x426d50
push 3
push str.AgNet::RestartDeamon
push 0x2b8
push str.CTcpServer.cpp
call fcn.0040bc30
add esp, 0x18
cmp dword [ebp - 0x294], 8
jb 0x409b9a
push dword [ebp - 0x2a8]
call fcn.0040ed3b
add esp, 4
jmp 0x409b9a
push 0xffffffffffffffff
push dword [ebp - 0x290]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x290]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._TD
push 2
push str.AgNet::RestartDeamon
push 0x2c3
push str.CTcpServer.cpp
call fcn.0040bc30
add esp, 0x14
cmp dword [ebp - 0x224], 8
jb 0x409bb1
push dword [ebp - 0x238]
call fcn.0040ed3b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040ed40
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x409bd0
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x42a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x48]
call fcn.0040b750
push 0xe
push str.agcmd.file.dat
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.004012b0
cmp dword [ebp - 0x34], 8
lea esi, [ebp - 0x48]
cmovae esi, dword [ebp - 0x48]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409d16
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x409d16
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push 0
cmovae eax, dword [ebp - 0x48]
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409d16
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x20
jne 0x409d16
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x4c]
xorps xmm0, xmm0
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x48]
movq qword [ebp - 0x1f], xmm0
cmovae ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x30]
push eax
movdqu xmmword [ebp - 0x2f], xmm0
mov dword [ebp - 0x17], 0
mov word [ebp - 0x13], 0
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x4c], esi
call fcn.0040add0
add esp, 4
test eax, eax
je 0x409d16
mov ecx, str.CA6A1122802846308780EA50D566F5B8
lea edx, [ebp - 0x30]
mov esi, 0x1c
jmp 0x409ce0
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x409d16
add ecx, 4
add edx, 4
sub esi, 4
jae 0x409ce0
push str.ck8
push 1
push str.AgNet::StopCmd
push 0x2da
push str.CTcpServer.cpp
call fcn.0040bc30
add esp, 0x14
mov esi, 1
jmp 0x409d18
xor esi, esi
cmp dword [ebp - 0x34], 8
jb 0x409d29
push dword [ebp - 0x48]
call fcn.0040ed3b
add esp, 4
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.0040ed40
mov esp, ebp
pop ebp
ret
Function at 0x409f40
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f960
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
mov eax, dword [0x42a010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x1f8], 0
jne 0x409fea
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x1f8], eax
test eax, eax
jne 0x409fea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.0040b400
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x409fa8
mov eax, dword [eax]
push eax
push 0x426e64
push 3
push str.AgNet::CAgTcpServer::BeginDeamonDeamon
push 0x330
push str.CTcpServer.cpp
call fcn.0040bc30
add esp, 0x18
cmp dword [ebp - 0x10], 8
jb 0x409fd8
push dword [ebp - 0x24]
call fcn.0040ed3b
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0x409d50
push 0
push 0
call fcn.0041048e
add esp, 0x18
cmp eax, 0xffffffff
jne 0x40a05c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.0040b400
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x40a025
mov eax, dword [eax]
push eax
push 0x426ed8
push 3
push str.AgNet::CAgTcpServer::BeginDeamonDeamon
push 0x339
push str.CTcpServer.cpp
call fcn.0040bc30
add esp, 0x18
cmp dword [ebp - 0x28], 8
jb 0x40a055
push dword [ebp - 0x3c]
call fcn.0040ed3b
add esp, 4
push 0xfffffffffffffffc
call fcn.0040f750
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a580
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Contain obfuscated stackstrings
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f7db
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x42a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x40], 0x626f6c47
push 0x5a
push eax
mov word [ebp - 0xa0], ax
lea eax, [ebp - 0x9e]
push eax
mov dword [ebp - 0x3c], 0x7b5c6c61
mov dword [ebp - 0x38], 0x42314342
mov dword [ebp - 0x34], 0x39333838
mov dword [ebp - 0x30], 0x4142322d
mov dword [ebp - 0x2c], 0x35342d43
mov dword [ebp - 0x28], 0x392d3645
mov dword [ebp - 0x24], 0x2d463441
mov dword [ebp - 0x20], 0x41423046
mov dword [ebp - 0x1c], 0x43384441
mov dword [ebp - 0x18], 0x41333141
mov byte [ebp - 0x14], 0x7d
call fcn.00411600
add esp, 0xc
xor ecx, ecx
lea ebx, [ebx]
movzx eax, byte [ebp + ecx - 0x40]
mov word [ebp + ecx*2 - 0xa0], ax
inc ecx
cmp ecx, 0x2d
jl 0x40a620
lea eax, [ebp - 0xa0]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edx, eax
lea ecx, [ebp - 0xa0]
mov dword [0x42ca90], edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a655
sub ecx, esi
lea eax, [ebp - 0xa0]
sar ecx, 1
je 0x40a679
lea esp, [esp]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x40a670
mov ecx, 0x2d
lea eax, [ebp - 0x40]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x40a681
test edx, edx
jne 0x40a6ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0xb8]
call fcn.0040b400
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x40a6b0
mov eax, dword [eax]
push eax
push 0x426988
push 3
push str.RunSingleInstance
push 0x4b
push str.tcpserver.cpp
call fcn.0040bc30
add esp, 0x18
cmp dword [ebp - 0xa4], 8
jb 0x40a6e3
push dword [ebp - 0xb8]
call fcn.0040ed3b
add esp, 4
push 0xffffffffffffffff
call fcn.0040f750
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a725
push dword [0x42ca90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x426fa8
push 2
push str.RunSingleInstance
push 0x51
push str.tcpserver.cpp
call fcn.0040bc30
add esp, 0x14
push 0xfffffffffffffffe
call fcn.0040f750
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ed40
mov esp, ebp
pop ebp
ret
Function at 0x40a740
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f9c6
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x42a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x224], 0
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x21c], 0
call fcn.00411600
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.IsWow64Process
xor esi, esi
push str.kernel32
mov dword [ebp - 0x220], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40a7e8
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
cmp dword [ebp - 0x220], esi
je 0x40a807
push 0x20106
jmp 0x40a80c
push 0x20206
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40a884
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x23c]
call fcn.0040b400
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x40a848
mov eax, dword [eax]
push eax
push 0x427014
push 3
push str.AddRunReg
push 0x6f
push str.tcpserver.cpp
call fcn.0040bc30
add esp, 0x18
cmp dword [ebp - 0x228], 8
jb 0x40a923
push dword [ebp - 0x23c]
call fcn.0040ed3b
add esp, 4
jmp 0x40a923
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a890
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push str.AgNCServer
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40a91e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x254]
call fcn.0040b400
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x40a8e9
mov eax, dword [eax]
push eax
push 0x427014
push 3
push str.AddRunReg
push 0x76
push str.tcpserver.cpp
call fcn.0040bc30
add esp, 0x18
cmp dword [ebp - 0x240], 8
jb 0x40a923
push dword [ebp - 0x254]
call fcn.0040ed3b
add esp, 4
jmp 0x40a923
mov esi, 1
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x40a934
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.0040ed40
mov esp, ebp
pop ebp
ret
Function at 0x40ab00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x40ab17
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ab20
sub ecx, edx
sar ecx, 1
dec ecx
cmp ecx, 1
jle 0x40abe0
push ebx
mov ebx, 2
push edi
add esi, ebx
lea edi, [ecx - 1]
mov dword [ebp - 4], esi
mov edx, ebx
mov dword [ebp - 8], edi
lea ecx, [ecx]
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40ab5d
cmp eax, 0x2f
jne 0x40abcd
xor ecx, ecx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ebc6
add esp, 4
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x40abbf
cmp ebx, 0x7fffffff
ja 0x40abbf
mov edi, dword [ebp - 0xc]
mov esi, ebx
mov ecx, eax
mov edx, bind
sub edi, eax
test edx, edx
je 0x40abaa
movzx eax, word [edi + ecx]
test ax, ax
je 0x40abaa
mov word [ecx], ax
dec edx
add ecx, 2
dec esi
jne 0x40ab91
jmp 0x40abae
test esi, esi
jne 0x40abb1
sub ecx, 2
mov esi, dword [ebp - 4]
xor eax, eax
mov edi, dword [ebp - 8]
mov word [ecx], ax
mov eax, dword [ebp - 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 2
add esi, 2
inc ebx
dec edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
jne 0x40ab50
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40abf0
Capabilities:
Create directory
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x428340
push 0x412bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x42a010]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x38], edx
mov eax, ecx
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov dword [ebp - 0x34], ebx
xor edi, edi
mov dword [ebp - 0x24], edi
or esi, 0xffffffff
mov dword [ebp - 0x2c], esi
test edx, edx
je 0x40adad
cmp dword [ebp + 8], ebx
je 0x40ad78
mov dword [ebp - 4], ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac52
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40acbe
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ebc6
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x40ad6c
mov eax, dword [ebp - 0x30]
add eax, eax
push eax
push 0
push edi
call fcn.00411600
add esp, 0xc
push dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
mov ecx, edi
call fcn.00401990
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40ad6c
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
jne 0x40ad27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x40ad02
mov ecx, edi
call fcn.0040ab00
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ad6c
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
je 0x40ad6c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x40ad40
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
push dword [ebp - 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ad6c
xor ebx, ebx
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x20]
sete bl
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0040ad85
mov eax, ebx
jmp 0x40adaf
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040ed40
mov esp, ebp
pop ebp
ret
Function at 0x40add0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42a010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, edx
xor ebx, ebx
mov dword [ebp - 0xc], eax
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x40ae48
cmp dword [edi], ebx
je 0x40ae48
push esi
push ebx
push 0x80
push 3
push ebx
push 1
push bind
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ae35
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push dword [edi]
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
mov ebx, eax
push esi
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ed40
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.0040ed40
mov esp, ebp
pop ebp
ret
Function at 0x40b210
Capabilities:
Check if file exists
Create directory
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x42a010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x42b5ec]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x26c], esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b3ec
lea eax, [esi - 1]
cmp eax, 0x63
ja 0x40b3ec
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x258], ax
lea eax, [ebp - 0x256]
push eax
call fcn.00411600
add esp, 0xc
lea eax, [ebp - 0x258]
push edi
push 0x105
push eax
call fcn.0040fb31
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40b3ec
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x258]
push eax
call esi
push str.backup
lea eax, [ebp - 0x258]
push 0x105
push eax
call fcn.00411690
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
call esi
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40b2f1
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b3ec
mov edx, dword [ebp - 0x26c]
lea ecx, [ebp - 0x258]
call fcn.0040ae60
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x46]
push eax
call fcn.00411600
movzx eax, word [ebp - 0x25a]
add esp, 0xc
push eax
movzx eax, word [ebp - 0x25c]
push eax
movzx eax, word [ebp - 0x25e]
push eax
movzx eax, word [ebp - 0x260]
push eax
movzx eax, word [ebp - 0x262]
push eax
movzx eax, word [ebp - 0x266]
push eax
movzx eax, word [ebp - 0x268]
push eax
push str._04d__02d__02d__02d__02d__02d__03d.bak
lea eax, [ebp - 0x48]
push 0x1f
push eax
call fcn.00401a80
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x258]
push 0x105
push eax
call fcn.00411690
add esp, 0x34
push 0
push 0x80
push 3
push 0
push 0
push 0x10000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
je 0x40b3ec
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x26c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xa00000
jb 0x40b3d9
push 1
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ed40
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ed40
mov esp, ebp
pop ebp
ret
Function at 0x40b850
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42a010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00411600
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40b8a9
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ed40
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
push 0x104
push esi
call fcn.0040fb31
mov ecx, dword [ebp - 4]
add esp, 0xc
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0040ed40
mov esp, ebp
pop ebp
ret

Function at 0x40b8e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fb12
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x42a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x42c], 0
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x4259a0
mov dword [ebp - 0x430], esi
mov word [esi], ax
call fcn.00401830
xor eax, eax
mov dword [ebp - 4], 0
push 0x208
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x42c], 1
call fcn.00411600
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call fcn.00411600
add esp, 0x18
lea eax, [ebp - 0x428]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40b9fe
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0040fb31
add esp, 0xc
neg eax
sbb eax, eax
inc eax
je 0x40b9fe
cmp word [ebp - 0x21c], 0
jne 0x40b9d3
xor ecx, ecx
jmp 0x40b9ef
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b9e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00401830
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ed40
mov esp, ebp
pop ebp
ret