joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438ed0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x58f1a4]
mov edx, dword [0x58f1a8]
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, 1
push edi
mov edi, ecx
cmp eax, edx
jae 0x438f5e
test esi, esi
js 0x4390a5
mov ebx, dword [eax]
test ebx, ebx
je 0x438f54
mov ecx, dword [ebx + 8]
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x438f12
xor esi, esi
jmp 0x438f54
lea eax, [ebp - 4]
push eax
push 0x54ec90
push dword [ebx + 0xc]
call ecx
mov esi, eax
test esi, esi
js 0x438f3e
mov eax, dword [ebx + 0x10]
add eax, 4
push eax
push 5
push 4
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
mov esi, eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x438f4b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [0x58f1a8]
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
cmp eax, edx
jb 0x438ef2
test esi, esi
js 0x4390a5
jne 0x4390a1
cmp byte [edi + 0x3c], 0
je 0x439040
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x439029
lea eax, [ebp - 8]
push eax
push 0
push edi
push 0x438170
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x438fbb
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x30], ebx
test ebx, ebx
je 0x439029
cmp dword [edi + 0x260], 0
je 0x438ffe
mov edx, 4
lea ecx, [edi + 0x248]
mov eax, 2
lock cmpxchg dword [ecx], edx
cmp eax, 2
jne 0x438ffe
push str.Service_started_resumed
push edi
call fcn.00437d30
add esp, 8
lea eax, [edi + 0x244]
push eax
push dword [edi + 0x240]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x439020
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x34]
add ecx, ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43908b
mov ecx, edi
mov esi, 0x80004005
call fcn.0043b590
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x260], 0
je 0x439083
mov edx, 4
lea ecx, [edi + 0x248]
mov eax, 2
lock cmpxchg dword [ecx], edx
cmp eax, 2
jne 0x439083
push str.Service_started_resumed
push edi
call fcn.00437d30
add esp, 8
lea eax, [edi + 0x244]
push eax
push dword [edi + 0x240]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x4390a5
mov ecx, edi
call fcn.0043b590
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [edi + 0x3c], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x439b40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d066
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x58fc74]
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 0x439bec
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x439bec
call fcn.00435180
mov esi, eax
jmp 0x439cdc
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x439c0f
call fcn.00435180
jmp 0x439ccf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x439c2d
call fcn.00435180
jmp 0x439ccf
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 0x439c4e
mov esi, 0x8007000e
jmp 0x439cd1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00434fb0
jmp 0x439c78
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x439c8f
mov esi, 0x8007000e
jmp 0x439cd1
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 0x439caf
call fcn.00435180
jmp 0x439ccf
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.004399a0
mov esi, eax
test edi, edi
je 0x439cdc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x439d00
lea ecx, [ebp - 0x418]
call fcn.00437650
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.004fa15c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43b860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x43b875
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 0x43b880
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 0x43b970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x58fc74]
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.004386d0
mov esi, eax
mov eax, dword [ebp - 0x22c]
test esi, esi
je 0x43b9d6
mov dword [edi + 0x250], esi
jmp 0x43bb43
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.004386d0
mov ebx, dword [ebp - 0x21c]
mov esi, eax
test esi, esi
jne 0x43bb2b
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 0x43ba90
mov eax, dword [ebp - 0x230]
cmp eax, 1
je 0x43ba63
cmp eax, 2
je 0x43ba63
mov eax, 0xd
jmp 0x43ba90
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x43ba85
test al, 1
jne 0x43ba7e
shr eax, 1
cmp word [ebp + eax*2 - 0x20e], 0
je 0x43ba8e
mov eax, 0xd
jmp 0x43ba90
xor eax, eax
mov word [ebp - 0x20c], ax
xor eax, eax
mov dword [edi + 0x260], 0
test eax, eax
jne 0x43baf4
lea eax, [edi + 0x40]
mov dword [edi + 0x260], 1
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x21c], 0x43c670
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x43baec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x250], eax
mov esi, dword [edi + 0x250]
jmp 0x43bb31
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, eax
test esi, esi
jns 0x43bb1b
cmp esi, 0x80010106
jne 0x43bb31
push str.Mscoree.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x43bb1f
jmp 0x43bb31
mov byte [edi + 0x3e], 1
push dword [ebp + 8]
mov ecx, edi
call fcn.0043b5e0
mov esi, eax
mov dword [edi + 0x250], esi
test ebx, ebx
je 0x43bb3c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x22c]
pop ebx
test eax, eax
je 0x43bb4e
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.004fa15c
mov esp, ebp
pop ebp
ret 4
Function at 0x43bfb0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0043bd20
test eax, eax
jne 0x43bfc8
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.004386d0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0xc]
test eax, eax
je 0x43c011
push eax
call fcn.004351a0
add esp, 4
mov esi, eax
jmp 0x43c075
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.004386d0
mov edi, dword [ebp - 0xc]
test eax, eax
je 0x43c04b
push eax
call fcn.004351a0
add esp, 4
jmp 0x43c05e
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
call fcn.0043c090
mov esi, eax
test edi, edi
je 0x43c06f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x43c075
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x43c07c
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43eab0
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 0x43eb2a
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 0x43eb15
cmp eax, 5
jne 0x43eb2a
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 0x43ebd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5a8abc]
sub esp, 0x24
test eax, eax
jne 0x43ec8b
push esi
push 8
call fcn.004fa16d
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x43ec80
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 0x43ec5e
cmp eax, 5
jne 0x43ec82
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 [0x5a8abc], esi
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [0x5a8abc], esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x448330
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d8ee
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58fc74]
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 0x451df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x58fc74]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x451e91
cmp byte [esi + 0x3d], 0
je 0x451e91
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x451e47
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 0x451e59
sub eax, 1
je 0x451e5d
sub eax, 2
je 0x451e91
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fa15c
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x451e7a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00522d6a
add esp, 0x10
cmp edi, eax
jne 0x451e47
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fa15c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004fa15c
mov esp, ebp
pop ebp
ret
Function at 0x453160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e638
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x58fc74]
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.004fa16d
mov edi, eax
add esp, 4
test edi, edi
je 0x4531fd
push 1
mov dword [ebp - 4], 0
call fcn.004f83c3
add esp, 4
mov dword [edi + 4], eax
jmp 0x4531ff
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.0044b450
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 0x453261
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x453261
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 0x453284
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 0x4532a7
cmp byte [ebp + 0xc], 0
je 0x453293
push esi
call fcn.004f87f3
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 0x4532b3
mov esi, str.ios_base::badbit_set
jmp 0x4532c3
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.004533a0
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.0044c340
push 0x581088
lea eax, [ebp - 0x30]
push eax
call fcn.005118e1
int3
Function at 0x453640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x58fc74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x453670
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fa15c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4536ac
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4536ac
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.004fa15c
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x453791
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4536d4
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 0x453707
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0051e3ca
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.004fa15c
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 0x453791
cmp eax, 1
jle 0x453764
cmp eax, 3
jne 0x453791
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0044a8c0
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.004fa15c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x453781
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00522d6a
add esp, 0x10
cmp edi, eax
jne 0x453791
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x453697
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fa15c
mov esp, ebp
pop ebp
ret 4
Function at 0x4543c0
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 0x4543e4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004544b0
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 0x454405
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x454407
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x45448f
jg 0x45441a
test esi, esi
je 0x45448f
test ecx, ecx
jl 0x45445c
jg 0x454424
test eax, eax
je 0x45445c
cmp ebx, ecx
jg 0x454436
jl 0x45442e
cmp esi, eax
jae 0x454436
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.00511950
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 0x454462
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x45448f
jg 0x45446c
test esi, esi
je 0x45448f
cmp dword [edi + 0x4c], 0
je 0x45448f
mov ecx, edi
call fcn.00452970
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.0051e6b2
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 0x454580
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 0x4545a4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00454660
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 0x4545c5
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4545c7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x454644
jg 0x4545da
test esi, esi
je 0x454644
test ecx, ecx
jl 0x45461e
jg 0x4545e4
test eax, eax
je 0x45461e
cmp edi, ecx
jg 0x4545f6
jl 0x4545ee
cmp esi, eax
jae 0x4545f6
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.00511950
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 0x454621
mov edx, dword [ebp + 8]
test edi, edi
jl 0x454644
jg 0x45462b
test esi, esi
je 0x454644
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x454644
push eax
push esi
push 1
push edx
call fcn.00522d6a
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