joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51ab20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x51abb9
cmp dword [esi + 4], 0xffffffff
jne 0x51abb9
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x51ab50
cmp dword [ebp + 0x10], 1
mov eax, dword [0x56259c]
mov dword [edi], eax
mov edi, dword [ebp + 8]
jne 0x51ab83
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x51ab83
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0051d540
add esp, 0x10
test eax, eax
jne 0x51aba3
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.0051de00
add esp, 4
mov dword [esi], eax
mov eax, dword [0x5c9650]
pop edi
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x51d680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x51d6be
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x51d6b2
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x51d6cf
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004ce4c0
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x51d8b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x51d8be
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x51d993
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x572830]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x572830]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x572830]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x572830]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x572830]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x572830]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x572830]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x572830]
dec edi
jne 0x51d8d6
pop edi
test esi, esi
je 0x51d9b2
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x572830]
dec esi
jne 0x51d997
not eax
pop esi
pop ebp
ret
Function at 0x52f350
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x52f377
cmp eax, edi
jge 0x52f36f
push esi
call fcn.0052a250
add esp, 4
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x52f3a0
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x52f383
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x52f3bc
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x52f3ad
xor dl, dl
jmp 0x52f3b2
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x52f3a3
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x52f3f1
pop edi
pop esi
mov dword [ebp + 8], str.zlib_corrupt
pop ebp
jmp fcn.0052a160
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x52f409
pop edi
pop esi
mov dword [ebp + 8], str.read_past_buffer
pop ebp
jmp fcn.0052a160
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x52f427
push edi
push ecx
push esi
call fcn.00532e60
add esp, 0xc
test eax, eax
jne 0x52f427
pop edi
pop esi
pop ebp
ret
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004ce4c0
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ebp
ret

Function at 0x5331a0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov edx, ecx
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
je 0x53325c
mov ecx, esi
push edi
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5331c0
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.0046d710
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push esi
push 0x400
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0x8000004
push eax
push 0xffffffffffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
pop edi
test eax, eax
je 0x53325c
cmp eax, 0xffffffff
je 0x53325c
push 4
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0x400
mov esi, eax
push 0
push esi
call fcn.004c62d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x5332f0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x10], 0
jne 0x5332ff
xor al, al
pop ebp
ret 8
cmp dword [ecx + 0x14], 8
jb 0x533307
mov ecx, dword [ecx]
push edi
push ecx
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
test edi, edi
je 0x533354
cmp edi, 0xffffffff
je 0x533354
push esi
push 4
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push eax
mov ecx, dword [eax + ecx*4]
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
pop edi
pop ebp
ret 8
xor al, al
pop edi
pop ebp
ret 8

Function at 0x5333e0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x10], 0
jne 0x5333ef
xor al, al
pop ebp
ret 8
cmp dword [ecx + 0x14], 8
jb 0x5333f7
mov ecx, dword [ecx]
push esi
push ecx
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
test esi, esi
je 0x53343b
cmp esi, 0xffffffff
je 0x53343b
push 4
push 0
push 0
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push eax
mov dword [eax + ecx*4], edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop esi
pop ebp
ret 8

Function at 0x53a503
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x40d6e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40d738
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
xor ebx, ebx
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea ebp, [ebx + eax]
jne 0x40d730
cmp ebp, ebx
jb 0x40d7b2
cmp ebp, dword [esp + 0x1c]
ja 0x40d7c3
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x40d732
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x40d720
jmp 0x40d78f
ja 0x40d738
cmp edx, edi
mov ebx, ebp
jne 0x40d6f5
mov edx, dword [esp + 0x24]
test edx, edx
je 0x40d793
mov esi, dword [esp + 0x20]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax + eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x40d770
mov esi, edi
sub ecx, ebx
jns 0x40d787
jmp 0x40d795
cmp edi, edx
je 0x40d79c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x40d795
xor al, 1
cmp esi, edx
jne 0x40d750
jmp 0x40d795
xor eax, eax
jmp 0x40d795
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x45f79c
push 0x2b
push 0x45ec5d
call fcn.004515d0
add esp, 0xc
ud2
push 0x45f78c
push ebp
push ebx
call fcn.00451990
add esp, 0xc
ud2
push 0x45f78c
push dword [esp + 0x20]
push ebp
call fcn.00451970
add esp, 0xc
ud2
Function at 0x4123a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41b050
mov edi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x2c], 0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 0
cmp edi, 0x201
jae 0x412430
jmp 0x41241e
jbe 0x4124c3
cmp edi, 0x201
jae 0x412430
lea ebx, [ebp - 0x448]
mov dword [ebp - 0x28], 0x200
mov esi, edi
jmp 0x41246b
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
sub edi, esi
sub eax, esi
cmp eax, edi
jae 0x41245c
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
mov edx, esi
push edi
call fcn.00451bf0
add esp, 4
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x41248f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x412526
cmp edi, esi
jne 0x412410
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x412545
add esi, esi
mov eax, 0xffffffff
cmovb esi, eax
mov edi, esi
cmp edi, 0x201
jb 0x41241e
jmp 0x412430
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp edi, eax
ja 0x412562
lea eax, [ebp - 0x48]
push edi
push ebx
push eax
call fcn.004139c0
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x412510
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00442960
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi], 0
mov byte [esi + 0xc], 2
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x412500
jmp 0x412510
mov dword [ebp - 0x10], 0
push 0x461c6c
push 0x28
push 0x46085f
call fcn.004515d0
add esp, 0xc
jmp 0x412571
push 0x461c7c
push eax
push edi
call fcn.00451970
add esp, 0xc
ud2
Function at 0x417d80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41b1f0
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x4a0024]
test eax, eax
je 0x417dd4
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x417ded
cmp dword [eax], 0
mov ebx, eax
je 0x417ded
add ebx, 4
jmp 0x417ecb
push 0x4a0024
call fcn.00451e80
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x417dc5
mov eax, dword [0x4a0024]
test eax, eax
je 0x417eac
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x417ec9
mov edi, eax
test eax, eax
jne 0x417e5a
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0x4a0024
push 4
push 0xc
call fcn.00442950
add esp, 8
test eax, eax
je 0x417ef0
mov edi, eax
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [edi + 8], eax
movsd qword [edi], xmm0
mov eax, dword [0x4a0024]
test eax, eax
je 0x417ede
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor edx, edx
test esi, esi
je 0x417e88
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esi], 0
test eax, eax
je 0x417e88
cmp eax, 1
jne 0x417e78
mov edx, ecx
jmp 0x417e88
test ecx, ecx
je 0x417e88
lock dec dword [ecx]
jne 0x417e88
call fcn.004113f0
xor edx, edx
mov ecx, dword [edi + 4]
cmp dword [edi], 0
lea ebx, [edi + 4]
mov dword [edi], 1
mov dword [edi + 4], edx
je 0x417ecb
test ecx, ecx
je 0x417ecb
lock dec dword [ecx]
jne 0x417ecb
call fcn.004113f0
jmp 0x417ecb
push 0x4a0024
call fcn.00451e80
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x417e0b
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4a0024
call fcn.00451e80
add esp, 4
jmp 0x417e52
mov dword [ebp - 0x10], 0
push 4
push 0xc
call fcn.00451ab0
add esp, 8
ud2
Function at 0x41a2f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41b2a0
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x4a004c]
test eax, eax
je 0x41a344
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x41a35d
cmp dword [eax], 0
mov ebx, eax
je 0x41a35d
add ebx, 4
jmp 0x41a44c
push 0x4a004c
call fcn.00451e80
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x41a335
mov eax, dword [0x4a004c]
test eax, eax
je 0x41a42d
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x41a44a
mov edi, eax
test eax, eax
jne 0x41a3ce
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0x4a004c
push 4
push 0x10
call fcn.00442950
add esp, 8
test eax, eax
je 0x41a471
movsd xmm0, qword [ebp - 0x2c]
movsd xmm1, qword [ebp - 0x24]
mov edi, eax
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [0x4a004c]
test eax, eax
je 0x41a45f
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x41a402
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esi], 0
test edx, edx
je 0x41a402
cmp edx, 1
jne 0x41a3ed
mov edx, ecx
jmp 0x41a406
test ecx, ecx
je 0x41a402
xor eax, eax
lock dec dword [ecx]
mov edx, 0
jne 0x41a406
call fcn.004113b0
xor eax, eax
xor edx, edx
mov ecx, dword [edi + 8]
cmp dword [edi], 0
lea ebx, [edi + 4]
mov dword [edi], 1
mov dword [edi + 4], eax
mov dword [edi + 8], edx
je 0x41a44c
test ecx, ecx
je 0x41a44c
lock dec dword [ecx]
jne 0x41a44c
call fcn.004113b0
jmp 0x41a44c
push 0x4a004c
call fcn.00451e80
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x41a37b
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4a004c
call fcn.00451e80
add esp, 4
jmp 0x41a3c6
mov dword [ebp - 0x10], 0
push 4
push 0x10
call fcn.00451ab0
add esp, 8
ud2
Function at 0x41a500
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x4a005c]
mov esi, ecx
test eax, eax
je 0x41a525
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x41a53e
cmp dword [eax], 0
je 0x41a53e
add eax, 4
pop esi
pop edi
ret
push 0x4a005c
call fcn.00451e80
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x41a51a
mov eax, dword [0x4a005c]
test eax, eax
je 0x41a5b4
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x41a5cd
mov edi, eax
test eax, eax
jne 0x41a58b
push 4
push 0xc
call fcn.00442950
add esp, 8
test eax, eax
je 0x41a5e1
mov dword [eax], 0
mov dword [eax + 8], 0x4a005c
mov edi, eax
mov eax, dword [0x4a005c]
test eax, eax
je 0x41a5d2
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x41a5a3
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi], 0
cmp eax, 1
jne 0x41a5a5
mov ecx, dword [esi + 4]
jmp 0x41a5a5
xor ecx, ecx
mov dword [edi], 1
lea eax, [edi + 4]
mov dword [edi + 4], ecx
pop esi
pop edi
ret
push 0x4a005c
call fcn.00451e80
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x41a554
xor eax, eax
pop esi
pop edi
ret
push 0x4a005c
call fcn.00451e80
add esp, 4
jmp 0x41a583
push 4
push 0xc
call fcn.00451ab0
add esp, 8
ud2
Function at 0x4286a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, edx
mov edi, dword [ebp + 8]
mov eax, dword [0x4a0070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x104
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42880e
push str.MicrosoftWindowsStart_MenuPrograms_
push 0x104
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
test eax, eax
jne 0x42880e
mov ecx, dword [esi + 0x10]
lea eax, [ecx - 0x7ffffffb]
cmp eax, 3
jbe 0x428820
mov eax, dword [esi]
mov dword [ebp - 0x38], eax
mov edx, dword [esi + 0x14]
lea edi, [ebp - 0x28]
mov dword [edi], 0
lea eax, [ecx + 4]
mov ebx, 7
cmp eax, 8
jb 0x428784
mov dword [ebp - 0x30], edx
mov edx, eax
or edx, 7
cmp edx, 0xb
mov ebx, 0xa
cmovae ebx, edx
mov edx, SysReAllocString
cmp ebx, edx
cmovae ebx, edx
lea edi, [ebx + ebx]
cmp ebx, 0x7ff
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], eax
jb 0x42876a
cmp ebx, 0x7fffffee
jae 0x428825
add edi, 0x25
push edi
call fcn.0044fa65
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x428778
add edi, 2
push edi
call fcn.0044fa65
add esp, 4
mov edi, eax
mov dword [ebp - 0x28], edi
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
cmp edx, 8
cmovae esi, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
lea eax, [ecx + ecx]
push eax
push esi
push edi
mov esi, ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + esi*2 + 4], 0x6b006e
mov dword [edi + esi*2], 0x6c002e
mov word [edi + esi*2 + 8], 0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4287c3
mov eax, dword [ebp - 0x28]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42880e
mov ecx, dword [ebp - 0x28]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x428804
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42882a
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0044fa95
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450110
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00453370
call fcn.00453380
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42887b
mov eax, dword [ebp + 0xc]
movdqu xmm0, xmmword [eax]
pcmpeqb xmm0, xmmword [0x462b70]
pmovmskb edx, xmm0
cmp edx, 0xffff
je 0x428872
movdqu xmm0, xmmword [eax]
pcmpeqb xmm0, xmmword [0x462b80]
pmovmskb edx, xmm0
mov eax, 0x80004002
cmp edx, 0xffff
jne 0x428880
mov eax, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
jmp 0x428880
mov eax, 0x80004003
pop ebp
ret 0xc
Function at 0x42a580
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x4a0070]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov esi, eax
call fcn.00401160
mov ecx, dword [eax]
or ecx, 2
xor edx, edx
push esi
push edx
push dword [ebp + 0xc]
push edx
push edx
push dword [eax + 4]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
add esp, 0x1c
xor ecx, ecx
dec ecx
test eax, eax
cmovs eax, ecx
lea edi, [eax + 1]
lea ebx, [eax + eax]
add ebx, 2
push ebx
call fcn.0044fa57
add esp, 4
mov esi, eax
push ebx
xor eax, eax
push eax
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ebx, [ebp + 0x18]
mov dword [ebp - 0x18], ebx
call fcn.00401160
push ebx
xor ecx, ecx
push ecx
push dword [ebp + 0xc]
push edi
push esi
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
add esp, 0x1c
mov eax, str.Error:__s___S:_d_
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push eax
call fcn.00452550
add esp, 0x10
lea ecx, [eax + 1]
mov dword [ebp - 0x1c], ecx
lea ebx, [eax + eax]
add ebx, 2
cmp eax, 0xffffffff
mov eax, 0xffffffff
cmovl ebx, eax
push ebx
call fcn.0044fa57
add esp, 4
mov edi, eax
push ebx
xor ebx, ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
mov eax, str.Error:__s___S:_d_
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push edi
call fcn.004525b0
add esp, 0x1c
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
je 0x42a6af
mov ebx, eax
lea eax, [ebp - 0x14]
mov dword [eax], edi
sub esp, 0x24
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
movaps xmm0, xmmword [0x460470]
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push edi
call fcn.0044fa60
add esp, 4
push esi
call fcn.0044fa60
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450110
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret