joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e67b20
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.43e539b0
mov eax, dword [ebp - 8]
call fcn.43e539b0
xor eax, eax
push ebp
push 0x43e67bf9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.43e539c0
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x43e67bd7
push 0x14
mov eax, dword [ebp - 8]
call fcn.43e539c0
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x43e67bd1
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
je 0x43e67bcb
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x43e67bcb
jmp 0x43e67bc5
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x43e67bcb
cmp edi, dword [ebp - 0x14]
ja 0x43e67bcb
cmp dword [ebp - 0x24], 4
jne 0x43e67ba6
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x24], 4
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e67c00
lea eax, [ebp - 8]
mov edx, 2
call fcn.43e53660
ret

Function at 0x43e67c80
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.43e539b0
mov eax, dword [ebp - 8]
call fcn.43e539b0
xor eax, eax
push ebp
push 0x43e67d4f
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.43e539c0
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x43e67d2d
push 0x24
mov eax, dword [ebp - 8]
call fcn.43e539c0
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x43e67d27
lea eax, [ebp - 0x24]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
test eax, eax
je 0x43e67d21
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x43e67d21
jmp 0x43e67d1b
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x43e67d21
cmp edi, dword [ebp - 0x10]
ja 0x43e67d21
cmp dword [ebp - 0x20], 1
jne 0x43e67cfc
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x20], 1
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e67d56
lea eax, [ebp - 8]
mov edx, 2
call fcn.43e53660
ret
Function at 0x43e6837c
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.43e539b0
xor eax, eax
push ebp
push 0x43e683f0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x108]
mov edx, 0x104
call fcn.43e541d0
push 0x104
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 4]
call fcn.43e539c0
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, ebx
call fcn.43e5372c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e683f7
lea eax, [ebp - 4]
call fcn.43e5363c
ret

Function at 0x43e68424
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.43e539b0
xor eax, eax
push ebp
push 0x43e68621
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x43e68638
call fcn.43e536d4
mov eax, 0x43e6864c
call fcn.43e69370
test al, al
je 0x43e68497
lea eax, [ebp - 0xc]
mov edx, 0x43e68660
call fcn.43e536d4
jmp 0x43e684b2
mov eax, 0x43e68674
call fcn.43e69370
test al, al
je 0x43e684b2
lea eax, [ebp - 0xc]
mov edx, 0x43e6868c
call fcn.43e536d4
mov edx, dword [ebp - 4]
mov eax, 0x43e686a4
call fcn.43e680c0
test al, al
je 0x43e684fb
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 4]
mov dl, byte [edx]
call fcn.43e5375c
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 0xc]
call fcn.43e537c8
mov eax, dword [ebp - 0x114]
call fcn.43e539c0
push eax
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_lstrcpyA
jmp 0x43e68543
lea eax, [ebp - 0x110]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x118]
mov dl, byte [ebp - 0x110]
call fcn.43e5375c
lea eax, [ebp - 0x118]
mov edx, dword [ebp - 0xc]
call fcn.43e537c8
mov eax, dword [ebp - 0x118]
call fcn.43e539c0
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.43e537a8
mov eax, dword [ebp - 0x11c]
call fcn.43e69370
test al, al
jne 0x43e68576
push 0
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_CreateDirectoryA
call fcn.43e52ae0
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.43e537a8
push dword [ebp - 0x120]
push 0x43e686b0
mov eax, 0x270f
call fcn.43e52b9c
lea edx, [ebp - 0x124]
call fcn.43e68a34
push dword [ebp - 0x124]
push 0x43e686bc
lea eax, [ebp - 8]
mov edx, 4
call fcn.43e53880
push 9
mov eax, dword [ebp - 8]
call fcn.43e539c0
push eax
mov eax, dword [ebp - 4]
call fcn.43e539c0
push eax
call sub.kernel32.dll_MoveFileExA
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 4]
call fcn.43e68d54
mov ebx, eax
xor bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e68628
lea eax, [ebp - 0x124]
mov edx, 5
call fcn.43e53660
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.43e53660
ret
Function at 0x43e6873c
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.43e539b0
xor eax, eax
push ebp
push 0x43e68790
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
call fcn.43e539c0
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 0x43e68797
lea eax, [ebp - 4]
call fcn.43e5363c
ret

Function at 0x43e687a0
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 0x43e687f9
lea eax, [esp + 0xc]
push eax
push 0x43e68800
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 0x43e6885c
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 0x43e68870
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.43e539b0
xor eax, eax
push ebp
push 0x43e688e2
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.43e539c0
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 0x43e688bf
xor esi, esi
cmp esi, 0xffffffff
jne 0x43e688c6
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 0x43e688e9
lea eax, [ebp - 4]
call fcn.43e5363c
ret
Function at 0x43e688f0
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.43e539b0
mov eax, dword [ebp - 8]
call fcn.43e539b0
xor eax, eax
push ebp
push 0x43e689cb
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
jne 0x43e68932
lea edx, [ebp - 4]
mov eax, 0x43e689e4
call fcn.43e68f10
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.43e539c0
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.43e539c0
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 0x43e689a4
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 0x43e689d2
lea eax, [ebp - 8]
mov edx, 2
call fcn.43e53660
ret

Function at 0x43e68d64
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov eax, esp
mov edx, 0x104
call fcn.43e541d0
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.43e5372c
add esp, 0x104
pop ebx
ret

Function at 0x43e68ff4
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.43e539b0
xor eax, eax
push ebp
push 0x43e69066
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.43e539c0
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x43e69044
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x43e69048
xor ebx, ebx
jmp 0x43e6904a
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 0x43e6906d
lea eax, [ebp - 4]
call fcn.43e5363c
ret
Function at 0x43e69074
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.43e539b0
mov eax, dword [ebp - 8]
call fcn.43e539b0
xor eax, eax
push ebp
push 0x43e69179
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, 0x43e69190
call fcn.43e68f10
mov eax, dword [ebp - 0x14]
call fcn.43e68d54
test al, al
jne 0x43e69151
cmp byte [0x43e710bc], 0
je 0x43e69151
cmp dword [ebp - 8], 0
jne 0x43e690e4
lea edx, [ebp - 8]
mov eax, 0x43e691a4
call fcn.43e68f10
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
mov eax, dword [ebp - 8]
call fcn.43e539c0
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43e69151
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
lea eax, [ebp - 0x18]
mov ecx, 0x43e691bc
mov edx, dword [ebp - 4]
call fcn.43e5380c
mov eax, dword [ebp - 0x18]
call fcn.43e539c0
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.43e68cd4
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 0x43e69180
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.43e53660
lea eax, [ebp - 8]
mov edx, 2
call fcn.43e53660
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.43e539c0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x43e69389
test al, 0x10
jne 0x43e6938d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x43e69394
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.43e539b0
xor eax, eax
push ebp
push 0x43e69426
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.43e6873c
test edi, edi
je 0x43e69410
test esi, esi
je 0x43e69410
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.43e539c0
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43e69410
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 0x43e6942d
lea eax, [ebp - 4]
call fcn.43e5363c
ret
Function at 0x43e69508
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.43e539b0
mov eax, dword [ebp - 8]
call fcn.43e539b0
xor eax, eax
push ebp
push 0x43e69577
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
call fcn.43e539c0
push eax
mov eax, dword [ebp - 4]
call fcn.43e539c0
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.43e688f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e6957e
lea eax, [ebp - 8]
mov edx, 2
call fcn.43e53660
ret

Function at 0x43e69704
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.43e539c0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov edx, eax
test edx, edx
je 0x43e697ae
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x43e697ae
mov eax, dword [ebp - 4]
add eax, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x43e697ae
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 0x43e697ae
mov eax, dword [ebx]
cmp edx, dword [eax + 0x18]
jne 0x43e697a1
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 0x43e697ae
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [ebp - 8]
cmp eax, dword [esi]
jne 0x43e69755
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e697b8
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 0x43e697c1
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.43e539b0
lea edi, [ebp - 0xc]
xor eax, eax
push ebp
push 0x43e698c2
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.43e539c0
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x43e698ac
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x43e698ac
mov eax, dword [ebx]
call fcn.43e527c4
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 0x43e6988f
lea edx, [ebp - 0x200c]
mov eax, dword [ebp - 8]
add eax, ebx
mov ecx, dword [edi]
call fcn.43e541c8
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 0x43e6985e
cmp dword [edi], 0
jbe 0x43e698a6
lea edx, [ebp - 0x200c]
mov eax, dword [ebp - 8]
add eax, ebx
mov ecx, dword [edi]
call fcn.43e541c8
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e698c9
lea eax, [ebp - 4]
call fcn.43e5363c
ret
Function at 0x43e6a08c
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 0x43e6a18b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.43e5363c
test esi, esi
je 0x43e6a175
cmp word [esi], 0x5a4d
jne 0x43e6a175
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
jne 0x43e6a175
mov eax, dword [ebp - 8]
add eax, 0x78
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x43e6a175
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x43e6a175
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov eax, dword [ebp - 8]
call fcn.43e69d58
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.43e69d58
add eax, esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x18]
dec ebx
test ebx, ebx
jl 0x43e6a175
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 0x43e6a171
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp - 8]
call fcn.43e69d58
mov edx, eax
add edx, esi
lea eax, [ebp - 0x14]
call fcn.43e5376c
mov eax, dword [ebp - 4]
push dword [eax]
push dword [ebp - 0x14]
push 0x43e6a1a4
mov eax, dword [ebp - 4]
mov edx, 3
call fcn.43e53880
inc edi
dec ebx
jne 0x43e6a12d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e6a192
lea eax, [ebp - 0x14]
call fcn.43e5363c
ret
Function at 0x43e6a484
Capabilities:
Allocate or change rwx memory
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
mov edi, esp
xor ebx, ebx
test eax, eax
je 0x43e6a629
mov dword [edi], eax
mov eax, dword [edi]
call fcn.43e6ab00
test al, al
je 0x43e6a629
test esi, esi
je 0x43e6a4d4
mov eax, dword [esi]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x43e6a629
jmp 0x43e6a50f
push 0x40
push 0x3000
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
jne 0x43e6a50f
push 0x40
push 0x3000
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x43e6a629
mov eax, dword [edi]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jle 0x43e6a558
mov esi, 1
mov edx, esi
mov eax, dword [edi]
call fcn.43e69ea0
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 4]
mov edx, dword [eax]
add edx, dword [edi]
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
add eax, dword [esp + 0xc]
call fcn.43e541c8
inc esi
dec ebx
jne 0x43e6a528
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 [edi]
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x28], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x50], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x78], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x88], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x80], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [edx + 0xa0], eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x34], eax
mov eax, dword [esp + 0x10]
mov word [eax + 0x18], 0x10b
mov eax, dword [esp + 0x10]
mov dword [eax + 0x74], 0x10
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
mov edx, dword [edi]
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, ebx
add esp, 0x14
pop edi
pop esi
pop ebx
ret