joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435cd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517a7c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc
push esi
mov eax, dword [0x56e754]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
movups xmm0, xmmword [ebx + 0x10]
mov dword [esi], vtable.spdlog::pattern_formatter.0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
movups xmmword [esi + 4], xmm0
mov byte [ebx + 0x10], 0
movq xmm0, qword [ebx + 0x20]
movq qword [esi + 0x14], xmm0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0xf
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xf
mov byte [esi + 0x1c], 0
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
push ecx
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00435f00
mov edx, dword [ebx + 0x24]
cmp edx, 0x10
jb 0x435dbd
mov ecx, dword [ebx + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x435db3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435dd4
push edx
push ecx
call fcn.004ca782
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x20
call fcn.004eefc0
int3
Function at 0x439180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518080
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x56e754]
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 edi, ecx
mov esi, dword [ebp + 8]
call fcn.004b61d1
cmp edx, dword [edi + 0x74]
jg 0x4391c9
jl 0x4391c1
cmp eax, dword [edi + 0x70]
jae 0x4391c9
lea ebx, [edi + 0x84]
jmp 0x4391d7
lea ebx, [edi + 0x84]
mov ecx, edi
push ebx
call fcn.00439030
mov eax, dword [esi + 0x224]
push dword [edi + 0x80]
mov esi, dword [eax + 8]
push esi
push 1
push dword [eax + 4]
call fcn.004efb0c
add esp, 0x10
cmp eax, esi
jne 0x439216
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.004ca771
mov esp, ebp
pop ebp
ret 4
mov edx, ebx
lea ecx, [ebp - 0x4c]
call fcn.004348b0
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 0
push str.Failed_writing_to_file
push eax
call fcn.0043c940
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 1
call fcn.004fa7b0
lea ecx, [ebp - 0x34]
push dword [eax]
push esi
call fcn.004346e0
push 0x56ba4c
lea eax, [ebp - 0x34]
push eax
call fcn.004e22e8
int3
Function at 0x43de40
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5187ca
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x56e754]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
sub esp, 0x18
mov ecx, esp
push dword [ebp + 8]
call fcn.0041aa80
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.0043e110
mov dword [ebp - 4], 0
push 0x1f0
mov dword [esi], vtable.spdlog::async_logger.0
call fcn.004ca790
mov dword [ebp + 0x10], eax
sub esp, 0x24
mov edi, esp
mov dword [ebp + 0xc], esp
mov dword [ebp - 0x14], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x43dec8
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
sub esp, 0x28
mov edi, esp
mov dword [ebp + 0x24], esp
mov dword [ebp - 0x14], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x43def0
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
sub esp, 0x28
mov edi, esp
mov dword [ebp + 0x1c], esp
mov dword [ebp - 0x14], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 6
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x43df15
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x14], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x43df35
lock inc dword [eax + 4]
mov eax, dword [esi + 0x2c]
mov dword [ecx], eax
mov eax, dword [esi + 0x30]
mov dword [ecx + 4], eax
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
call fcn.0041aa80
push dword [ebp + 0x20]
lea eax, [esi + 0x20]
mov byte [ebp - 4], 9
push dword [ebp + 0x18]
push dword [ebp + 0x14]
sub esp, 0xc
mov ecx, esp
push eax
call fcn.0043d030
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00437400
mov dword [esi + 0x78], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x20
Function at 0x44ec10
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b363
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x56e754]
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 edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], ebx
push 5
push str.TIMER
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0041b7e0
lea ecx, [edi + 0x20]
mov dword [ebp - 4], 0
call fcn.00440740
push edx
push eax
lea ecx, [ebp - 0x40]
call fcn.00447ae0
add esp, 8
mov esi, eax
lea eax, [edi + 4]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.0041aa80
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebx + 0x18]
push eax
call fcn.0041aa80
push esi
lea ecx, [ebx + 0x30]
mov byte [ebp - 4], 3
call fcn.0041aa80
mov edx, dword [ebp - 0x2c]
mov dword [ebx + 0x48], 1
cmp edx, 0x10
jb 0x44ece5
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x44ecdb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ed35
push edx
push ecx
call fcn.004ca782
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x44ed15
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x44ed0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ed3a
push edx
push ecx
call fcn.004ca782
add esp, 8
mov eax, ebx
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.004ca771
mov esp, ebp
pop ebp
ret 4
call fcn.004eefc0
call fcn.004eefc0
int3
Function at 0x451e60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5156b0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x56e754]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
xor al, al
and ecx, 0xfffffffc
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call fcn.0048db90
add esp, 4
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x451ecf
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x451ee0
push 0x48
push esi
call fcn.004ca782
add esp, 8
mov eax, esi
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 0x4521b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51bc10
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x56e754]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
xor al, al
and ecx, 0xfffffffc
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call fcn.0048db90
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov edi, edx
sbb ecx, ecx
xor al, al
and ecx, 0xfffffffc
push edx
mov ecx, dword [ecx + esi + 0x20]
rep stosb byte es:[edi], al
call fcn.0048db90
add esp, 8
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x452237
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x452248
push 0x40
push esi
call fcn.004ca782
add esp, 8
mov eax, esi
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 0x4529c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
push 0
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareAmazonAmazon_Games
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov ecx, 0x5785a0
test esi, esi
jne 0x452a59
cmp dword [0x5785b4], 0x10
mov eax, dword [0x5785b0]
cmovae ecx, dword [0x5785a0]
inc eax
push eax
push ecx
push 1
push esi
push 0x549c24
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x452a4a
push 0x24
push 0x549de0
mov ecx, 0x5785a0
call fcn.0041b7e0
mov edx, esi
mov ecx, str.Setting_DSN_value_in_registry_failed_with_error_code:__ld_n
call fcn.0042e7b0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
push 0x24
push 0x549de0
call fcn.0041b7e0
mov edx, esi
mov ecx, str.Creating_DSN_key_in_registry_failed_with_error_code:__ld_n
call fcn.0042e7b0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x452a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51bdc4
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x56e754]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], 0
push 0x585cc8
mov dword [ebp - 0x88], 0x585cc8
call fcn.004b67f9
add esp, 4
test eax, eax
je 0x452af1
push eax
call fcn.004b6358
add esp, 4
mov byte [ebp - 0x84], 1
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 1
push eax
push 0x20119
xor esi, esi
mov dword [ebp - 0x5c], 0xf
push esi
push str.SoftwareAmazonAmazon_Games
push SysReAllocString
mov dword [ebp - 0x60], esi
mov byte [ebp - 0x70], 0
mov dword [ebp - 0x7c], 2
mov dword [ebp - 0x80], 0x40
mov dword [ebp - 0x74], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x452ba2
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push 0x549c24
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x452b8b
lea ecx, [ebp - 0x58]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x452b67
sub ecx, edx
lea eax, [ebp - 0x58]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.0041b7e0
push dword [ebp - 0x78]
mov esi, dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x452bae
mov edx, eax
mov ecx, str.Reading_DSN_from_registry_failed_with_operation_return_code:__ld_n
call fcn.0042e7b0
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x452bae
mov edx, eax
mov ecx, str.Opening_DSN_location_in_registry_failed_with_operation_return_code:__ld_n
call fcn.0042e7b0
mov ecx, 0x5785a0
call fcn.0041a9b0
movups xmm0, xmmword [ebp - 0x70]
movups xmmword [0x5785a0], xmm0
movq xmm0, qword [ebp - 0x60]
movq qword [0x5785b0], xmm0
mov byte [ebp - 4], 0
test esi, esi
jne 0x452c67
lea ecx, [ebp - 0x70]
call fcn.00452cc0
mov esi, eax
cmp esi, 0x5785a0
je 0x452c20
mov ecx, 0x5785a0
call fcn.0041a9b0
movups xmm0, xmmword [esi]
movups xmmword [0x5785a0], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x5785b0], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x452c50
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x452c46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x452cb4
push edx
push ecx
call fcn.004ca782
add esp, 8
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.004529c0
push 0x5785a0
mov ecx, edi
call fcn.0041aa80
push 0x585cc8
mov dword [ebp - 4], 2
call fcn.004b681e
add esp, 4
test eax, eax
je 0x452c94
push eax
call fcn.004b6358
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ca771
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004eefc0
int3
Function at 0x455100
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c4c0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x56e754]
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 edi, ecx
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.0043a5b0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x455146
mov eax, dword [eax]
mov edx, 0x574a40
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x64]
call fcn.004397a0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
push ecx
mov ecx, dword [eax]
push str.Deleting_file__name:__s_
push 2
call fcn.0041eb40
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x455198
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x455198
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x455198
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0041b400
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4551b1
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45520f
lea ecx, [ebp - 0x58]
call fcn.00424730
mov esi, eax
mov edx, edi
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.0043a5b0
mov byte [ebp - 4], 6
cmp dword [esi + 0x14], 8
jb 0x4551e3
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x4551eb
mov eax, dword [eax]
push esi
mov edx, eax
mov ecx, str.Delete_file_failed__name:__s__error:__s_
call fcn.0042de50
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.0041b400
lea ecx, [ebp - 0x58]
call fcn.0041b400
xor al, al
jmp 0x455211
mov al, 1
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.004ca771
mov esp, ebp
pop ebp
ret
Function at 0x45f450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d358
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x56e754]
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 edi, ecx
lea ecx, [ebp - 0x2c]
call fcn.00425470
push 0
push 0
push 3
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push 0
cmovae eax, dword [ebp - 0x2c]
push 3
push 1
push eax
mov dword [ebp - 0x48], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x20], eax
cmp eax, 0xffffffff
je 0x45f546
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x45f546
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x48]
push 0
push eax
push 8
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x4c], 0
push eax
push dword [edi + 0x20]
xorps xmm0, xmm0
movlpd qword [ebp - 0x5c], xmm0
call esi
mov eax, dword [ebp - 0x5c]
or eax, dword [ebp - 0x58]
je 0x45f546
push 0
lea eax, [ebp - 0x48]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push dword [edi + 0x20]
call esi
push dword [ebp - 0x4c]
push 1
call fcn.004effff
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x45f546
push 0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x4c]
push ebx
push dword [edi + 0x20]
call esi
mov eax, dword [ebp - 0x4c]
cmp byte [ebx + eax - 1], 0
je 0x45f57e
push ebx
call fcn.004ef010
add esp, 4
xorps xmm0, xmm0
movlpd qword [ebp - 0x64], xmm0
mov edi, dword [ebp - 0x60]
mov esi, dword [ebp - 0x64]
lea ecx, [ebp - 0x2c]
call fcn.0041b400
mov eax, esi
mov edx, edi
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.004ca771
mov esp, ebp
pop ebp
ret 0xc
mov edx, ebx
lea ecx, [ebp - 0x44]
call fcn.00423bb0
push eax
lea ecx, [edi + 4]
call fcn.0041a730
lea ecx, [ebp - 0x44]
call fcn.0041b400
push ebx
call fcn.004ef010
add esp, 4
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x48]
push 0
push eax
push 4
lea eax, [ebp - 0x50]
push eax
push dword [edi + 0x20]
call esi
cmp dword [ebp - 0x48], 4
jne 0x45f546
push dword [ebp - 0x50]
push 1
call fcn.004effff
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x45f546
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x54], 0
push eax
push 1
lea eax, [ebp - 0x54]
push eax
push dword [edi + 0x20]
call esi
cmp dword [ebp - 0x48], 1
jne 0x45f546
push 0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
push ebx
push dword [edi + 0x20]
call esi
mov edx, dword [ebp - 0x50]
cmp dword [ebp - 0x48], edx
jne 0x45f546
push dword [ebp - 0x54]
push ecx
mov ecx, ebx
call fcn.00473f10
mov esi, eax
add esp, 8
lea eax, [ebp - 0x60]
mov ecx, dword [esi]
mov dword [ebp - 0x60], ecx
mov ecx, dword [edi + 0x1c]
push eax
call fcn.00461440
push ecx
mov ecx, esi
call fcn.00426f30
push ebx
call fcn.004ef010
mov esi, dword [ebp - 0x5c]
add esp, 4
mov byte [edi], 1
mov edi, dword [ebp - 0x58]
jmp 0x45f554
Function at 0x46ac00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x46ace8
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x46acd7
jg 0x46ac40
test edx, edx
je 0x46acd7
nop dword [eax]
call fcn.0042c9d0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x46ac94
jg 0x46ac57
test esi, esi
je 0x46ac94
cmp ebx, eax
jg 0x46ac67
jl 0x46ac61
cmp edi, esi
jae 0x46ac67
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004e2360
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x46acbb
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x46acd1
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x46ac40
jl 0x46acd1
test edi, edi
jne 0x46ac40
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x46ad0a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x46ad0c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x46ad8a
jg 0x46ad1f
test esi, esi
je 0x46ad8a
test eax, eax
jl 0x46ad64
jg 0x46ad29
test ebx, ebx
je 0x46ad64
cmp edi, eax
jg 0x46ad39
jl 0x46ad33
cmp esi, ebx
jae 0x46ad39
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004e2360
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x46ad67
mov edx, dword [ebp + 8]
test edi, edi
jl 0x46ad8a
jg 0x46ad71
test esi, esi
je 0x46ad8a
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x46ad8a
push eax
push esi
push 1
push edx
call fcn.004efb0c
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46ada0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x46ae8b
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x46ae7a
jg 0x46ade0
test edx, edx
je 0x46ae7a
nop dword [eax]
call fcn.0042c9f0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x46ae37
jg 0x46adf7
test esi, esi
je 0x46ae37
cmp ebx, eax
jg 0x46ae07
jl 0x46ae01
cmp edi, esi
jae 0x46ae07
mov esi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0xc]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [esp + 0x18]
call fcn.004e2360
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x10]
jmp 0x46ae5c
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x46ae74
mov eax, dword [esp + 0x10]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
add eax, esi
mov dword [esp + 0x10], eax
test ebx, ebx
jg 0x46ade0
jl 0x46ae74
test edi, edi
jne 0x46ade0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x46aead
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x46aeaf
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x46af65
jg 0x46aeca
test esi, esi
je 0x46af65
test eax, eax
jl 0x46af13
jg 0x46aed4
test ebx, ebx
je 0x46af13
cmp edi, eax
jg 0x46aee4
jl 0x46aede
cmp esi, ebx
jae 0x46aee4
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.004e2360
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 0x2c]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x46af1a
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test edi, edi
jl 0x46af65
jg 0x46af24
test esi, esi
je 0x46af65
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x46af65
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x46af50
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [esp + 0x1c]
call fcn.004fc51c
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc