joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b382
Capabilities:
Execute vbscript javascript or jscript in memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push eax
push str.JScript
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
lea esi, [edi + 0x10]
push esi
push 0x464a2c
push 1
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x43b3b7
xor eax, eax
jmp 0x43b406
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
lea ebx, [edi + 0x14]
push ebx
push 0x464a1c
push eax
call dword [ecx]
test eax, eax
jge 0x43b3d0
xor eax, eax
jmp 0x43b405
mov eax, dword [esi]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x43b3cc
mov ebx, dword [ebx]
mov eax, dword [ebx]
push ebx
call dword [eax + 0xc]
test eax, eax
jl 0x43b3cc
cmp dword [edi + 0xc], 0
je 0x43b3f8
mov ecx, dword [edi + 0xc]
push dword [esi]
mov eax, dword [ecx]
call dword [eax]
mov esi, dword [esi]
mov eax, dword [esi]
push 2
push esi
call dword [eax + 0x14]
xor eax, eax
inc eax
pop ebx
pop esi
leave
ret

Function at 0x4421c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45ac68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], eax
mov byte [esp + 0x14], al
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov dword [esp + 4], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
push 0xffffffffffffffff
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x44]
push eax
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], eax
call fcn.00418bb2
mov eax, dword [esp + 0x48]
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
mov dword [esp + 0x30], eax
call fcn.00441b70
cmp dword [esp + 0x28], 0x10
pop esi
jb 0x442244
mov edx, dword [esp + 0x10]
push edx
call fcn.00448428
add esp, 4
mov ecx, dword [esp + 0x2c]
xor al, al
mov dword fs:[0], ecx
add esp, 0x38
ret 0xc
Function at 0x444c1c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp eax, 8
push ebx
push esi
mov esi, edx
not esi
mov edx, 0xff
jb 0x444cd9
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [ecx]
sub eax, 8
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x464ff8]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x464ff8]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x464ff8]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x464ff8]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x464ff8]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x464ff8]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x464ff8]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x464ff8]
inc ecx
dec edi
jne 0x444c36
pop edi
test eax, eax
je 0x444cf3
xor ebx, ebx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x464ff8]
inc ecx
dec eax
jne 0x444cdd
mov eax, esi
pop esi
not eax
pop ebx
ret

Function at 0x445454
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
cmp byte [eax], 0
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
je 0x44547f
cmp byte [eax + 1], 0x3a
jne 0x44547f
inc eax
inc eax
cmp byte [eax], 0x5c
jne 0x445485
inc eax
push esi
jmp 0x4454d4
cmp cl, 0x5c
je 0x4454a5
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x445488
xor esi, esi
test esi, esi
jne 0x4454a9
cmp dword [ebp + 0xc], esi
jne 0x4454ac
xor eax, eax
inc eax
pop esi
leave
ret
mov esi, eax
jmp 0x445496
mov byte [esi], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x4454ca
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4454dc
test esi, esi
je 0x44549f
mov byte [esi], 0x5c
lea eax, [esi + 1]
mov cl, byte [eax]
test cl, cl
jne 0x445488
jmp 0x44549f
test esi, esi
je 0x4454e3
mov byte [esi], 0x5c
xor eax, eax
jmp 0x4454a2
Function at 0x44666e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
cmp dword [esi + 0x1c], 0xffffffff
jne 0x446685
push 9
pop eax
jmp 0x446789
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [esi + 8], edi
test byte [ebx + 4], 0x10
je 0x4466b4
inc edi
push edi
push dword [ebp + 8]
call fcn.00445454
test eax, eax
pop ecx
pop ecx
jne 0x4466ad
mov dword [esi + 8], edi
jmp 0x44677f
xor eax, eax
jmp 0x446787
push edi
push dword [ebp + 8]
call fcn.00445454
test eax, eax
pop ecx
pop ecx
je 0x4466e1
push edi
push dword [ebx + 4]
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4466ed
mov dword [esi + 8], 1
jmp 0x44677f
mov eax, esi
call fcn.00444f99
cmp dword [esi + 8], edi
jne 0x446776
cmp dword [esi + 0x28], edi
mov ebx, 0x4000
jne 0x446754
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
cmp eax, edi
mov dword [esi + 0x28], eax
jne 0x446754
mov dword [esi + 8], 2
jmp 0x446754
push ebx
push dword [esi + 0x28]
push esi
call fcn.0044653b
add esp, 0xc
cmp eax, edi
mov dword [ebp - 8], eax
je 0x446759
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [esi + 0x28]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x44674d
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
je 0x446754
mov dword [esi + 8], 3
cmp dword [esi + 8], edi
je 0x44671b
cmp dword [esi + 8], edi
jne 0x446776
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 0x18]
push ecx
lea ecx, [eax + 8]
push ecx
add eax, 0x10
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.00444f70
mov eax, dword [esi + 8]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x446b30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45af08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
xor ebx, ebx
mov dword [esp + 0xc], ebx
push esi
mov ebp, 0xf
push edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov ecx, dword [esp + 0x4c]
cmp ecx, 0xc42c
sbb edi, edi
lea eax, [esp + 0x14]
and edi, eax
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0x18]
add eax, 4
cmp edx, 8
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
jb 0x446b92
mov eax, dword [eax]
push edi
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov esi, eax
cmp esi, ebx
jne 0x446bd8
mov esi, dword [esp + 0x44]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
push ecx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00418bb2
cmp dword [esp + 0x30], 0x10
jb 0x446c6c
mov edx, dword [esp + 0x1c]
push edx
jmp 0x446c64
push esi
call fcn.004475e8
mov ebp, eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x18]
add esp, 4
cmp ecx, 8
jb 0x446bf7
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
jmp 0x446bfb
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x4c]
push edi
push ebx
push esi
push ebp
push 0xffffffffffffffff
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
test eax, eax
je 0x446c1e
dec esi
push esi
push ebp
lea ecx, [esp + 0x20]
call fcn.00419a30
push ebp
call fcn.0044876d
mov eax, dword [esp + 0x54]
add esp, 4
cmp eax, ebx
je 0x446c38
cmp dword [esp + 0x14], ebx
jne 0x446c38
mov byte [eax], 1
mov esi, dword [esp + 0x44]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x20]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00418bb2
cmp dword [esp + 0x30], 0x10
jb 0x446c6c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00448428
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x446f30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
push esi
push edi
xor eax, eax
push eax
mov dword [esp + 0xc], 0
mov ecx, 0x49
lea edi, [esp + 0x10]
push 0xa
rep stosd dword es:[edi], eax
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x446fa8
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x446fa1
mov edi, dword [ebp + 8]
lea esp, [esp]
lea ecx, [esp + 0x2c]
push edi
push ecx
call fcn.0044afc4
add esp, 8
test eax, eax
je 0x446fb0
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x446f80
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x447000
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push eax
xor bl, bl
call fcn.00446f30
mov esi, eax
add esp, 4
test esi, esi
je 0x447065
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, ebp
imul edi, edi, 0x3e8
cmp esi, 0xffffffff
je 0x447063
push 0
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp ebp, 1
jbe 0x447049
dec ebp
sub edi, 0x3e8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00446f30
mov esi, eax
add esp, 4
test esi, esi
jne 0x447025
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
ret
Function at 0x44a604
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x466998
call fcn.0044d108
mov edi, 0x94
mov eax, edi
call fcn.0044eda0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x483b00], ecx
mov eax, dword [esi + 4]
mov dword [0x483b0c], eax
mov edx, dword [esi + 8]
mov dword [0x483b10], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x483b04], esi
cmp ecx, 2
je 0x44a664
or esi, 0x8000
mov dword [0x483b04], esi
shl eax, 8
add eax, edx
mov dword [0x483b08], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x44a69f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44a69f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x44a6b7
cmp eax, 0x20b
je 0x44a6a4
mov dword [ebp - 0x1c], esi
jmp 0x44a6cb
cmp dword [ecx + 0x84], 0xe
jbe 0x44a69f
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x44a6c5
cmp dword [ecx + 0x74], 0xe
jbe 0x44a69f
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0044d413
pop ecx
test eax, eax
jne 0x44a6df
push 0x1c
call fcn.0044a58a
pop ecx
call fcn.0044e7ed
test eax, eax
jne 0x44a6f0
push 0x10
call fcn.0044a58a
pop ecx
call fcn.004523f9
mov dword [ebp - 4], esi
call fcn.004521af
test eax, eax
jge 0x44a709
push 0x1b
call fcn.0044a565
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x485ca8], eax
call fcn.0045208d
mov dword [0x483ad8], eax
call fcn.00451feb
test eax, eax
jge 0x44a72f
push 8
call fcn.0044a565
pop ecx
call fcn.00451db8
test eax, eax
jge 0x44a740
push 9
call fcn.0044a565
pop ecx
push 1
call fcn.0044cf22
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x44a756
push eax
call fcn.0044a565
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.00451d5b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x44a777
movzx eax, word [ebp - 0x40]
jmp 0x44a77a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042ba09
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x44a798
push edi
call fcn.0044d04f
call fcn.0044d071
jmp 0x44a7ca
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0044d143
ret
Function at 0x44cf8c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x466d18
call fcn.0044d108
push 8
call fcn.0044d3c8
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x483b40], esi
jne 0x44cfc0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x483b3c], esi
mov al, byte [ebp + 0x10]
mov byte [0x483b38], al
cmp dword [ebp + 0xc], edi
jne 0x44d00a
cmp dword [0x485c90], edi
je 0x44cffa
mov eax, dword [0x485c8c]
sub eax, 4
mov dword [0x485c8c], eax
cmp eax, dword [0x485c90]
jb 0x44cffa
mov eax, dword [eax]
cmp eax, edi
je 0x44cfdb
call eax
jmp 0x44cfdb
push 0x481080
mov eax, 0x481078
call fcn.0044ceec
pop ecx
push 0x48108c
mov eax, 0x481084
call fcn.0044ceec
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x44d03b
cmp dword [ebp + 0x10], edi
jne 0x44d049
mov dword [0x483b40], esi
push dword [ebp + 8]
call fcn.0044ceaa
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x44d048
push 8
call fcn.0044d2fb
pop ecx
ret
call fcn.0044d143
ret

Function at 0x44e8dc
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.0044eda0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x44e977
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 [0x483b00]
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 0x44e977
cmp eax, 1
je 0x44e998
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 0x44e977
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x44e944
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x44e973
xor eax, eax
inc eax
jmp 0x44e9b7
cmp edi, eax
jae 0x44e97b
xor eax, eax
jmp 0x44e9b7
cmp eax, esi
jae 0x44e982
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 [0x483b00]
jmp 0x44e99b
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 0x4519d6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x481818]
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 + 0x481830]
je 0x451a0b
inc eax
cmp eax, 0x13
jb 0x4519fc
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x481830]
jne 0x451b31
mov eax, dword [0x483ae0]
cmp eax, 1
je 0x451b09
cmp eax, edx
jne 0x451a3b
cmp dword [0x481254], 1
je 0x451b09
cmp ecx, 0xfc
je 0x451b31
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 0x451a71
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0044a350
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00449290
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x451aa5
mov eax, edi
push eax
call fcn.00449290
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x46777c
push edi
call fcn.0044f900
add esp, 0x10
push edi
call fcn.00449290
push dword [esi + 0x481834]
mov ebx, eax
call fcn.00449290
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0044eda0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0044a350
push edi
push ebx
call fcn.0044a360
push 0x46e0ac
push ebx
call fcn.0044a360
push dword [esi + 0x481834]
push ebx
call fcn.0044a360
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00456ece
add esp, 0x2c
jmp 0x451b31
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x481834]
push dword [esi]
call fcn.00449290
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.00450122
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x455db6
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 0x455de4
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 0x455deb
cmp ebx, dword [eax + 4]
jae 0x455deb
xor eax, eax
jmp 0x455fdb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x455dfc
xor eax, eax
inc eax
jmp 0x455fda
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x455e12
cmp ecx, edx
jae 0x455f57
cmp dword [eax + 4], 0
je 0x455e1b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x455e03
cmp dword [ebp + 8], 0
je 0x455e3d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x455f57
cmp eax, esi
jae 0x455f57
mov eax, dword [0x483e58]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x455e62
cmp dword [esi*4 + 0x483e60], edi
je 0x455f5b
inc esi
cmp esi, eax
jl 0x455e50
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x455fd7
cmp dword [ebp - 8], 0x1000000
jne 0x455fd7
test byte [ebp - 0xc], 0xcc
je 0x455ee0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x455fd7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x455fd7
cmp word [eax + 0x18], 0x10b
jne 0x455fd7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x455fd7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x455ee0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x455ee0
test byte [ecx + 0x27], 0x80
jne 0x455f57
push 1
push 0x483ea0
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x455df4
mov ecx, dword [0x483e58]
test ecx, ecx
mov edx, ecx
jle 0x455f14
lea eax, [ecx*4 + 0x483e5c]
cmp dword [eax], edi
je 0x455f14
dec edx
sub eax, 4
test edx, edx
jg 0x455f08
test edx, edx
jne 0x455f45
push 0xf
pop ebx
cmp ecx, ebx
jg 0x455f21
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x455f39
lea eax, [edx*4 + 0x483e60]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x455f27
cmp ecx, 0x10
jge 0x455f45
inc ecx
mov dword [0x483e58], ecx
push 0
push 0x483ea0
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x455df4
xor eax, eax
jmp 0x455fda
test esi, esi
jle 0x455df4
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x483ea0
call ebx
test eax, eax
jne 0x455df4
cmp dword [esi*4 + 0x483e60], edi
je 0x455fb1
mov eax, dword [0x483e58]
lea esi, [eax - 1]
test esi, esi
jl 0x455f9f
cmp dword [esi*4 + 0x483e60], edi
je 0x455f9b
dec esi
jns 0x455f8f
test esi, esi
jge 0x455faf
cmp eax, 0x10
jge 0x455faa
inc eax
mov dword [0x483e58], eax
lea esi, [eax - 1]
jmp 0x455fb1
je 0x455fc9
xor ecx, ecx
test esi, esi
jl 0x455fc9
lea eax, [ecx*4 + 0x483e60]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x455fb7
push 0
push 0x483ea0
call ebx
jmp 0x455df4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4563a5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x481818]
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 0x4563d6
xor eax, eax
jmp 0x45655f
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 + 0x485920]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x456412
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0045852c
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4564ed
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x45652b
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 0x456476
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x456467
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 0x456447
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 0x4564b6
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4564bf
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x456438
jmp 0x4564c1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x45655a
cmp dword [ebp - 0x6c], edi
je 0x45652b
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x456520
call fcn.0044eddd
mov dword [eax], 9
call fcn.0044ede6
mov dword [eax], esi
jmp 0x456555
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 0x456515
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4564c1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4564c1
push dword [ebp - 0x6c]
call fcn.0044edef
pop ecx
jmp 0x456555
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x456543
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x456543
xor eax, eax
jmp 0x45655d
call fcn.0044eddd
mov dword [eax], 0x1c
call fcn.0044ede6
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x45655d
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00450122
add ebp, 0x3a0
leave
ret