joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4246f8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x488240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x22c]
push ebx
push esi
mov esi, dword [ebp + 8]
push eax
call fcn.004073b0
lea eax, [ebp - 0x22c]
push eax
call fcn.004243d5
xor ebx, ebx
pop ecx
test al, al
je 0x424739
mov bl, 1
jmp 0x42496a
push edi
xor eax, eax
mov dword [ebp - 0x234], ebx
push 7
pop edi
mov word [ebp - 0x244], ax
lea eax, [ebp - 0x244]
push eax
push esi
mov dword [ebp - 0x230], edi
call fcn.00424342
pop ecx
pop ecx
test al, al
je 0x42495a
mov edx, dword [ebp - 0x218]
lea eax, [ebp - 0x22c]
mov esi, dword [ebp - 0x22c]
cmp edx, 8
mov ecx, dword [ebp - 0x21c]
push 0x5c
cmovae eax, esi
pop edi
push 7
cmp word [eax + ecx*2 - 2], di
pop edi
jne 0x4247ec
xor eax, eax
mov dword [ebp - 0x248], edi
mov word [ebp - 0x25c], ax
lea eax, [ecx - 1]
push eax
push ebx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x24c], ebx
push eax
lea ecx, [ebp - 0x25c]
call fcn.00407a60
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00407480
push ebx
push 1
lea ecx, [ebp - 0x25c]
call fcn.00407d10
mov edx, dword [ebp - 0x218]
mov esi, dword [ebp - 0x22c]
cmp edx, 8
lea ecx, [ebp - 0x22c]
lea eax, [ebp - 0x244]
cmovae ecx, esi
cmp dword [ebp - 0x230], 8
push ecx
cmovae eax, dword [ebp - 0x244]
push eax
call fcn.00441438
pop ecx
pop ecx
test eax, eax
je 0x424958
push 1
push ebx
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], 0x3a
push eax
lea ecx, [ebp - 0x22c]
call fcn.00407b80
mov edi, eax
test edi, edi
je 0x42495a
cmp edi, 0xffffffff
je 0x42495a
cmp edi, 1
jbe 0x424876
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
push 0x5c
cmovae eax, dword [ebp - 0x22c]
pop ecx
cmp word [eax + edi*2 - 4], cx
jne 0x42495a
xor eax, eax
mov dword [ebp - 0xa], ebx
cmp dword [ebp - 0x218], 8
mov esi, 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x22c]
cmovae eax, dword [ebp - 0x22c]
mov word [ebp - 6], bx
push esi
mov eax, dword [eax + edi*2 - 2]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x42495a
cmp eax, esi
je 0x42495a
lea esi, [ebp - 0x214]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x4248cf
mov eax, dword [ebp - 0x21c]
sub esi, ecx
sub eax, edi
sar esi, 1
dec eax
add eax, esi
cmp eax, dword [ebp - 0x234]
jne 0x42495a
cmp dword [ebp - 0x230], 8
lea ecx, [ebp - 0x214]
push esi
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push ecx
push eax
call fcn.00441907
add esp, 0xc
test eax, eax
jne 0x42495a
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x244]
cmovae eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x230], 8
cmovae ecx, dword [ebp - 0x244]
lea eax, [eax + edi*2]
add eax, 2
push eax
lea eax, [ecx + esi*2]
push eax
call fcn.00441438
pop ecx
pop ecx
test eax, eax
jne 0x42495a
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x244]
call fcn.00407d10
pop edi
push 0
push 1
lea ecx, [ebp - 0x22c]
call fcn.00407d10
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret
Function at 0x427815
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x488240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x2dc], ecx
mov ecx, dword [ebp + 0x18]
push eax
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2f0], ecx
call fcn.00441ab6
pop ecx
push eax
lea ecx, [ebx + 0x2c]
call fcn.00438359
push esi
call fcn.00441ab6
mov esi, eax
mov edi, 0x40c
mov eax, dword [ebp - 0x2dc]
pop ecx
mov ecx, 0x8040c
cmp dword [eax + 0x44], 0
cmovne edi, ecx
cmp dword [ebx + 0x1c], 0
mov dword [ebp - 0x2d4], edi
je 0x42789d
call fcn.0040bc00
cmp eax, 5
jge 0x42789d
or edi, 0x1000000
mov dword [ebp - 0x2d4], edi
xor eax, eax
lea edi, [ebp - 0x300]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x300]
push eax
push dword [ebp - 0x2dc]
mov eax, dword [ebp + 0x10]
push 0
push 0
push dword [ebp - 0x2d4]
movzx eax, al
push eax
push 0
push 0
push esi
push dword [ebp - 0x2d8]
push dword [ebx + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x4278ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4279e1
lea eax, [ebp - 0x300]
push eax
lea ecx, [ebp - 0x2ec]
call fcn.0041b3a0
lea ecx, [ebx + 0x10]
call fcn.004156b0
cmp dword [ebx + 0x1c], 0
je 0x42791f
push dword [ebp - 0x2ec]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x427991
lea edi, [ebx + 0x14]
push dword [edi]
call fcn.00414f70
pop ecx
test al, al
je 0x427954
mov eax, dword [ebp - 0x2e8]
push dword [edi]
mov dword [ebp - 0x2d4], eax
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x427991
mov ecx, edi
call fcn.004156b0
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x1003f
push eax
push dword [ebp - 0x2e8]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x427991
mov ecx, dword [ebp - 0x2f0]
lea eax, [ebp - 0x2ec]
mov edi, dword [ebp - 0x220]
push eax
call fcn.0041b5b0
test al, al
jne 0x4279a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x2ec]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4279d6
push edi
push dword [ebp - 0x2d8]
call fcn.00427a01
pop ecx
pop ecx
mov dword [ebx + 0x28], eax
lea ecx, [ebp - 0x2ec]
lea eax, [ebp - 0x310]
push eax
call fcn.0041b670
push eax
mov ecx, ebx
call fcn.0041b560
xor edi, edi
lea ecx, [ebp - 0x2ec]
call fcn.0041b400
test esi, esi
je 0x4279ec
push esi
call fcn.0043d52b
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret 0x14
Function at 0x427a4e
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
xor edi, edi
add eax, esi
push edi
push eax
push edi
push 0x8000004
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
lea ecx, [ebx + 0x18]
call fcn.00415630
mov eax, dword [ebx + 0x18]
push eax
mov dword [ebp - 4], eax
call fcn.00414f70
pop ecx
test al, al
jne 0x427a98
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x427bb5
push edi
push edi
push 6
lea eax, [ebp - 8]
push eax
push dword [ebx]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x427a8d
push edi
push edi
push edi
push 6
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
test eax, eax
je 0x427a8d
add eax, esi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.004277db
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, ebx
mov dword [0x48a380], eax
push 4
push 0x48a380
push str.g_shared_section
call fcn.00427bd6
mov ecx, eax
mov dword [0x48a380], edi
test ecx, ecx
je 0x427b13
xor eax, eax
inc eax
cmp ecx, eax
jne 0x427bb5
jmp 0x427a8d
push 4
push 0x48a424
push str.g_shared_IPC_size
mov ecx, ebx
mov dword [0x48a424], esi
call fcn.00427bd6
mov ecx, eax
mov dword [0x48a424], edi
test ecx, ecx
jne 0x427b03
mov eax, dword [ebp + 0x14]
mov ecx, ebx
push 4
push 0x48a428
push str.g_shared_policy_size
mov dword [0x48a428], eax
call fcn.00427bd6
mov ecx, eax
mov dword [0x48a428], edi
test ecx, ecx
jne 0x427b03
push 0x20
call fcn.0043aa02
pop ecx
test eax, eax
je 0x427b82
push dword [ebp + 8]
mov ecx, eax
push dword [ebx + 0x24]
push dword [ebx + 0x1c]
push dword [ebx + 8]
push dword [ebx]
call fcn.0042ab3b
mov edi, eax
push edi
lea ecx, [ebx + 0x20]
call fcn.00427c19
mov ecx, dword [ebx + 0x20]
push 0x400
push esi
push dword [ebp - 4]
call fcn.0042ad57
test al, al
jne 0x427ba5
push 8
pop eax
jmp 0x427bb5
mov ecx, ebx
call fcn.0041b740
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42bd8e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x488240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
cmp byte [ebp + 8], 0
mov dword [ebp - 0x60], edi
jne 0x42bdba
cmp dword [ebx + 8], edi
jne 0x42bde8
mov al, 1
jmp 0x42bed4
push edi
push 0x431ff4
push 1
push str.NtMapViewOfSection
mov esi, 0x4707ac
push esi
call fcn.0042b7e2
push 1
push 0x432118
push 1
push str.NtUnmapViewOfSection
push esi
mov ecx, ebx
call fcn.0042b7e2
mov eax, dword [ebx]
push 1
push 0x2000
push 0x10000
mov eax, dword [eax]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push eax
mov dword [ebp - 0x58], eax
call edi
mov esi, eax
mov eax, dword [ebx + 8]
shl eax, 6
add eax, 0x50
push eax
mov dword [ebp - 0x5c], eax
call fcn.0042b9f8
pop ecx
mov ecx, eax
mov edx, 0xfffff000
and ecx, edx
and eax, 0xfff
add esi, ecx
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x5c]
push 0x40
push 0x1000
add ecx, 0xfff
and ecx, edx
push ecx
push esi
push dword [ebp - 0x58]
call edi
mov esi, eax
test esi, esi
jne 0x42be51
call fcn.00410d40
mov edi, dword [ebp - 0x64]
and dword [ebp - 0x48], 0
add edi, esi
mov esi, dword [ebp - 0x5c]
push 0x64
push 0
push 0x48a448
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0x10
call fcn.0043d980
add esp, 0xc
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
push esi
push edi
call fcn.0042bb47
test al, al
je 0x42bed2
lea eax, [ebp - 0x60]
push eax
push 0x10
lea eax, [ebp - 0x54]
push eax
push edi
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x42bed2
cmp dword [ebp - 0x60], 0x10
jne 0x42bed2
lea eax, [ebp - 0x68]
push eax
push 0x20
push esi
push edi
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebx]
push 0x64
push 0x48a448
push str.g_originals
call fcn.00427bd6
neg eax
sbb eax, eax
inc eax
jmp 0x42bed4
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret 4
Function at 0x42fa79
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x34]
push esi
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42fb09
cmp dword [ebp + 0xc], 0
mov eax, 0x101c01
push edi
mov edi, 0x100c43
je 0x42fabe
mov eax, 0x1fffff
mov edi, eax
push 1
push 0
push eax
push esi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x42fae7
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x42fb08
push 1
push 0
push edi
lea eax, [esi + 4]
push eax
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebp
ret
Function at 0x430ff9
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x488240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x68], eax
xor ecx, ecx
mov dword [ebp - 0x60], ecx
cmp byte [ebx + 0x2c], cl
jne 0x431026
mov eax, 0x3f0
jmp 0x431151
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x54]
push eax
push ecx
push ecx
push 2
push dword [ebx + 0x24]
mov dword [ebp - 0x54], ecx
call edi
cmp dword [ebp - 0x54], 0
jne 0x43104e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x431150
push esi
push dword [ebp - 0x54]
call fcn.00439f0a
pop ecx
mov esi, eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push esi
push 2
push dword [ebx + 0x24]
call edi
test eax, eax
jne 0x43107f
push esi
call fcn.0043d563
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43114f
xor eax, eax
mov dword [ebp - 0x50], eax
cmp dword [esi], eax
jbe 0x431146
lea edi, [esi + 4]
mov dword [ebp - 0x60], 0x44
test byte [edi + 4], 0x20
jne 0x431137
test dword [edi + 4], 0xc0000000
jne 0x431137
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 0x49], 0
test ecx, ecx
je 0x431118
mov eax, dword [ecx + 4]
xor edx, edx
mov dword [ebp - 0x58], edx
mov edx, dword [ecx]
sub eax, edx
mov dword [ebp - 0x64], edx
push 0x44
cdq
pop ecx
idiv ecx
test eax, eax
je 0x431115
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
push dword [edi]
add ecx, dword [ebp - 0x64]
call fcn.00401ca0
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x431111
mov ecx, dword [ebp - 0x5c]
push 0x44
pop eax
add ecx, eax
inc dword [ebp - 0x58]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x5c], ecx
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
mov dword [ebp - 0x64], edx
cdq
idiv dword [ebp - 0x60]
cmp dword [ebp - 0x58], eax
jb 0x4310d6
jmp 0x431115
mov byte [ebp - 0x49], 1
mov eax, dword [ebp - 0x50]
cmp byte [ebp - 0x49], 0
jne 0x431137
push dword [edi]
lea ecx, [ebp - 0x48]
call fcn.00430f89
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebx + 0x18]
call fcn.00431910
mov eax, dword [ebp - 0x50]
inc eax
add edi, 8
mov dword [ebp - 0x50], eax
cmp eax, dword [esi]
jb 0x431096
push esi
call fcn.0043d563
pop ecx
xor eax, eax
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret 4
Function at 0x431434
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp byte [edi + 0x2c], cl
jne 0x431451
mov eax, 0x3f0
jmp 0x431554
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push ecx
push ecx
push 3
push dword [edi + 0x24]
mov dword [ebp - 4], ecx
call ebx
cmp dword [ebp - 4], 0
jne 0x431479
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x431553
push esi
push dword [ebp - 4]
call fcn.00439f0a
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 3
push dword [edi + 0x24]
call ebx
test eax, eax
jne 0x4314aa
push esi
call fcn.0043d563
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x431552
and dword [ebp - 0x14], 0
cmp dword [esi], 0
jbe 0x431549
lea ebx, [esi + 4]
mov dword [ebp - 0x10], 0x18
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x43152e
mov eax, dword [ecx + 4]
xor edx, edx
mov ecx, dword [ecx]
sub eax, ecx
mov dword [ebp - 8], edx
cdq
idiv dword [ebp - 0x10]
test eax, eax
je 0x43152e
xor eax, eax
mov dword [ebp - 0xc], eax
and dword [ebp - 0x1c], 0
add eax, ecx
and dword [ebp - 0x18], 0
cmp dword [eax + 0x14], 8
jb 0x4314f3
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0x18]
jne 0x43150f
mov eax, dword [ebx]
cmp eax, dword [ebp - 0x1c]
je 0x431537
push 0x18
pop eax
add dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
inc dword [ebp - 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
cdq
idiv dword [ebp - 0x10]
cmp dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
jb 0x4314e1
push ebx
lea ecx, [edi + 0xc]
call fcn.0042765e
mov eax, dword [ebp - 0x14]
add ebx, 0xc
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [esi]
jb 0x4314c1
push esi
call fcn.0043d563
pop ecx
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x432e0a
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x432e29
xor al, al
jmp 0x432e82
push ebx
jmp 0x432e6d
cmp eax, 0x80
je 0x432e7f
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x432e7f
mov ecx, esi
call fcn.00432e8b
mov bl, al
test bl, bl
je 0x432e5c
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
jne 0x432e7f
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x432e7f
test bl, bl
jne 0x432e87
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x432e2c
xor al, al
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
jmp 0x432e81
Function at 0x432f6f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x488240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x23c]
call fcn.004073b0
mov ebx, 0x482238
push ebx
call fcn.00405850
pop ecx
push eax
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x23c]
call fcn.0040b400
cmp eax, 0xffffffff
jne 0x432fd7
xor bl, bl
jmp 0x43316f
xor ebx, ebx
lea ecx, [ebp - 0x23c]
push ebx
inc eax
push eax
call fcn.0040b690
push 1
push 3
lea ecx, [ebp - 0x310]
call fcn.00432957
mov eax, dword [esi]
push edi
push 0x482560
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x300]
push edx
push 0x47119c
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x2ec]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ebp + ecx - 0x2ec], eax
mov eax, dword [ebp - 0x300]
mov eax, dword [eax + 4]
or dword [ebp + eax - 0x2ec], 8
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x300]
push 0x45c384
push eax
call fcn.0043234c
pop ecx
pop ecx
push eax
call fcn.004324bb
pop ecx
pop ecx
push eax
call fcn.0043234c
pop ecx
pop ecx
mov ecx, eax
call fcn.00432b4b
push eax
call fcn.00432152
pop ecx
pop ecx
mov ecx, eax
call fcn.00432b4b
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.00434ddf
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push eax
call fcn.00441ab6
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x224]
mov esi, eax
call fcn.00407d10
push 0x40
lea eax, [ebp - 0x350]
push ebx
push eax
call fcn.0043d980
add esp, 0xc
mov dword [ebp - 0x354], 0x44
xor eax, eax
lea edi, [ebp - 0x260]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x354]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x433159
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x250]
call fcn.0041b3a0
push 0xffffffffffffffff
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne al
cmp edi, 0x102
je 0x43314e
test al, al
je 0x43314e
cmp dword [ebp - 0x240], ebx
jne 0x43314e
mov bl, 1
lea ecx, [ebp - 0x250]
call fcn.0041b400
test esi, esi
je 0x433164
push esi
call fcn.0043d52b
pop ecx
lea ecx, [ebp - 0x310]
call fcn.00432c79
push 0
push 1
lea ecx, [ebp - 0x23c]
call fcn.00407d10
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret 4
Function at 0x433193
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0xc], ebx
call fcn.0040b880
cmp dword [eax + 0x28], 1
je 0x4331b4
mov al, 1
jmp 0x433293
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call esi
push ebx
push ebx
push 1
push ebx
mov dword [edi + 8], eax
call esi
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [edi]
mov esi, eax
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea eax, [ebp - 4]
push 0x100002
push eax
push dword [ecx]
push dword [edi + 8]
push esi
call ebx
test eax, eax
je 0x433282
mov eax, dword [edi]
lea ecx, [ebp - 8]
push 0
push 0
push 0x100002
push ecx
push dword [eax]
push dword [edi + 0xc]
push esi
call ebx
test eax, eax
je 0x433282
mov eax, dword [edi]
mov ecx, 0x1000
push 0x40
push ecx
push ecx
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x433282
push 0x2c
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0043d980
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov eax, dword [edi]
push ecx
push 0x10
lea ecx, [ebp - 0x3c]
push ecx
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x433282
cmp dword [ebp - 0xc], 0x10
jne 0x433282
push esi
mov ecx, edi
call fcn.00432f6f
test al, al
je 0x433282
mov ecx, edi
call fcn.00432e0a
test al, al
jne 0x433286
xor al, al
jmp 0x433292
mov eax, dword [edi]
push esi
push dword [eax]
call fcn.00432ee0
pop ecx
pop ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret