joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bad70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push edi
cmp dword [0x674634], 0
je 0x4badae
mov edi, 0x565b8c
lea edx, [ebp - 0x100]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4badd6
mov edi, 0x565bb8
lea edx, [ebp - 0x100]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.004e86b0
add esp, 8
lea eax, [ebp - 0x108]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x100]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x108], 0xffffffff
je 0x4bae56
mov dword [ebp - 0x104], 0xff
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
push str.CreateFileName
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c0c53
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x55c
mov dword [ebp - 0x558], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._s_s
lea eax, [ebp - 0x108]
push eax
call fcn.004e894d
add esp, 0x10
push 0x674648
mov ecx, dword [ebp - 4]
push ecx
call fcn.004e86a0
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x310]
push eax
call fcn.004e86a0
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x310]
push eax
push str._s_s_s
lea ecx, [ebp - 0x554]
push ecx
call fcn.004e894d
add esp, 0x14
lea edx, [ebp - 0x450]
push edx
lea eax, [ebp - 0x554]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x55c], eax
cmp dword [ebp - 0x55c], 0xffffffff
jne 0x4c0cf9
xor eax, eax
jmp 0x4c0df7
mov dword [ebp - 8], 0
mov dword [ebp - 0x558], 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_CharUpperA]
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
cmp dword [ebp - 8], 0
jne 0x4c0dce
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004e86a0
add esp, 8
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004e9170
add esp, 8
test eax, eax
je 0x4c0d9f
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.004e9170
add esp, 8
test eax, eax
je 0x4c0d9f
lea ecx, [ebp - 0x310]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004e86a0
add esp, 8
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004e86b0
add esp, 8
lea edx, [ebp - 0x450]
push edx
mov eax, dword [ebp - 0x55c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4c0dc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4c0dc9
mov dword [ebp - 8], 1
jmp 0x4c0d1e
mov ecx, dword [ebp - 0x55c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.004e86a0
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
call fcn.004e9200
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4c2093
Capabilities:
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov dword [ebp - 0x10c], ecx
mov eax, dword [ebp - 0x10c]
cmp dword [eax + 0x8d58], 0
je 0x4c20f2
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x8d58]
xor eax, eax
mov al, byte [edx + 0x672fc8]
test eax, eax
je 0x4c20f2
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x8d58]
mov al, byte [edx + 0x673000]
push eax
call fcn.0047de14
add esp, 4
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x8a90], eax
jmp 0x4c2109
mov ecx, dword [ebp - 0x10c]
call fcn.004db901
mov edx, dword [ebp - 0x10c]
mov dword [edx + 0x8a90], eax
mov eax, dword [ebp - 0x10c]
cmp dword [eax + 0x8a90], 0
jne 0x4c2136
push 0
push 0x56668c
push str.Test_fail__device_exist_
mov ecx, dword [ebp - 0x10c]
call fcn.0050a80e
xor eax, eax
jmp 0x4c22cb
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.004e8440
add esp, 0xc
cmp dword [0x56c110], 0
je 0x4c21ae
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0x8d58]
mov ecx, dword [eax*4 + 0x672f84]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.004b9500
add esp, 8
test eax, eax
jne 0x4c21ac
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x8d58]
sub ecx, 1
imul ecx, ecx, 0xff
add ecx, 0x673438
push ecx
push 0x5666b0
lea edx, [ebp - 0x108]
push edx
call fcn.004e894d
add esp, 0xc
jmp 0x4c2218
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x8d58]
movsx edx, byte [ecx + 0x673000]
cmp edx, 0x43
jl 0x4c21f0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x8d58]
movsx edx, byte [ecx + 0x673000]
push edx
push str.._c:
lea eax, [ebp - 0x108]
push eax
call fcn.004e894d
add esp, 0xc
jmp 0x4c2218
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x8d58]
movsx eax, byte [edx + 0x673000]
push eax
push str..PhysicalDrive_d
lea ecx, [ebp - 0x108]
push ecx
call fcn.004e894d
add esp, 0xc
mov edx, dword [ebp - 0x10c]
mov dword [edx + 0x8a9c], 0xffffffff
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x8a9c], eax
mov edx, dword [ebp - 0x10c]
cmp dword [edx + 0x8a9c], 0xffffffff
jne 0x4c227a
push 0
push 0x5666d0
push str.Cant_get_disk_handle
mov ecx, dword [ebp - 0x10c]
call fcn.0050a80e
xor eax, eax
jmp 0x4c22cb
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0x90018
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x8a9c]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0x90020
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x8a9c]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4c584e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0x74]
call fcn.004c2093
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x8a90], eax
mov edx, dword [ebp - 0x74]
cmp dword [edx + 0x8a90], 0
jne 0x4c5879
jmp 0x4c5a25
push 0x465
mov ecx, dword [ebp - 0x74]
call fcn.0050c0d4
mov dword [ebp - 0x70], eax
push 0x3e9
mov ecx, dword [ebp - 0x74]
call fcn.0050c0d4
mov dword [ebp - 4], eax
push 0x10
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
call fcn.0050c392
lea ecx, [ebp - 0x28]
push ecx
call fcn.004b6f8d
add esp, 4
mov dword [ebp - 0x10], eax
push 0x414
mov ecx, dword [ebp - 0x74]
call fcn.0050c0d4
mov dword [ebp - 4], eax
push 0x10
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 4]
call fcn.0050c392
lea eax, [ebp - 0x28]
push eax
call fcn.004b6f8d
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
shl ecx, 9
push ecx
call fcn.004e8f2e
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x2c]
shl edx, 9
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x74]
add ecx, 0x8aac
call fcn.00438dfc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
push 0x2a
mov ecx, dword [ebp - 0x2c]
shl ecx, 9
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x8a9c]
push edx
mov eax, dword [ebp - 0x74]
mov cl, byte [eax + 0x8a95]
push ecx
mov edx, dword [ebp - 0x74]
mov al, byte [edx + 0x8a94]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x8a98]
push edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x8aa4]
push ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x8aa0]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x8a8c]
push edx
call fcn.0047e2fa
add esp, 0x2c
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x8a90], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
push 0x5669c4
mov ecx, dword [ebp - 0x70]
call fcn.0050c36b
mov eax, dword [ebp - 0x18]
push eax
push str.Write_:__d
lea ecx, [ebp - 0x6c]
push ecx
call fcn.004e894d
add esp, 0xc
lea edx, [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x70]
call fcn.0050c36b
push 1
mov ecx, dword [ebp - 0x74]
call fcn.0050b4f7
push 0
mov eax, dword [ebp - 0x2c]
shl eax, 9
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x74]
add ecx, 0x8aac
call fcn.00438d37
push 1
push 1
push 1
push 1
mov ecx, dword [ebp - 0x74]
add ecx, 0x8aac
call fcn.00437004
push 0x105
push 0
push 0
mov ecx, dword [ebp - 0x74]
add ecx, 0x8aac
call fcn.00406140
mov ecx, dword [ebp - 0x74]
call fcn.004c22cf
mov edx, dword [ebp - 0xc]
push edx
call fcn.004e8e1d
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4ccac6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5255a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x408
mov dword [ebp - 0x414], ecx
push 0
lea ecx, [ebp - 0x2c0]
call fcn.0045b2b0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x3c4]
push eax
call fcn.004b7127
add esp, 8
push 0x5673a8
lea ecx, [ebp - 0x3c4]
push ecx
call fcn.004e86b0
add esp, 8
lea edx, [ebp - 0x3c4]
push edx
push 0
push 0x5673b8
push 0x5673c8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4ccc15
push 1
mov ecx, dword [ebp - 0x414]
call fcn.0050c0d4
mov dword [ebp - 0x3c8], eax
lea eax, [ebp - 0x3ec]
push eax
mov ecx, dword [ebp - 0x3c8]
call fcn.0040aa80
mov ecx, dword [ebp - 0x3c8]
call fcn.0040ab30
mov dword [ebp - 0x3cc], eax
lea ecx, [ebp - 0x3ec]
push ecx
mov ecx, dword [ebp - 0x3cc]
call fcn.00511b40
lea edx, [ebp - 0x3dc]
push edx
mov ecx, dword [ebp - 0x3cc]
call fcn.0040aa80
push 1
mov eax, dword [ebp - 0x3d0]
sub eax, dword [ebp - 0x3d8]
push eax
mov ecx, dword [ebp - 0x3e4]
add ecx, 0x1e
push ecx
mov edx, dword [ebp - 0x3d8]
push edx
mov eax, dword [ebp - 0x3dc]
push eax
mov ecx, dword [ebp - 0x3cc]
call fcn.0050c420
lea ecx, [ebp - 0x3c4]
push ecx
push 0x5673d4
push 0x5673d8
push 0x5673e8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x5673f4
push 0x524
mov ecx, dword [ebp - 0x414]
call fcn.0050c0d4
mov ecx, eax
call fcn.0050c36b
jmp 0x4cccdc
push 0x523
mov ecx, dword [ebp - 0x414]
call fcn.0050c0d4
mov dword [ebp - 0x3c8], eax
lea edx, [ebp - 0x410]
push edx
mov ecx, dword [ebp - 0x3c8]
call fcn.0040aa80
mov ecx, dword [ebp - 0x3c8]
call fcn.0040ab30
mov dword [ebp - 0x3f0], eax
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x3f0]
call fcn.00511b40
lea ecx, [ebp - 0x400]
push ecx
mov ecx, dword [ebp - 0x3f0]
call fcn.0040aa80
push 1
mov edx, dword [ebp - 0x3f4]
sub edx, dword [ebp - 0x3fc]
push edx
mov eax, dword [ebp - 0x408]
add eax, 0x1e
push eax
mov ecx, dword [ebp - 0x3fc]
push ecx
mov edx, dword [ebp - 0x400]
push edx
mov ecx, dword [ebp - 0x3f0]
call fcn.0050c420
lea eax, [ebp - 0x3c4]
push eax
push 0x5673f8
push str.EXTENDWINDOW
push 0x56740c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x567418
push 0x524
mov ecx, dword [ebp - 0x414]
call fcn.0050c0d4
mov ecx, eax
call fcn.0050c36b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c0]
call fcn.00426b60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4eb835
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x5320b0
call fcn.004ef9b8
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4eb9ec
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x4eb892
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4eb9ec
mov eax, dword [esi + 0x10]
mov dword [0x67691c], eax
mov eax, dword [esi + 4]
mov dword [0x676928], eax
mov eax, dword [esi + 8]
mov dword [0x67692c], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x676920], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x67691c], 2
je 0x4eb8d0
or byte [0x676921], 0x80
mov eax, dword [0x676928]
shl eax, 8
add eax, dword [0x67692c]
mov dword [0x676924], eax
call fcn.004eb7d9
mov dword [ebp - 0x1c], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.004f14f8
pop ecx
test eax, eax
jne 0x4eb901
push 0x1c
call fcn.004eb7b5
pop ecx
call fcn.004ef52b
test eax, eax
jne 0x4eb912
push 0x10
call fcn.004eb7b5
pop ecx
mov dword [ebp - 4], ebx
call fcn.004f5a5b
test eax, eax
jge 0x4eb926
push 0x1b
call fcn.004eb790
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x6784a0], eax
call fcn.004f637a
mov dword [0x676960], eax
call fcn.004f62d9
test eax, eax
jge 0x4eb94c
push 8
call fcn.004eb790
pop ecx
call fcn.004f608f
test eax, eax
jge 0x4eb95d
push 9
call fcn.004eb790
pop ecx
call fcn.004e9ef7
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4eb970
push eax
call fcn.004eb790
pop ecx
call fcn.004f6026
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], bl
je 0x4eb983
movzx eax, word [ebp - 0x40]
jmp 0x4eb986
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x400000
call fcn.00501f27
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x4eb9a7
push esi
call fcn.004ea00c
call fcn.004ea02e
jmp 0x4eb9d9
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x4eb9f1
mov eax, 0xff
call fcn.004ef9f3
ret
Function at 0x4ebecb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4ebee8
call fcn.004ecb75
mov dword [eax], 0x16
xor eax, eax
jmp 0x4ebf51
xor ecx, ecx
push esi
mov edx, 0x8c
inc ecx
call fcn.004f275a
mov esi, eax
test esi, esi
je 0x4ebf3c
push esi
call fcn.004ef318
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4ebf1a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4ebe36
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4ebf50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004e8e1d
test ebx, ebx
pop ecx
je 0x4ebf4e
push ebx
call fcn.004ecb9b
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4efc26
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x4efc44
xor eax, eax
jmp 0x4efdb2
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 + 0x677120]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4efc77
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004f8792
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4efd49
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x4efd81
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4efcd2
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4efcc3
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x4efca6
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4efd12
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x4efd1b
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4efc97
jmp 0x4efd1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x4efdad
cmp dword [ebp - 4], edi
je 0x4efd81
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x4efd76
call fcn.004ecb75
mov dword [eax], 9
call fcn.004ecb88
mov dword [eax], esi
jmp 0x4efda8
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4efd6b
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x4efd1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4efd1d
push dword [ebp - 4]
call fcn.004ecb9b
pop ecx
jmp 0x4efda8
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4efd96
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4efd96
xor eax, eax
jmp 0x4efdb0
call fcn.004ecb75
mov dword [eax], 0x1c
call fcn.004ecb88
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4efdb0
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4f522e
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.004e8aa0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4f52c9
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 [0x67691c]
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 0x4f52c9
cmp eax, 1
je 0x4f52ea
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 0x4f52c9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4f5296
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4f52c5
xor eax, eax
inc eax
jmp 0x4f5309
cmp edi, eax
jae 0x4f52cd
xor eax, eax
jmp 0x4f5309
cmp eax, esi
jae 0x4f52d4
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 [0x67691c]
jmp 0x4f52ed
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 0x4f57d5
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 0x4f59a9
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x677120]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4f59a9
test cl, 0x48
je 0x4f5840
cmp byte [eax + 5], 0xa
je 0x4f5840
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
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 0x4f5892
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4f587a
call fcn.004ecb75
mov dword [eax], 9
call fcn.004ecb88
mov dword [eax], esi
jmp 0x4f588a
cmp eax, 0x6d
je 0x4f59a9
push eax
call fcn.004ecb9b
pop ecx
or eax, 0xffffffff
jmp 0x4f59ab
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4f59a4
test eax, eax
je 0x4f58b9
cmp byte [ebx], 0xa
jne 0x4f58b9
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4f58c2
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
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 0x4f599e
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4f598e
cmp al, 0xd
je 0x4f58f4
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4f5980
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4f590e
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4f5909
add dword [ebp + 0x10], 2
jmp 0x4f5962
mov dword [ebp + 0x10], eax
jmp 0x4f597c
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 0x4f5936
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4f597c
cmp dword [ebp - 0xc], 0
je 0x4f597c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4f5957
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4f5962
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4f597f
cmp ebx, dword [ebp + 0xc]
jne 0x4f5967
cmp byte [ebp - 1], 0xa
jne 0x4f5967
mov byte [ebx], 0xa
jmp 0x4f597f
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004f3308
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4f5980
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4f58d8
jmp 0x4f599e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4f599e
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4f59ab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret