joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dfd7
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404bd0
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x40dffa
mov eax, edi
add eax, eax
call fcn.00402ef4
mov esi, eax
jmp 0x40dffc
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40e035
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40e01f
mov eax, esp
cmp esi, eax
je 0x40e042
mov eax, esi
call fcn.00402f10
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40e07c
cmp bl, 0
je 0x40e078
cmp bl, 0x41
jl 0x40e073
cmp bl, 0x5a
jg 0x40e073
or bl, 0x20
xor al, bl
inc esi
jmp 0x40e057
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40dfbc

Function at 0x40f448
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f48e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040f360
mov eax, dword [ebp - 4]
call fcn.00405068
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f495
lea eax, [ebp - 4]
call fcn.00404fcc
ret

Function at 0x40f6ac
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40f743
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40f6f7
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00405118
jmp 0x40f72d
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x40f710
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405030
jmp 0x40f723
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040f56c
mov ebx, eax
test esi, esi
je 0x40f723
dec esi
jmp 0x40f6fe
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f74a
lea eax, [ebp - 4]
call fcn.00404fcc
ret

Function at 0x40f754
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040914c
add esp, 0x208
pop ebx
ret

Function at 0x40f7b4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040914c
add esp, 0x208
pop ebx
ret
Function at 0x40f934
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40fa71
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40fa5b
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40f991
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40fa5b
cmp dword [ebp - 0x14], 0
jne 0x40f9a8
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404fdc
mov bl, 1
jmp 0x40fa5b
cmp dword [ebp - 0x14], 0x70000000
jb 0x40f9b6
call fcn.0040c784
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00405118
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.004057f0
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x40f95a
test eax, eax
jne 0x40fa5b
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40fa04
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40fa5b
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x40fa0c
dec esi
test esi, esi
je 0x40fa20
lea eax, [ebp - 4]
call fcn.00404a90
cmp word [eax + esi*2 - 2], 0
je 0x40fa0b
cmp dword [ebp - 0x10], 7
jne 0x40fa2b
test esi, esi
je 0x40fa2b
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00405244
cmp dword [ebp - 0x10], 7
jne 0x40fa4e
test esi, esi
je 0x40fa4e
lea eax, [ebp - 4]
call fcn.004057f0
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404fdc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fa78
lea eax, [ebp - 4]
call fcn.00404fcc
ret

Function at 0x4105ac
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x420d9c
mov eax, esi
mov edx, 8
test al, 1
je 0x4105c8
shr eax, 1
xor eax, 0xedb88320
jmp 0x4105ca
shr eax, 1
dec edx
jne 0x4105bb
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4105b4
pop esi
ret

Function at 0x4105e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x420d98], 0
jne 0x410603
call fcn.004105ac
push 1
push 0x420d98
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x41062e
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x420d9c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x410609
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4164b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 9]
mov eax, ebx
call fcn.00416464
test al, al
jne 0x4164d1
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x41651d
xor eax, eax
push ebp
push 0x41650d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00405068
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416514
lea eax, [ebp - 9]
call fcn.004164a0
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4165d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4165d8
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41673a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.00405158
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040f168
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0040f340
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
call fcn.0040f788
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0040ed94
lea eax, [ebp - 0x2c]
mov edx, 0x416758
call fcn.004052dc
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0040f340
mov eax, dword [ebp - 0x28]
pop edx
call fcn.0040583c
dec eax
je 0x416672
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x416712
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x416712
lea eax, [ebp - 4]
call fcn.0040fac0
cmp dword [ebp - 4], 0
jne 0x41668d
lea eax, [ebp - 4]
mov edx, 0x416770
call fcn.00405030
push 0x416784
push dword [ebp - 4]
push 0x4167c4
push 0x4167d4
push 0x416814
lea eax, [ebp - 8]
mov edx, 5
call fcn.00405480
push 0
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 8]
call fcn.00405068
push eax
call sub.advapi32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x4166d6
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
xor ebx, ebx
jmp 0x416712
mov dword [ebp - 0x18], 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x416705
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0xc], edx
call fcn.00403984
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416741
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00404fd4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404fd4
ret
Function at 0x416b08
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x41bdc0]
cmp dword [eax], 2
jne 0x416b70
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x416b2b
xor eax, eax
jmp 0x416b7f
lea eax, [esp + 8]
push eax
push 0x416b84
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x416b70
xor eax, eax
jmp 0x416b7f
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret

Function at 0x416bac
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x416c06
inc esi
xor edi, edi
cmp edi, 1
jne 0x416bd2
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x416be0
cmp edi, 1
jle 0x416be0
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004164b0
test eax, eax
jne 0x416c06
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x416c06
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x416c06
inc edi
dec esi
jne 0x416bc2
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x416c10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x416c34
mov eax, dword [ebp - 4]
jmp 0x416c37
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x416c3c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x416c89
xor ebx, ebx
jmp 0x416c7e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.0040845c
test eax, eax
jne 0x416c7d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x416d33
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x416c5f
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x416c95
je 0x416c9e
jmp 0x416ca7
call fcn.0040fbb0
mov esi, eax
jmp 0x416ca9
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x416ca9
xor esi, esi
test si, si
je 0x416d33
xor ebx, ebx
jmp 0x416ccf
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x416cce
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x416d33
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x416cb6
xor ebx, ebx
jmp 0x416d28
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x416d27
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x416d1c
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.00416c10
push eax
mov eax, esi
call fcn.00416c10
pop edx
cmp edx, eax
jne 0x416d27
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x416d33
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x416cde
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x417124
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4171fb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x417218
push ebx
push 0x417228
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405480
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403340
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405068
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4171a6
mov ax, 0x83
call fcn.00416d40
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004170f8
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4171af
call fcn.004170f8
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417202
lea eax, [ebp - 4]
call fcn.00404fcc
ret
Function at 0x417318
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4173e3
jmp 0x4173d7
cmp dword [esi + 0x10], 0x1000
jne 0x4173c3
test byte [esi + 0x15], 1
jne 0x4173c3
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x417374
cmp ebp, 2
je 0x417374
cmp ebp, 0x10
je 0x417374
cmp ebp, 0x20
jne 0x417390
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x417390
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4173a1
mov eax, dword [esi]
add eax, ebx
call fcn.00417310
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x417394
cmp byte [esp + 4], 0
je 0x4173c3
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4173e3
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x417349
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40aa6c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436ec0
mov eax, dword fs:[0]
push eax
mov eax, 0x5048
call fcn.00420e10
mov eax, dword [0x443620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3010]
mov ebx, 0x800
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x40ac51
cmp eax, ebx
jae 0x40ac51
push ebx
lea eax, [ebp - 0x4010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40ac51
cmp eax, ebx
jae 0x40ac51
lea eax, [ebp - 0x3010]
push eax
call fcn.0040df71
mov dword [ebp - 0x5054], eax
lea eax, [ebp - 0x4010]
push eax
call fcn.0040df71
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x40ac51
push edi
push dword [ebp - 0x5054]
call fcn.00413eb3
test eax, eax
je 0x40ac51
push edi
push esi
call fcn.0040df71
push eax
call fcn.00413eb3
test eax, eax
jne 0x40ac51
mov word [ebp - 0x1010], ax
mov edi, ebx
test ax, ax
jne 0x40abae
push 0x800
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.004123db
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x1010]
push eax
call fcn.0040df71
push eax
call fcn.004049f0
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.0040ba3b
test al, al
je 0x40ab93
xor eax, eax
mov word [ebp - 0x1010], ax
jmp 0x40ab9a
mov ax, word [ebp - 0x1010]
add edi, 0x7b
cmp edi, 0x2710
jl 0x40ab41
test ax, ax
je 0x40ac51
mov edi, 0x800
lea eax, [ebp - 0x2010]
push edi
push esi
push eax
call fcn.004123db
push edi
push dword [ebp - 0x5054]
lea eax, [ebp - 0x2010]
push eax
call fcn.0040dfe7
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40ac51
lea ecx, [ebp - 0x5050]
call fcn.0040ac6f
push esi
mov dword [ebp - 4], ebx
call fcn.0040ba3b
test al, al
jne 0x40ac14
push 0x12
push esi
lea ecx, [ebp - 0x5050]
call fcn.0040ad8e
mov bl, al
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test bl, bl
je 0x40ac42
lea ecx, [ebp - 0x5050]
call fcn.0040ad40
lea ecx, [ebp - 0x5050]
call fcn.0040ae8a
lea ecx, [ebp - 0x5050]
call fcn.0040acb3
mov al, 1
jmp 0x40ac53
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420983
leave
ret 4
Function at 0x40b020
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1058
call fcn.00420e10
mov eax, dword [0x443620]
xor eax, esp
mov dword [esp + 0x1054], eax
push ebx
mov ebx, dword [esp + 0x1064]
push ebp
mov ebp, dword [esp + 0x1064]
push edi
mov edi, ecx
mov dword [esp + 0xc], ebp
and dword [edi + 0x1034], 0
cmp byte [edi + 0x30], 0
jne 0x40b065
test bl, 4
jne 0x40b065
xor al, al
jmp 0x40b067
mov al, 1
push esi
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x40b080
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x40b08f
or ebx, 2
lea ecx, [esp + 0x1c]
call fcn.00407cdd
cmp byte [edi + 0x24], 0
je 0x40b0a4
or esi, 0x100
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40b10b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0x800
push eax
push dword [esp + 0x18]
call fcn.0040d787
test al, al
je 0x40b118
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40b113
mov dword [esp + 0x14], eax
jmp 0x40b113
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp ebp, 0xffffffff
jne 0x40b129
cmp dword [esp + 0x14], 2
jne 0x40b129
mov dword [edi + 0x1034], 1
cmp byte [edi + 0x24], 0
pop esi
je 0x40b14f
cmp ebp, 0xffffffff
je 0x40b14f
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
or dword [esp + 0x14], 0xffffffff
push 0
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x1c], al
mov dword [edi + 0x10], eax
setne bl
mov byte [edi + 0x15], al
je 0x40b17b
push 0x800
push dword [esp + 0x10]
lea ecx, [edi + 0x32]
mov dword [edi + 8], ebp
push ecx
call fcn.004123db
mov byte [edi + 0x25], 0
mov ecx, dword [esp + 0x1060]
mov al, bl
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00420983
add esp, 0x1058
ret 8
Function at 0x40b72a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
test esi, esi
jne 0x40b73f
mov al, 1
jmp 0x40b85a
cmp dword [ebp + 0x10], 1
lea ecx, [ebp + 8]
mov dword [esp + 0xc], ecx
jne 0x40b75b
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp + 8]
mov dword [ecx], eax
jmp 0x40b75f
mov dword [esp + 0xc], ecx
push ebx
push edi
and dword [esp + 0x10], 0
xor bl, bl
cmp dword [ebp + 0x10], 0
je 0x40b7b3
xor edi, edi
test esi, esi
je 0x40b7d4
mov eax, esi
sub eax, edi
cmp eax, 0x4000
jb 0x40b784
mov eax, 0x4000
push 0
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x28]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bl
jne 0x40b7d0
mov ecx, dword [esp + 0x14]
add edi, 0x4000
cmp edi, esi
jb 0x40b774
jmp 0x40b7d0
push 0
lea eax, [esp + 0x14]
push eax
push esi
push dword [esp + 0x28]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
test bl, bl
jne 0x40b852
cmp byte [ebp + 0x1e], 0
je 0x40b852
cmp dword [ebp + 0x10], 0
jne 0x40b852
push 0
lea edi, [ebp + 0x32]
mov ecx, 0x446054
push edi
call fcn.0040790e
test al, al
je 0x40b845
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x10], esi
jae 0x40b761
cmp dword [esp + 0x10], 0
jbe 0x40b761
mov edi, dword [ebp]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x43826c]
mov ecx, ebp
call esi
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x43826c]
mov ecx, ebp
call dword [edi + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
jmp 0x40b761
push edi
push 0
mov ecx, 0x446054
call fcn.00407c35
pop edi
mov al, bl
mov byte [ebp + 0xc], 1
pop ebx
pop esi
pop ebp
pop ecx
pop ecx
ret 8

Function at 0x40ba4d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00420e10
mov eax, dword [0x443620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ba9c
push 0x800
lea eax, [ebp - 0x1004]
push eax
push edi
call fcn.0040d787
test al, al
je 0x40ba9c
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00420983
leave
ret 4