joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451a50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00451360
mov dword [esi], 0
test eax, eax
je 0x451ab2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jb 0x451a98
mov dword [ebp - 0x10], eax
call fcn.00448ce0
push dword [esi]
call fcn.0044ac40
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x451aab
mov dword [esi], ebx
mov ebx, eax
call fcn.00448ce0
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
lea eax, [edi + 4]
push eax
call fcn.0043b570
lea ecx, [esi + 0x10]
call fcn.004767f0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
movzx eax, byte [edi + 0x18]
mov byte [esi + 0x18], al
movzx eax, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x45ee00
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 0xc]
movzx ebx, byte [esi + 0xb]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
test bl, bl
mov dword [ebp - 0x14], ecx
lea ecx, [eax + ecx]
lea edx, [esi + ebx]
cmovs edx, ecx
cmovs esi, eax
sub edx, esi
cmp edx, 4
mov dword [ebp - 0x20], ebx
jb 0x45ee6d
mov ecx, esi
mov eax, edx
nop word [eax + eax]
imul edi, dword [ecx], 0x5bd1e995
mov ebx, edi
shr ebx, 0x18
xor ebx, edi
imul edi, ebx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x45ee40
cmp edx, 1
jne 0x45ee76
jmp 0x45ee92
mov eax, edx
mov ecx, esi
cmp edx, 1
je 0x45ee92
cmp edx, 2
je 0x45ee89
cmp edx, 3
jne 0x45ee9d
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 4]
xor ecx, ecx
test ebx, ebx
je 0x45effe
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov edi, eax
shr edi, 0xf
xor edi, eax
mov edx, ebx
shr edx, 1
and edx, 0x55555555
mov eax, ebx
sub eax, edx
mov edx, eax
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul eax, edx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x24], eax
cmp eax, 1
ja 0x45ef06
lea edx, [ebx - 1]
and edx, edi
jmp 0x45ef12
mov edx, edi
cmp edi, ebx
jb 0x45ef12
mov eax, edi
xor edx, edx
div ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x45effe
mov dword [ebp - 0x18], ebx
mov ebx, dword [eax]
test ebx, ebx
je 0x45effe
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
test cl, cl
mov eax, dword [ebp - 0x14]
cmovns eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x45ef65
and eax, dword [ebp - 0x1c]
cmp eax, edx
jne 0x45effc
mov ebx, dword [ebx]
test ebx, ebx
je 0x45effc
mov eax, dword [ebx + 4]
cmp edi, eax
jne 0x45efc0
movzx eax, byte [ebx + 0x13]
mov ecx, eax
test al, al
jns 0x45ef79
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x14]
jne 0x45ef5b
lea ecx, [ebx + 8]
test al, al
jns 0x45ef87
mov ecx, dword [ecx]
js 0x45efde
cmp dword [ebp - 0x14], 0
je 0x45eff8
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, byte [ebx + ecx + 8]
cmp dl, byte [esi + ecx]
jne 0x45ef5b
inc ecx
cmp eax, ecx
jne 0x45efa0
jmp 0x45eff8
cmp dword [ebp - 0x24], 1
mov edx, dword [ebp - 0x10]
jbe 0x45ef50
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jb 0x45ef53
xor edx, edx
div ecx
mov eax, edx
mov edx, dword [ebp - 0x10]
jmp 0x45ef53
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45eff8
push eax
push esi
push ecx
call fcn.0048ce7d
add esp, 0xc
test eax, eax
jne 0x45ef5b
mov ecx, ebx
jmp 0x45effe
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x466090
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x218
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea edi, [ebp - 0x220]
mov dword [edi + 4], eax
mov dword [edi], eax
push edi
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
test eax, eax
js 0x4661e1
mov dword [ebp - 0x224], eax
mov esi, 0xff
mov ebx, 0x4e4e1e
push esi
push dword [ebp - 0x21c]
push ebx
call fcn.004a3e71
add esp, 0xc
push ebx
call fcn.004a3a77
add esp, 4
sub esi, eax
push esi
push 0x4c248e
push ebx
call fcn.004a3e71
add esp, 0xc
push edi
call sub.ntdll.dll_RtlFreeUnicodeString
lea esi, [ebp - 0x218]
push 0x208
push 0
push esi
call fcn.0048ea80
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push 0x104
push esi
push 0x4c2324
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x46614b
push eax
push esi
push edi
call fcn.004a3eb6
add esp, 0xc
test eax, eax
je 0x46617a
push 0x104
push esi
push str.PROGRAMFILES_X86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x466176
push eax
push esi
push edi
call fcn.004a3eb6
add esp, 0xc
test eax, eax
je 0x46617a
xor eax, eax
jmp 0x46617c
mov al, 1
mov byte [0x4e4a1d], al
mov dword [ebp - 0x218], 0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x4c57ef
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4661cc
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov ecx, edi
call dword [section..00cfg]
push esi
push ebx
call edi
test eax, eax
je 0x4661cc
cmp dword [ebp - 0x218], 0
setne cl
jmp 0x4661ce
xor ecx, ecx
mov eax, dword [ebp - 0x224]
mov byte [0x4e501e], cl
mov byte [0x4e4a1c], 1
test eax, eax
setns bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, ebx
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x466321
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov ebx, edx
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x466346
mov eax, dword [ecx + 4]
test eax, eax
je 0x46636f
bt ebx, 8
jae 0x466359
mov eax, ebx
and eax, 0x200
jne 0x46636f
cmp edi, 2
mov eax, 0x4e4a1e
mov ecx, 0x4e4c1e
cmove ecx, eax
cmp word [ecx], 0
je 0x466381
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
xorps xmm0, xmm0
lea esi, [ebp - 0x34]
movups xmmword [esi + 0x10], xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x20], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [esi], 0
je 0x46636f
cmp byte [0x4e501e], 0
setne al
bt ebx, 8
jb 0x46636f
shr ebx, 9
and ebx, 1
or bl, al
je 0x46636f
cmp edi, 2
mov eax, 0x4c5834
mov edx, 0x4c5848
cmove edx, eax
mov eax, dword [ebp + 8]
movzx ebx, byte [eax + 0xb]
test bl, bl
js 0x4663df
mov ecx, ebx
mov esi, eax
mov eax, ebx
jmp 0x4663e4
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x44], ecx
xor ecx, ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x50], ecx
mov ebx, dword [edx + 4]
mov edi, eax
sub edi, ebx
jb 0x466429
push ebx
push dword [edx]
push esi
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], eax
call fcn.004a015a
mov edx, dword [ebp - 0x4c]
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x48]
je 0x466437
add edx, 0x14
mov ecx, dword [ebp - 0x50]
inc ecx
cmp ecx, dword [ebp - 0x44]
jb 0x466401
jmp 0x466497
movzx ecx, word [esi + ebx*2]
cmp ecx, 0x5c
je 0x466444
test ecx, ecx
jne 0x466429
lea eax, [esi + ebx*2]
mov ebx, dword [edx + 8]
cmp ebx, 1
je 0x466462
cmp ebx, 2
mov esi, ebx
jne 0x46646e
mov dword [ebp - 0x3c], str.WOW6432Node
mov dword [ebp - 0x38], eax
jmp 0x46646e
mov dword [ebp - 0x3c], str.WOW6432Node_
mov dword [ebp - 0x38], esi
mov esi, ebx
mov dword [ebp - 0x40], esi
cmp cx, 0x5c
jne 0x466486
lea esi, [eax + 2]
dec edi
cmp word [eax + 2], 0x5c
mov eax, esi
je 0x466477
jmp 0x466488
mov esi, eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x44], eax
mov edx, dword [edx + 0xc]
xor ecx, ecx
mov eax, edi
jmp 0x466430
cmp dword [ebp - 0x40], 0
je 0x46636f
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x4664ae
mov eax, dword [ecx]
mov edx, dword [ebp - 0x38]
sub edx, eax
sar edx, 1
push dword [ebp - 0x3c]
push edx
call fcn.004332b6
jmp 0x46636f
Function at 0x4666ae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [0x4e4a1c], 0
jne 0x4666d7
call fcn.00466090
test al, al
je 0x466768
mov eax, dword [ebp + 0xc]
xor ecx, ecx
lea edx, [ebp - 0x1c]
mov dword [edx + 4], ecx
mov dword [edx], ecx
push eax
push edx
call sub.ntdll.dll_RtlInitUnicodeString
mov eax, 0x18
lea esi, [ebp - 0x20]
mov dword [esi], eax
xor edx, edx
dec edx
lea ecx, [ebp - 0x2c]
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
push eax
call fcn.00466798
mov edi, 5
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x20]
call fcn.004153ec
mov ebx, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x20]
push ebx
push 1
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0xc0000023
je 0x46673d
cmp eax, 0x80000005
jne 0x466744
dec edi
jne 0x46670e
xor ebx, ebx
jmp 0x466776
test eax, eax
js 0x466740
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x46676c
add ebx, dword [ebx + 8]
add eax, ebx
mov ecx, dword [ebp + 0x14]
push eax
push ebx
call fcn.00417ef4
jmp 0x466774
xor ebx, ebx
jmp 0x466783
mov ecx, dword [ebp + 0x14]
call fcn.00415a94
mov bl, 1
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov dword [ecx], eax
call fcn.00415a72
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x467990
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x4d100c]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x4679b4
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov ebx, dword [ebp + 0xc]
lea esi, [ebp - 0x1c]
push ecx
push eax
push esi
call fcn.00439410
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x4679ce
mov esi, dword [ebp - 0x1c]
lea edi, [ebp - 0x28]
push ebx
push dword [ebp + 8]
push edi
call fcn.00439410
add esp, 0xc
cmp byte [ebp - 0x1d], 0
jns 0x4679e7
mov edi, dword [ebp - 0x28]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x1d], 0
js 0x467a18
cmp byte [ebp - 0x11], 0
js 0x467a29
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push dword [ebp - 0x28]
call fcn.0048ae3c
add esp, 4
cmp byte [ebp - 0x11], 0
jns 0x4679fd
push dword [ebp - 0x1c]
call fcn.0048ae3c
add esp, 4
jmp 0x4679fd

Function at 0x467ab0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov edi, ecx
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.00439410
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x467ade
mov esi, dword [ebp - 0x1c]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
js 0x467afc
cmp dword [ebp + 8], 0
jne 0x467b11
jmp 0x467bac
push dword [ebp - 0x1c]
call fcn.0048ae3c
add esp, 4
cmp dword [ebp + 8], 0
je 0x467bac
test esi, esi
je 0x467bac
lea eax, [esi + esi]
test esi, esi
mov ecx, 0xffffffff
cmovns ecx, eax
push ecx
call fcn.0048ae73
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.00439410
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x467b4c
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x467b66
push dword [ebp - 0x1c]
call fcn.0048ae3c
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x467bc5
push edi
call fcn.004a3a77
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.00439450
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x467b94
push dword [ebx]
call fcn.0048ae3c
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.0048ae7c
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3
Function at 0x46883a
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, ecx
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x46885c
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x46893f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x468897
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov ecx, esi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00468956
push 2
call fcn.00410640
add esp, 4
test al, al
je 0x46893d
call fcn.00453230
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x266
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.004533d0
lea eax, [ebp - 0xb0]
push 0x10
push str.CreateDirectory
push eax
call fcn.00413e90
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4688eb
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.00439450
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x468910
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.00413e90
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x468932
push dword [ebp - 0xc4]
call fcn.0048ae3c
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00453480
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x468956
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, ecx
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x468978
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x468a47
mov bl, 1
test al, 0x10
jne 0x468aef
push 2
call fcn.00410640
add esp, 4
test al, al
je 0x468aed
lea ecx, [ebp - 0xb8]
push 2
push 0x255
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.00452670
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.00413e90
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4689e0
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.00439450
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x468a05
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.00413e90
add esp, 0xc
push 0x11
push str.:_not_a_directory
push eax
call fcn.00413e90
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x468a37
push dword [ebp - 0xc4]
call fcn.0048ae3c
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00452a50
jmp 0x468aed
push 2
call fcn.00410640
add esp, 4
test al, al
je 0x468aed
call fcn.00453230
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x251
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.004533d0
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.00413e90
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x468a9b
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.00439450
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x468ac0
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.00413e90
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x468ae2
push dword [ebp - 0xc4]
call fcn.0048ae3c
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00453480
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x469fc8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
mov esi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
cmp esi, ebx
je 0x46a01a
mov dword [ebp - 0x24], ecx
lea edi, [ebp - 0x20]
mov ecx, esi
push edi
call fcn.00468474
test al, al
jne 0x46a007
add esi, 0x58
cmp esi, ebx
jne 0x469ff2
mov esi, ebx
mov eax, dword [ebp - 0x24]
cmp esi, dword [eax + 0x2c]
je 0x46a01a
cmp byte [esi + 0x1b], 0
jns 0x46a01f
mov eax, dword [esi + 0x10]
jmp 0x46a022
xor edi, edi
inc edi
jmp 0x46a045
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
xor edi, edi
inc edi
cmp eax, 0xffffffff
cmovne edi, ecx
test edi, edi
jne 0x46a045
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
mov eax, dword [ecx + 0x50]
cmp eax, edx
jne 0x46b2a6
cmp byte [ecx + 0x1b], 0
jns 0x46b2b3
mov ecx, dword [ecx + 0x10]
jmp fcn.0046b2b6
xor ecx, ecx
cmp eax, 1
sete cl
lea eax, [ecx + ecx*2]
inc eax
ret
add ecx, 0x10

Function at 0x46b5b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x46b5c1
test eax, eax
jne 0x46b611
test eax, eax
jne 0x46b5d7
mov ecx, dword [0x4e5028]
test ecx, ecx
je 0x46b5d7
call dword [section..00cfg]
call ecx
cmp dword [0x4e5020], 0
je 0x46b611
mov esi, dword [0x4e5024]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x46b617
test esi, esi
je 0x46b611
mov ecx, dword [0x4e5020]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x46b5ff
jmp 0x46b611
Function at 0x46e6a8
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x12c
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0xc]
mov ecx, dword [0x4d100c]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
dec ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], ecx
test al, al
je 0x46e783
lea ebx, [ebp - 0x120]
xor edi, edi
push 0x110
push edi
push ebx
call fcn.0048ea80
add esp, 0xc
mov dword [ebx - 0xc], 0x11c
sub esp, 0x10
movaps xmm0, xmmword [0x4c7580]
movups xmmword [esp], xmm0
mov ebx, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
call ebx
mov ecx, 3
push ecx
push 1
push edx
push eax
call ebx
mov ecx, 3
push ecx
push 0x20
push edx
push eax
call ebx
lea ecx, [ebp - 0x120]
mov dword [ecx - 8], 6
mov dword [ecx - 4], edi
mov word [ecx + 0x108], 0
lea ecx, [ebp - 0x12c]
push edx
push eax
push 0x23
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ebx, 0x80003
test eax, eax
je 0x46e78a
lea edi, [ebp - 0x138]
mov dword [edi], 0xc
push 0
call fcn.0046e7d3
add esp, 4
mov dword [edi + 4], eax
mov dword [edi + 8], 1
jmp 0x46e78a
xor edi, edi
mov ebx, 3
cmp byte [esi + 0xb], 0
jns 0x46e792
mov esi, dword [esi]
sub esp, 0x20
mov dword [esp + 0x1c], edi
movaps xmm0, xmmword [0x4c7590]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, esi
add esp, 0x12c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x46ec84
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 0xc]
mov ecx, dword fs:[0x18]
cmp eax, dword [ecx + 0x24]
sete al
pop ebp
ret
Function at 0x4711a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [0x4d100c]
xor edx, ebp
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x14]
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x10]
push edx
push esi
push edi
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x471209
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x471209
cmp dword [ebp - 0x14], 4
jne 0x471209
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0048b34a
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret 8

Function at 0x471220
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.0048c0c0
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x810]
push 0x800
push 0xff
push ebx
call fcn.0048ea80
add esp, 0xc
mov dword [ebp - 0x1014], 1
mov dword [ebp - 0x1018], 0x800
lea eax, [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
push eax
push ebx
push ecx
push 0
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x4712f7
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 2
je 0x4712aa
mov edi, 0x3f4
cmp eax, 1
jne 0x4712f7
mov ecx, esi
push ebx
jmp 0x4712f0
lea edi, [ebp - 0x1010]
push 0x800
push 0xff
push edi
call fcn.0048ea80
add esp, 0xc
push 0x400
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x4712f7
mov ecx, esi
lea eax, [ebp - 0x1010]
push eax
call fcn.00432eac
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, edi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x471cf0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx edx, byte [0x4e50a8]
test dl, 1
jne 0x471d16
test ecx, ecx
je 0x471d14
push ecx
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x471d21
pop ebp
ret
call fcn.004772f0
pop ebp
jmp fcn.00479010
int3