joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446310
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [eax]
mov eax, dword [esp + 8]
mov ecx, dword [ecx + 0x88]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
add ecx, 8
mov edi, 8
mov edi, edi
mov ebx, dword [ecx - 8]
mov eax, esi
ror eax, 4
xor eax, ebx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x476308]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x476508]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x476708]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x476908]
mov eax, dword [ecx - 4]
xor edx, ebx
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x476408]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x476608]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x476808]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x476a08]
xor edx, ebx
mov ebx, dword [ecx]
mov eax, edx
ror eax, 4
xor eax, ebx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x476308]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x476508]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x476708]
and eax, 0x3f
mov ebp, dword [eax*4 + 0x476908]
mov eax, dword [ecx + 4]
xor ebx, ebp
xor esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x476408]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x476608]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x476808]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x476a08]
xor esi, ebx
add ecx, 0x10
dec edi
jne 0x446330
mov ecx, dword [esp + 0x14]
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x448780
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
sub eax, ebp
push edi
mov dword [esp + 0x20], 0xf5
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 4
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
jmp 0x4487b1
mov ebx, dword [esp + 0x10]
mov edi, 3
sub edi, ebx
xor esi, esi
shl edi, 3
lea ebx, [ebx + 0x4755e0]
mov edx, dword [esp + 0x1c]
xor eax, eax
mov al, byte [ebx]
mov ecx, 3
sub ecx, esi
shl ecx, 3
push eax
mov eax, dword [edx + ebp]
shr eax, cl
lea ecx, [esp + 0x24]
push eax
call fcn.0044f8f0
movzx edx, al
mov eax, dword [esp + 0x14]
mov ecx, edi
shl edx, cl
add ebx, 4
xor eax, edx
inc esi
cmp esi, 4
mov dword [esp + 0x14], eax
jl 0x4487c3
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 4
mov dword [esp + 0x10], eax
jl 0x4487ad
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
add ebp, 4
dec eax
mov dword [esp + 0x18], eax
jne 0x4487a1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x448836
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, ecx
mov edx, dword [esi + 0xa4]
push edi
mov edi, dword [eax]
mov ecx, edx
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov edi, dword [eax + 8]
mov dword [ecx + 8], edi
mov eax, dword [eax + 0xc]
push 0x10
push edx
mov dword [ecx + 0xc], eax
push edx
xor ecx, ecx
xor eax, eax
lea edi, [edx + 0x10]
call fcn.00444210
add esp, 0xc
mov eax, 0x10
mov edx, 0x4755f0
jmp 0x448880
mov ecx, dword [esi + 0xa4]
mov ebp, dword [ecx + eax - 0x10]
mov edi, dword [esi + 0xa4]
mov edi, dword [eax + edi - 4]
mov ebx, dword [edx]
add ecx, eax
rol edi, 8
xor edi, ebp
xor edi, ebx
mov dword [ecx], edi
mov ecx, dword [esi + 0xa4]
mov ebp, dword [ecx + eax]
mov edi, dword [ecx + eax - 0xc]
add ecx, eax
xor edi, ebp
mov dword [ecx + 4], edi
mov ecx, dword [esi + 0xa4]
mov edi, dword [ecx + eax - 8]
mov ebx, dword [ecx + eax + 4]
add ecx, eax
xor edi, ebx
mov dword [ecx + 8], edi
mov ecx, dword [esi + 0xa4]
mov edi, dword [ecx + eax + 8]
mov ebp, dword [ecx + eax - 4]
add ecx, eax
xor edi, ebp
add edx, 4
add eax, 0x10
cmp edx, str.CipherModeBase:_GetNextIV___must_be_called_on_an_encryption_object
mov dword [ecx + 0xc], edi
jl 0x448880
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x448924
xor edi, edi
jmp 0x448900
mov edx, dword [esi + 0xa4]
lea eax, [edi + edx]
push eax
call fcn.00448780
add edi, 0x10
add esp, 4
cmp edi, 0x80
jl 0x448900
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov edx, 0x80
xor ecx, ecx
mov dword [esp + 0x18], edx
nop
mov ebx, 4
jmp 0x448940
mov eax, dword [esi + 0xa4]
mov ebp, dword [edx + eax]
mov edi, dword [ecx + eax]
mov dword [ecx + eax], ebp
mov dword [edx + eax], edi
add edx, 4
add ecx, 4
dec ebx
jne 0x448940
mov edx, dword [esp + 0x18]
sub edx, 0x10
cmp edx, 0x40
mov dword [esp + 0x18], edx
jg 0x448930
mov esi, dword [esi + 0xa4]
lea eax, [esi + 0x80]
push eax
call fcn.00448780
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x44c480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46e688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push esi
push str.:_Nonblocking_input_is_not_implemented_by_this_object.
mov esi, ecx
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00427fb0
add esp, 0xc
push eax
push 0
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0040a830
cmp dword [esp + 0x1c], 0x10
mov dword [esi], 0x474a64
jb 0x44c4de
mov edx, dword [esp + 8]
push edx
call fcn.00453df1
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esi], 0x474bc8
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x44e1f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
mov ecx, eax
or ecx, esi
or ecx, edx
test cl, 3
jne 0x44e220
shr edx, 2
test edx, edx
jbe 0x44e239
mov ecx, esi
sub ecx, eax
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x44e213
pop esi
ret
test edx, edx
jbe 0x44e239
mov ecx, esi
sub ecx, eax
mov esi, edx
lea ebx, [ebx]
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x44e230
pop esi
ret

Function at 0x451550
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46e950
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.00450d30
mov ecx, dword [eax + 0x18]
mov ebx, 0x10
cmp ecx, ebx
jb 0x45158c
mov eax, dword [eax + 4]
jmp 0x45158f
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp dword [esp + 0x40], ebx
jb 0x4515ab
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00453df1
add esp, 4
cmp esi, 0xffffffff
jne 0x4515f6
push 0x1f
xor ebx, ebx
push str.boost::filesystem::is_directory
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.00404c20
mov dword [esp + 0x68], ebx
call sub.KERNEL32.dll_GetLastError
push eax
push edi
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x50]
call fcn.00452b30
push eax
mov byte [esp + 0x6c], 1
call fcn.00450c10
mov ecx, dword [esp + 0x60]
mov eax, esi
pop edi
shr eax, 4
pop esi
and eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret
Function at 0x451760
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46e9c0
push eax
mov dword fs:[0], esp
sub esp, 0x70
push esi
push edi
mov edi, dword [esp + 0x88]
cmp dword [edi + 0x18], 0x10
lea esi, [edi + 4]
jb 0x45178e
mov eax, dword [esi]
jmp 0x451790
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4517c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x451889
cmp eax, 0x57
je 0x451889
cmp eax, 3
je 0x451889
cmp eax, 0x7b
je 0x451889
push edi
call fcn.00451550
add esp, 4
test al, al
mov eax, dword [edi + 0x18]
je 0x451828
cmp eax, 0x10
jb 0x4517dd
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x451876
push str.boost::filesystem::remove
lea ecx, [esp + 0xc]
call fcn.00404e10
mov dword [esp + 0x80], 0
call sub.KERNEL32.dll_GetLastError
push eax
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x4c]
call fcn.00452b30
push eax
mov byte [esp + 0x84], 1
call fcn.00450c10
cmp eax, 0x10
jb 0x45182f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x451876
push str.boost::filesystem::remove
lea ecx, [esp + 0x28]
call fcn.00404e10
mov dword [esp + 0x80], 2
call sub.KERNEL32.dll_GetLastError
push eax
push edi
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x68]
call fcn.00452b30
push eax
mov byte [esp + 0x84], 3
call fcn.00450c10
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret
mov ecx, dword [esp + 0x78]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x7c
ret

Function at 0x4518a0
Capabilities:
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46e9e0
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
push edi
mov edi, dword [esp + 0x54]
mov ecx, dword [edi + 0x18]
mov eax, 0x10
cmp ecx, eax
jb 0x4518cf
mov ecx, dword [edi + 4]
jmp 0x4518d2
lea ecx, [edi + 4]
mov esi, dword [esp + 0x50]
cmp dword [esi + 0x18], eax
jb 0x4518e0
mov eax, dword [esi + 4]
jmp 0x4518e3
lea eax, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x451938
push 0x19
push str.boost::filesystem::rename
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], eax
mov byte [esp + 0x14], al
call fcn.00404c20
mov dword [esp + 0x48], 0
call sub.KERNEL32.dll_GetLastError
push eax
push edi
push esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
call fcn.00452c70
push eax
mov byte [esp + 0x4c], 1
call fcn.00450c10
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x451de0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ea9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x451f23
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.00451cf0
lea eax, [ebp - 0xb0]
push str.2AC1A572DB6944B0A65C38C4140AF2F4
push eax
mov dword [ebp - 4], 0
call fcn.00424690
mov esi, eax
add esp, 8
test esi, esi
je 0x451e51
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
add eax, esi
mov edx, dword [eax + 0x10]
and edx, 0xfffff9ff
or edx, 0x800
push edi
mov dword [eax + 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, esi
call fcn.00451a10
mov ecx, eax
call fcn.00451b80
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00451dc0
mov ecx, dword [eax + 0x18]
mov ebx, 0x10
cmp ecx, ebx
jb 0x451e99
mov eax, dword [eax + 4]
jmp 0x451e9c
add eax, 4
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
jb 0x451ebd
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00453df1
add esp, 4
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x451ef7
mov byte [ebp - 4], 1
call dword [ebp + 8]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.00451950
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x470e54
call fcn.004537eb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x452f30
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x452fa6
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x452fa6
mov dl, byte [ecx]
cmp dl, 0xbc
push ebx
push esi
jne 0x452f77
cmp byte [ecx + 1], 0xbd
jne 0x452f77
lea edx, [ecx + 2]
mov esi, edi
sub esi, edx
mov bl, byte [edx]
mov byte [esi + edx], bl
inc edx
test bl, bl
jne 0x452f57
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x452f64
pop esi
sub ecx, eax
pop ebx
mov byte [ecx + edi - 4], dl
mov eax, edi
pop edi
ret
xor dl, 0x23
mov byte [edi], dl
mov al, byte [ecx]
xor esi, esi
test al, al
je 0x452f9c
mov edx, edi
sub edx, ecx
mov al, byte [ecx + 1]
mov bl, byte [edx + ecx]
inc esi
inc ecx
dec al
xor al, bl
mov byte [edx + ecx], al
cmp byte [ecx], 0
jne 0x452f88
mov byte [esi + edi], 0
pop esi
pop ebx
mov eax, edi
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x455fb6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004548d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x456051
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x498df0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x456051
cmp eax, 1
je 0x456072
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x456051
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x45601e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x45604d
xor eax, eax
inc eax
jmp 0x456091
cmp edi, eax
jae 0x456055
xor eax, eax
jmp 0x456091
cmp eax, esi
jae 0x45605c
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x498df0]
jmp 0x456075
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4591cd
Capabilities:
Terminate process

Disassembly:
push 8
push 0x488880
call fcn.00458104
push 8
call fcn.004575d0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x498e30], esi
jne 0x459201
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x498e2c], esi
mov al, byte [ebp + 0x10]
mov byte [0x498e28], al
cmp dword [ebp + 0xc], edi
jne 0x45924b
cmp dword [0x49a58c], edi
je 0x45923b
mov eax, dword [0x49a588]
sub eax, 4
mov dword [0x49a588], eax
cmp eax, dword [0x49a58c]
jb 0x45923b
mov eax, dword [eax]
cmp eax, edi
je 0x45921c
call eax
jmp 0x45921c
push 0x496098
mov eax, 0x496090
call fcn.0045914b
pop ecx
push 0x4960a4
mov eax, 0x49609c
call fcn.0045914b
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x45927c
cmp dword [ebp + 0x10], edi
jne 0x45928a
mov dword [0x498e30], esi
push dword [ebp + 8]
call fcn.00459109
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x459289
push 8
call fcn.0045751b
pop ecx
ret
call fcn.0045813f
ret
Function at 0x45c088
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x496f74]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4975a0]
je 0x45c0bd
inc eax
cmp eax, 0x13
jb 0x45c0ae
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4975a0]
jne 0x45c1e3
mov eax, dword [0x498c5c]
cmp eax, 1
je 0x45c1bb
cmp eax, edx
jne 0x45c0ed
cmp dword [0x496fa0], 1
je 0x45c1bb
cmp ecx, 0xfc
je 0x45c1e3
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45c123
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0045aef0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00456ab0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45c157
mov eax, edi
push eax
call fcn.00456ab0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4888d4
push edi
call fcn.00454760
add esp, 0x10
push edi
call fcn.00456ab0
push dword [esi + 0x4975a4]
mov ebx, eax
call fcn.00456ab0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004548d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0045aef0
push edi
push ebx
call fcn.0045af00
push 0x4888d0
push ebx
call fcn.0045af00
push dword [esi + 0x4975a4]
push ebx
call fcn.0045af00
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00465c2c
add esp, 0x2c
jmp 0x45c1e3
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4975a4]
push dword [esi]
call fcn.00456ab0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004543e5
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x45cba5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x496f74]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x45cbd6
xor eax, eax
jmp 0x45cd5f
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x49a220]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x45cc12
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00465fb9
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x45cced
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x45cd2b
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x45cc76
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x45cc67
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x45cc47
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45ccb6
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x45ccbf
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x45cc38
jmp 0x45ccc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x45cd5a
cmp dword [ebp - 0x6c], edi
je 0x45cd2b
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x45cd20
call fcn.00458150
mov dword [eax], 9
call fcn.00458159
mov dword [eax], esi
jmp 0x45cd55
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45cd15
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x45ccc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x45ccc1
push dword [ebp - 0x6c]
call fcn.00458162
pop ecx
jmp 0x45cd55
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x45cd43
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x45cd43
xor eax, eax
jmp 0x45cd5d
call fcn.00458150
mov dword [eax], 0x1c
call fcn.00458159
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x45cd5d
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004543e5
add ebp, 0x3a0
leave
ret
Function at 0x45dad3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x45db01
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x45db08
cmp ebx, dword [eax + 4]
jae 0x45db08
xor eax, eax
jmp 0x45dcf8
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x45db19
xor eax, eax
inc eax
jmp 0x45dcf7
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x45db2f
cmp ecx, edx
jae 0x45dc74
cmp dword [eax + 4], 0
je 0x45db38
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x45db20
cmp dword [ebp + 8], 0
je 0x45db5a
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x45dc74
cmp eax, esi
jae 0x45dc74
mov eax, dword [0x498f58]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x45db7f
cmp dword [esi*4 + 0x498f60], edi
je 0x45dc78
inc esi
cmp esi, eax
jl 0x45db6d
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x45dcf4
cmp dword [ebp - 8], 0x1000000
jne 0x45dcf4
test byte [ebp - 0xc], 0xcc
je 0x45dbfd
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x45dcf4
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x45dcf4
cmp word [eax + 0x18], 0x10b
jne 0x45dcf4
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x45dcf4
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x45dbfd
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x45dbfd
test byte [ecx + 0x27], 0x80
jne 0x45dc74
push 1
push 0x498fa0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x45db11
mov ecx, dword [0x498f58]
test ecx, ecx
mov edx, ecx
jle 0x45dc31
lea eax, [ecx*4 + 0x498f5c]
cmp dword [eax], edi
je 0x45dc31
dec edx
sub eax, 4
test edx, edx
jg 0x45dc25
test edx, edx
jne 0x45dc62
push 0xf
pop ebx
cmp ecx, ebx
jg 0x45dc3e
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x45dc56
lea eax, [edx*4 + 0x498f60]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x45dc44
cmp ecx, 0x10
jge 0x45dc62
inc ecx
mov dword [0x498f58], ecx
push 0
push 0x498fa0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x45db11
xor eax, eax
jmp 0x45dcf7
test esi, esi
jle 0x45db11
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x498fa0
call ebx
test eax, eax
jne 0x45db11
cmp dword [esi*4 + 0x498f60], edi
je 0x45dcce
mov eax, dword [0x498f58]
lea esi, [eax - 1]
test esi, esi
jl 0x45dcbc
cmp dword [esi*4 + 0x498f60], edi
je 0x45dcb8
dec esi
jns 0x45dcac
test esi, esi
jge 0x45dccc
cmp eax, 0x10
jge 0x45dcc7
inc eax
mov dword [0x498f58], eax
lea esi, [eax - 1]
jmp 0x45dcce
je 0x45dce6
xor ecx, ecx
test esi, esi
jl 0x45dce6
lea eax, [ecx*4 + 0x498f60]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x45dcd4
push 0
push 0x498fa0
call ebx
jmp 0x45db11
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret