joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53be46
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x58ec74]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x43993c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x43993c
call fcn.00434f70
mov esi, eax
jmp 0x439a2c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x43995f
call fcn.00434f70
jmp 0x439a1f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x43997d
call fcn.00434f70
jmp 0x439a1f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x43999e
mov esi, 0x8007000e
jmp 0x439a21
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00434da0
jmp 0x4399c8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4399df
mov esi, 0x8007000e
jmp 0x439a21
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4399ff
call fcn.00434f70
jmp 0x439a1f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004396f0
mov esi, eax
test edi, edi
je 0x439a2c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x439a50
lea ecx, [ebp - 0x418]
call fcn.00437440
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43b5b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x43b5c5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b5d0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x43b6c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x58ec74]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x20019
push str.AppID
mov edi, ecx
mov dword [ebp - 0x22c], 0
push SysReAllocStringLen
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
call fcn.004383d0
mov esi, eax
mov eax, dword [ebp - 0x22c]
test esi, esi
je 0x43b726
mov dword [edi + 0x250], esi
jmp 0x43b893
push ebx
push 0x20019
push str.BEBCB884_9C21_4117_B30B_CED03A72B50F
push eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
call fcn.004383d0
mov ebx, dword [ebp - 0x21c]
mov esi, eax
test esi, esi
jne 0x43b87b
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x230]
push eax
push 0
push str.LocalService
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43b7e0
mov eax, dword [ebp - 0x230]
cmp eax, 1
je 0x43b7b3
cmp eax, 2
je 0x43b7b3
mov eax, 0xd
jmp 0x43b7e0
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x43b7d5
test al, 1
jne 0x43b7ce
shr eax, 1
cmp word [ebp + eax*2 - 0x20e], 0
je 0x43b7de
mov eax, 0xd
jmp 0x43b7e0
xor eax, eax
mov word [ebp - 0x20c], ax
xor eax, eax
mov dword [edi + 0x260], 0
test eax, eax
jne 0x43b844
lea eax, [edi + 0x40]
mov dword [edi + 0x260], 1
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x21c], 0x43c3c0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x43b83c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x250], eax
mov esi, dword [edi + 0x250]
jmp 0x43b881
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, eax
test esi, esi
jns 0x43b86b
cmp esi, 0x80010106
jne 0x43b881
push str.Mscoree.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x43b86f
jmp 0x43b881
mov byte [edi + 0x3e], 1
push dword [ebp + 8]
mov ecx, edi
call fcn.0043b330
mov esi, eax
mov dword [edi + 0x250], esi
test ebx, ebx
je 0x43b88c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x22c]
pop ebx
test eax, eax
je 0x43b89e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret 4
Function at 0x43bd00
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0043ba70
test eax, eax
jne 0x43bd18
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push 0x20006
push str.AppID
push SysReAllocStringLen
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.004383d0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0xc]
test eax, eax
je 0x43bd61
push eax
call fcn.00434f90
add esp, 4
mov esi, eax
jmp 0x43bdc5
push 0x20006
push str.BEBCB884_9C21_4117_B30B_CED03A72B50F
push ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.004383d0
mov edi, dword [ebp - 0xc]
test eax, eax
je 0x43bd9b
push eax
call fcn.00434f90
add esp, 4
jmp 0x43bdae
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
call fcn.0043bde0
mov esi, eax
test edi, edi
je 0x43bdbf
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x43bdc5
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x43bdcc
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e800
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x43e87a
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], 0xc
push str.GlobalAccess_ISABUS.HTP.Method
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43e865
cmp eax, 5
jne 0x43e87a
push str.GlobalAccess_ISABUS.HTP.Method
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43e920
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5a7a94]
sub esp, 0x24
test eax, eax
jne 0x43e9db
push esi
push 8
call fcn.004f8f4d
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x43e9d0
push 1
lea eax, [ebp - 0x24]
mov dword [esi + 4], 0
push eax
mov dword [esi], vtable.ISABUSMutex.0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0xc
push str.GlobalAccess_ISABUS.HTP.Method
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43e9ae
cmp eax, 5
jne 0x43e9d2
push str.GlobalAccess_ISABUS.HTP.Method
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 4], eax
mov eax, esi
mov dword [0x5a7a94], esi
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [0x5a7a94], esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x447be0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c6ce
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58ec74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
lea esi, [edi + 8]
mov dword [edi], vtable.FanCtrlInfoProtobuf.0
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004036a0
mov dword [esi], eax
lea esi, [edi + 0x10]
mov byte [ebp - 4], 1
mov ecx, esi
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004036a0
mov dword [esi], eax
lea esi, [edi + 0x18]
mov byte [ebp - 4], 2
mov ecx, esi
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004036a0
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x28], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4516a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x58ec74]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x451741
cmp byte [esi + 0x3d], 0
je 0x451741
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4516f7
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 0x451709
sub eax, 1
je 0x45170d
sub eax, 2
je 0x451741
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x45172a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00521b4a
add esp, 0x10
cmp edi, eax
jne 0x4516f7
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret
Function at 0x452a10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d418
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x58ec74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004f8f4d
mov edi, eax
add esp, 4
test edi, edi
je 0x452aad
push 1
mov dword [ebp - 4], 0
call fcn.004f71a3
add esp, 4
mov dword [edi + 4], eax
jmp 0x452aaf
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.0044ad00
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov dword [ebp - 4], 3
test edi, edi
je 0x452b11
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x452b11
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x452b34
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x452b57
cmp byte [ebp + 0xc], 0
je 0x452b43
push esi
call fcn.004f75d3
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x452b63
mov esi, str.ios_base::badbit_set
jmp 0x452b73
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00452c50
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.0044bbf0
push 0x57fe60
lea eax, [ebp - 0x30]
push eax
call fcn.005106c1
int3
Function at 0x452ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x58ec74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x452f20
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x452f5c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x452f5c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x453041
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x452f84
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x452fb7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0051d1aa
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
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 0x453041
cmp eax, 1
jle 0x453014
cmp eax, 3
jne 0x453041
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0044a170
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x453031
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00521b4a
add esp, 0x10
cmp edi, eax
jne 0x453041
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x452f47
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret 4
Function at 0x453c70
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 0x453c94
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00453d60
pop edi
mov esp, ebp
pop ebp
ret 0xc
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 0x453cb5
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x453cb7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x453d3f
jg 0x453cca
test esi, esi
je 0x453d3f
test ecx, ecx
jl 0x453d0c
jg 0x453cd4
test eax, eax
je 0x453d0c
cmp ebx, ecx
jg 0x453ce6
jl 0x453cde
cmp esi, eax
jae 0x453ce6
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.00510730
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 0x453d12
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x453d3f
jg 0x453d1c
test esi, esi
je 0x453d3f
cmp dword [edi + 0x4c], 0
je 0x453d3f
mov ecx, edi
call fcn.00452220
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.0051d492
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
mov esp, ebp
pop ebp
ret 0xc
Function at 0x453e30
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 0x453e54
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00453f10
pop ebx
mov esp, ebp
pop ebp
ret 0xc
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 0x453e75
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x453e77
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x453ef4
jg 0x453e8a
test esi, esi
je 0x453ef4
test ecx, ecx
jl 0x453ece
jg 0x453e94
test eax, eax
je 0x453ece
cmp edi, ecx
jg 0x453ea6
jl 0x453e9e
cmp esi, eax
jae 0x453ea6
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.00510730
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 0x453ed1
mov edx, dword [ebp + 8]
test edi, edi
jl 0x453ef4
jg 0x453edb
test esi, esi
je 0x453ef4
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x453ef4
push eax
push esi
push 1
push edx
call fcn.00521b4a
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
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45fad0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53db2f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x58ec74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5a8078]
test eax, eax
jne 0x45fb8a
push 0x18
call fcn.004f8f4d
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x45fb80
push str.ROG_PUMP_MUTEX
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0
push 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
push 0
mov word [esi + 0x13], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
push esi
mov byte [esi + 0x10], 0
push 0
mov byte [esi + 0x11], 0
push 0x4603f0
mov byte [esi + 0x12], 1
call fcn.00521564
add esp, 0xc
nop dword [eax]
mov al, byte [esi + 0x12]
test al, al
jne 0x45fb70
mov ecx, esi
call fcn.0045f880
jmp 0x45fb82
xor esi, esi
mov dword [0x5a8078], esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x461870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
mov esi, ecx
push esi
push 0x461370
push 0
push 0
mov byte [esi + 8], 0
call fcn.005215f4
add esp, 0x18
mov dword [esi], eax
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x462810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
mov edi, ecx
push dword [ebp + 8]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x462870
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x462886
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.004625f0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46287e
xor eax, eax
test eax, eax
pop edi
sete al
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x4628e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
mov edi, ecx
push dword [ebp + 8]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x462940
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x462956
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.004625f0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46294e
xor eax, eax
test eax, eax
pop edi
sete al
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x462a10
Capabilities:
Check if file exists
Compare security identifiers
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x58ec74]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x462af0
test al, 0x10
je 0x462af0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], esi
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
push eax
push 1
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x462af0
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], esi
call edi
test eax, eax
je 0x462aa9
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x462ae7
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x18]
or esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret