joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e140
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov ebp, ecx
mov ecx, dword [esp + 0x34]
push edi
mov dword [esp + 0x28], ebp
call fcn.0043fb50
mov ebx, eax
mov eax, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x2c], ebx
call dword [eax + 0x48]
mov esi, ebx
shr esi, 0x18
cmp esi, 0xff
mov dword [esp + 0x14], eax
jne 0x46e1d3
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0xc]
add ecx, eax
cmp eax, ecx
jge 0x46e318
mov esi, dword [edi + 8]
lea esp, [esp]
mov edx, dword [ebp + 4]
mov ecx, dword [edi]
imul edx, eax
add edx, ecx
mov ecx, dword [esp + 0x14]
lea ecx, [ecx + edx*4]
xor edx, edx
test esi, esi
jle 0x46e1b4
mov dword [ecx], ebx
mov esi, dword [edi + 8]
add ecx, 4
inc edx
cmp edx, esi
jl 0x46e1a7
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0xc]
inc eax
add edx, ecx
cmp eax, edx
jl 0x46e190
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
mov ecx, dword [edx + 0xc]
add ecx, eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x46e318
mov ecx, dword [edx + 8]
mov edi, edi
mov edi, dword [ebp + 4]
imul edi, eax
add edi, dword [edx]
test ecx, ecx
mov eax, dword [esp + 0x14]
lea eax, [eax + edi*4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], 0
jle 0x46e301
mov eax, ebx
and eax, 0xff0000
mov dword [esp + 0x24], eax
mov eax, ebx
and eax, 0xff
and ebx, 0xff00
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx]
mov ebx, ecx
shr ebx, 0x18
mov edi, 0xff
sub edi, ebx
imul edi, esi
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
add edx, ebx
mov eax, esi
imul eax, eax, 0xff
mov ebp, edx
cdq
idiv ebp
mov ebx, dword [esp + 0x20]
mov edx, ecx
and edx, 0xff
mov edi, pe_nt_image_headers32
shl ebp, 0x18
mov esi, eax
mov eax, dword [esp + 0x1c]
imul ebx, esi
imul eax, esi
sub edi, esi
imul edx, edi
shr eax, 8
shr edx, 8
add edx, eax
mov eax, ecx
and eax, 0xff00
imul eax, edi
shr eax, 8
movzx edx, dl
shr ebx, 8
add eax, ebx
mov dh, ah
mov eax, dword [esp + 0x24]
and ecx, 0xff0000
imul eax, esi
imul ecx, edi
shr ecx, 8
shr eax, 8
add ecx, eax
mov eax, dword [esp + 0x38]
and ecx, 0xff0000
or edx, ecx
mov ecx, dword [esp + 0x34]
or edx, ebp
mov dword [eax], edx
mov ecx, dword [ecx + 8]
add eax, 4
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x46e233
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov edi, dword [edx + 4]
add edi, dword [edx + 0xc]
inc eax
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x46e1f0
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x475800
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x108
push str.IMAGEHLP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x520640], eax
jne 0x475823
xor al, al
add esp, 0x108
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SymInitialize
push eax
call esi
test eax, eax
mov dword [0x520644], eax
jne 0x475845
xor al, al
pop esi
add esp, 0x108
ret
mov eax, dword [0x520640]
push str.SymSetOptions
push eax
call esi
test eax, eax
mov dword [0x520648], eax
je 0x47583b
mov ecx, dword [0x520640]
push str.SymCleanup
push ecx
call esi
test eax, eax
mov dword [0x520650], eax
je 0x47583b
mov edx, dword [0x520640]
push str.UnDecorateSymbolName
push edx
call esi
test eax, eax
mov dword [0x52064c], eax
je 0x47583b
mov eax, dword [0x520640]
push str.StackWalk
push eax
call esi
test eax, eax
mov dword [0x520654], eax
je 0x47583b
mov ecx, dword [0x520640]
push str.SymFunctionTableAccess
push ecx
call esi
test eax, eax
mov dword [0x520658], eax
je 0x47583b
mov edx, dword [0x520640]
push str.SymGetModuleBase
push edx
call esi
test eax, eax
mov dword [0x52065c], eax
je 0x47583b
mov eax, dword [0x520640]
push str.SymGetSymFromAddr
push eax
call esi
test eax, eax
mov dword [0x520660], eax
je 0x47583b
push 4
call dword [0x520648]
push 0x104
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 8]
push 0x2f
push edx
call fcn.004a1eb0
add esp, 8
test eax, eax
jne 0x47592b
lea eax, [esp + 8]
push 0x5c
push eax
call fcn.004a1eb0
add esp, 8
test eax, eax
je 0x47592e
mov byte [eax], 0
lea eax, [esp + 8]
lea edx, [esp + 8]
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x475940
sub eax, esi
mov dword [esp + 4], eax
jne 0x475951
xor edx, edx
push 1
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x520644]
test eax, eax
setne al
pop esi
add esp, 0x108
ret

Function at 0x475990
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push edi
mov edi, dword [esp + 0x24]
push 0x1c
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4759b1
xor al, al
pop edi
add esp, 0x1c
ret
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x475a10
mov eax, dword [esi + 0x3c]
movzx ebp, word [eax + esi + 6]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
sub edi, esi
xor ebx, ebx
test ebp, ebp
lea ecx, [ecx + eax + 0x18]
jbe 0x475a10
lea eax, [ecx + 0x10]
jmp 0x4759f0
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov esi, dword [eax - 4]
ja 0x4759fe
mov ecx, edx
cmp edi, esi
jb 0x475a08
add ecx, esi
cmp edi, ecx
jbe 0x475a1a
inc ebx
add eax, 0x28
cmp ebx, ebp
jb 0x4759f0
pop esi
pop ebp
pop ebx
xor al, al
pop edi
add esp, 0x1c
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebx
sub edi, esi
pop esi
pop ebp
mov dword [edx], ebx
mov dword [eax], edi
pop ebx
mov al, 1
pop edi
add esp, 0x1c
ret
Function at 0x4789a0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4c14c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
xor ebx, ebx
lea eax, [esi + 0xc]
push eax
mov dword [esi], vtable.Sexy::DSoundInstance.0
mov dword [esi + 4], ecx
mov byte [esi + 0x12], bl
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
mov dword [esi + 8], edx
mov dword [eax], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 0x3ff00000
mov ecx, dword [ecx + 0x898]
mov edi, dword [ecx]
push edx
push ecx
mov dword [esp + 0x24], ebx
call dword [edi + 0x14]
cmp eax, ebx
je 0x478a74
cmp eax, 0x8878000a
jg 0x478a41
je 0x478a34
cmp eax, 0x8007000e
je 0x478a27
cmp eax, 0x80070057
jne 0x478a6e
push ebx
push 0x4cd94c
push str.DSERR_INVALIDPARAM
jmp 0x478a67
push ebx
push 0x4cd94c
push str.DSERR_OUTOFMEMORY
jmp 0x478a67
push ebx
push 0x4cd94c
push str.DSERR_ALLOCATED
jmp 0x478a67
cmp eax, 0x88780032
je 0x478a5c
cmp eax, 0x887800aa
jne 0x478a6e
push ebx
push 0x4cd94c
push str.DSERR_UNINITIALIZED
jmp 0x478a67
push ebx
push 0x4cd94c
push str.DSERR_INVALIDCALL
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.004a1e6f
mov ecx, esi
call fcn.00478800
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x480110
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x480140
push esi
call fcn.004867d0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x480139
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4801b9
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4801a9
mov eax, dword [esi + 8]
test eax, eax
je 0x480164
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4801a5
cmp eax, 2
je 0x4801a9
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x480157
cmp eax, 3
je 0x48018a
cmp eax, 1
jne 0x480157
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x480157
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x480157
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.0047ffa0
pop esi
ret
cmp eax, 0xcc
je 0x4801d9
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
call fcn.0047ffa0
pop esi
ret
Function at 0x49ec2d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and byte [ebp - 4], 0
push edi
xor eax, eax
lea edi, [ebp - 3]
stosb byte es:[edi], al
push 2
lea eax, [ebp - 4]
push eax
push 0x22
call fcn.004a3bec
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov al, byte [ebp - 4]
cmp al, 0x30
pop edi
jne 0x49ec5f
push 2
pop eax
leave
ret
cmp al, 0x31
jne 0x49ec68
xor eax, eax
inc eax
leave
ret
sub al, 0x32
neg al
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
leave
ret

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

Disassembly:
push 0x60
push 0x4d0c58
call fcn.004a7b60
mov edi, 0x94
mov eax, edi
call fcn.004a0430
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 [0x5208c0], ecx
mov eax, dword [esi + 4]
mov dword [0x5208cc], eax
mov edx, dword [esi + 8]
mov dword [0x5208d0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x5208c4], esi
cmp ecx, 2
je 0x4a063b
or esi, 0x8000
mov dword [0x5208c4], esi
shl eax, 8
add eax, edx
mov dword [0x5208c8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4a0676
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a0676
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4a068e
cmp eax, 0x20b
je 0x4a067b
mov dword [ebp - 0x1c], esi
jmp 0x4a06a2
cmp dword [ecx + 0x84], 0xe
jbe 0x4a0676
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4a069c
cmp dword [ecx + 0x74], 0xe
jbe 0x4a0676
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004a7db3
pop ecx
test eax, eax
jne 0x4a06b6
push 0x1c
call fcn.004a05b7
pop ecx
call fcn.004a6a65
test eax, eax
jne 0x4a06c7
push 0x10
call fcn.004a05b7
pop ecx
call fcn.004a9299
mov dword [ebp - 4], esi
call fcn.004a909b
test eax, eax
jge 0x4a06e0
push 0x1b
call fcn.004a0592
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x522574], eax
call fcn.004a8f79
mov dword [0x5208ac], eax
call fcn.004a8ed7
test eax, eax
jge 0x4a0706
push 8
call fcn.004a0592
pop ecx
call fcn.004a8ca4
test eax, eax
jge 0x4a0717
push 9
call fcn.004a0592
pop ecx
call fcn.004a1d37
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4a072a
push eax
call fcn.004a0592
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004a8c3b
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4a074b
movzx eax, word [ebp - 0x34]
jmp 0x4a074e
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0043e760
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4a076c
push edi
call fcn.004a1e6f
call fcn.004a1e91
jmp 0x4a079e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004a7b9b
ret
Function at 0x4a125c
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x4a1278
call fcn.004a2446
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x4a12ea
push esi
push 0x88
push 1
call fcn.004a9858
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4a12d0
push esi
call fcn.004a6876
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x4a11bc
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x4a12c8
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4a12e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004a00d7
test ebx, ebx
pop ecx
je 0x4a12e2
push ebx
call fcn.004a2458
pop ecx
or eax, 0xffffffff
jmp 0x4a12e9
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x4a1d9c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004a3d37
xor esi, esi
inc esi
cmp dword [0x520900], esi
pop ecx
jne 0x4a1dc4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x5208fc], esi
mov byte [0x5208f8], al
jne 0x4a1e2a
mov ecx, dword [0x52256c]
test ecx, ecx
je 0x4a1e0b
mov eax, dword [0x522568]
sub eax, 4
cmp eax, ecx
jmp 0x4a1e04
mov eax, dword [eax]
test eax, eax
je 0x4a1df6
call eax
mov eax, dword [0x522568]
sub eax, 4
cmp eax, dword [0x52256c]
mov dword [0x522568], eax
jae 0x4a1dee
mov eax, 0x4e6070
mov esi, 0x4e6078
cmp eax, esi
mov edi, eax
jae 0x4a1e2a
mov eax, dword [edi]
test eax, eax
je 0x4a1e23
call eax
add edi, 4
cmp edi, esi
jb 0x4a1e1b
mov eax, 0x4e607c
mov esi, 0x4e6084
cmp eax, esi
mov edi, eax
jae 0x4a1e49
mov eax, dword [edi]
test eax, eax
je 0x4a1e42
call eax
add edi, 4
cmp edi, esi
jb 0x4a1e3a
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4a1e5a
push 8
call fcn.004a3ca3
jmp 0x4a1e6c
push dword [ebp + 8]
mov dword [0x520900], 1
call fcn.004a1cf5
pop ecx
pop ebp
ret
Function at 0x4a211c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4e84e8]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x4a2197
push ebx
call fcn.004a20e5
test eax, eax
pop ecx
jne 0x4a2169
call fcn.004a244f
mov dword [eax], 0xf
call fcn.004a2446
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.004a47f2
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4a21a9
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4a2159
inc eax
cmp eax, 0x104
ja 0x4a2159
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4a21e1
cmp eax, dword [ebp + 0x10]
jg 0x4a21c4
mov eax, dword [ebp + 0x10]
push eax
call fcn.004a00c5
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4a21f6
call fcn.004a2446
mov dword [eax], 0xc
jmp 0x4a2159
cmp eax, dword [ebp + 0x10]
jle 0x4a21f6
call fcn.004a2446
mov dword [eax], 0x22
jmp 0x4a2159
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.004a7960
pop ecx
pop ecx
jmp 0x4a215b
Function at 0x4a8927
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4e84e8]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4e85e8]
je 0x4a8954
inc eax
cmp eax, 0x12
jb 0x4a8945
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4e85e8]
jne 0x4a8a88
mov eax, dword [0x5208b4]
cmp eax, 1
je 0x4a8a63
cmp eax, edx
jne 0x4a8984
cmp dword [0x4e7d94], 1
je 0x4a8a63
cmp ecx, 0xfc
je 0x4a8a88
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4a89bd
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004a7960
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004a3240
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4a89ff
lea eax, [ebp - 0x10c]
push eax
call fcn.004a3240
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4d1ae0
push edi
call fcn.004a0300
add esp, 0x10
push edi
call fcn.004a3240
push dword [esi + 0x4e85ec]
mov ebx, eax
call fcn.004a3240
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004a0430
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004a7960
push edi
push ebx
call fcn.004a7970
push 0x4d1ac0
push ebx
call fcn.004a7970
push dword [esi + 0x4e85ec]
push ebx
call fcn.004a7970
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004afad6
add esp, 0x2c
jmp 0x4a8a88
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4e85ec]
push dword [esi]
call fcn.004a3240
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004a47f2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a993e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4e84e8]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4a9967
xor eax, eax
jmp 0x4a9ad5
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x521420]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4a999a
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004b04c6
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4a9a6c
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4a9aa7
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4a99f5
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4a99e6
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x4a99c9
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a9a35
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4a9a3e
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4a99ba
jmp 0x4a9a40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4a9ad0
cmp dword [ebp - 8], edi
je 0x4a9aa7
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4a9a99
call fcn.004a2446
mov dword [eax], 9
call fcn.004a244f
mov dword [eax], esi
jmp 0x4a9aa2
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a9a8e
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4a9a40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4a9a40
push dword [ebp - 8]
call fcn.004a2458
pop ecx
or eax, 0xffffffff
jmp 0x4a9ad3
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4a9abc
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4a9abc
xor eax, eax
jmp 0x4a9ad3
call fcn.004a2446
mov dword [eax], 0x1c
call fcn.004a244f
mov dword [eax], edi
jmp 0x4a9aa2
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004a47f2
leave
ret
Function at 0x4aa267
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4aa42d
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x521420]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4aa42d
test cl, 0x48
je 0x4aa2cd
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4aa2cd
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4aa31f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4aa307
call fcn.004a2446
mov dword [eax], 9
call fcn.004a244f
mov dword [eax], esi
jmp 0x4aa317
cmp eax, 0x6d
je 0x4aa42d
push eax
call fcn.004a2458
pop ecx
or eax, 0xffffffff
jmp 0x4aa42f
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4aa428
test edx, edx
je 0x4aa342
cmp byte [ebx], 0xa
jne 0x4aa342
or al, 4
jmp 0x4aa344
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4aa422
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4aa412
cmp al, 0xd
je 0x4aa378
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4aa404
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4aa392
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4aa38d
add dword [ebp + 0x10], 2
jmp 0x4aa3e6
mov dword [ebp + 0x10], eax
jmp 0x4aa400
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4aa3ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4aa400
cmp dword [ebp - 0xc], 0
je 0x4aa400
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4aa3db
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4aa3e6
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4aa403
cmp ebx, dword [ebp + 0xc]
jne 0x4aa3eb
cmp byte [ebp - 1], 0xa
jne 0x4aa3eb
mov byte [ebx], 0xa
jmp 0x4aa403
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004a9f4b
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4aa404
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4aa35c
jmp 0x4aa422
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4aa422
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4aa42f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4accb4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004a0430
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4acd49
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x5208c0]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4acd49
cmp eax, 1
je 0x4acd61
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4acd49
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4acd1e
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4acd45
xor eax, eax
inc eax
jmp 0x4acd7d
cmp esi, ebx
jae 0x4acd4d
xor eax, eax
jmp 0x4acd7d
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x5208c0]
jmp 0x4acd63
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret