joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040475c
push eax
call 0x405580
cmp eax, 0xffffffff
je 0x40d579
test al, 0x10
jne 0x40d57d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d6e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d754
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00404574
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x40d768
call fcn.004045e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d75b
lea eax, [ebp - 0x108]
call fcn.00404408
ret

Function at 0x40d76c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00404574
add esp, 0x104
pop ebx
ret

Function at 0x40d798
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d84b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x40d860
call fcn.004044a0
lea eax, [ebp - 8]
mov edx, 0x40d870
call fcn.00404598
push 0x104
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 8]
call fcn.0040475c
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea eax, [ebp - 4]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.00404574
mov eax, dword [ebp - 4]
call fcn.0040475c
push eax
call sub.kernel32.dll_lstrlenA_1
mov edx, eax
lea eax, [ebp - 4]
call fcn.004049e4
lea eax, [ebp - 4]
mov edx, 0x40d880
call fcn.00404598
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040445c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d852
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040442c
ret

Function at 0x40d884
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
mov eax, 0xe0
push 0
push 0
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
mov ebx, 4
call fcn.00402ff8
or eax, 0xffffffff
call fcn.00403020
mov dword [esp], eax
push 0
lea eax, [esp + 8]
push eax
push 4
lea eax, [esp + 0xc]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
dec ebx
jne 0x40d8b8
push esi
call sub.kernel32.dll_CloseHandle_1
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x412068
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41211a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
call fcn.00413b9c
test al, al
je 0x4120d4
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00404574
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x412130
call fcn.004045e4
jmp 0x4120fc
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00404574
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x412144
call fcn.004045e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412121
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.0040442c
ret

Function at 0x412150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x412212
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00404408
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x412220
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4121f2
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0x41224c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4121f2
lea eax, [ebp - 4]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.00404574
mov eax, dword [ebp - 4]
call fcn.0040475c
push eax
call sub.kernel32.dll_lstrlenA_1
mov edx, eax
lea eax, [ebp - 4]
call fcn.004049e4
lea eax, [ebp - 4]
mov edx, 0x412264
call fcn.00404598
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040445c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412219
lea eax, [ebp - 4]
call fcn.00404408
ret
Function at 0x4142dc
Capabilities:
Create service
Delete registry value
Delete service
Persist via windows service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x414420
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00414ac4
test al, al
je 0x41438a
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov esi, eax
test esi, esi
je 0x41440a
push 0
push 0
push 0
push 0
push 0
push 0x414430
push 1
push 2
push 0x20
push 0xf01ff
push 0x41443c
mov eax, dword [0x419a8c]
push eax
push esi
call sub.advapi32.dll_CreateServiceA
mov ebx, eax
test ebx, ebx
jne 0x414363
push 0xf01ff
mov eax, dword [0x419a8c]
push eax
push esi
call sub.advapi32.dll_OpenServiceA
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.advapi32.dll_QueryServiceStatus
cmp dword [ebp - 0x20], 4
jne 0x41437f
lea eax, [ebp - 0x24]
push eax
push 1
push ebx
call sub.advapi32.dll_ControlService
push ebx
call sub.advapi32.dll_DeleteService
jmp 0x41440a
lea eax, [ebp - 4]
mov edx, 0x414460
call fcn.004044a0
lea eax, [ebp - 4]
mov edx, 0x414478
call fcn.00404598
lea eax, [ebp - 4]
mov edx, 0x414494
call fcn.00404598
lea eax, [ebp - 4]
mov edx, 0x4144ac
call fcn.00404598
lea eax, [ebp - 0x424]
mov edx, dword [0x419a8c]
call fcn.004067c0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.0040475c
push eax
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x41440a
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414427
lea eax, [ebp - 4]
call fcn.00404408
ret
Function at 0x4173d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov byte [ebp - 1], cl
sub edx, 0
inc edx
mov dword [ebp - 8], edx
mov esi, dword [ebp - 8]
dec esi
test esi, esi
jl 0x417411
inc esi
xor ecx, ecx
movzx edx, byte [eax]
movzx ebx, byte [ebp - 1]
mov byte [ebp - 9], bl
xor dl, byte [ebp - 9]
mov ebx, dword [ebp + 8]
add ebx, ecx
mov edi, ebx
mov byte [edi], dl
inc ecx
inc eax
dec esi
jne 0x4173f6
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
mov byte [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401b88
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push 0x42436c
call fcn.00401cc4
pop ecx
push dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
call fcn.004011cd
xor ebx, ebx
lea ecx, [ebp + 0x10]
push ebx
mov esi, 0x42437c
push esi
call fcn.0040153d
cmp eax, 0xffffffff
jne 0x401bdb
push ebx
push esi
lea ecx, [ebp + 0x10]
call fcn.0040153d
cmp eax, 0xffffffff
jne 0x401bdb
push str._rN_fD
call fcn.00401cc4
pop ecx
jmp 0x401cb1
push str.A2BA348E_DAF7_431C_B509_73481789D946
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x401c13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401c13
push 0x424430
call fcn.00401cc4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401cb1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
lea ecx, [ebp - 0x40]
call fcn.00406145
lea ecx, [ebp - 0x40]
call fcn.004068f2
push 0x42444c
call fcn.00401cc4
pop ecx
jmp 0x401c45
push 0xc8
call edi
lea ecx, [ebp - 0x40]
call fcn.004066f7
test eax, eax
je 0x401c3e
lea ecx, [ebp - 0x40]
call fcn.004063a2
push 0x424458
call fcn.00401cc4
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00406364
push ebx
mov edi, 0x42437c
lea ecx, [ebp + 0x10]
push edi
call fcn.0040153d
cmp eax, 0xffffffff
je 0x401c8a
lea ecx, [ebp - 0x40]
call fcn.004066fb
jmp 0x401ca1
push ebx
push edi
lea ecx, [ebp + 0x10]
call fcn.0040153d
cmp eax, 0xffffffff
je 0x401ca1
lea ecx, [ebp - 0x40]
call fcn.004066fb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.0040616c
pop edi
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401946
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x402157
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4350b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [edi + 4]
mov dword [edi], vtable.CSmartLogger.0
call fcn.00402140
xor esi, esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], esi
mov dword [edi + 0x28], esi
call fcn.004016d6
push eax
lea ecx, [edi + 0x2c]
call fcn.004011a4
push 0x424488
push esi
mov dword [edi + 0x30], 1
call fcn.0040f8f0
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040a0a0
add esp, 0x14
lea eax, [ebp - 0x20c]
push esi
push 0x1a
push eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call esi
xor ecx, ecx
lea eax, [ebp - 0x20c]
push ecx
push 0x1c
push eax
push ecx
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push 0x42448c
push eax
call esi
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040a0a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.Logupdate.log.on
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [0x436144], eax
lea eax, [ebp - 0x20c]
push str.Logupdate.log
push eax
call esi
lea edx, [ebp - 0x20c]
xor esi, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x40224e
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
lea ecx, [edi + 0x2c]
push edx
push eax
call fcn.00401989
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040815d
leave
ret
Function at 0x402752
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x4350b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xf4], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0xec], edi
lea ecx, [edi + 4]
mov dword [ebp - 0xf0], ecx
test ecx, ecx
je 0x40278c
mov eax, dword [ecx]
push ecx
call dword [eax]
mov esi, dword [edi + 0x2c]
xor ebx, ebx
push 2
mov dword [ebp - 0xe8], ebx
pop edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, edx
cmp ax, bx
jne 0x40279d
sub esi, ecx
xor ecx, ecx
sar esi, 1
inc esi
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004082b1
add esi, esi
mov dword [ebp - 0xe4], eax
push esi
push ebx
push eax
call fcn.0040a0a0
add esp, 0x10
push dword [edi + 0x2c]
push esi
mov esi, dword [ebp - 0xe4]
push esi
call fcn.004010a0
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4027fd
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402916
xor eax, eax
lea edi, [ebp - 0xdc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0xc8
lea eax, [ebp - 0xcc]
push ebx
push eax
call fcn.0040a0a0
movzx eax, word [ebp - 0xd0]
push eax
movzx eax, word [ebp - 0xd2]
push eax
movzx eax, word [ebp - 0xd4]
push eax
movzx eax, word [ebp - 0xd6]
push eax
movzx eax, word [ebp - 0xda]
push eax
movzx eax, word [ebp - 0xdc]
push eax
push 0x4244e8
lea eax, [ebp - 0xcc]
push 0x400
push eax
call fcn.00402948
mov edi, dword [ebp - 0xec]
lea eax, [ebp - 0xe0]
push 0x424528
mov dword [ebp - 0xe0], ebx
push dword [edi + 0x2c]
push eax
call fcn.0040f524
mov ecx, dword [ebp - 0xe0]
add esp, 0x3c
test ecx, ecx
je 0x402916
mov dword [ebp - 0xe8], 1
cmp dword [edi + 0x30], ebx
je 0x4028d7
lea eax, [ebp - 0xcc]
push eax
push str._r_n_Start_Log:_s__n
push ecx
call fcn.00402b2d
mov ecx, dword [ebp - 0xe0]
add esp, 0xc
mov dword [edi + 0x30], ebx
mov esi, dword [edi + 0x24]
sub esi, dword [edi + 0x20]
sar esi, 2
test esi, esi
jle 0x4028fd
mov eax, dword [edi + 0x20]
push dword [eax + ebx*4]
push ecx
call fcn.00402b2d
pop ecx
inc ebx
pop ecx
mov ecx, dword [ebp - 0xe0]
cmp ebx, esi
jl 0x4028e4
push ecx
call fcn.0040f7fa
push dword [ebp - 0xe0]
call fcn.0040f5ec
mov esi, dword [ebp - 0xe4]
pop ecx
pop ecx
test esi, esi
je 0x402921
push esi
call fcn.004082ba
pop ecx
mov ecx, edi
call fcn.00402621
lea ecx, [ebp - 0xf4]
call fcn.0040227e
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe8]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040815d
leave
ret
Function at 0x403980
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x116c
call fcn.004082c0
mov eax, dword [0x4350b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x403b73
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebx
test eax, eax
je 0x403b72
test esi, esi
je 0x403b72
push esi
call ebx
test eax, eax
je 0x4039cf
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1000
xor ebx, ebx
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.0040a0a0
add esp, 0xc
lea ecx, [ebp - 0x116c]
push 1
push 0x40
push 1
push edi
call fcn.00402efc
push 1
push 0x40
push 2
push esi
lea ecx, [ebp - 0x10b4]
call fcn.00402fd6
jmp 0x403b2d
mov eax, dword [ebp - 0x10b4]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x10a8], ebx
jne 0x403b46
test byte [ecx], 1
jne 0x403b46
push ebx
push 0x1000
lea eax, [ebp - 0x1004]
push eax
lea ecx, [ebp - 0x116c]
call fcn.00404635
lea eax, [ebp - 0x1004]
push str.check
push eax
call fcn.0040a2a0
pop ecx
pop ecx
test eax, eax
je 0x403af4
lea eax, [ebp - 0x1004]
push str._trate_
push eax
call fcn.0040a2a0
pop ecx
pop ecx
test eax, eax
jne 0x403a8a
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a81
jmp 0x403b04
push 0x425a4c
push eax
call fcn.0040a2a0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x403b2d
lea ecx, [esi + 1]
push 0x425a4c
push ecx
call fcn.0040a2a0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x403b2d
lea eax, [ebp - 0x1004]
sub esi, eax
lea ecx, [ebp - 0x10b4]
push ebx
inc esi
push esi
push eax
call fcn.00404f64
push ebx
push 5
push str.10000
lea ecx, [ebp - 0x10b4]
call fcn.00404f64
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403ae6
push ebx
sub ecx, edx
push ecx
push edi
jmp 0x403b0f
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403afd
push ebx
sub ecx, edx
lea eax, [ebp - 0x1004]
push ecx
push eax
lea ecx, [ebp - 0x10b4]
call fcn.00404f64
push ebx
push 2
push 0x425a48
lea ecx, [ebp - 0x10b4]
call fcn.00404f64
mov eax, dword [ebp - 0x116c]
lea ecx, [ebp - 0x1160]
mov eax, dword [eax + 4]
add ecx, eax
cmp dword [ecx], ebx
je 0x403a0f
lea ecx, [ebp - 0x116c]
call fcn.00404388
lea ecx, [ebp - 0x10b4]
call fcn.004043ba
lea ecx, [ebp - 0x10b4]
call fcn.004036fd
lea ecx, [ebp - 0x116c]
call fcn.004036b7
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040815d
leave
ret
Function at 0x403c29
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4350b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x403cab
cmp byte [esi + 0x3d], 0
je 0x403cab
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x403c7d
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x403c81
sub eax, 1
je 0x403c85
dec eax
sub eax, 1
je 0x403cab
xor al, al
jmp 0x403cad
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403ca2
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0041070a
add esp, 0x10
cmp edi, eax
jne 0x403c7d
cmp byte [esi + 0x3d], 0
sete al
jmp 0x403cad
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040815d
leave
ret

Function at 0x4048f6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4350b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x40491c
xor eax, eax
jmp 0x4049de
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x404945
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x404945
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x4049de
cmp dword [esi + 0x4c], 0
je 0x4049dc
mov ecx, esi
call fcn.0040411b
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x404971
push dword [esi + 0x4c]
push eax
call fcn.00402bac
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x4049dc
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4049dc
cmp eax, 1
jle 0x4049ab
cmp eax, 3
jne 0x4049dc
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x404963
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x4049ce
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.0041070a
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x4049dc
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x4049de
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040815d
leave
ret 4
Function at 0x405032
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x405054
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405110
jmp 0x40510b
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x405075
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x405077
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x4050ff
jg 0x40508a
test esi, esi
je 0x4050ff
test ecx, ecx
jl 0x4050cc
jg 0x405094
test eax, eax
je 0x4050cc
cmp ebx, ecx
jg 0x4050a6
jl 0x40509e
cmp esi, eax
jae 0x4050a6
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004095a0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x4050d2
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x4050ff
jg 0x4050dc
test esi, esi
je 0x4050ff
cmp dword [edi + 0x4c], 0
je 0x4050ff
mov ecx, edi
call fcn.0040411b
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.00410076
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
leave
ret 0xc

Function at 0x4051df
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x405201
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004052b3
jmp 0x4052ae
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x405222
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x405224
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x4052a2
jg 0x405237
test esi, esi
je 0x4052a2
test ecx, ecx
jl 0x40527b
jg 0x405241
test eax, eax
je 0x40527b
cmp edi, ecx
jg 0x405253
jl 0x40524b
cmp esi, eax
jae 0x405253
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004095a0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x40527e
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4052a2
jg 0x405288
test esi, esi
je 0x4052a2
cmp dword [ebx + 0x4c], 0
je 0x4052a2
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.0041070a
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4053e3
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4350b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405448
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push 0x425ac4
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040815d
leave
ret 4