joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f760
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], 0
mov ebx, edx
push edi
mov eax, dword [esi]
mov dword [esi + 4], eax
mov eax, dword [ebx]
test eax, eax
je 0x40f7a2
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x1c]
push 0
push ecx
push 4
lea ecx, [esp + 0x20]
push ecx
push eax
call ebp
test eax, eax
jne 0x40f7ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp dword [esp + 0x1c], 0
je 0x40f7a2
mov eax, dword [ebx]
mov dword [esp + 0x18], 0
test eax, eax
je 0x40f7a2
push 0
lea ecx, [esp + 0x20]
push ecx
push 4
lea ecx, [esp + 0x24]
push ecx
push eax
call ebp
test eax, eax
je 0x40f799
cmp dword [esp + 0x1c], 0
je 0x40f7a2
push dword [esp + 0x14]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
call fcn.0041a8fe
xor edi, edi
add esp, 4
mov ebp, eax
cmp dword [esp + 0x18], edi
jbe 0x40f881
mov ecx, dword [ebx]
test ecx, ecx
je 0x40f7a2
push 0
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f799
cmp dword [esp + 0x1c], 0
je 0x40f7a2
mov eax, dword [esp + 0x14]
cmp eax, 0x10
ja 0x40f87a
push eax
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.0055e7e0
mov eax, dword [esi + 4]
add esp, 0xc
cmp dword [esi + 8], eax
je 0x40f86d
movups xmm0, xmmword [esp + 0x20]
movups xmmword [eax], xmm0
add dword [esi + 4], 0x10
jmp 0x40f87a
lea ecx, [esp + 0x20]
push ecx
push eax
mov ecx, esi
call fcn.0040d160
inc edi
cmp edi, dword [esp + 0x18]
jb 0x40f813
cmp dword [esp + 0x14], 0x10
jne 0x40f7a2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret
Function at 0x40f8a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x61de38]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
mov ebx, edx
push edi
mov eax, dword [esi]
mov dword [esi + 4], eax
mov eax, dword [ebx]
test eax, eax
je 0x40f8ed
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x14]
push 0
push ecx
push 4
lea ecx, [esp + 0x1c]
push ecx
push eax
call ebp
test eax, eax
jne 0x40f902
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0055c6fa
add esp, 0x1c
ret
cmp dword [esp + 0x14], 0
je 0x40f8ed
mov eax, dword [ebx]
mov dword [esp + 0x18], 0
test eax, eax
je 0x40f8ed
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea ecx, [esp + 0x24]
push ecx
push eax
call ebp
test eax, eax
je 0x40f8e4
cmp dword [esp + 0x14], 0
je 0x40f8ed
push dword [esp + 0x10]
call fcn.0041a8fe
xor edi, edi
add esp, 4
mov ebp, eax
cmp dword [esp + 0x18], edi
jbe 0x40f9c7
nop dword [eax]
mov ecx, dword [ebx]
test ecx, ecx
je 0x40f8ed
push 0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f8e4
cmp dword [esp + 0x14], 0
je 0x40f8ed
mov eax, dword [esp + 0x10]
cmp eax, 0xc
ja 0x40f9c0
push eax
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.0055e7e0
mov ecx, dword [esi + 4]
add esp, 0xc
cmp dword [esi + 8], ecx
je 0x40f9b3
movq xmm0, qword [esp + 0x1c]
mov eax, dword [esp + 0x24]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
add dword [esi + 4], 0xc
jmp 0x40f9c0
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.00409be0
inc edi
cmp edi, dword [esp + 0x18]
jb 0x40f950
cmp dword [esp + 0x10], 0xc
jne 0x40f8ed
mov ecx, dword [esp + 0x28]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055c6fa
add esp, 0x1c
ret
Function at 0x40f9f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x61de38]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
mov ebx, edx
push edi
mov eax, dword [esi]
mov dword [esi + 4], eax
mov eax, dword [ebx]
test eax, eax
je 0x40fa3d
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x14]
push 0
push ecx
push 4
lea ecx, [esp + 0x1c]
push ecx
push eax
call ebp
test eax, eax
jne 0x40fa52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0055c6fa
add esp, 0x3c
ret
cmp dword [esp + 0x14], 0
je 0x40fa3d
mov eax, dword [ebx]
mov dword [esp + 0x18], 0
test eax, eax
je 0x40fa3d
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea ecx, [esp + 0x24]
push ecx
push eax
call ebp
test eax, eax
je 0x40fa34
cmp dword [esp + 0x14], 0
je 0x40fa3d
push dword [esp + 0x10]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov byte [esp + 0x28], 0
call fcn.0041a8fe
xor edi, edi
add esp, 4
mov ebp, eax
cmp dword [esp + 0x18], edi
jbe 0x40fb3f
mov ecx, dword [ebx]
test ecx, ecx
je 0x40fa3d
push 0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40fa34
cmp dword [esp + 0x14], 0
je 0x40fa3d
mov eax, dword [esp + 0x10]
cmp eax, 0x2c
ja 0x40fb34
push eax
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.0055e7e0
mov ecx, dword [esi + 4]
add esp, 0xc
cmp dword [esi + 8], ecx
je 0x40fb27
movups xmm0, xmmword [esp + 0x1c]
mov eax, dword [esp + 0x44]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [esp + 0x2c]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [esp + 0x3c]
movq qword [ecx + 0x20], xmm0
mov dword [ecx + 0x28], eax
add dword [esi + 4], 0x2c
jmp 0x40fb34
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0040a090
inc edi
cmp edi, dword [esp + 0x18]
jb 0x40fab2
cmp dword [esp + 0x10], 0x2c
jne 0x40fa3d
mov ecx, dword [esp + 0x48]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055c6fa
add esp, 0x3c
ret

Function at 0x40fb70
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x40fb9e
push 0
lea ecx, [esp + 8]
push ecx
push 4
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40fba7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
xor eax, eax
pop esi
add esp, 8
ret 4
cmp dword [esp + 4], 0
je 0x40fb9e
mov eax, dword [esi]
test eax, eax
je 0x40fb9e
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x10]
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40fb95
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
Function at 0x40fca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x61de38]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, ecx
mov dword [esp + 0x14], edx
push esi
push edi
mov eax, dword [ebx]
mov edi, dword [eax]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [eax + 4], eax
mov dword [ebx + 4], 0
cmp edi, dword [ebx]
je 0x40fce6
mov esi, dword [edi]
push 0x20
push edi
call fcn.0055c9a5
add esp, 8
mov edi, esi
cmp esi, dword [ebx]
jne 0x40fcd3
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
mov eax, dword [edi]
test eax, eax
je 0x40fd1c
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x14]
push 0
push ecx
push 4
lea ecx, [esp + 0x1c]
push ecx
push eax
call esi
test eax, eax
jne 0x40fd30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x14], 0
je 0x40fd1c
mov eax, dword [edi]
mov dword [esp + 0x18], 0
test eax, eax
je 0x40fd1c
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea ecx, [esp + 0x24]
push ecx
push eax
call esi
test eax, eax
je 0x40fd13
cmp dword [esp + 0x14], 0
je 0x40fd1c
push dword [esp + 0x10]
call fcn.0041a8fe
mov ecx, dword [esp + 0x14]
xor esi, esi
add esp, 4
mov edx, eax
mov dword [esp + 0x14], edx
cmp dword [esp + 0x18], esi
jbe 0x40fe1a
mov eax, dword [edi]
test eax, eax
je 0x40fd1c
push 0
lea edi, [esp + 0x24]
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x1c]
test eax, eax
je 0x40fd13
cmp dword [esp + 0x20], 0
je 0x40fd1c
mov ecx, dword [esp + 0x10]
cmp ecx, 0x18
ja 0x40fe0a
push ecx
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
call fcn.0055e7e0
mov eax, dword [ebx]
lea edx, [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x24], eax
mov ecx, dword [eax + 4]
push edx
push ecx
push eax
mov dword [esp + 0x34], ecx
call fcn.0040fe90
mov edx, dword [ebx + 4]
mov ecx, 0x7fffffe
sub ecx, edx
cmp ecx, 1
jb 0x40fe38
lea ecx, [edx + 1]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, dword [esp + 0x18]
jae 0x40fe1a
mov edx, dword [esp + 0x14]
jmp 0x40fd83
cmp ecx, 0x18
jne 0x40fd1c
pop edi
lea eax, [ecx - 0x17]
mov ecx, dword [esp + 0x40]
pop esi
pop ebx
xor ecx, esp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.0055dbbe
int3
Function at 0x4105b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, edx
mov dword [esp + 4], 0
push ebp
push esi
push edi
mov eax, dword [ebx]
mov esi, ecx
test eax, eax
je 0x4105ed
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x14]
push 0
push ecx
push 4
lea ecx, [esp + 0x1c]
push ecx
push eax
call ebp
test eax, eax
jne 0x4105f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
cmp dword [esp + 0x14], 0
je 0x4105ed
xor edi, edi
cmp dword [esp + 0x10], edi
jbe 0x41065b
mov eax, dword [ebx]
test eax, eax
je 0x4105ed
push 0
lea ecx, [esp + 0x18]
push ecx
push 0xc
lea ecx, [esp + 0x24]
push ecx
push eax
call ebp
test eax, eax
je 0x4105e4
cmp dword [esp + 0x14], 0
je 0x4105ed
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x410647
movq xmm0, qword [esp + 0x18]
movq qword [ecx], xmm0
mov eax, dword [esp + 0x20]
mov dword [ecx + 8], eax
add dword [esi + 4], 0xc
jmp 0x410654
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.004106f0
inc edi
cmp edi, dword [esp + 0x10]
jb 0x410606
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret

Function at 0x410a40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x61de38]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x804]
call fcn.00402ac0
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
Function at 0x410b30
Capabilities:
Create service
Delete service
Extract resource via kernel32 functions
Get common file path
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x61de38]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x410ca3
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x410ca3
mov edx, esi
mov ecx, eax
call fcn.00410cc0
test al, al
je 0x410ca3
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._sMSTX
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x410ca3
push ebx
push 0x10000
push str.mstcx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
test ebx, ebx
je 0x410bf4
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebx
call edi
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 1
push 3
push 1
push 0xf01ff
push str.mstcx
push str.mstcx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
je 0x410c3c
push 0xf01ff
push str.mstcx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x410c52
push esi
call edi
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x410c87
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x410c87
push esi
call edi
push ebx
call edi
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
push esi
call edi
push ebx
call edi
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
Function at 0x410cc0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x61de38]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov esi, edx
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._sMSTX
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0
push 2
push 0
push 0
push 0x1f01ff
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x410d3e
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x410d5b
push 0
lea eax, [ebp - 0x210]
push eax
push 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
sub esi, 1
jne 0x410d42
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
Function at 0x4112d0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f0
mov eax, dword [0x61de38]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.SOFTWAREMicrosoftWindowsCurrentVersionRun]
mov eax, dword [0x5fc12c]
push esi
movups xmmword [ebp - 0x3ec], xmm0
mov dword [ebp - 0x3c4], eax
mov esi, ecx
movups xmm0, xmmword [0x5fc114]
mov ax, word [0x5fc130]
push 0x3ba
mov word [ebp - 0x3c0], ax
lea eax, [ebp - 0x3be]
movups xmmword [ebp - 0x3dc], xmm0
push 0
movq xmm0, qword [0x5fc124]
push eax
mov dword [ebp - 0x3f0], 0
movq qword [ebp - 0x3cc], xmm0
call fcn.0055ed60
add esp, 0xc
lea eax, [ebp - 0x3f0]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x3ec]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4113ab
lea eax, [ebp - 0x3f0]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x3ec]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4113ab
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
Function at 0x4129c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov esi, ecx
call fcn.0040fb70
test eax, eax
je 0x412a10
mov eax, dword [ebp - 8]
cmp eax, 2
jb 0x412ab2
mov eax, dword [esi]
test eax, eax
je 0x412a10
push 0
lea ecx, [ebp - 0xc]
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412a1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0xc], 0
je 0x412a10
mov ax, word [ebp - 4]
cmp al, 0xff
jne 0x412a98
cmp ah, 0xfe
jne 0x412a98
mov eax, dword [ebp - 8]
add eax, 0xfffffffe
mov dword [ebp - 8], eax
je 0x412a8b
shr eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a8fe
mov edi, eax
add esp, 4
test edi, edi
je 0x412a10
mov ecx, dword [ebp - 8]
xor eax, eax
shr ecx, 1
mov word [edi + ecx*2], ax
mov ecx, esi
push dword [ebp - 8]
push edi
call fcn.00412940
test eax, eax
je 0x412a10
push edi
push 0x5fc178
push dword [ebp + 8]
call fcn.004115b0
push edi
call fcn.0041a8f9
add esp, 0x10
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
push 1
push 0
push 0xfffffffffffffffe
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x412a07
mov eax, dword [ebp - 8]
test eax, eax
je 0x412a8b
mov edi, dword [ebp + 8]
mov ecx, edi
push eax
call fcn.004114a0
test eax, eax
je 0x412a10
push dword [ebp - 8]
mov ecx, esi
push dword [edi]
call fcn.00412940
test eax, eax
je 0x412a10
mov ecx, dword [edi + 4]
cmp dword [ebp - 8], ecx
mov eax, dword [edi]
cmovbe ecx, dword [ebp - 8]
mov dword [edi + 8], ecx
pop edi
pop esi
mov byte [ecx + eax], 0
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x412b50
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x61de38]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push esi
push edi
lea edx, [esp + 0x258]
mov esi, ecx
call fcn.00402c20
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412ba5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x10], 0x10
jne 0x412bf8
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x158]
push str._s_s
push eax
call ebx
add esp, 0x10
lea eax, [esp + 0x150]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x412bb1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x364]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
Function at 0x412cb0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov eax, dword [0x61de38]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
push str.r2_test.exe
lea eax, [esp + 0x194]
push str._s_tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x50]
push eax
push str.Launcher
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x412d22
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
push 0
push 0
push 4
push 0
push 1
push SysReAllocStringLen
push str.Launcher
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412d4d
xor esi, esi
call edi
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x412d6f
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jmp 0x412d7f
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x412d8c
push esi
call ebx
push 0
push 0
push 4
push 0
push 1
push SysReAllocStringLen
push str.r2_test.exe
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412db1
xor esi, esi
call edi
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x412dcb
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
jmp 0x412dd3
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
test esi, esi
je 0x412dde
push esi
call ebx
xor ecx, ecx
cmp dword [esp + 0x14], edi
ja 0x412df6
jne 0x412df2
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0xc]
ja 0x412df6
xor esi, esi
jmp 0x412e1e
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [esp + 0x190]
push eax
push str.r2_test.exe
call esi
push str.r2_test.exe
push str.Launcher
call esi
mov esi, 1
xor ecx, ecx
test ecx, ecx
je 0x412e25
push ecx
call ebx
mov ecx, dword [esp + 0x29c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
Function at 0x413b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, ebx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0040eee0
test eax, eax
je 0x413c48
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [eax]
cmp esi, eax
je 0x413b8a
mov eax, dword [esi + 0x10]
mov ecx, ebx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0040eee0
test eax, eax
je 0x413c48
mov eax, dword [ebp + 8]
test eax, eax
je 0x413b81
mov ecx, dword [ebx]
test ecx, ecx
je 0x413c48
push 0
lea edx, [ebp - 0xc]
push edx
push eax
push dword [esi + 8]
push ecx
call edi
test eax, eax
je 0x413c3f
cmp dword [ebp - 0xc], 0
je 0x413c48
mov eax, dword [ebp - 4]
mov esi, dword [esi]
cmp esi, dword [eax]
jne 0x413b38
mov esi, dword [ebp - 4]
mov ecx, ebx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040eee0
test eax, eax
je 0x413c48
mov eax, dword [esi + 0xc]
mov edi, dword [eax]
cmp edi, eax
je 0x413c31
mov ecx, dword [edi + 0x10]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0xc]
imul ecx
mov ecx, ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040eee0
test eax, eax
je 0x413c48
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
je 0x413c27
mov eax, dword [esi + 8]
mov ecx, ebx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0040eee0
test eax, eax
je 0x413c48
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x413c1f
mov eax, dword [ebx]
test eax, eax
je 0x413c48
push 0
lea edx, [ebp - 8]
push edx
push ecx
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413c3f
cmp dword [ebp - 8], 0
je 0x413c48
add esi, 0xc
cmp esi, dword [edi + 0x10]
jne 0x413be3
mov esi, dword [ebp - 4]
mov edi, dword [edi]
cmp edi, dword [esi + 0xc]
jne 0x413bb3
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4