joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481430
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0xf2]
xor ebx, ebx
cmp al, bl
jne 0x481516
lea ecx, [ecx]
cmp byte [ebp + 8], bl
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x210], ebx
je 0x481477
mov eax, dword [esi + 8]
mov dword [ebp - 0x108], eax
mov eax, 1
mov dword [ebp - 0x10c], eax
jmp 0x48147c
mov eax, 1
cmp byte [ebp + 0xc], bl
je 0x481490
mov ecx, dword [esi + 8]
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x210], eax
mov edx, dword [esi + 8]
mov dword [ebp - 0x314], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x314]
push ecx
mov dword [ebp - 0x310], edx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x10c]
push eax
push 0x40
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x186a0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x481520
mov edx, dword [esi + 8]
lea ecx, [ebp - 0x314]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x481520
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x10c]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x481516
mov eax, dword [esi + 8]
lea edx, [ebp - 0x210]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x481516
cmp byte [esi + 0xf2], bl
je 0x481450
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push 6
mov ecx, esi
call fcn.00481410
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x481ba0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov ecx, 0x57f490
jmp 0x481b90

Function at 0x481f80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov cl, byte [eax + 0x51d]
test cl, cl
jne 0x482034
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0x504800
push 0
push str.SoftwarePopCapBeta
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x482034
cmp dword [esi + 0x15c], 0x10
mov ecx, dword [esi + 0x158]
jb 0x481fdd
mov eax, dword [esi + 0x148]
jmp 0x481fe3
lea eax, [esi + 0x148]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
push eax
mov eax, dword [ebp - 4]
push 1
push 0
push str.Name
push eax
call edi
cmp dword [esi + 0x178], 0x10
mov eax, dword [esi + 0x174]
jb 0x482012
mov esi, dword [esi + 0x164]
jmp 0x482018
add esi, 0x164
mov ecx, dword [ebp - 4]
push eax
push esi
push 1
push 0
push str.Password
push ecx
call edi
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4898d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x532ae0]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
mov cl, byte [eax + 0x51d]
test cl, cl
jne 0x4899c6
lea ecx, [ebp - 8]
push ecx
push 0x20019
push 0
push str.SoftwarePopCapBeta
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4899c6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push str.Name
push edx
mov dword [ebp - 0xc], 0x100
call edi
test eax, eax
jne 0x48996e
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x489952
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [esi + 0x144]
call fcn.00408ff0
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.Password
push ecx
mov dword [ebp - 0xc], 0x100
call edi
test eax, eax
pop edi
jne 0x4899bc
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4899a0
sub eax, edx
push eax
lea edx, [ebp - 0x110]
push edx
lea ecx, [esi + 0x160]
call fcn.00408ff0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.004e19df
mov esp, ebp
pop ebp
ret
Function at 0x49b290
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push eax
mov dword [esi], vtable.Sexy::BASS_INSTANCE.0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [esi + 4], eax
je 0x49b476
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.BASS_Init
push eax
call edi
push str.BASS_Init
push eax
mov dword [esi + 8], eax
call fcn.0049b230
mov ecx, dword [esi + 4]
add esp, 8
push str.BASS_Free
push ecx
call edi
push str.BASS_Free
push eax
mov dword [esi + 0xc], eax
call fcn.0049b230
mov edx, dword [esi + 4]
add esp, 8
push str.BASS_Stop
push edx
call edi
push str.BASS_Stop
push eax
mov dword [esi + 0x10], eax
call fcn.0049b230
mov eax, dword [esi + 4]
add esp, 8
push str.BASS_Start
push eax
call edi
push str.BASS_Start
push eax
mov dword [esi + 0x14], eax
call fcn.0049b230
mov ecx, dword [esi + 4]
add esp, 8
push str.BASS_SetGlobalVolumes
push ecx
call edi
push str.BASS_SetGlobalVolumes
push eax
mov dword [esi + 0x18], eax
call fcn.0049b230
mov edx, dword [esi + 4]
add esp, 8
push str.BASS_ChannelStop
push edx
call edi
push str.BASS_ChannelStop
push eax
mov dword [esi + 0x1c], eax
call fcn.0049b230
mov eax, dword [esi + 4]
add esp, 8
push str.BASS_ChannelPause
push eax
call edi
push str.BASS_ChannelPause
push eax
mov dword [esi + 0x20], eax
call fcn.0049b230
mov ecx, dword [esi + 4]
add esp, 8
push str.BASS_ChannelResume
push ecx
call edi
push str.BASS_ChannelResume
push eax
mov dword [esi + 0x24], eax
call fcn.0049b230
mov edx, dword [esi + 4]
add esp, 8
push str.BASS_ChannelSetAttributes
push edx
call edi
push str.BASS_ChannelSetAttributes
push eax
mov dword [esi + 0x28], eax
call fcn.0049b230
mov eax, dword [esi + 4]
add esp, 8
push str.BASS_ChannelIsActive
push eax
call edi
push str.BASS_ChannelIsActive
push eax
mov dword [esi + 0x30], eax
call fcn.0049b230
mov ecx, dword [esi + 4]
add esp, 8
push str.BASS_MusicLoad
push ecx
call edi
push str.BASS_MusicLoad
push eax
mov dword [esi + 0x34], eax
call fcn.0049b230
mov edx, dword [esi + 4]
add esp, 8
push str.BASS_MusicPlay
push edx
call edi
push str.BASS_MusicPlay
push eax
mov dword [esi + 0x38], eax
call fcn.0049b230
mov eax, dword [esi + 4]
add esp, 8
push str.BASS_MusicPlayEx
push eax
call edi
push str.BASS_MusicPlayEx
push eax
mov dword [esi + 0x3c], eax
call fcn.0049b230
mov ecx, dword [esi + 4]
add esp, 8
push str.BASS_StreamCreateFile
push ecx
call edi
push str.BASS_StreamCreateFile
push eax
mov dword [esi + 0x40], eax
call fcn.0049b230
mov edx, dword [esi + 4]
add esp, 8
push str.BASS_StreamFree
push edx
call edi
push str.BASS_StreamFree
push eax
mov dword [esi + 0x44], eax
call fcn.0049b230
mov eax, dword [esi + 4]
add esp, 8
push str.BASS_StreamPlay
push eax
call edi
push str.BASS_StreamPlay
push eax
mov dword [esi + 0x48], eax
call fcn.0049b230
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
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 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