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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53eff8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x58d984]
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 ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
test eax, eax
jne 0x489791
mov dword [esi], eax
mov dword [esi + 4], eax
jmp 0x4898ad
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
push ecx
push eax
call fcn.00451e70
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x4897c5
mov eax, dword [ebp - 0x28]
push 0x55ab20
push eax
call fcn.00521912
mov edi, eax
add esp, 8
test edi, edi
je 0x489865
push 2
push 0
push edi
call fcn.0052224c
push edi
call fcn.00522845
push 0
mov ebx, eax
push 0
push edi
mov dword [ebp - 0x2c], ebx
call fcn.0052224c
lea ecx, [ebx + 1]
push ecx
call fcn.005158f1
mov ebx, eax
add esp, 0x20
test ebx, ebx
je 0x48984f
push edi
push dword [ebp - 0x2c]
push 1
push ebx
call fcn.00521ec7
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
cmp eax, ecx
jne 0x48984f
push edi
mov byte [ecx + ebx], 0
call fcn.0052199f
fld dword [0x55ac44]
fstp dword [esp]
push 0x55ab30
push ebx
call fcn.00493d50
push ebx
mov edi, eax
call fcn.005158ec
add esp, 0x10
jmp 0x489867
push edi
call fcn.0052199f
add esp, 4
test ebx, ebx
je 0x489865
push ebx
call fcn.005158ec
add esp, 4
xor edi, edi
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp + 0x10]
push dword [ebp - 0x30]
push edi
push esi
call fcn.00489080
mov edx, dword [ebp - 0x14]
add esp, 0x18
cmp edx, 0x10
jb 0x4898ad
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4898a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4898cb
push edx
push ecx
call fcn.004ed797
add esp, 8
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 - 0x10]
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret
call fcn.0051042e
int3
Function at 0x4a7390
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a73bc
push 0
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 8]
mov ecx, esi
push 0x10
call fcn.0044d1f0
pop esi
pop ebp
ret 4
Function at 0x4a8b70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f8a8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58d984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea ecx, [edi + 0x18]
mov dword [ebp - 4], 0
mov dword [edi], vtable.tinyui::RenderGdiplus.0
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], 0
call fcn.00480ef0
push 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push 0
mov dword [edi + 0xc], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4abf80
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fa01
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x58d984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push edi
push edi
push str.CommonProgramW6432
mov dword [ebp - 0x44], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
mov dword [ebp - 0x18], edi
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
test esi, esi
je 0x4ac0db
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00417440
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4abfef
mov eax, dword [ebp - 0x28]
push esi
push eax
push str.CommonProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4ac0db
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp esi, 8
jb 0x4ac017
mov ecx, edx
cmp word [ecx + eax*2 - 2], 0
jne 0x4ac06c
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], cx
lea ecx, [eax - 1]
mov dword [ebp - 0x2c], 7
cmp eax, ecx
jb 0x4ac03c
mov eax, ecx
lea ecx, [ebp - 0x28]
cmp esi, 8
jb 0x4ac046
mov ecx, edx
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00403190
lea eax, [ebp - 0x40]
mov edi, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.0041b310
lea ecx, [ebp - 0x40]
call fcn.00403110
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov byte [ebp - 4], 1
add eax, 0x20
mov word [ebp - 0x40], cx
or edi, 2
mov dword [ebp - 0x30], 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x44], edi
call fcn.00448c90
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4ac0a2
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
push eax
call fcn.00441364
push 0x20
push str.microsoft_sharedinkTabTip.exe
lea ecx, [ebp - 0x40]
call fcn.00441364
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041b310
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00403110
cmp dword [ebp - 0x18], 0
jne 0x4ac0ea
push 0x3e
push str.C:Program_FilesCommon_Filesmicrosoft_sharedinkTabTip.exe
lea ecx, [ebp - 0x28]
call fcn.00403190
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4ac0f6
mov eax, dword [ebp - 0x28]
push 0xa
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4ac140
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ac136
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ac15b
push edx
push ecx
call fcn.004ed797
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret
call fcn.0051042e
int3
Function at 0x4af350
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fc67
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x58d984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x4af3a5
mov dword [ebx], 0x55ed50
mov dword [ebx + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [ebx]
lea esi, [ebx + 0x10]
push 0
push esi
mov dword [ebp + 8], esi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.004b0dc0
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004ed767
mov edi, eax
add esp, 4
test edi, edi
je 0x4af42b
push 1
mov byte [ebp - 4], 3
call fcn.0043d87e
add esp, 4
mov dword [edi + 4], eax
jmp 0x4af42d
xor edi, edi
mov ecx, dword [ebp + 8]
lea ebx, [esi + 4]
mov dword [esi + 0xc], ebx
lea eax, [esi + 8]
mov dword [esi + 0x34], edi
lea edi, [esi + 0x14]
mov dword [esi + 0x1c], edi
add esi, 0x18
mov dword [ecx + 0x20], esi
lea edx, [ecx + 0x24]
mov dword [ecx + 0x2c], edx
add ecx, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x30], ecx
mov dword [eax], 0
mov eax, ebx
mov eax, dword [eax + 0x20]
mov dword [eax], 0
mov eax, ebx
mov eax, dword [eax + 0x30]
mov dword [eax], 0
mov eax, ebx
mov eax, dword [eax + 0xc]
mov dword [eax], 0
mov eax, ebx
mov eax, dword [eax + 0x1c]
mov dword [eax], 0
mov eax, ebx
mov eax, dword [eax + 0x2c]
mov dword [eax], 0
mov eax, ebx
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0xc], ebx
mov ebx, eax
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
lea eax, [ebx + 8]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], ecx
mov dword [eax], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x4c], 0
mov eax, dword [0x59a9b0]
mov dword [ebx + 0x40], eax
mov eax, dword [0x59a9b4]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4afdc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x58d984]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4afe61
cmp byte [esi + 0x3d], 0
je 0x4afe61
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4afe17
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 0x4afe29
sub eax, 1
je 0x4afe2d
sub eax, 2
je 0x4afe61
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4afe4a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00522a88
add esp, 0x10
cmp edi, eax
jne 0x4afe17
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004eda39
mov esp, ebp
pop ebp
ret

Function at 0x4b08d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 0x10
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x4b08eb
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x4b0907
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x4b08f6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
mov eax, dword [ecx + esi]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x4b0940
cmp eax, edi
jne 0x4b0938
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x4b0948
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x4b0948
cmp eax, edi
jne 0x4b094b
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.004af860
push 0x28
push edi
call fcn.004ed797
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b0980
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
cmp dword [eax + 0x14], 0x10
mov edi, ecx
mov ebx, dword [eax + 0x10]
mov esi, eax
mov dword [ebp - 0xc], edi
jb 0x4b099e
mov esi, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x4b09c1
lea esp, [esp]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x4b09b0
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0xc]
and eax, edx
mov ebx, dword [edi + 4]
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp - 4], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 8], eax
mov edi, edi
cmp edx, ebx
jne 0x4b09e8
mov eax, ebx
jmp 0x4b09ec
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x4b0a93
mov eax, dword [ebp + 0xc]
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4b0a01
mov edx, dword [eax]
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
jb 0x4b0a0d
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0x18]
cmp edi, dword [eax + 0x10]
jne 0x4b0a70
sub edi, 4
jb 0x4b0a31
lea ebx, [ebx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4b0a36
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4b0a20
cmp edi, 0xfffffffc
je 0x4b0a6a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4b0a63
cmp edi, 0xfffffffd
je 0x4b0a6a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4b0a63
cmp edi, 0xfffffffe
je 0x4b0a6a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4b0a63
cmp edi, 0xffffffff
je 0x4b0a6a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4b0a6a
sbb eax, eax
or eax, 1
jmp 0x4b0a6c
xor eax, eax
test eax, eax
je 0x4b0a7d
mov esi, dword [esi]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
jmp 0x4b09e0
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004af9e0
test al, al
jne 0x4b0a93
mov ebx, esi
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b0dc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fd68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x58d984]
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.004ed767
mov edi, eax
add esp, 4
test edi, edi
je 0x4b0e5d
push 1
mov dword [ebp - 4], 0
call fcn.0043d87e
add esp, 4
mov dword [edi + 4], eax
jmp 0x4b0e5f
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.0043ed94
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 0x4b0ec1
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4b0ec1
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 0x4b0ee4
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 0x4b0f07
cmp byte [ebp + 0xc], 0
je 0x4b0ef3
push esi
call fcn.005385e5
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 0x4b0f13
mov esi, str.ios_base::badbit_set
jmp 0x4b0f22
mov esi, str.ios_base::failbit_set
test cl, 2
jne 0x4b0f22
mov esi, str.ios_base::eofbit_set
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004b15f0
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.004af580
push 0x585b54
lea eax, [ebp - 0x30]
push eax
call fcn.0050de50
int3
Function at 0x4b1860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x58d984]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4b1890
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4b18cc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4b18cc
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4b19ab
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4b18f4
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 0x4b1926
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00515f90
add esp, 8
cmp eax, 0xffffffff
jne 0x4b196d
pop edi
or ebx, eax
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eda39
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 0x4b19ab
cmp eax, 1
jle 0x4b1982
cmp eax, 3
jne 0x4b19ab
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.004af050
add esp, 8
test al, al
jne 0x4b196d
or ebx, 0xffffffff
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4b199f
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00522a88
add esp, 0x10
cmp edi, eax
jne 0x4b19ab
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4b196d
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004eda39
mov esp, ebp
pop ebp
ret 4
Function at 0x4b2410
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 0x4b2434
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b2500
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 0x4b2455
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x4b2457
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x4b24df
jg 0x4b246a
test esi, esi
je 0x4b24df
test ecx, ecx
jl 0x4b24ac
jg 0x4b2474
test eax, eax
je 0x4b24ac
cmp ebx, ecx
jg 0x4b2486
jl 0x4b247e
cmp esi, eax
jae 0x4b2486
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.0050c8e0
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 0x4b24b2
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x4b24df
jg 0x4b24bc
test esi, esi
je 0x4b24df
cmp dword [edi + 0x4c], 0
je 0x4b24df
mov ecx, edi
call fcn.004b0490
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.00521ec7
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 0x4b25d0
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 0x4b25f4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b26b0
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 0x4b2615
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4b2617
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x4b2694
jg 0x4b262a
test esi, esi
je 0x4b2694
test ecx, ecx
jl 0x4b266e
jg 0x4b2634
test eax, eax
je 0x4b266e
cmp edi, ecx
jg 0x4b2646
jl 0x4b263e
cmp esi, eax
jae 0x4b2646
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.0050c8e0
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 0x4b2671
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4b2694
jg 0x4b267b
test esi, esi
je 0x4b2694
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4b2694
push eax
push esi
push 1
push edx
call fcn.00522a88
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 0x4b3500
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ff69
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58d984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0xa
mov byte [ebp - 4], 1
call fcn.004b5290
mov dword [esi + 0xc], 0
fld1
fst dword [esi + 0x10]
fldz
fst dword [esi + 0x14]
fst dword [esi + 0x18]
fst dword [esi + 0x1c]
fst dword [esi + 0x24]
fst dword [esi + 0x28]
fstp dword [esi + 0x2c]
mov word [esi + 0x34], 0
fst dword [esi + 0x20]
fstp dword [esi + 0x30]
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
push 0x800
lea eax, [esi + 0x4c]
mov byte [ebp - 4], 4
push 0
push 0
mov ecx, eax
mov dword [esi + 0x48], 0
mov dword [ebp - 0x14], eax
call fcn.004aca30
mov eax, dword [ebp + 8]
or ebx, 0xffffffff
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x6c], 0xffffffff
mov word [esi + 0x70], 1
mov dword [esi + 0x40], eax
mov edi, dword [esi + 0x44]
mov byte [ebp - 4], 5
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], 0
mov dword [esi + 0x44], ecx
test edi, edi
je 0x4b3613
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4b3613
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x4b3613
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [esi + 0x40]
lea ecx, [esi + 0x4c]
push ecx
push dword [eax + 0x40]
call fcn.004b5d70
mov dword [esi + 0x48], eax
add esp, 8
mov byte [eax + 0x44], 0
mov ecx, dword [esi + 0x40]
mov edi, dword [ebp + 0xc]
mov eax, dword [ecx + 0x28]
mov dword [esi + 0x38], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x3c], eax
test edi, edi
je 0x4b3660
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4b3660
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x4b3660
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, esi
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