joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007db76
Capabilities:
Parse pe header

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

Function at 0x10082403
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a6fd0
push 0x100a6fc8
push str.FlsAlloc
push 0x1f
call fcn.100822c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10082437
push dword [ebp + 8]
mov ecx, esi
call dword [0x10095630]
call esi
jmp 0x1008243d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10082481
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a6fe0
push 0x100a6fd8
push str.FlsGetValue
push 0x21
call fcn.100822c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100824b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x10095630]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100824c0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a6fe8
push 0x100a6fe0
push str.FlsSetValue
push 0x22
call fcn.100822c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100824fa
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10095630]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10083df6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10102f48]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10083e36
cmp byte [ebx], 0xa
jne 0x10083e36
or byte [edi + eax + 0x28], 4
jmp 0x10083e3b
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10083f3a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10083f1d
inc eax
cmp dl, 0xd
je 0x10083e67
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10083e8d
cmp eax, ecx
jae 0x10083e9b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10083e4f
jmp 0x10083f3a
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10083f18
cmp dword [ebp - 0x10], 0
je 0x10083f18
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10102f48]
test byte [eax + edi + 0x28], 0x48
je 0x10083ef2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10083edd
mov byte [esi], dl
jmp 0x10083eee
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10102f48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10083f3a
cmp byte [ebp - 1], 0xa
jne 0x10083f01
cmp esi, ebx
jne 0x10083f01
mov byte [esi], 0xa
jmp 0x10083f39
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100868af
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10083f3a
mov byte [esi], 0xd
jmp 0x10083f39
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10102f48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10083f37
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10083f3a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10083f43
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10102f48]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10083f89
cmp word [ebx], dx
jne 0x10083f89
or byte [eax + edi + 0x28], 4
jmp 0x10083f8e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100840f1
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100840d1
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10083fcf
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10084005
cmp eax, edx
jae 0x10084013
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10083faa
jmp 0x100840f1
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100840cc
cmp dword [ebp - 0x18], 0
je 0x100840cc
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10102f48]
test byte [eax + edi + 0x28], 0x48
je 0x100840a2
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10084066
mov word [esi], cx
jmp 0x1008409d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10102f48]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10102f48]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10102f48]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100840f1
pop eax
cmp word [ebp - 4], ax
jne 0x100840b2
cmp esi, ebx
jne 0x100840b2
mov word [esi], ax
jmp 0x100840ee
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100868af
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100840f1
push 0xd
pop eax
jmp 0x100840ad
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10102f48]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100840eb
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100840f1
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10087dd8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10087e75
push ebx
push esi
call fcn.10087da1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10087d35
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10087e22
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10087e74
push edi
push eax
call fcn.10081478
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10087e42
call fcn.1007f9ee
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10087e73
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10087d35
add esp, 0x20
test eax, eax
jne 0x10087e61
push edi
call fcn.1007f9ee
jmp 0x10087e69
push ebx
call fcn.1007f9ee
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10087e78
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10087e89
pop esi
ret
push ebx
push edi
push esi
call fcn.10087da1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10081478
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10087eb1
push ebx
push esi
push edi
call fcn.1006a7a0
add esp, 0xc
push 0
call fcn.1007f9ee
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10088281
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10087ec6
Function at 0x1008d3d1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1008d34d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1008d540
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1008d540
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1008d4f5
jg 0x1008d42d
test eax, eax
je 0x1008d4eb
push 1
push 0x1000
call fcn.1007f991
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1008d450
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1008d4e2
push 0x8000
push ebx
call fcn.1008d27e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1008d479
jg 0x1008d474
cmp ecx, 0x1000
jb 0x1008d479
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100851fa
add esp, 0x10
cmp eax, 0xffffffff
je 0x1008d4be
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1008d474
jl 0x1008d4a5
test ecx, ecx
jne 0x1008d466
push dword [ebp - 0xc]
push ebx
call fcn.1008d27e
push esi
call fcn.1007f9ee
add esp, 0xc
xor ebx, ebx
jmp 0x1008d54e
cmp byte [edi + 0x24], 0
je 0x1008d4d5
cmp dword [edi + 0x20], 5
jne 0x1008d4d5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1008d4e0
mov ebx, dword [edi + 0x18]
jmp 0x1008d4e2
xor ebx, ebx
push esi
call fcn.1007f9ee
pop ecx
jmp 0x1008d54e
test ecx, ecx
jg 0x1008d4b7
jl 0x1008d4f5
test eax, eax
jae 0x1008d4b7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100868af
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1008d515
cmp byte [edi + 0x1c], 0
je 0x1008d4b7
jmp 0x1008d546
push ebx
call fcn.10086540
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1008d4b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1008d54e
cmp byte [edi + 0x1c], 0
je 0x1008d54b
mov ebx, dword [edi + 0x18]
jmp 0x1008d54e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100868af
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1008df60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1008df8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008df8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4073ab
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x40b8b0
call fcn.004074c0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x40f474
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x40714a
cmp eax, esi
jne 0x40713d
xor esi, esi
inc esi
mov ebx, esi
jmp 0x40714d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407124
xor esi, esi
inc esi
mov eax, dword [0x40f470]
cmp eax, esi
jne 0x407160
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40718f
mov eax, dword [0x40f470]
test eax, eax
jne 0x407189
mov dword [0x40f470], esi
push 0x40a334
push 0x40a32c
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40718f
jmp 0x4072b7
mov dword [0x40f06c], esi
mov eax, dword [0x40f470]
cmp eax, esi
jne 0x4071b3
push 0x40a328
push 0x40a30c
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x40f470], 2
test ebx, ebx
jne 0x4071bf
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x40f478], 0
je 0x4071e3
push 0x40f478
call fcn.00407622
pop ecx
test eax, eax
je 0x4071e3
push 0
push 2
push 0
call dword [0x40f478]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40723f
test al, al
je 0x4071fd
cmp dword [ebp - 0x1c], 0
jne 0x40723f
mov al, byte [esi]
test al, al
je 0x40720d
cmp al, 0x20
ja 0x40720d
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4071fd
test byte [ebp - 0x3c], 1
je 0x407219
movzx eax, word [ebp - 0x38]
jmp 0x40721c
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x40f068], eax
cmp dword [0x40f05c], 0
jne 0x407293
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x40724e
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x407261
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4071ea
cmp dword [0x40f06c], 0
jne 0x4072a2
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40f068]
jmp 0x4072c3
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00407505
ret
call 0x57d000
jmp 0x4070ea
Function at 0x1000bad0
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000e86a
push ebx
push esi
call fcn.1000e796
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000e72a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000e817
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000e869
push edi
push eax
call fcn.1000c80d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000e837
call fcn.1000d272
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000e868
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000e72a
add esp, 0x20
test eax, eax
jne 0x1000e856
push edi
call fcn.1000d272
jmp 0x1000e85e
push ebx
call fcn.1000d272
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000ead7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100166c8
push 0x100166c0
push str.FlsAlloc
push 0x1f
call fcn.1000e9f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000eb0b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10015154]
call esi
jmp 0x1000eb11
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000eb55
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100166d8
push 0x100166d0
push str.FlsGetValue
push 0x21
call fcn.1000e9f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000eb8c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10015154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000eb94
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100166e0
push 0x100166d8
push str.FlsSetValue
push 0x22
call fcn.1000e9f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ebce
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10015154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10014170
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001419d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001419d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x401443
pop dword [ebp - 0x4c]
mov eax, 0x387f95b5
add eax, 0xc7c07e8e
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x4512ec14
sub dword [ebp - 0x5c], 0xf6c0a6c9
mov dword [ebp - 0x58], 0xab5a9caf
add dword [ebp - 0x58], 0x86d8af96
mov dword [ebp - 0x54], 0x509da7c5
add dword [ebp - 0x54], 0xfbae9c69
mov dword [ebp - 0x50], 0x6a095ca8
sub dword [ebp - 0x50], 0x6a095ca8
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x20ec5e23
sub dword [ebp - 0x5c], 0xac79f4cd
mov dword [ebp - 0x58], 0x13942e4
sub dword [ebp - 0x58], 0xbfcce16f
mov dword [ebp - 0x54], 0x7b69ed6f
sub dword [ebp - 0x54], 0x17fa8103
mov dword [ebp - 0x50], 0x755727b2
sub dword [ebp - 0x50], 0x755727b2
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x64c972a
add eax, 0xf9f3e9d6
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3623a
push 0
call eax
mov ecx, 0x814615f3
add ecx, 0x7eba2972
mov edx, eax
mov esi, 0x46e400
add esi, dword [ebp - 0x4c]
mov ebx, 0xdf41083
add ebx, 0xa4448d2b
xor dword [ebp - 8], 0xe5eb6237
mov edi, dword [esi]
mov dword [ebp - 0x30], 0x4fe4ca76
add edi, ebx
mov dword [ebp - 0x24], 0x6a9ed174
mov dword [edx], edi
add dword [ebp - 0x1c], eax
add edx, 4
add esi, 4
loop 0x40155a
add eax, 0xb3c71966
sub eax, 0xb3c628ff
mov ebx, eax
add eax, 0x92adc80f
add eax, 0x6d5237f6
mov ecx, 0x810b880f
sub ecx, 0x80cb880f
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push 0
push 0
push str.g8ef7qsxzmq
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
test eax, eax
je 0x40101b
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push esi
push 0
push 0x9600000
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov esi, eax
test esi, esi
je 0x40105e
push 0xe100000
push 8
push esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40105e
push 0xe100000
push 0x43
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
xor eax, eax
pop esi
ret
mov eax, 0x7f
pop esi
ret

Function at 0x40186a
Capabilities:
Parse pe header

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