joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029bc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004040cc
test esi, esi
jne 0x4029f2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004041bc
jmp 0x402a10
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028d0
mov edi, eax
test esi, esi
je 0x402a10
cmp dword [ebx], 0
je 0x402a10
dec esi
jmp 0x4029f9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402f64
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x420008], 0x8088405
inc edx
mov dword [ebx + 0x420008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4034b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x420024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403548
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403528
xor eax, eax
push ebp
push 0x403521
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403564
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403528
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x420024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x420024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f50
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x421044], 0
je 0x403fb1
cmp word [0x421218], 0xd7b2
jne 0x403f79
cmp dword [0x421220], 0
jbe 0x403f79
mov eax, 0x421214
call dword [0x421230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x420094
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403fd8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x420034], 0
jne 0x403fcd
push 0
push 0x42008c
push 0x420094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40562c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40585c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4056af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40585c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4056af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405878
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405738
xor eax, eax
push ebp
push 0x405731
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405474
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405716
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405898
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405716
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405738
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405852
cmp byte [ebp - 0xd], 0
jne 0x40577f
cmp byte [ebp - 0x12], 0
je 0x405852
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405798
dec ebx
cmp byte [ebx], 0x2e
je 0x4057a7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405797
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405852
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4057e4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405852
cmp byte [ebp - 0xd], 0
je 0x405852
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405852
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ef4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405f5a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040433c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030a4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405f44
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f61
lea eax, [ebp - 0x10]
call fcn.004040cc
ret

Function at 0x407e9c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040458c
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x407eb0
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.0040458c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x407ed2
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40a8bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a8f5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041bc
jmp 0x40a8fe
mov eax, ebx
mov edx, esi
call fcn.00404120
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a908
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a929
mov al, byte [esp]
jmp 0x40a92b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40afb0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ae28
mov eax, dword [0x42093c]
cmp byte [eax], 0
je 0x40b02c
mov eax, dword [0x42083c]
call fcn.00402e04
call fcn.004027f0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408204
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b074
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b062
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x420814]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x421660]
call fcn.00405438
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40bd54
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40bdb8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040433c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407a6c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bdbf
lea eax, [ebp - 0xc]
call fcn.004040cc
ret

Function at 0x4181d0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4181d6
ret

Function at 0x41a8d8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0041a4c0
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040458c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x41a936
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4208bc]
mov dl, 1
mov eax, dword [0x41a378]
call fcn.0040b170
call fcn.00403b2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41ba20
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x41ba2f
or edx, 0x200
test eax, 0x20000000
je 0x41ba63
test eax, 0x40000000
je 0x41ba4e
test eax, 0x80000000
je 0x41ba49
or edx, 0x40
jmp 0x41ba8a
or edx, 0x20
jmp 0x41ba8a
test eax, 0x80000000
je 0x41ba5d
or edx, 0x80
jmp 0x41ba8a
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x41ba7b
test eax, 0x80000000
je 0x41ba76
or edx, 4
jmp 0x41ba8a
or edx, 2
jmp 0x41ba8a
test eax, 0x80000000
je 0x41ba87
or edx, 8
jmp 0x41ba8a
or edx, 1
mov eax, edx
ret
Function at 0x41ca64
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x41cbe8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4141b4]
call fcn.004035e8
mov dword [ebp - 4], eax
mov bl, 0x63
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.004042b4
lea eax, [ebp - 0xc]
mov edx, 0x41cbfc
call fcn.00404394
mov eax, dword [ebp - 0xc]
call fcn.0040458c
push eax
call sub.kernel32.dll_GetDriveTypeA
add al, 0xfe
sub al, 3
jae 0x41cb0c
mov eax, ebx
call fcn.0041c554
test al, al
je 0x41cb0c
mov eax, ebx
call fcn.0041c44c
test al, al
je 0x41cb0c
lea eax, [ebp - 0x14]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x18]
call fcn.00402e98
mov edx, 0x41cc00
lea eax, [ebp - 0x18]
mov cl, 2
call fcn.00402e68
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x10]
call fcn.00404330
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp bl, 0x7b
jne 0x41ca90
mov edx, dword [0x421918]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
call fcn.00402f64
mov ebx, eax
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov byte [0x420788], 0
mov eax, 0x421910
call fcn.004040cc
mov dl, 1
mov eax, dword [0x4141b4]
call fcn.004035e8
mov dword [0x421928], eax
mov eax, dword [ebp - 8]
call fcn.0041c7ac
mov eax, dword [0x421928]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x41cba5
mov eax, dword [0x421928]
mov edx, dword [eax]
call dword [edx + 0x14]
call fcn.00402f64
mov edx, eax
lea ecx, [ebp - 0x1c]
mov eax, dword [0x421928]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x1c]
mov eax, 0x421910
call fcn.00404120
jmp 0x41cbaf
mov eax, 0x421910
call fcn.004040cc
mov dl, 1
mov eax, dword [0x421928]
mov ecx, dword [eax]
call dword [ecx - 4]
mov dl, 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cbef
lea eax, [ebp - 0x1c]
call fcn.004040cc
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004040f0
ret

Function at 0x41ccac
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xffffff80
push 0
push 0x41cd20
call sub.user32.dll_FindWindowA
mov ebx, eax
push 0
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x41cd16
push ebx
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x41cd08
push 4
push ebx
call sub.user32.dll_GetWindow
test eax, eax
jne 0x41cd08
push 0x80
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
test eax, eax
je 0x41cd08
push 0
push 0xf020
push 0x112
push ebx
call sub.user32.dll_PostMessageA
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x41cccc
add esp, 0x80
pop ebx
ret
Function at 0x41cde8
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffff4c
mov dword [esp + 0x20], 0x94
lea eax, [esp + 0x20]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x30], 2
jne 0x41ce6e
call sub.kernel32.dll_GetCurrentProcessId
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x41ce6e
lea eax, [esp + 8]
push eax
push 0x41ce80
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x41ce6e
mov dword [esp + 0x10], 1
mov dword [esp + 0x1c], 2
mov eax, dword [esp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
xor eax, eax
lea edx, [esp + 4]
push edx
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 1
push 8
call sub.user32.dll_ExitWindowsEx
add esp, 0xb4
ret

Function at 0x41d2c4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push ecx
push 0
push 0x41d300
call sub.user32.dll_FindWindowA
mov ebx, eax
call fcn.0041d200
mov esi, eax
push 0
push ebx
call sub.user32.dll_ShowWindow
push 0
push esi
call sub.user32.dll_ShowWindow
push 0
lea eax, [esp + 4]
push eax
push 1
push 0x61
call sub.user32.dll_SystemParametersInfoA
pop edx
pop esi
pop ebx
ret

Function at 0x41d8b0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040457c
mov eax, dword [ebp - 8]
call fcn.0040457c
xor eax, eax
push ebp
push 0x41d96b
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x41d8f8
lea eax, [ebp - 0xc]
mov edx, 0x41d980
call fcn.00404164
jmp 0x41d900
lea eax, [ebp - 0xc]
call fcn.004040cc
xor ecx, ecx
mov dl, 1
mov eax, dword [0x41a440]
call fcn.0041a9e8
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.0041a5f4
mov eax, dword [ebp - 8]
push eax
push 0x41d990
push dword [ebp - 0xc]
push 0x41d9c8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040444c
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov eax, ebx
call fcn.0041aa7c
mov dl, 1
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d972
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004040f0
ret
Function at 0x438cac
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
dec edi
call fcn.00438cf6
mov edi, 0xfadceec3
sub edi, 0x661d283b
xor dword [edx], esi
sub eax, edi
add eax, 1
push 0x943989f9
pop edi
add edx, 1
add eax, 0xaccf337
mov edi, 0xc0798912
cmp edx, ecx
jne fcn.00438cac
add edi, eax
add edi, eax
sub edi, edi
ret
Function at 0x10013040
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
mov dword [ebp - 0x14], 0
cmp byte [ebp + 0xc], 0
mov eax, ecx
push edi
mov edi, edx
mov dword [ebp - 4], eax
cmovne esi, edi
test esi, esi
jne 0x10013069
mov byte [ebp - 8], 0
jmp 0x10013089
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
mov eax, dword [ebp - 4]
setne byte [ebp - 8]
push edi
push eax
push dword [ebp + 8]
call fcn.100eca50
add esp, 0xc
cmp byte [ebp - 8], 0
je 0x100130b3
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100130c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], ecx
cmp byte [ebp + 0xc], 0
mov eax, edx
push edi
cmovne esi, eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x18], edi
test esi, esi
jne 0x100130e7
xor bl, bl
jmp 0x1001310c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
setne bl
push eax
push dword [ebp + 8]
mov byte [ebp - 0xc], bl
push ecx
call fcn.100eca50
add esp, 0xc
test bl, bl
je 0x10013135
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10013140
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x14], 0
mov bl, cl
test esi, esi
jne 0x1001315c
mov byte [ebp - 8], dl
jmp 0x10013179
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
push esi
movzx eax, bl
push eax
push dword [ebp + 8]
call fcn.100ecfd0
add esp, 0xc
cmp byte [ebp - 8], 0
je 0x100131a6
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100131b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 0x40
push 1
push esi
mov edi, ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov cl, byte [esi]
mov byte [ebp - 1], cl
test eax, eax
je 0x100131fe
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov cl, byte [ebp - 1]
movzx eax, cl
sub eax, 0xe8
je 0x10013283
sub eax, 1
je 0x10013283
sub eax, 0x16
jne 0x10013274
mov eax, dword [ebp + 8]
mov cl, 1
push ecx
mov edx, esp
inc eax
mov dword [edx], eax
call fcn.100194e0
add esp, 4
cmp al, 0x15
je 0x1001322d
cmp al, 0x25
jne 0x10013274
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
add esi, 2
mov dword [ebp - 0x14], 4
push 4
push esi
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10013267
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov eax, dword [esi]
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, 1
push ecx
mov eax, esp
inc esi
mov dword [eax], esi
call fcn.10019430
add esp, 4
add eax, 4
add eax, esi
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100132b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
mov edx, esp
mov dword [ebp - 4], ecx
mov dword [edx], eax
call fcn.100131b0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
push eax
push 0x40
push 1
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe9
test eax, eax
je 0x1001330a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
inc esi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], esi
lea eax, [esi + 4]
sub edi, eax
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], edi
test eax, eax
je 0x1001334a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10013360
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
mov edx, esp
mov dword [ebp - 4], ecx
mov dword [edx], eax
call fcn.100131b0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
push eax
push 0x40
push 1
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe8
test eax, eax
je 0x100133ba
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
inc esi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], esi
lea eax, [esi + 4]
sub edi, eax
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], edi
test eax, eax
je 0x100133fa
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret