joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456010
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x516c40
push 0x40c710
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5256a8]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x19], 0
cmp dword [0x5281e8], 0
je 0x4561e1
cmp dword [0x5281ec], 0
je 0x4561e1
cmp dword [ebp + 0x14], 0
je 0x4561e1
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4561e1
cmp byte [eax], 0
je 0x4561e1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4561e1
cmp byte [eax], 0
je 0x4561e1
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4561e1
cmp dword [ebp + 0x18], 0
je 0x4561e1
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4561e1
push 0
push 0x40
push ebx
call fcn.00412c40
add esp, 0xc
test al, al
je 0x4561e1
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x4561e1
mov edi, dword [ebx + 0x3c]
add edi, ebx
push 0
push pe_nt_image_headers32
push edi
call fcn.00412c40
add esp, 0xc
test al, al
je 0x4561e1
cmp dword [edi], 0x4550
jne 0x4561e1
mov esi, dword [edi + 0x80]
add esi, ebx
cmp esi, edi
jne 0x456123
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
push edi
call dword [0x5281ec]
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x456159
add eax, ebx
mov ecx, dword [ebp - 0x24]
push ecx
push edi
push eax
call dword [0x5281e8]
add esp, 0xc
test eax, eax
je 0x456159
add esi, 0x14
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x45613a
cmp dword [esi + 0xc], 0
je 0x45610f
mov esi, dword [esi + 0x10]
add esi, ebx
mov dword [ebp - 0x24], esi
mov eax, dword [esi]
test eax, eax
je 0x4561e1
cmp eax, dword [ebp + 0x18]
jne 0x4561f6
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
push edx
push 0x80
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4561e1
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4561c9
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 4
jmp 0x456164
Function at 0x4562d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
xor esi, esi
call fcn.004074d0
cmp eax, 3
jge 0x456367
push 0x40
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.004b7120
add esp, 0xc
push 0x528724
mov dword [ebp - 0x48], 0x44
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [ebp + 0xc]
cmp eax, 1
sete cl
mov byte [ebp - 3], cl
push edx
lea ecx, [ebp - 4]
call fcn.00456200
test al, al
je 0x45635f
mov eax, dword [ebp + 0x34]
mov edx, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
or ecx, 0x1080000
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
lea ecx, [ebp - 4]
call fcn.00456270
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4566a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 0x38]
push esi
test eax, eax
je 0x4566e3
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x30]
push ecx
mov ecx, dword [ebp + 0x2c]
push edx
mov edx, dword [ebp + 0x28]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.00456410
add esp, 0x2c
test eax, eax
jne 0x456712
pop esi
pop ebp
ret
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
push edx
mov edx, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push 0
push eax
mov eax, dword [ebp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x456712
pop esi
pop ebp
ret
cmp dword [ebp + 0x10], 0
mov eax, 0x101c01
mov dword [ebp + 0x24], 0x100c43
je 0x45672c
mov eax, 0x1fffff
mov dword [ebp + 0x24], eax
mov ecx, dword [esi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
mov edi, dword [ebp + 0xc]
push 1
push 0
push eax
push esi
push edi
push ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x45675f
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x24]
mov edx, dword [esi + 4]
push 1
push 0
push ecx
lea eax, [esi + 4]
push eax
push edi
push edx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
pop edi
sbb eax, eax
pop ebx
neg eax
pop esi
pop ebp
ret
Function at 0x457890
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x528178]
cmp byte [eax + 0x49], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, str.AcrobatLogTransport2.exe
jne 0x4578be
mov eax, 0x4ed7c4
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00414970
xor ebx, ebx
add esp, 8
cmp dword [ebp - 0x2c], ebx
je 0x457a05
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x4578e2
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x457a05
lea edx, [ebp - 0x3c]
push edx
push edi
call fcn.0045b1d0
add esp, 8
test al, al
jne 0x457927
cmp dword [ebp - 0x28], 8
jb 0x457914
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00406cf9
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push 1
mov word [ebp - 0x20], cx
mov edi, 7
push 0x4ed7c0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
call fcn.0040d610
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x20]
call fcn.0040d500
push 1
push 0x4ed7c0
lea ecx, [ebp - 0x20]
call fcn.0040d610
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0045b1d0
add esp, 8
lea esi, [edi + 1]
test al, al
jne 0x4579be
cmp dword [ebp - 0xc], esi
jb 0x45798a
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406cf9
add esp, 4
xor edx, edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], dx
cmp dword [ebp - 0x28], esi
jb 0x457914
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00406cf9
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov bl, 1
cmp dword [ebp - 0xc], esi
jb 0x4579d1
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406cf9
add esp, 4
xor edx, edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], dx
cmp dword [ebp - 0x28], esi
jb 0x4579f2
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00406cf9
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x28], 8
jb 0x457914
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406cf9
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x457cc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x457d56
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004b7120
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x457cff
mov esi, dword [esi]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x457d56
cmp eax, 0x104
ja 0x457d56
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x457d26
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, edi
call fcn.00406030
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x45a160
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
xor al, al
cmp dword [esi + 0x10], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x45a250
mov ecx, esi
call fcn.00417930
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45a261
mov ecx, esi
call fcn.00417930
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x45a261
push 0
push str.ime_shared
lea eax, [ebp - 0x3c]
push 0x25
push eax
call fcn.00420570
push 0
push str.ime_shared
lea ecx, [ebp - 0x20]
push 0x24
push ecx
call fcn.00420570
push ebx
push edi
lea edx, [ebp - 0x3c]
push esi
push edx
call fcn.00459d90
add esp, 0x30
test al, al
jne 0x45a211
push ebx
push edi
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.00459d90
add esp, 0x10
test al, al
jne 0x45a211
push ebx
push edi
push esi
call fcn.00459e80
add esp, 0xc
test al, al
jne 0x45a211
xor bl, bl
jmp 0x45a213
mov bl, 1
mov esi, 8
cmp dword [ebp - 0xc], esi
jb 0x45a229
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406cf9
add esp, 4
xor edx, edx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], dx
cmp dword [ebp - 0x28], esi
jb 0x45a24e
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00406cf9
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret

Function at 0x45ae80
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x45aeda
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x45aed9
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push esi
call edi
test eax, eax
je 0x45aed8
push 0
push 0x45ae60
push ebx
call dword [sym.imp.USER32.dll_EnumThreadWindows]
push 0
push 0
push 0x12
push ebx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x1388
push esi
call edi
test eax, eax
je 0x45aed8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
push esi
call edi
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x45b3f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x214]
push ecx
xor ebx, ebx
push esi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x45b4e3
cmp eax, ebx
jne 0x45b440
cmp dword [ebp - 0x214], ebx
je 0x45b4e3
push ebx
push 1
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
je 0x45b4e3
push edi
push 1
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x45b4db
push 0x208
lea eax, [ebp - 0x20e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x210], dx
call fcn.004b7120
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetMappedFileNameW
test eax, eax
je 0x45b4d4
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b4b0
mov ecx, dword [ebp - 0x218]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x210]
push edx
call fcn.00406030
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x45b720
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x218], eax
test edi, edi
je 0x45b84b
cmp word [edi], 0x5c
jne 0x45b84b
cmp word [edi + 2], 0x5c
jne 0x45b84b
mov ecx, dword [0x4ee02c]
mov dx, word [0x4ee030]
push ebx
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], dx
mov ebx, 0x43
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x45b7fe
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x21c], 0x104
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x45b7fe
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b7c0
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b7d6
sub eax, edx
sar eax, 1
cmp eax, esi
jbe 0x45b7fe
push esi
lea ecx, [ebp - 0x214]
push ecx
push edi
call fcn.00418ef4
add esp, 0xc
test eax, eax
je 0x45b81c
inc ebx
cmp bx, 0x5a
jbe 0x45b778
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x218]
lea edx, [ebp - 0xc]
push edx
mov ecx, ebx
call fcn.004321e0
lea eax, [edi + esi*2]
push eax
mov ecx, ebx
call fcn.00421f10
pop esi
pop ebx
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop edi
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x45b860
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x254], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x45b8a5
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x24c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x45b8da
pop ebx
xor ecx, ecx
cmp eax, 2
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
xor edx, edx
mov eax, esi
mov word [ebp - 0x228], dx
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], ebx
lea edx, [eax + 2]
jmp 0x45b900
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45b900
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x228]
call fcn.00406030
mov ecx, dword [ebp - 0x218]
lea eax, [ecx - 1]
cmp ecx, eax
ja 0x45b933
push str.invalid_string_position
call fcn.004b5634
cmp dword [ebp - 0x214], 8
mov ecx, dword [ebp - 0x228]
jae 0x45b948
lea ecx, [ebp - 0x228]
cmp word [ecx + eax*2], 0x5c
je 0x45b961
push 1
push 0x4ea370
lea ecx, [ebp - 0x228]
call fcn.0040d610
mov edx, dword [ebp - 0x24c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push edx
mov dword [ebp - 0x248], 0x104
call edi
test eax, eax
jne 0x45ba73
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x228]
xor eax, eax
push ecx
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x230], 7
mov dword [ebp - 0x234], ebx
mov word [ebp - 0x244], ax
call fcn.00406690
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45b9d0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x244]
call fcn.0040d610
cmp dword [ebp - 0x230], 8
mov eax, dword [ebp - 0x244]
jae 0x45ba07
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x250]
push eax
call fcn.0045b860
add esp, 8
test al, al
je 0x45ba68
mov eax, dword [ebp - 0x24c]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x20c]
push edx
push ebx
push eax
mov dword [ebp - 0x248], 0x104
call edi
cmp dword [ebp - 0x230], 8
mov esi, eax
jb 0x45ba5b
mov ecx, dword [ebp - 0x244]
push ecx
call fcn.00406cf9
add esp, 4
cmp esi, ebx
mov esi, dword [ebp - 0x254]
jmp 0x45b98f
lea ecx, [ebp - 0x244]
call fcn.00409fe0
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x250]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
cmp dword [ebp - 0x214], 8
jb 0x45baab
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.00406cf9
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x4606c0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x210], 0
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x460702
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [esi + 8]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 2
mov dword [ebp - 0x20c], edx
mov dword [ebp - 0x208], eax
call edi
cmp eax, 0x102
je 0x460789
cmp eax, 0x80
je 0x460789
cmp eax, 0x81
je 0x460789
test eax, eax
je 0x460789
mov edx, dword [esi]
mov eax, dword [edx]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [esi + 4]
push 0x200
lea edx, [ebp - 0x204]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x46079c
cmp dword [ebp - 0x210], 0x200
jne 0x46079c
mov edx, dword [esi]
mov eax, dword [edx + 4]
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
je 0x4607ac
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x460789
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x460789
test bl, bl
jne 0x4607fe
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x20c]
push edx
push 2
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x208], ecx
call edi
cmp eax, 0x102
jne 0x460733
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov al, 1
pop esi
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x462180
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0
call fcn.004074e0
cmp dword [eax + 0x24], 1
je 0x4621a2
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0
push 0
mov edi, eax
mov eax, dword [esi]
mov eax, dword [eax]
push 0x100002
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push edi
call ebx
test eax, eax
je 0x4622da
mov eax, dword [esi]
mov eax, dword [eax]
mov edx, dword [esi + 0xc]
push 0
push 0
push 0x100002
lea ecx, [ebp - 8]
push ecx
push eax
push edx
push edi
call ebx
test eax, eax
je 0x4622da
mov eax, dword [esi]
mov eax, dword [eax]
push 0x40
push 0x3000
mov edi, 0x1000
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x462287
mov ecx, dword [esi]
xor eax, eax
push 0x1c
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x462283
add edi, dword [ebp - 0x1c]
mov eax, dword [esi]
mov eax, dword [eax]
push 0x40
push 0x3000
push 0x1000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x462233
jmp 0x462287
test ebx, ebx
je 0x4622da
push 0x2c
lea ecx, [ebp - 0x54]
push 0
push ecx
call fcn.004b7120
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [esi]
add esp, 0xc
mov dword [ebp - 0x58], edx
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0x50], eax
mov eax, dword [ecx]
push 0x10
lea ecx, [ebp - 0x58]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4622da
cmp dword [ebp - 0xc], 0x10
jne 0x4622da
push ebx
mov ecx, esi
call fcn.00461c30
test al, al
je 0x4622da
mov ecx, esi
call fcn.004606c0
test al, al
jne 0x4622e3
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
mov eax, dword [edx]
push ebx
push eax
call fcn.0045e370
add esp, 8
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret