joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b4a0
Capabilities:
Terminate process

Disassembly:
push 0x57ff58
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x57ff54]
test eax, eax
jne 0x49b4f9
push 0x4c
call fcn.004d1915
add esp, 4
test eax, eax
je 0x49b4d0
push str.bass.dll
mov ecx, eax
call fcn.0049b290
jmp 0x49b4d2
xor eax, eax
mov dword [0x57ff54], eax
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x49b4f9
push 0x10
push 0x508b60
push str.Cant_find_bass.dll.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004e28bf
ret

Function at 0x49b580
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x532ae0]
xor eax, dword [ebp + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x49b5d0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x404]
push str._s_function_not_found_in_fmod.dll
push ecx
call fcn.004e1c9e
add esp, 0xc
push 0x10
push 0x508b60
lea edx, [ebp - 0x404]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004e28bf
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004e19df
mov esp, ebp
pop ebp
ret
Function at 0x49b980
Capabilities:
Terminate process

Disassembly:
push 0x57ff60
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x57ff5c]
test eax, eax
jne 0x49b9dc
push 0x80
call fcn.004d1915
add esp, 4
test eax, eax
je 0x49b9b3
push str.fmod.dll
mov ecx, eax
call fcn.0049b5e0
jmp 0x49b9b5
xor eax, eax
mov dword [0x57ff5c], eax
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x49b9dc
push 0x10
push 0x508b60
push str.Cant_find_fmod.dll.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004e28bf
ret

Function at 0x49bd70
Capabilities:
Access peb ldr_data
Get kernel32 base address
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc448
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 [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
mov edx, 0x3ff00000
lea edi, [esi + 0xc]
mov dword [ebp - 4], ebx
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], eax
mov dword [edi], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x30], 0xac44
je 0x49be6b
mov ecx, dword [ecx + 0x1494]
mov edx, dword [ecx]
push edi
push eax
push ecx
call dword [edx + 0x14]
cmp eax, ebx
je 0x49be5f
cmp eax, 0x8878000a
jg 0x49be2c
je 0x49be1f
cmp eax, 0x8007000e
je 0x49be12
cmp eax, 0x80070057
jne 0x49be59
push ebx
push 0x509398
push str.DSERR_INVALIDPARAM
jmp 0x49be52
push ebx
push 0x509398
push str.DSERR_OUTOFMEMORY
jmp 0x49be52
push ebx
push 0x509398
push str.DSERR_ALLOCATED
jmp 0x49be52
cmp eax, 0x88780032
je 0x49be47
cmp eax, 0x887800aa
jne 0x49be59
push ebx
push 0x509398
push str.DSERR_UNINITIALIZED
jmp 0x49be52
push ebx
push 0x509398
push str.DSERR_INVALIDCALL
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.004e28bf
mov edi, dword [edi]
mov ecx, dword [edi]
lea eax, [esi + 0x30]
push eax
push edi
call dword [ecx + 0x20]
mov ecx, esi
call fcn.0049afd0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x49fc90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
pop ebp
ret
Function at 0x4a9790
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4a97c3
push esi
call fcn.004b6ad0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x4a97bc
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
pop ebp
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4a9844
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4a9833
lea ebx, [ebx]
mov eax, dword [esi + 8]
test eax, eax
je 0x4a97ed
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 0x4a982e
cmp eax, 2
je 0x4a9833
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a97e0
cmp eax, 3
je 0x4a9813
cmp eax, 1
jne 0x4a97e0
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x4a97e0
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4a97e0
xor al, al
pop esi
pop ebp
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004a9620
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x4a9864
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.004a9620
pop esi
pop ebp
ret

Function at 0x4ae8b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4ae8be
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 8
not eax
jb 0x4ae9b1
push ebx
push edi
mov edi, esi
shr edi, 3
xor edx, edx
mov dl, byte [ecx]
mov ebx, eax
shr ebx, 8
sub esi, 8
xor edx, eax
and edx, 0xff
mov eax, dword [edx*4 + 0x50bc18]
xor eax, ebx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x50bc18]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x50bc18]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x50bc18]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x50bc18]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x50bc18]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x50bc18]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x50bc18]
shr eax, 8
xor eax, edx
inc ecx
dec edi
jne 0x4ae8d7
pop edi
pop ebx
test esi, esi
je 0x4ae9d1
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x50bc18]
shr eax, 8
xor eax, edx
inc ecx
dec esi
jne 0x4ae9b5
not eax
pop esi
pop ebp
ret
Function at 0x4b37a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebx + 0x24]
push esi
push edi
mov dword [ebp - 4], eax
jmp 0x4b37b3
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub ecx, edx
sub ecx, esi
mov dword [ebp - 8], ecx
jne 0x4b37d4
test edx, edx
jne 0x4b37e3
test esi, esi
jne 0x4b37e3
mov ecx, eax
jmp 0x4b386c
cmp ecx, 0xffffffff
jne 0x4b37e3
mov ecx, 0xfffffffe
jmp 0x4b386c
mov esi, dword [ebx + 0x24]
lea esi, [eax + esi - 0x106]
cmp edx, esi
jb 0x4b386c
mov edi, dword [ebx + 0x30]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea esi, [edi + eax]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x68]
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x54]
sub esi, eax
sub edx, eax
sub ecx, eax
mov dword [ebx + 0x68], esi
mov esi, dword [ebx + 0x44]
mov dword [ebx + 0x54], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 0x64], edx
lea edx, [ecx + esi*2]
jmp 0x4b3830
movzx ecx, word [edx - 2]
sub edx, 2
cmp ecx, eax
jb 0x4b383f
sub ecx, eax
jmp 0x4b3841
xor ecx, ecx
dec esi
mov word [edx], cx
jne 0x4b3830
mov edx, dword [ebx + 0x38]
mov esi, eax
lea edx, [edx + eax*2]
nop
movzx ecx, word [edx - 2]
sub edx, 2
cmp ecx, eax
jb 0x4b385f
sub ecx, eax
jmp 0x4b3861
xor ecx, ecx
dec esi
mov word [edx], cx
jne 0x4b3850
mov ecx, dword [ebp - 8]
add ecx, eax
mov eax, dword [ebx]
mov edx, dword [eax + 4]
test edx, edx
je 0x4b38d0
mov edx, dword [ebx + 0x6c]
mov edi, dword [ebx + 0x64]
mov esi, dword [ebx + 0x30]
add edx, edi
add edx, esi
push edx
push eax
call fcn.004b3540
mov ecx, dword [ebx + 0x6c]
add ecx, eax
mov edx, ecx
add esp, 8
cmp edx, 3
mov dword [ebx + 0x6c], ecx
jb 0x4b38bb
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edx, 0x106
jae 0x4b38d0
mov edx, dword [ebx]
mov eax, dword [edx + 4]
test eax, eax
jne 0x4b37b0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b73a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
test edx, edx
push edi
mov edi, dword [ebp + 8]
je 0x4b7400
push ebx
push esi
mov ecx, dword [edx]
mov ebx, dword [ecx]
mov esi, dword [edx + 4]
mov ecx, dword [edx + 8]
add esi, ebx
cmp edi, ecx
mov ebx, edi
jl 0x4b73c4
mov ebx, ecx
xor ecx, ecx
test ebx, ebx
mov dword [ebp - 4], ebx
jle 0x4b73f2
lea ecx, [ecx]
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 0x18
xor edi, ebx
mov edi, dword [edi*4 + 0x530998]
shl eax, 8
xor eax, edi
mov edi, dword [ebp - 4]
inc ecx
cmp ecx, edi
jl 0x4b73d0
mov edi, dword [ebp + 8]
mov edx, dword [edx + 0xc]
sub edi, ecx
test edx, edx
mov dword [ebp + 8], edi
jne 0x4b73b0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4e067f
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.004e5c8c
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov al, byte [ebp - 4]
cmp al, 0x30
pop edi
jne 0x4e06b1
push 2
pop eax
leave
ret
cmp al, 0x31
jne 0x4e06ba
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 0x4e25ca
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x4e25e6
call fcn.004e3b2d
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x4e2658
push esi
push 0x88
push 1
call fcn.004e5142
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4e263e
push esi
call fcn.004e9c86
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x4e252a
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 0x4e2636
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4e2655
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004e2b1a
test ebx, ebx
pop ecx
je 0x4e2650
push ebx
call fcn.004e3b3f
pop ecx
or eax, 0xffffffff
jmp 0x4e2657
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x4e27ec
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004e5dd7
xor esi, esi
inc esi
cmp dword [0x580618], esi
pop ecx
jne 0x4e2814
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 [0x580614], esi
mov byte [0x580610], al
jne 0x4e287a
mov ecx, dword [0x581e30]
test ecx, ecx
je 0x4e285b
mov eax, dword [0x581e2c]
sub eax, 4
cmp eax, ecx
jmp 0x4e2854
mov eax, dword [eax]
test eax, eax
je 0x4e2846
call eax
mov eax, dword [0x581e2c]
sub eax, 4
cmp eax, dword [0x581e30]
mov dword [0x581e2c], eax
jae 0x4e283e
mov eax, 0x52e094
mov esi, 0x52e09c
cmp eax, esi
mov edi, eax
jae 0x4e287a
mov eax, dword [edi]
test eax, eax
je 0x4e2873
call eax
add edi, 4
cmp edi, esi
jb 0x4e286b
mov eax, 0x52e0a0
mov esi, 0x52e0a8
cmp eax, esi
mov edi, eax
jae 0x4e2899
mov eax, dword [edi]
test eax, eax
je 0x4e2892
call eax
add edi, 4
cmp edi, esi
jb 0x4e288a
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4e28aa
push 8
call fcn.004e5d43
jmp 0x4e28bc
push dword [ebp + 8]
mov dword [0x580618], 1
call fcn.004e2745
pop ecx
pop ebp
ret
Function at 0x4e2948
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x518ba8
call fcn.004ea2b8
mov edi, 0x94
mov eax, edi
call fcn.004e2130
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 [0x5805d8], ecx
mov eax, dword [esi + 4]
mov dword [0x5805e4], eax
mov edx, dword [esi + 8]
mov dword [0x5805e8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x5805dc], esi
cmp ecx, 2
je 0x4e29a8
or esi, 0x8000
mov dword [0x5805dc], esi
shl eax, 8
add eax, edx
mov dword [0x5805e0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4e29e3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e29e3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4e29fb
cmp eax, 0x20b
je 0x4e29e8
mov dword [ebp - 0x1c], esi
jmp 0x4e2a0f
cmp dword [ecx + 0x84], 0xe
jbe 0x4e29e3
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4e2a09
cmp dword [ecx + 0x74], 0xe
jbe 0x4e29e3
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004ec437
pop ecx
test eax, eax
jne 0x4e2a23
push 0x1c
call fcn.004e2924
pop ecx
call fcn.004e9e75
test eax, eax
jne 0x4e2a34
push 0x10
call fcn.004e2924
pop ecx
call fcn.004ebb87
mov dword [ebp - 4], esi
call fcn.004ec21f
test eax, eax
jge 0x4e2a4d
push 0x1b
call fcn.004e28ff
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x581e24], eax
call fcn.004ec0fd
mov dword [0x58061c], eax
call fcn.004ec05b
test eax, eax
jge 0x4e2a73
push 8
call fcn.004e28ff
pop ecx
call fcn.004ebe28
test eax, eax
jge 0x4e2a84
push 9
call fcn.004e28ff
pop ecx
call fcn.004e2787
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4e2a97
push eax
call fcn.004e28ff
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004ebdbf
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4e2ab8
movzx eax, word [ebp - 0x34]
jmp 0x4e2abb
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00433b90
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4e2ad9
push edi
call fcn.004e28bf
call fcn.004e28e1
jmp 0x4e2b0b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004ea2f3
ret
Function at 0x4e46ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x532ae0]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x4e476a
push ebx
call fcn.004e46b8
test eax, eax
pop ecx
jne 0x4e473c
call fcn.004e3b36
mov dword [eax], 0xf
call fcn.004e3b2d
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.004e19df
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 0x4e477c
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4e472c
inc eax
cmp eax, 0x104
ja 0x4e472c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4e47b4
cmp eax, dword [ebp + 0x10]
jg 0x4e4797
mov eax, dword [ebp + 0x10]
push eax
call fcn.004e5130
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4e47c9
call fcn.004e3b2d
mov dword [eax], 0xc
jmp 0x4e472c
cmp eax, dword [ebp + 0x10]
jle 0x4e47c9
call fcn.004e3b2d
mov dword [eax], 0x22
jmp 0x4e472c
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.004ea020
pop ecx
pop ecx
jmp 0x4e472e
Function at 0x4eb4e5
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 0x4eb6ab
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x580d00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4eb6ab
test cl, 0x48
je 0x4eb54b
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4eb54b
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 0x4eb59d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4eb585
call fcn.004e3b2d
mov dword [eax], 9
call fcn.004e3b36
mov dword [eax], esi
jmp 0x4eb595
cmp eax, 0x6d
je 0x4eb6ab
push eax
call fcn.004e3b3f
pop ecx
or eax, 0xffffffff
jmp 0x4eb6ad
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 0x4eb6a6
test edx, edx
je 0x4eb5c0
cmp byte [ebx], 0xa
jne 0x4eb5c0
or al, 4
jmp 0x4eb5c2
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 0x4eb6a0
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4eb690
cmp al, 0xd
je 0x4eb5f6
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4eb682
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4eb610
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4eb60b
add dword [ebp + 0x10], 2
jmp 0x4eb664
mov dword [ebp + 0x10], eax
jmp 0x4eb67e
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 0x4eb638
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4eb67e
cmp dword [ebp - 0xc], 0
je 0x4eb67e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4eb659
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4eb664
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4eb681
cmp ebx, dword [ebp + 0xc]
jne 0x4eb669
cmp byte [ebp - 1], 0xa
jne 0x4eb669
mov byte [ebx], 0xa
jmp 0x4eb681
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004ed358
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4eb682
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4eb5da
jmp 0x4eb6a0
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4eb6a0
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4eb6ad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4eb75d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x532ae0]
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 0x4eb786
xor eax, eax
jmp 0x4eb8f4
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 + 0x580d00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4eb7b9
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004f2acc
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4eb88b
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4eb8c6
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 0x4eb814
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4eb805
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 0x4eb7e8
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 0x4eb854
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4eb85d
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4eb7d9
jmp 0x4eb85f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4eb8ef
cmp dword [ebp - 8], edi
je 0x4eb8c6
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4eb8b8
call fcn.004e3b2d
mov dword [eax], 9
call fcn.004e3b36
mov dword [eax], esi
jmp 0x4eb8c1
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 0x4eb8ad
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4eb85f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4eb85f
push dword [ebp - 8]
call fcn.004e3b3f
pop ecx
or eax, 0xffffffff
jmp 0x4eb8f2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4eb8db
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4eb8db
xor eax, eax
jmp 0x4eb8f2
call fcn.004e3b2d
mov dword [eax], 0x1c
call fcn.004e3b36
mov dword [eax], edi
jmp 0x4eb8c1
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004e19df
leave
ret
Function at 0x4ebc0f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x532ae0]
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 + 0x5333f8]
je 0x4ebc3c
inc eax
cmp eax, 0x12
jb 0x4ebc2d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x5333f8]
jne 0x4ebd70
mov eax, dword [0x580624]
cmp eax, 1
je 0x4ebd4b
cmp eax, edx
jne 0x4ebc6c
cmp dword [0x532af4], 1
je 0x4ebd4b
cmp ecx, 0xfc
je 0x4ebd70
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 0x4ebca5
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004ea020
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004e52e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4ebce7
lea eax, [ebp - 0x10c]
push eax
call fcn.004e52e0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x519678
push edi
call fcn.004e4080
add esp, 0x10
push edi
call fcn.004e52e0
push dword [esi + 0x5333fc]
mov ebx, eax
call fcn.004e52e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004e2130
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004ea020
push edi
push ebx
call fcn.004ea030
push 0x519674
push ebx
call fcn.004ea030
push dword [esi + 0x5333fc]
push ebx
call fcn.004ea030
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004f1932
add esp, 0x2c
jmp 0x4ebd70
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x5333fc]
push dword [esi]
call fcn.004e52e0
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.004e19df
pop edi
pop esi
pop ebx
leave
ret