joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ab88
Capabilities:
Copy file

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff84
mov byte [esp], dl
mov ebx, eax
push 0x104
call fcn.00406360
pop ecx
mov edi, eax
push 0x104
call fcn.00406360
pop ecx
mov esi, eax
test edi, edi
je 0x40abb5
test esi, esi
jne 0x40abdc
test edi, edi
je 0x40abc0
push edi
call fcn.00406258
pop ecx
test esi, esi
je 0x40abcb
push esi
call fcn.00406258
pop ecx
mov dword [0x40c2d0], 0xd
xor eax, eax
jmp 0x40acbb
push esi
push edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, esi
call fcn.0040a1a4
mov eax, edi
call fcn.0040a990
test al, al
je 0x40ac39
push 0x5c
push edi
call fcn.00401358
add esp, 8
mov byte [eax], 0
push 0x40c51b
push edi
call fcn.0040113c
add esp, 8
push ebx
push edi
call fcn.0040113c
add esp, 8
jmp 0x40ac65
push esi
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, edi
call fcn.0040a250
push 0
push esi
push edi
call sub.KERNEL32.dll_CopyFileA
mov ebx, eax
test bl, bl
jne 0x40acab
cmp byte [esp], 0
je 0x40aca1
push esi
push edi
push 0x40c51d
lea eax, [esp + 0x10]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 0x10
push 0x40c536
lea edx, [esp + 0xc]
push edx
push 0
call sub.USER32.dll_MessageBoxA
mov dword [0x40c2d0], 0xe
push edi
call fcn.00406258
pop ecx
push esi
call fcn.00406258
pop ecx
mov eax, ebx
add esp, 0x7c
pop edi
pop esi
pop ebx
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1002aaee
pop dword [ebp - 0x2c]
mov eax, 0x20be5965
sub eax, 0x10bbae77
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x2d9d2b61
add dword [ebp - 0x3c], 0x20b519ea
mov dword [ebp - 0x38], 0xfd1af23f
add dword [ebp - 0x38], 0x35185a06
mov dword [ebp - 0x34], 0x826ab5e9
add dword [ebp - 0x34], 0xc9e18e45
mov dword [ebp - 0x30], 0xcc64ead4
sub dword [ebp - 0x30], 0xcc64ead4
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x5f9ee882
add eax, 0xb063d7b6
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xece331
add dword [ebp - 0x3c], 0x73858625
mov dword [ebp - 0x38], 0x61bccb9
add dword [ebp - 0x38], 0x3b5094bc
mov dword [ebp - 0x34], 0xf472aa0
sub dword [ebp - 0x34], 0xabd7be34
mov dword [ebp - 0x30], 0x997d80
add dword [ebp - 0x30], 0xff668280
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a604
push 0
call eax
mov ecx, 0x9b5f7b18
sub ecx, 0x9b5f2376
xor ebx, ebx
add ebx, eax
mov esi, 0x10039600
add esi, dword [ebp - 0x2c]
mov edx, 0x425cc93a
add edx, 0x54a98e7c
mov edi, dword [esi]
xor dword [ebp - 8], 0x65aa665e
sub edi, edx
add dword [ebp - 0x14], 0xc3c58c56
mov dword [ebx], edi
sub dword [ebp - 0x10], ecx
add ebx, 0xc2dcabeb
add ebx, 0x3d235419
add esi, 0x6afd5f3
sub esi, 0x6afd5ef
loop 0x1002ac07
add eax, 0x1515b
mov ebx, eax
add eax, 0x717998cc
add eax, 0x8e866739
mov ecx, 0x8ceb5ef
add ecx, 0x7314a11
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x100036c0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10154b60
push 0x100f6380
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x1015d2f0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x22c], 1
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x230]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x1000378c
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x228]
push eax
push 5
mov ecx, dword [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x1000378c
mov edx, dword [ebp - 0x228]
push edx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x224]
push ecx
push 1
lea edx, [ebp - 0x220]
push edx
push esi
call dword [sym.imp.NETAPI32.dll_NetUserGetInfo]
test eax, eax
jne 0x1000378c
mov eax, dword [ebp - 0x224]
cmp dword [eax + 0xc], 2
je 0x1000378c
mov dword [ebp - 0x22c], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.100037bf
cmp dword [ebp - 0x22c], esi
setne al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100f2782
mov esp, ebp
pop ebp
ret
Function at 0x10005b36
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov dword [ebp - 0xf4], 0x1015e3a5
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call eax
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0xe4], eax
add esp, 0xfffffff8
mov dword [esp], 0x40
mov eax, dword [ebp - 0xe4]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalAlloc]
call eax
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xdc]
mov edx, dword [ebp - 0xd8]
mov ecx, eax
call fcn.10005a92
mov dword [ebp - 0xd4], eax
add esp, 0xfffffff4
mov dword [esp], 0
mov eax, dword [ebp - 0xdc]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x104
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call eax
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xc4]
imul eax, eax, 2
add eax, dword [ebp - 0xdc]
movzx eax, word [eax]
movzx eax, ax
test eax, eax
je 0x10005c58
mov eax, 1
add eax, dword [ebp - 0xc4]
mov dword [ebp - 0xc4], eax
jmp 0x10005c2c
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xc0], eax
mov eax, 0xffffffff
add eax, dword [ebp - 0xc0]
test dword [eax - 1], eax
invalid
jmp [ebx - 0x40]
add al, byte [ebx]
test dword [edi + edi*8], esp
invalid
dec dword [edi]
mov bh, 0
movzx eax, ax
cmp eax, 0x5c
je 0x10005caa
mov eax, dword [ebp - 0xc0]
imul eax, eax, 2
add eax, dword [ebp - 0xdc]
mov word [eax], 0
mov eax, 0xffffffff
add eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc0], eax
jmp 0x10005c64
mov dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0xbc]
add eax, dword [ebp - 0xc8]
movsx eax, byte [eax]
movsx eax, al
test eax, eax
je 0x10005d12
mov eax, dword [ebp - 0xbc]
add eax, dword [ebp - 0xc8]
movsx eax, byte [eax]
movsx eax, al
mov edx, dword [ebp - 0xc0]
imul edx, edx, 2
add edx, dword [ebp - 0xdc]
mov word [edx], ax
mov eax, 1
add eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc0], eax
mov eax, 1
add eax, dword [ebp - 0xbc]
mov dword [ebp - 0xbc], eax
jmp 0x10005cb4
add esp, 0xffffffe4
mov eax, dword [ebp - 0xdc]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 3
and al, 0x10
add eax, dword [eax]
add byte [eax], al
Function at 0x10005d38
Capabilities:
Get file size
Read file on windows

Disassembly:
and al, 0x10
add eax, dword [eax]
add byte [eax], al
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x18], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
call eax
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
cmp eax, 0xffffffff
jne 0x10005d74
leave
ret
add esp, 0xfffffff8
mov eax, dword [ebp - 0xb4]
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSize]
call eax
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xac], eax
add esp, 0xfffffff4
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [sym.imp.KERNEL32.dll_HeapCreate]
call eax
invalid
invalid

Function at 0x1000fdff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x1000fe46
call fcn.1000624d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000fe46
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1000fe62
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1000f8ff
mov esi, eax
test edi, edi
je 0x1000fe60
test ebx, ebx
je 0x1000fe60
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10010241
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1010e8b6
call fcn.100f4701
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x10010266
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x100102b8
call fcn.100054f8
push eax
lea ecx, [ebp - 0x10]
call fcn.100029b0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100f480b
push eax
call fcn.10002a90
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.100030c0
mov eax, esi
call fcn.100f47d9
ret 8

Function at 0x10012fc8
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.10012c6c
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10013012
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10004894
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10004853
jmp 0x1001301d
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1001034c
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x101044ff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1015d2f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100f9315
and dword [ebp - 0x14], 0
cmp dword [0x10164d0c], 0
mov dword [ebp - 0x18], eax
jne 0x101045b2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1010465a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1013f0b4
push ebx
call edi
test eax, eax
je 0x1010465a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x1013f0a4
push ebx
mov dword [0x10164d0c], eax
call edi
push eax
call esi
push 0x1013f090
push ebx
mov dword [0x10164d10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10164d14], eax
call edi
push eax
call esi
mov dword [0x10164d1c], eax
test eax, eax
je 0x101045b2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10164d18], eax
mov eax, dword [0x10164d18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1010460b
cmp dword [0x10164d1c], ecx
je 0x1010460b
push eax
call esi
push dword [0x10164d1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1010460b
test ebx, ebx
je 0x1010460b
call edi
test eax, eax
je 0x10104602
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10104602
test byte [ebp - 8], 1
jne 0x1010460b
or dword [ebp + 0x10], 0x200000
jmp 0x1010463e
mov eax, dword [0x10164d10]
cmp eax, dword [ebp - 0x18]
je 0x1010463e
push eax
call esi
test eax, eax
je 0x1010463e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1010463e
mov eax, dword [0x10164d14]
cmp eax, dword [ebp - 0x18]
je 0x1010463e
push eax
call esi
test eax, eax
je 0x1010463e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10164d0c]
call esi
test eax, eax
je 0x1010465a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1010465c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f2782
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100f9147
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push esi
push 0x10085744
mov esi, ecx
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x100f9178
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x100f920a
and eax, 0xffff
or eax, 0x80070000
pop esi
ret
push edi
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x10085738
push eax
call edi
mov dword [esi], eax
test eax, eax
je 0x100f91f7
push 0x1008572c
push dword [esi + 0x1c]
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x100f91f7
push 0x1008571c
push dword [esi + 0x1c]
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x100f91f7
push 0x10085710
push dword [esi + 0x1c]
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x100f91f7
push 0x10085704
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x100f91f7
push 0x100856fc
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x100f91f7
push 0x100856f0
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x100f91f7
xor eax, eax
jmp 0x100f9209
push dword [esi + 0x1c]
call dword [sym.imp.kernel32.dll_FreeLibrary]
and dword [esi + 0x1c], 0
mov eax, 0x80004005
pop edi
pop esi
ret

Function at 0x100fb3d2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x100fb3e1
pop dword [ebp - 8]
mov eax, 0x6ccdeb87
sub eax, 0x5cbe37a6
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xdaa1ec58
sub dword [ebp - 0x18], 0x8c4fa70d
mov dword [ebp - 0x14], 0x51c88ebb
sub dword [ebp - 0x14], 0x1f954276
mov dword [ebp - 0x10], 0xe66d52ce
sub dword [ebp - 0x10], 0x9a210ea0
mov dword [ebp - 0xc], 0xb223f5f9
sub dword [ebp - 0xc], 0xb223f5f9
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xd5d1eb19
add dword [ebp - 0x18], 0x9ea07e3d
mov dword [ebp - 0x14], 0x54e5114e
sub dword [ebp - 0x14], 0x1378afd9
mov dword [ebp - 0x10], 0x8a1cbd11
sub dword [ebp - 0x10], 0x26ad50a5
mov dword [ebp - 0xc], 0x669b4a8c
sub dword [ebp - 0xc], 0x669b4a8c
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x427e3
push 0
call eax
mov ecx, 0x2a823e3
add ecx, 0xfd583f67
mov esi, eax
mov edx, 0x101c9e00
add edx, dword [ebp - 8]
mov ebx, 0xe4d3cfcc
add ebx, 0x6516c262
add dword [ebp - 4], ebx
mov edi, dword [edx]
sub dword [ebp - 4], edi
sub edi, ebx
add dword [ebp - 4], ebx
mov dword [esi], edi
xor dword [ebp - 4], 0xcc8c194e
add esi, 4
add edx, 0x987a947b
add edx, 0x67856b89
loop 0x100fb4f3
add eax, 0x17ffb
mov ebx, eax
add eax, 5
mov ecx, 0xae763595
add ecx, 0x6189ca6b
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x407d62
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
push edi
mov esi, ecx
sub esp, 0xc
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 0x40]
push eax
lea eax, [esi + 0x3c]
push eax
lea eax, [esi + 0x38]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ecx
lea ecx, [ebp - 0x88]
call fcn.00407be1
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push 0x2c
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push eax
push 0x2c
lea eax, [ebp - 0x88]
mov dword [ebp - 0x2c], edi
push eax
push dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x18], edi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x407e48
cmp dword [ebp - 0x30], 2
jne 0x407e48
cmp dword [ebp - 0x2c], edi
je 0x407e48
cmp dword [ebp - 0x10], edi
je 0x407e48
cmp dword [ebp - 0xc], edi
je 0x407e48
cmp dword [ebp - 8], edi
je 0x407e48
push edi
lea eax, [ebp - 4]
mov dword [ebp - 0x58], edi
push eax
push 0x2c
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x54], edi
push eax
push dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x50], edi
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x5c], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407e48
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x34], eax
mov al, 1
jmp 0x407e4a
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x4308d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d450
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x599850]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
movups xmm0, xmmword [ebp + 8]
push 0x30
mov byte [ebp + 8], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp + 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
call fcn.004ff716
add esp, 4
mov ecx, esi
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00430e10
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x430994
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x43098a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4309a8
push ecx
push edx
call fcn.004ff746
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18
call fcn.00508363
int3
Function at 0x433680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5305ad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x599850]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004ff716
mov edi, eax
add esp, 4
test edi, edi
je 0x43371d
push 1
mov dword [ebp - 4], 0
call fcn.00501076
add esp, 4
mov dword [edi + 4], eax
jmp 0x43371f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00431330
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x43377a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x43377a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x433796
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4337b9
cmp byte [ebp + 0xc], 0
je 0x4337a5
push esi
call fcn.00502df8
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4337c5
mov esi, str.ios_base::badbit_set
jmp 0x4337d5
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00433a30
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00431970
push 0x590318
lea eax, [ebp - 0x28]
push eax
call fcn.0050421d
int3
Function at 0x4358c0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5307a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x599850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24c]
push eax
push 0x20119
push 0
push 0x53c4f4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x254], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435aac
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.DeviceID
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x24c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x435aa6
cmp dword [ebp - 0x254], esi
jbe 0x435aa6
push 0x53c4f4
lea ecx, [ebp - 0x230]
call fcn.004357e0
cmp dword [ebp - 0x21c], 8
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
cmovae edx, dword [ebp - 0x230]
mov dword [ebp - 4], esi
test eax, eax
je 0x435a81
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea edi, [edx + ecx*2]
je 0x4359d1
nop dword [eax]
cmp edi, edx
je 0x435a81
sub edi, 2
cmp word [edi], 0x5c
jne 0x4359c0
sub edi, edx
sar edi, 1
cmp edi, 0xffffffff
je 0x435a81
push edi
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.004368f0
cmp dword [eax + 0x14], 8
jb 0x4359fb
mov eax, dword [eax]
lea ecx, [ebp - 0x24c]
push ecx
push 0xf013f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x248]
mov esi, eax
call fcn.00407777
test esi, esi
jne 0x435a70
push 0xffffffffffffffff
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.004368f0
cmp dword [eax + 0x14], 8
jb 0x435a46
mov eax, dword [eax]
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
lea ecx, [ebp - 0x248]
mov esi, eax
call fcn.00407777
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x435a81
call fcn.0045aa70
push str.Failed_to_delete_reg_key
mov ecx, eax
call fcn.00435730
mov ecx, dword [ebp - 0x250]
lea eax, [ebp - 0x218]
push eax
call fcn.004357e0
lea ecx, [ebp - 0x230]
call fcn.00407777
mov eax, dword [ebp - 0x250]
jmp 0x435ad5
mov esi, dword [ebp - 0x250]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ff754
mov esp, ebp
pop ebp
ret