joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bf5c
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 0x44c019
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 + 0x46f0e0]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x46f0e0]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x46f0e0]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x46f0e0]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x46f0e0]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x46f0e0]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x46f0e0]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x46f0e0]
inc ecx
dec edi
jne 0x44bf76
pop edi
test eax, eax
je 0x44c033
xor ebx, ebx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x46f0e0]
inc ecx
dec eax
jne 0x44c01d
mov eax, esi
pop esi
not eax
pop ebx
ret

Function at 0x44c794
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 0x44c7bf
cmp byte [eax + 1], 0x3a
jne 0x44c7bf
inc eax
inc eax
cmp byte [eax], 0x5c
jne 0x44c7c5
inc eax
push esi
jmp 0x44c814
cmp cl, 0x5c
je 0x44c7e5
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x44c7c8
xor esi, esi
test esi, esi
jne 0x44c7e9
cmp dword [ebp + 0xc], esi
jne 0x44c7ec
xor eax, eax
inc eax
pop esi
leave
ret
mov esi, eax
jmp 0x44c7d6
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 0x44c80a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x44c81c
test esi, esi
je 0x44c7df
mov byte [esi], 0x5c
lea eax, [esi + 1]
mov cl, byte [eax]
test cl, cl
jne 0x44c7c8
jmp 0x44c7df
test esi, esi
je 0x44c823
mov byte [esi], 0x5c
xor eax, eax
jmp 0x44c7e2
Function at 0x44d9ae
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 0x44d9c5
push 9
pop eax
jmp 0x44dac9
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [esi + 8], edi
test byte [ebx + 4], 0x10
je 0x44d9f4
inc edi
push edi
push dword [ebp + 8]
call fcn.0044c794
test eax, eax
pop ecx
pop ecx
jne 0x44d9ed
mov dword [esi + 8], edi
jmp 0x44dabf
xor eax, eax
jmp 0x44dac7
push edi
push dword [ebp + 8]
call fcn.0044c794
test eax, eax
pop ecx
pop ecx
je 0x44da21
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 0x44da2d
mov dword [esi + 8], 1
jmp 0x44dabf
mov eax, esi
call fcn.0044c2d9
cmp dword [esi + 8], edi
jne 0x44dab6
cmp dword [esi + 0x28], edi
mov ebx, 0x4000
jne 0x44da94
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
cmp eax, edi
mov dword [esi + 0x28], eax
jne 0x44da94
mov dword [esi + 8], 2
jmp 0x44da94
push ebx
push dword [esi + 0x28]
push esi
call fcn.0044d87b
add esp, 0xc
cmp eax, edi
mov dword [ebp - 8], eax
je 0x44da99
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 0x44da8d
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
je 0x44da94
mov dword [esi + 8], 3
cmp dword [esi + 8], edi
je 0x44da5b
cmp dword [esi + 8], edi
jne 0x44dab6
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.0044c2b0
mov eax, dword [esi + 8]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x44de70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x462d98
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 0x44ded2
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 0x44df18
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.0041af25
cmp dword [esp + 0x30], 0x10
jb 0x44dfac
mov edx, dword [esp + 0x1c]
push edx
jmp 0x44dfa4
push esi
call fcn.0044ef98
mov ebp, eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x18]
add esp, 4
cmp ecx, 8
jb 0x44df37
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
jmp 0x44df3b
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 0x44df5e
dec esi
push esi
push ebp
lea ecx, [esp + 0x20]
call fcn.0041bc08
push ebp
call fcn.0045012d
mov eax, dword [esp + 0x54]
add esp, 4
cmp eax, ebx
je 0x44df78
cmp dword [esp + 0x14], ebx
jne 0x44df78
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.0041af25
cmp dword [esp + 0x30], 0x10
jb 0x44dfac
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0044fdde
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 0x44e242
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
jne 0x44e264
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x44e264
mov eax, dword [eax + 0x98]
test eax, eax
jne 0x44e268
xor eax, eax
jmp 0x44e26a
add eax, ecx
ret 4
Function at 0x44e660
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
push 0x104
lea eax, [ebp - 0x130]
push eax
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x44e68d
xor al, al
jmp 0x44e76c
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x130]
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x44e760
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x44e757
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x44e757
push edi
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x44e756
mov edi, dword [ebp + 8]
push edi
push dword [ebp - 0x20]
mov ecx, esi
push dword [ebp - 8]
call fcn.0044e2ea
test al, al
je 0x44e747
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x44e747
mov cx, word [edi + 0x10]
cmp word [eax + 0x10], cx
jne 0x44e747
movzx ecx, cx
push ecx
push eax
push edi
call fcn.0044fdf0
add esp, 0xc
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0044e572
mov byte [ebp - 1], 1
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov word [esi + 0x10], bx
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 8

Function at 0x44e8e0
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 0x44e958
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x44e951
mov edi, dword [ebp + 8]
lea esp, [esp]
lea ecx, [esp + 0x2c]
push edi
push ecx
call fcn.00452ad3
add esp, 8
test eax, eax
je 0x44e960
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x44e930
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 0x44e9b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push eax
xor bl, bl
call fcn.0044e8e0
mov esi, eax
add esp, 4
test esi, esi
je 0x44ea15
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, ebp
imul edi, edi, 0x3e8
cmp esi, 0xffffffff
je 0x44ea13
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 0x44e9f9
dec ebp
sub edi, 0x3e8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0044e8e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x44e9d5
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
ret

Function at 0x4520fa
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x470a88
call fcn.00454bf8
mov edi, 0x94
mov eax, edi
call fcn.00456890
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 [0x48fd20], ecx
mov eax, dword [esi + 4]
mov dword [0x48fd2c], eax
mov edx, dword [esi + 8]
mov dword [0x48fd30], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x48fd24], esi
cmp ecx, 2
je 0x45215a
or esi, 0x8000
mov dword [0x48fd24], esi
shl eax, 8
add eax, edx
mov dword [0x48fd28], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x452195
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x452195
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4521ad
cmp eax, 0x20b
je 0x45219a
mov dword [ebp - 0x1c], esi
jmp 0x4521c1
cmp dword [ecx + 0x84], 0xe
jbe 0x452195
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4521bb
cmp dword [ecx + 0x74], 0xe
jbe 0x452195
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00454f03
pop ecx
test eax, eax
jne 0x4521d5
push 0x1c
call fcn.00452080
pop ecx
call fcn.004562dd
test eax, eax
jne 0x4521e6
push 0x10
call fcn.00452080
pop ecx
call fcn.00459ee9
mov dword [ebp - 4], esi
call fcn.00459c9f
test eax, eax
jge 0x4521ff
push 0x1b
call fcn.0045205b
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x491ee8], eax
call fcn.00459b7d
mov dword [0x48fcf8], eax
call fcn.00459adb
test eax, eax
jge 0x452225
push 8
call fcn.0045205b
pop ecx
call fcn.004598a8
test eax, eax
jge 0x452236
push 9
call fcn.0045205b
pop ecx
push 1
call fcn.00454a12
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x45224c
push eax
call fcn.0045205b
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.0045984b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x45226d
movzx eax, word [ebp - 0x40]
jmp 0x452270
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00430403
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x45228e
push edi
call fcn.00454b3f
call fcn.00454b61
jmp 0x4522c0
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00454c33
ret
Function at 0x454a7c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x470e08
call fcn.00454bf8
push 8
call fcn.00454eb8
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x48fd60], esi
jne 0x454ab0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x48fd5c], esi
mov al, byte [ebp + 0x10]
mov byte [0x48fd58], al
cmp dword [ebp + 0xc], edi
jne 0x454afa
cmp dword [0x491ed0], edi
je 0x454aea
mov eax, dword [0x491ecc]
sub eax, 4
mov dword [0x491ecc], eax
cmp eax, dword [0x491ed0]
jb 0x454aea
mov eax, dword [eax]
cmp eax, edi
je 0x454acb
call eax
jmp 0x454acb
push 0x48d084
mov eax, 0x48d07c
call fcn.004549dc
pop ecx
push 0x48d090
mov eax, 0x48d088
call fcn.004549dc
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x454b2b
cmp dword [ebp + 0x10], edi
jne 0x454b39
mov dword [0x48fd60], esi
push dword [ebp + 8]
call fcn.0045499a
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x454b38
push 8
call fcn.00454deb
pop ecx
ret
call fcn.00454c33
ret

Function at 0x4563cc
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.00456890
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x456467
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 [0x48fd20]
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 0x456467
cmp eax, 1
je 0x456488
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 0x456467
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x456434
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x456463
xor eax, eax
inc eax
jmp 0x4564a7
cmp edi, eax
jae 0x45646b
xor eax, eax
jmp 0x4564a7
cmp eax, esi
jae 0x456472
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 [0x48fd20]
jmp 0x45648b
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 0x4594c6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x48d730]
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 + 0x48d850]
je 0x4594fb
inc eax
cmp eax, 0x13
jb 0x4594ec
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x48d850]
jne 0x459621
mov eax, dword [0x48fd00]
cmp eax, 1
je 0x4595f9
cmp eax, edx
jne 0x45952b
cmp dword [0x48d264], 1
je 0x4595f9
cmp ecx, 0xfc
je 0x459621
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 0x459561
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00451e00
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00450c50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x459595
mov eax, edi
push eax
call fcn.00450c50
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x47185c
push edi
call fcn.00457550
add esp, 0x10
push edi
call fcn.00450c50
push dword [esi + 0x48d854]
mov ebx, eax
call fcn.00450c50
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00456890
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00451e00
push edi
push ebx
call fcn.00451e10
push 0x4789a0
push ebx
call fcn.00451e10
push dword [esi + 0x48d854]
push ebx
call fcn.00451e10
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0045e9be
add esp, 0x2c
jmp 0x459621
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x48d854]
push dword [esi]
call fcn.00450c50
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.00457538
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x45d8a6
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 0x45d8d4
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 0x45d8db
cmp ebx, dword [eax + 4]
jae 0x45d8db
xor eax, eax
jmp 0x45dacb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x45d8ec
xor eax, eax
inc eax
jmp 0x45daca
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x45d902
cmp ecx, edx
jae 0x45da47
cmp dword [eax + 4], 0
je 0x45d90b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x45d8f3
cmp dword [ebp + 8], 0
je 0x45d92d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x45da47
cmp eax, esi
jae 0x45da47
mov eax, dword [0x490078]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x45d952
cmp dword [esi*4 + 0x490080], edi
je 0x45da4b
inc esi
cmp esi, eax
jl 0x45d940
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x45dac7
cmp dword [ebp - 8], 0x1000000
jne 0x45dac7
test byte [ebp - 0xc], 0xcc
je 0x45d9d0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x45dac7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x45dac7
cmp word [eax + 0x18], 0x10b
jne 0x45dac7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x45dac7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x45d9d0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x45d9d0
test byte [ecx + 0x27], 0x80
jne 0x45da47
push 1
push 0x4900c0
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x45d8e4
mov ecx, dword [0x490078]
test ecx, ecx
mov edx, ecx
jle 0x45da04
lea eax, [ecx*4 + 0x49007c]
cmp dword [eax], edi
je 0x45da04
dec edx
sub eax, 4
test edx, edx
jg 0x45d9f8
test edx, edx
jne 0x45da35
push 0xf
pop ebx
cmp ecx, ebx
jg 0x45da11
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x45da29
lea eax, [edx*4 + 0x490080]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x45da17
cmp ecx, 0x10
jge 0x45da35
inc ecx
mov dword [0x490078], ecx
push 0
push 0x4900c0
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x45d8e4
xor eax, eax
jmp 0x45daca
test esi, esi
jle 0x45d8e4
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x4900c0
call ebx
test eax, eax
jne 0x45d8e4
cmp dword [esi*4 + 0x490080], edi
je 0x45daa1
mov eax, dword [0x490078]
lea esi, [eax - 1]
test esi, esi
jl 0x45da8f
cmp dword [esi*4 + 0x490080], edi
je 0x45da8b
dec esi
jns 0x45da7f
test esi, esi
jge 0x45da9f
cmp eax, 0x10
jge 0x45da9a
inc eax
mov dword [0x490078], eax
lea esi, [eax - 1]
jmp 0x45daa1
je 0x45dab9
xor ecx, ecx
test esi, esi
jl 0x45dab9
lea eax, [ecx*4 + 0x490080]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x45daa7
push 0
push 0x4900c0
call ebx
jmp 0x45d8e4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45de95
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x48d730]
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 0x45dec6
xor eax, eax
jmp 0x45e04f
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 + 0x491b60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x45df02
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0046001c
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x45dfdd
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x45e01b
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 0x45df66
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x45df57
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 0x45df37
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 0x45dfa6
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x45dfaf
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x45df28
jmp 0x45dfb1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x45e04a
cmp dword [ebp - 0x6c], edi
je 0x45e01b
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x45e010
call fcn.004568cd
mov dword [eax], 9
call fcn.004568d6
mov dword [eax], esi
jmp 0x45e045
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 0x45e005
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x45dfb1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x45dfb1
push dword [ebp - 0x6c]
call fcn.004568df
pop ecx
jmp 0x45e045
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x45e033
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x45e033
xor eax, eax
jmp 0x45e04d
call fcn.004568cd
mov dword [eax], 0x1c
call fcn.004568d6
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x45e04d
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00457538
add ebp, 0x3a0
leave
ret