joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4eccba
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4eca52
sub edi, 1
add edi, esi
call fcn.004eccf7
mov esi, esi
xor dword [edx], eax
mov esi, 0xdfb36b91
mov esi, 0xe8d44178
add edx, 1
sub esi, 0xea2e7df
add edi, esi
cmp edx, ecx
jl fcn.004eccba
sub edi, esi
or esi, edi
ret
Function at 0x405e30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x80bc3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4040f4
call fcn.00406a91
push 4
mov dword [esp + 0x18], 0
call fcn.0040766a
mov edi, eax
add esp, 4
test edi, edi
je 0x405ea4
push ebx
call fcn.00406969
mov dword [edi], eax
call fcn.00406728
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406a52
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405e98
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406a7a
pop ebx
jmp 0x405ea6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4080e1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80f648]
jne 0x4080eb
repz ret
jmp fcn.0040c7dc
Function at 0x411c1c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x80f648]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b34c
and dword [ebp - 0x14], 0
cmp dword [0x811f8c], 0
mov dword [ebp - 0x18], eax
jne 0x411ccf
push 0x403f00
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411d77
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403ef4
push ebx
call edi
test eax, eax
je 0x411d77
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403ee4
push ebx
mov dword [0x811f8c], eax
call edi
push eax
call esi
push 0x403ed0
push ebx
mov dword [0x811f90], eax
call edi
push eax
call esi
push 0x403eb4
push ebx
mov dword [0x811f94], eax
call edi
push eax
call esi
mov dword [0x811f9c], eax
test eax, eax
je 0x411ccf
push 0x403e9c
push ebx
call edi
push eax
call esi
mov dword [0x811f98], eax
mov eax, dword [0x811f98]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411d28
cmp dword [0x811f9c], ecx
je 0x411d28
push eax
call esi
push dword [0x811f9c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411d28
test ebx, ebx
je 0x411d28
call edi
test eax, eax
je 0x411d1f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411d1f
test byte [ebp - 8], 1
jne 0x411d28
or dword [ebp + 0x10], 0x200000
jmp 0x411d5b
mov eax, dword [0x811f90]
cmp eax, dword [ebp - 0x18]
je 0x411d5b
push eax
call esi
test eax, eax
je 0x411d5b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411d5b
mov eax, dword [0x811f94]
cmp eax, dword [ebp - 0x18]
je 0x411d5b
push eax
call esi
test eax, eax
je 0x411d5b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x811f8c]
call esi
test eax, eax
je 0x411d77
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411d79
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004080e1
leave
ret

Function at 0x80a5e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0xb95ce8], ax
mov word [0xb95cec], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0xb95ce8
mov dword [0xb95cf4], 0x320033
mov dword [0xb95cfc], 0x6c006c
mov word [0xb95cee], cx
mov dword [0xb95cf0], 0x6c0065
mov dword [0xb95cf8], 0x64002e
mov word [0xb95cea], dx
mov word [0xb95d00], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0xb95ce4]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0xb95ce0], eax
mov eax, dword [0x816d34]
push edx
push eax
mov byte [0x811fab], 0x65
mov dword [0x811fa1], 0x75747269
mov word [0x811fa5], 0x6c61
mov byte [0x811fa0], 0x56
mov word [0x811fac], 0x7463
mov byte [0x811fae], 0
mov dword [0x811fa7], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x80a6d0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0x80c
cmp dword [0xb95ce4], 0x37
jne 0x80a76b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov eax, dword [esp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 8]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
lea ecx, [esp + 0x410]
push ecx
push 0
push 0x403f80
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov edx, dword [0xb96cd8]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + esi]
mov edx, dword [0x816d34]
mov byte [edx + esi], cl
add esp, 0x80c
ret
Function at 0x80a910
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb95ce4]
sub esp, 0x9cc
push ebx
push ebp
push esi
mov esi, dword [0x816d34]
shr eax, 3
push edi
test eax, eax
je 0x80aaba
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x80a944
mov esi, dword [esp + 0x18]
cmp dword [0xb95ce4], 0x1c
jne 0x80a961
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, dword [0x8102d0]
mov eax, dword [0x8102d4]
mov ecx, dword [str.A_ai]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x8102dc]
mov ebp, 0xc6ef3720
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], 0x20
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x30]
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
lea edx, [edi + ebp]
xor eax, ecx
xor eax, edx
sub ebx, eax
mov eax, ebx
shl eax, 4
mov dword [0xb95c54], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
cmp dword [0xb95ce4], 0x1be
jne 0x80a9ed
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, ebx
shr esi, 5
add esi, dword [esp + 0x34]
cmp dword [0xb95ce4], 0x979
mov dword [0xb95c58], 0xff6b3619
mov dword [0xb95c5c], 0xffffffff
jne 0x80aa3f
mov edx, dword [esp + 0x28]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
lea eax, [esp + 0x1dc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebx + ebp]
xor esi, eax
mov eax, dword [esp + 0x14]
xor eax, esi
sub edi, eax
add ebp, 0x61c88647
dec dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jne 0x80a99a
cmp dword [0xb95ce4], 0x8d4
jne 0x80aa77
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ebx
cmp dword [0xb95ce4], 0x17
jne 0x80aaa9
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x98]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x80a940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9cc
ret
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
test eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
test eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x438cae
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop ebx
inc ecx
dec edx
call fcn.00438ce3
sub edx, 0x8555c53c
inc ecx
dec edx
xor dword [esi], ebx
sub edx, ecx
mov ecx, ecx
inc esi
sub ecx, 0xe6cbf98b
and edx, ecx
cmp esi, edi
jne fcn.00438cae
sub edx, 0x1dbd6d27
ret
Function at 0x404da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x404fe0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x68]
push 0x4288c4
push eax
push ecx
call fcn.004217a0
add esp, 0xc
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x68]
push ecx
push eax
call fcn.00425210
add esp, 8
test al, al
jne 0x404f31
movsd xmm0, qword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
movsd qword [ebp - 0x40], xmm0
cmp eax, 6
mov dword [ebp - 0x38], eax
mov edi, dword [ebp - 0x40]
ja 0x404f09
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x10], 1
push eax
push ecx
push edx
call fcn.00404c90
add esp, 0xc
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 2
push 0x4288c4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004217a0
add esp, 0xc
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x68]
push ecx
push eax
call fcn.00425210
add esp, 8
test al, al
jne 0x404f50
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x24]
jne 0x404ef9
xor edx, edx
xor ebx, ebx
test ecx, ecx
je 0x404ecf
nop dword [eax + eax]
movzx ecx, byte [eax + edx]
xor cl, byte [edi + edx]
inc edx
or bl, cl
cmp dword [ebp - 0x30], edx
jne 0x404ec0
test esi, esi
je 0x404edf
push 1
push esi
push eax
call fcn.00404af0
add esp, 0xc
mov eax, dword [ebp - 0x3c]
test bl, bl
sete bl
test eax, eax
je 0x404f1e
push 1
push eax
push edi
call fcn.00404af0
add esp, 0xc
jmp 0x404f1e
test esi, esi
je 0x404f09
push 1
push esi
push eax
call fcn.00404af0
add esp, 0xc
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x404f1c
push 1
push eax
push edi
call fcn.00404af0
add esp, 0xc
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x20]
push 0x428960
push 0x428970
push eax
push 0x37
push str.a_Display_implementation_returned_an_error_unexpectedly_rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225library_alloc_src_string.rs
call fcn.00427830
add esp, 0x14
jmp 0x404f6d
lea eax, [ebp - 0x20]
push 0x428960
push 0x428970
push eax
push 0x37
push str.a_Display_implementation_returned_an_error_unexpectedly_rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225library_alloc_src_string.rs
call fcn.00427830
add esp, 0x14
ud2
Function at 0x406dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov edx, dword [esp + 0x18]
test edx, edx
je 0x406ea7
mov ecx, dword [esp + 0x14]
movzx eax, byte [esp + 0x1c]
cmp edx, 8
mov ebx, ecx
jb 0x406e90
xor esi, esi
cmp edx, 0x20
movzx edi, al
jb 0x406e4d
movd xmm0, edi
mov esi, edx
mov ebp, edx
lea edx, [ecx + 0x10]
punpcklbw xmm0, xmm0
and esi, 0xffffffe0
pshuflw xmm0, xmm0, 0
mov ebx, esi
pshufd xmm0, xmm0, 0
nop dword [eax]
movdqu xmm1, xmmword [edx - 0x10]
movdqu xmm2, xmmword [edx]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [edx - 0x10], xmm1
movdqu xmmword [edx], xmm2
add edx, 0x20
add ebx, 0xffffffe0
jne 0x406e20
cmp esi, ebp
je 0x406ea7
mov edx, ebp
test dl, 0x18
je 0x406e8c
movd xmm0, edi
mov ebp, edx
and edx, 0xfffffff8
lea edi, [ecx + esi]
punpcklbw xmm0, xmm0
lea ebx, [ecx + edx]
sub esi, edx
pshuflw xmm0, xmm0, 0
nop word [eax + eax]
movq xmm1, qword [edi]
pxor xmm1, xmm0
movq qword [edi], xmm1
add edi, 8
add esi, 8
jne 0x406e70
cmp edx, ebp
mov edx, ebp
jne 0x406e90
jmp 0x406ea7
add esi, ecx
mov ebx, esi
add ecx, edx
nop word cs:[eax + eax]
nop dword [eax]
xor byte [ebx], al
inc ebx
cmp ebx, ecx
jne 0x406ea0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40a490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x417aa0
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x2c], 0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
cmp esi, 0x201
jae 0x40a520
jmp 0x40a50e
jbe 0x40a5b4
cmp esi, 0x201
jae 0x40a520
lea ebx, [ebp - 0x448]
mov dword [ebp - 0x28], 0x200
mov edi, esi
jmp 0x40a55b
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x40a54c
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
mov edx, edi
push esi
call fcn.004269e0
add esp, 4
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x40a57f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40a617
cmp esi, edi
jne 0x40a500
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40a633
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x40a50e
jmp 0x40a520
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x40a650
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.0040e190
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40a601
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00404af0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi], 0
mov dword [esi + 4], eax
mov byte [esi + 0xc], 2
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40a5f1
jmp 0x40a601
mov dword [ebp - 0x10], 0
push 0x42ae14
push 0x28
push str.internal_error:_entered_unreachable_code_rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225library_alloc_src_vecmod.rs
call fcn.00427590
add esp, 0xc
jmp 0x40a65f
push 0x42ae24
push eax
push esi
call fcn.00427920
add esp, 0xc
ud2
Function at 0x4138d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x413914
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x41391a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x41394f
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x41395f
mov dword [esi + 4], 0
jmp 0x413971
cmp eax, 0x103
je 0x41398b
test eax, eax
js 0x41397c
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x413974
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x42a7f4
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.0040d480
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.004081e0
mov ecx, 7
int 0x29
ud2