joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4042f0
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x670
mov eax, dword [0x41e040]
xor eax, esp
mov dword [esp + 0x66c], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [eax + 0x224]
push esi
push edi
test eax, eax
je 0x4044c2
mov eax, dword [eax]
lea ecx, [esp + 0x14]
xor edx, edx
push eax
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x418], 0x200
mov dword [esp + 0x41c], 0
mov word [esp + 0x18], dx
call fcn.00404800
push 0x419da8
call fcn.00404800
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x420]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0xc], edi
cmp edi, 0xffffffff
je 0x40449a
mov ecx, 0x419b68
lea eax, [esp + 0x44c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4043b6
test dx, dx
je 0x4043b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4043b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x404390
xor eax, eax
jmp 0x4043bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40447c
mov ecx, 0x41ab20
lea eax, [esp + 0x44c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4043f6
test dx, dx
je 0x4043f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4043f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4043d0
xor eax, eax
jmp 0x4043fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40447c
mov edx, dword [esp + 8]
mov eax, dword [edx + 0x224]
mov esi, dword [eax]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
cmp eax, ecx
je 0x404420
push eax
call fcn.00407d02
add esp, 4
xor eax, eax
lea edx, [esp + 0x14]
push esi
lea esi, [esp + 0x14]
mov dword [esp + 0x14], edx
mov word [esp + 0x18], ax
mov dword [esp + 0x41c], eax
mov dword [esp + 0x418], 0x200
call fcn.00404800
lea ecx, [esp + 0x44c]
push ecx
call fcn.00404800
test byte [esp + 0x420], 0x10
je 0x404471
mov edi, dword [esp + 0x10]
call fcn.004044e0
mov edi, dword [esp + 0xc]
jmp 0x40447c
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x420]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40437d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 8]
mov edx, dword [ecx + 0x224]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
cmp eax, ecx
je 0x4044c2
push eax
call fcn.00407d02
add esp, 4
mov ecx, dword [esp + 0x674]
pop edi
pop esi
xor ecx, esp
call fcn.00407bfa
mov esp, ebp
pop ebp
ret 4
Function at 0x4044e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x41e040]
xor eax, esp
mov dword [esp + 0x668], eax
push esi
test edi, edi
je 0x4046df
lea eax, [esp + 0xc]
xor ecx, ecx
push edi
lea esi, [esp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x410], 0x200
mov dword [esp + 0x414], 0
mov word [esp + 0x10], cx
call fcn.00404800
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404537
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
je 0x40455c
push 0x419414
lea esi, [esp + 0xc]
call fcn.00404800
push 0x419da8
lea esi, [esp + 0xc]
call fcn.00404800
mov eax, dword [esp + 8]
lea edx, [esp + 0x418]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 4], esi
cmp esi, 0xffffffff
je 0x4046c3
lea esp, [esp]
mov ecx, 0x419b68
lea eax, [esp + 0x444]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4045c6
test dx, dx
je 0x4045c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4045c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4045a0
xor eax, eax
jmp 0x4045cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4046a5
mov ecx, 0x41ab20
lea eax, [esp + 0x444]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404606
test dx, dx
je 0x404602
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404606
add eax, 4
add ecx, 4
test dx, dx
jne 0x4045e0
xor eax, eax
jmp 0x40460b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4046a5
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x404628
push eax
call fcn.00407d02
add esp, 4
xor eax, eax
lea edx, [esp + 0xc]
push edi
lea esi, [esp + 0xc]
mov dword [esp + 0xc], edx
mov word [esp + 0x10], ax
mov dword [esp + 0x414], eax
mov dword [esp + 0x410], 0x200
call fcn.00404800
mov eax, edi
lea edx, [eax + 2]
jmp 0x404660
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404660
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
je 0x404685
push 0x419414
lea esi, [esp + 0xc]
call fcn.00404800
lea ecx, [esp + 0x444]
push ecx
lea esi, [esp + 0xc]
call fcn.00404800
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 4]
lea eax, [esp + 0x418]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404590
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x4046df
push eax
call fcn.00407d02
add esp, 4
mov ecx, dword [esp + 0x66c]
pop esi
xor ecx, esp
call fcn.00407bfa
mov esp, ebp
pop ebp
ret
Function at 0x404fa0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41640b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x41e040]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41e040]
xor eax, esp
push eax
lea eax, [esp + 0x434]
mov dword fs:[0], eax
mov eax, dword [esp + 0x448]
mov ebp, dword [esp + 0x444]
mov edi, edx
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
cmp edi, ebx
jne 0x405003
mov eax, 0x80004003
jmp 0x4051b4
lea edx, [esp + 0x28]
xor eax, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x428], 0x200
mov dword [esp + 0x42c], ebx
mov word [esp + 0x28], ax
mov dword [esp + 0x43c], ebx
mov ecx, dword [ebp + 0x224]
mov edx, dword [ecx]
push edx
lea esi, [esp + 0x28]
call fcn.00404800
push edi
call fcn.00404800
mov eax, dword [esp + 0x24]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
je 0x405161
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
add esi, 2
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x405142
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push ebx
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405113
cmp dword [esp + 0x14], 0
jbe 0x405113
sub esp, 0x40c
mov edi, esp
mov ecx, 0x103
lea esi, [esp + 0x430]
push str.RunSQLFile:__s_n
rep movsd dword es:[edi], dword [esi]
call fcn.00407fcb
mov edx, dword [esp + 0x424]
add esp, 0x410
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x4050fb
mov edi, dword [esp + 0x18]
mov ebp, 0x80070057
jmp 0x405129
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push ebp
mov eax, ebx
call fcn.00404ba0
mov edi, dword [esp + 0x18]
jmp 0x405127
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x405127
and eax, 0xffff
or eax, 0x80070000
mov ebp, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40519d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x405156
and eax, 0xffff
or eax, 0x80070000
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40519d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x405175
and eax, 0xffff
or eax, 0x80070000
sub esp, 0x40c
mov edi, esp
mov ecx, 0x103
lea esi, [esp + 0x430]
push str.RunSQLFile:_File_not_found____s_n
mov ebp, eax
rep movsd dword es:[edi], dword [esi]
call fcn.00407fcb
add esp, 0x410
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x4051b2
push eax
call fcn.00407d02
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00407bfa
add esp, 0x42c
ret 8
Function at 0x406cf0
Capabilities:
Encode data using xor

Disassembly:
cmp edi, 3
jb 0x406d25
cmp byte [esi], 0xac
jne 0x406d25
cmp byte [esi + 1], 0x60
jne 0x406d25
cmp byte [esi + 2], 0x5c
jne 0x406d25
xor eax, eax
test edi, edi
jbe 0x406d25
lea esp, [esp]
mov cl, byte [eax + esi]
add cl, 0x6c
xor cl, 0x63
mov dl, 0x6a
sub dl, cl
mov byte [eax + esi], dl
inc eax
cmp eax, edi
jb 0x406d10
ret

Function at 0x407bfa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e040]
jne 0x407c04
repz ret
jmp fcn.004096ab

Function at 0x410af3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040be16
and dword [ebp - 4], 0
cmp dword [0x4200c0], 0
mov ebx, eax
jne 0x410ba4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410c55
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x410c55
push eax
call fcn.0040bda4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4200c0], eax
call esi
push eax
call fcn.0040bda4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4200c4], eax
call esi
push eax
call fcn.0040bda4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4200c8], eax
call esi
push eax
call fcn.0040bda4
pop ecx
mov dword [0x4200d0], eax
test eax, eax
je 0x410ba4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040bda4
pop ecx
mov dword [0x4200cc], eax
mov eax, dword [0x4200cc]
cmp eax, ebx
je 0x410bfc
cmp dword [0x4200d0], ebx
je 0x410bfc
push eax
call fcn.0040be1f
push dword [0x4200d0]
mov esi, eax
call fcn.0040be1f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410bfc
test edi, edi
je 0x410bfc
call esi
test eax, eax
je 0x410bf3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410bf3
test byte [ebp - 0xc], 1
jne 0x410bfc
or dword [ebp + 0x10], 0x200000
jmp 0x410c35
mov eax, dword [0x4200c4]
cmp eax, ebx
je 0x410c35
push eax
call fcn.0040be1f
pop ecx
test eax, eax
je 0x410c35
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410c35
mov eax, dword [0x4200c8]
cmp eax, ebx
je 0x410c35
push eax
call fcn.0040be1f
pop ecx
test eax, eax
je 0x410c35
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4200c0]
call fcn.0040be1f
pop ecx
test eax, eax
je 0x410c55
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410c57
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x40e97103
nop
nop
nop
nop
nop
test eax, eax
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0xda35089
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x431004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x26492ce7
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x10302c73
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add dword [eax - 0x1d6f6f70], edx
out dx, al
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x24d29c7
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x11c
cmp dword [esp + 0x128], 0
je 0x24d2b8c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x130]
xor ebp, ebp
push edi
mov dword [esp + 0x1c], ebp
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x24d2b88
mov edx, esi
mov eax, dword [edx]
mov ebx, dword [esp + 0x130]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x10]
add eax, ebx
lea edi, [ecx + ebx]
mov dword [esp + 0x20], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x24d2a32
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [esp + 0x10], eax
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.024cb142
add esp, 0xc
test ebx, ebx
je 0x24d2b32
mov eax, dword [esp + 0x18]
and dword [esp + 0x14], 0
mov eax, dword [eax]
test eax, eax
je 0x24d2b1b
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, dword [esp + 0x130]
test eax, eax
jns 0x24d2a77
movzx ebx, ax
jmp 0x24d2a7c
lea ebx, [ebp + 2]
add ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x20]
mov dword [edi + ecx], eax
test eax, eax
jne 0x24d2af3
cmp dword [0x24d7eac], 1
jne 0x24d2af3
push 0x104
push eax
lea eax, [esp + 0x30]
push eax
call fcn.024cb142
lea eax, [esp + 0x34]
push eax
call fcn.024d2c74
lea eax, [esp + 0x38]
push 0x24ca204
push eax
call fcn.024cb170
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.024cb170
add esp, 0x20
lea eax, [esp + 0x24]
push 0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.024cb197
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x24d7e58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
mov edi, ecx
mov dword [esp + 0x14], ecx
shl edi, 2
mov eax, dword [edi + eax]
test eax, eax
jne 0x24d2a70
mov esi, dword [esp + 0x134]
mov ebp, dword [esp + 0x1c]
inc ebp
imul edx, ebp, 0x14
mov dword [esp + 0x1c], ebp
add edx, esi
mov ecx, dword [edx + 0xc]
test ecx, ecx
jne 0x24d29f9
jmp 0x24d2b88
lea eax, [esp + 0x28]
push eax
call fcn.024d2c74
lea eax, [esp + 0x2c]
mov dword [esp], 0x24ca1e8
push eax
call fcn.024cb170
lea eax, [esp + 0x30]
push edi
push eax
call fcn.024cb170
add esp, 0x10
cmp dword [0x24d7eac], 1
jne 0x24d2b88
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.024cb197
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x24d7e58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
xor eax, eax
add esp, 0x11c
ret
Function at 0x24d2bc2
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push 0x208
lea eax, [ebp - 0x410]
push eax
call fcn.024d2c40
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x24d7d24], eax
push 0
push 0
push 0
push 2
push 0
push dword [0x24d7d24]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x24d7d28], eax
push 0
push 0
push 0
push 4
push dword [0x24d7d28]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
add eax, dword [0x24d7eb4]
mov esp, ebp
pop ebp
ret
Function at 0x24d2ccc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0x14], 0
jne 0x24d2cdf
xor eax, eax
jmp 0x24d2e63
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x14c
jne 0x24d2d1d
mov eax, dword [ebp - 8]
add eax, 0xf8
mov dword [ebp - 0xc], eax
jmp 0x24d2d36
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x8664
jne 0x24d2d36
mov eax, dword [ebp - 8]
add eax, 0x108
mov dword [ebp - 0xc], eax
and dword [ebp - 0x10], 0
jmp 0x24d2d43
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x10], eax
je 0x24d2d7c
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x24]
push eax
push 0x40
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x24d2d3c
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jae 0x24d2e1c
mov eax, dword [ebp + 0xc]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
jmp 0x24d2dac
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
je 0x24d2e0b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
test eax, eax
jne 0x24d2dc4
jmp 0x24d2da5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
and eax, 0xfff
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, eax
add ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
sar eax, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
je 0x24d2dfc
jmp 0x24d2e09
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
jmp 0x24d2da5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 4]
mov dword [ebp + 0xc], ecx
jmp 0x24d2d7c
and dword [ebp - 0x14], 0
jmp 0x24d2e29
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
je 0x24d2e61
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x38], edx
push 0
push dword [ebp - 0x24]
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x24d2e22
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x24d300a
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x6c
mov eax, dword [esp + 0x70]
push ebx
push esi
push edi
mov esi, dword [eax]
xor edi, edi
call fcn.024d2fcd
push esi
call fcn.024d31bb
push dword [esp + 0x84]
mov esi, eax
call fcn.024d31bb
push 0x58
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.024cb142
lea eax, [esp + 0x34]
push eax
push 5
push esi
call fcn.024d2ee7
mov ebx, eax
add esp, 0x20
cmp ebx, 5
jb 0x24d31a2
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call fcn.024d31f0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x24d31a2
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [esp + 0x14], 0
mov ebp, eax
and dword [esp + 0x10], 0
lea eax, [esp + 0x14]
push eax
push 0x40
push ebx
push esi
push ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x24d3185
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x24d316a
xor edx, edx
lea ecx, [edi + 0x2c]
test ebx, ebx
je 0x24d30eb
mov ebp, esi
sub ebp, ecx
mov al, byte [ecx + ebp]
mov byte [ecx], al
mov byte [edi + edx + 0x4c], al
inc edx
inc ecx
cmp edx, ebx
jb 0x24d30d5
mov ebp, dword [esp + 0x20]
lea ecx, [edi + 0x2c]
lea eax, [ebx + esi]
push eax
lea eax, [ecx + ebx]
push eax
call fcn.024d2f88
mov edx, dword [esp + 0x20]
mov eax, edx
pop ecx
pop ecx
mov ecx, esi
sub eax, esi
sub ecx, edx
cmp edx, esi
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x24d3134
lea eax, [edi + 0xc]
push edx
push eax
call fcn.024d2f88
pop ecx
sub eax, edi
pop ecx
sub eax, 0xc
push eax
lea eax, [edi + 0xc]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [edi + 0xc]
jmp 0x24d3136
mov eax, edx
push eax
push esi
call fcn.024d2f88
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
mov dword [edi + 8], eax
lea eax, [edi + 0x2c]
push ebx
push eax
push ebp
mov dword [edi + 4], ebx
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [edi], 0
pop ebp
je 0x24d3196
mov ecx, dword [esp + 0x7c]
lea eax, [edi + 0x2c]
mov dword [ecx], eax
jmp 0x24d31a2
push 1
push edi
call fcn.024d32e4
pop ecx
pop ecx
xor edi, edi
push 0x24d7d40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
add esp, 0x6c
ret
Function at 0x24d31f0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x40
push ebx
xor ebx, ebx
cmp dword [0x24d7d34], 0x40
jae 0x24d32dd
mov ecx, dword [esp + 0x48]
push ebp
push esi
mov esi, dword [esp + 0x54]
mov ebp, 0xfff80000
add esi, ecx
add ecx, dword [esp + 0x5c]
push edi
cmp ecx, 0x80000000
lea edi, [esp + 0x2c]
push 9
lea eax, [ecx + 0x7ff80000]
cmovb ebp, eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
lea edi, [esi - 0x7fff0000]
inc eax
cmp esi, 0x80000000
cmovb edi, eax
cmp edi, ebp
jae 0x24d32da
push 0x1c
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x24d32b5
cmp dword [esp + 0x20], 0x10000
jne 0x24d32a7
mov eax, dword [esp + 0x1c]
cmp eax, 0x6c
jb 0x24d32ab
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jb 0x24d32ab
lea eax, [ecx - 1]
xor edx, edx
add eax, edi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x24d32b9
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
add edi, eax
cmp edi, ebp
jb 0x24d3258
test ebx, ebx
je 0x24d32da
xor eax, eax
cmp dword [eax*4 + 0x24d7d58], 0
je 0x24d32cd
inc eax
cmp eax, 0x40
jb 0x24d32bb
jmp 0x24d32da
inc dword [0x24d7d34]
mov dword [eax*4 + 0x24d7d58], ebx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x40
ret