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

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

Function at 0x4347a0
Capabilities:
Parse pe header

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

Function at 0x906058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009061a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x90607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x90606a
add dl, dl
jne 0x906089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9060dc
xor eax, eax
add dl, dl
jne 0x906096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x90617d
add dl, dl
jne 0x9060a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9060d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x906075
mov eax, 1
add dl, dl
jne 0x9060ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9060e1
sub eax, ebx
mov ebx, 1
jne 0x906128
mov ecx, 1
add dl, dl
jne 0x90610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x906119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x906105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x90613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x90614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x906136
cmp eax, 0x7d00
jae 0x90616d
cmp eax, 0x500
jb 0x906168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
cmp eax, 0x7f
ja 0x906170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x90619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x906075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10004ed0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
push edi
test byte [esi + 0x30], 2
je 0x10004fcb
mov edi, dword [esp + 0x88]
sub edi, dword [esi + 0x1c]
push 0xffffffffffffffff
push 1
push esi
mov dword [esp + 0x20], edi
call fcn.10004d20
mov eax, dword [esi + 0x14]
add esp, 0xc
test byte [eax + 8], 1
jne 0x10004fc4
cmp dword [eax + 0x14], 0
je 0x10004fc1
dec dword [eax + 0x14]
mov edi, dword [esi + 0x3c]
test edi, edi
je 0x10004fb0
cmp byte [esi + 0x31], 0
je 0x10004fb0
mov eax, dword [esi + 0x14]
mov ebp, dword [esi + 8]
sub ebp, dword [esi + 0x1c]
mov eax, dword [eax + 4]
sub eax, dword [esi + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 8]
mov dword [esp + 0x18], 4
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x74], 0
cmp eax, 0xa0
jg 0x10004f79
push 0x14
push esi
call fcn.10004e00
add esp, 8
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
add ecx, 0xa0
mov dword [eax + 4], ecx
lea eax, [esp + 0x18]
push eax
push esi
mov byte [esi + 0x31], 0
call edi
mov eax, dword [esi + 0x14]
add esp, 8
mov ecx, dword [esi + 0x1c]
add ecx, dword [esp + 0x10]
mov byte [esi + 0x31], 1
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x1c]
add eax, ebp
mov dword [esi + 8], eax
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x14], 0
jne 0x10004f22
mov edi, dword [esp + 0x14]
dec dword [eax + 0x14]
mov ebp, dword [esi + 0x1c]
add ebp, edi
jmp 0x10004fd2
mov ebp, dword [esp + 0x88]
add dword [esi + 0x14], 0xffffffe8
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0xc]
mov ebx, dword [esp + 0x84]
sub edi, 8
mov eax, dword [eax]
mov dword [esi + 0xc], eax
test ebx, ebx
je 0x10005020
nop
cmp ebp, dword [esi + 8]
jae 0x1000500e
mov ecx, ebp
mov edx, edi
add edi, 8
add ebp, 8
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
sub ebx, 1
jne 0x10004ff0
test ebx, ebx
jle 0x10005020
dec ebx
mov dword [edi], 0
add edi, 8
test ebx, ebx
jg 0x10005012
mov ecx, dword [esp + 0x78]
mov dword [esi + 8], edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10009568
add esp, 0x6c
ret
Function at 0x10006790
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov ebx, ebp
push esi
mov esi, ebp
mov edx, ebp
shr esi, 5
inc esi
push edi
cmp ebp, esi
jb 0x100067cf
mov ebp, dword [esp + 0x20]
nop dword [eax]
movzx ecx, byte [edx + ebp - 1]
mov eax, ebx
shl eax, 5
sub edx, esi
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
cmp edx, esi
jae 0x100067b0
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, ebx
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x10006855
cmp dword [edi + 0xc], ebp
jne 0x1000684f
mov edx, dword [esp + 0x20]
lea eax, [edi + 0x10]
mov esi, ebp
sub esi, 4
jb 0x10006809
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10006812
add edx, 4
add eax, 4
sub esi, 4
jae 0x100067f8
cmp esi, 0xfffffffc
je 0x10006978
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x1000684f
cmp esi, 0xfffffffd
je 0x10006978
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x1000684f
cmp esi, 0xfffffffe
je 0x10006978
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x1000684f
cmp esi, 0xffffffff
je 0x10006978
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x10006978
mov edi, dword [edi]
test edi, edi
jne 0x100067e5
mov edi, dword [esp + 0x1c]
lea eax, [ebp + 0x11]
push eax
push 0
push 0
push edi
call fcn.100094a0
mov esi, eax
push ebp
push dword [esp + 0x34]
mov dword [esp + 0x2c], esi
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], ebp
push ecx
mov dword [esi + 8], ebx
mov word [esi + 4], 4
mov byte [esi + 6], 0
call fcn.1000a270
mov byte [esi + ebp + 0x10], 0
add esp, 0x1c
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 8]
dec eax
and eax, ebx
lea ecx, [eax*4]
mov eax, dword [edx]
mov eax, dword [ecx + eax]
mov dword [esi], eax
mov eax, dword [edx]
mov dword [ecx + eax], esi
inc dword [edx + 4]
mov eax, dword [edx + 8]
cmp dword [edx + 4], eax
jle 0x1000696e
cmp eax, 0x3ffffffe
jg 0x1000696e
add eax, eax
mov dword [esp + 0x24], eax
lea esi, [eax*4]
push esi
push 0
push 0
push edi
call fcn.100094a0
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov ebx, dword [edi + 0x10]
mov ebp, eax
mov dword [esp + 0x10], ebx
test ecx, ecx
jle 0x10006904
shr esi, 2
mov edi, ebp
mov ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx + 8]
xor edi, edi
test eax, eax
jle 0x1000694c
nop dword [eax]
mov eax, dword [ebx]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x10006940
lea ebx, [ecx - 1]
nop dword [eax]
mov eax, dword [esi + 8]
mov edx, dword [esi]
and eax, ebx
lea ecx, [eax*4]
mov eax, dword [ecx + ebp]
mov dword [esi], eax
mov dword [ecx + ebp], esi
mov esi, edx
test edx, edx
jne 0x10006920
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 8]
inc edi
mov ecx, dword [esp + 0x24]
cmp edi, eax
jl 0x10006910
push 0
shl eax, 2
push eax
push dword [ebx]
mov eax, dword [esp + 0x28]
push eax
call fcn.100094a0
mov eax, dword [esp + 0x34]
add esp, 0x10
mov esi, dword [esp + 0x14]
mov dword [ebx + 8], eax
mov dword [ebx], ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100126cc
Capabilities:
Parse pe header

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

Function at 0x10015cb0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022878
push 0x10022870
push str.FlsAlloc
push 0x1f
call fcn.10015b6f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015ce4
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f120]
call esi
jmp 0x10015cea
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10015d2e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022888
push 0x10022880
push str.FlsGetValue
push 0x21
call fcn.10015b6f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015d65
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10015d6d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022890
push 0x10022888
push str.FlsSetValue
push 0x22
call fcn.10015b6f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015da7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001f120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100180ab
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 0x10018148
push ebx
push esi
call fcn.10018074
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.10018008
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100180f5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018147
push edi
push eax
call fcn.10013dfb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10018115
call fcn.10013dc1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018146
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10018008
add esp, 0x20
test eax, eax
jne 0x10018134
push edi
call fcn.10013dc1
jmp 0x1001813c
push ebx
call fcn.10013dc1
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 0x1001e0e0
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x100083ab
pop dword [ebp - 8]
mov eax, 0xb88d4f6f
sub eax, 0xa88ccbc4
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xbab577d6
sub dword [ebp - 0x18], 0x6c63328b
mov dword [ebp - 0x14], 0x16f5509f
add dword [ebp - 0x14], 0x1b3dfba6
mov dword [ebp - 0x10], 0x7d675ce2
add dword [ebp - 0x10], 0xcee4e74c
mov dword [ebp - 0xc], 0x57e85616
add dword [ebp - 0xc], 0xa817a9ea
lea eax, [ebp - 0x18]
push eax
mov eax, 0xde29d6eb
sub eax, 0xce264583
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x2506f712
add dword [ebp - 0x18], 0x4f6b7244
mov dword [ebp - 0x14], 0x31492935
sub dword [ebp - 0x14], 0xefdcc7c0
mov dword [ebp - 0x10], 0x5b35971f
add dword [ebp - 0x10], 0x839d54d
mov dword [ebp - 0xc], 0x57991fd3
sub dword [ebp - 0xc], 0x57991fd3
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x30d6b1b2
sub eax, 0x20d32152
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3cc63
push 0
call eax
mov ecx, 0x5d973566
sub ecx, 0x5d96dfcf
xor ebx, ebx
add ebx, eax
mov edx, 0x57d700a1
sub edx, 0x47d1c8a1
add edx, dword [ebp - 8]
mov edi, 0xac7ca7eb
sub dword [ebp - 4], 0x4fc95230
mov esi, dword [edx]
xor esi, edi
sub dword [ebp - 4], 0x7df23015
mov dword [ebx], esi
mov dword [ebp - 4], 0x6229a55b
add ebx, 4
add edx, 4
loop 0x100084c9
add eax, 0xc9a71655
sub eax, 0xc9a5cd26
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6ce7d7db
sub ecx, 0x5ce7d7db
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x1000ba00
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov esi, ecx
mov eax, dword [0x10025040]
xor eax, esp
mov dword [esp + 0x88], eax
cmp dword [ecx + 0x10], 0
sete byte [esp + 0x2b]
mov eax, 0x63996efe
lea edi, [esp + 0x44]
lea ebx, [esp + 0x34]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop word cs:[eax + eax]
cmp eax, 0x58462729
jle 0x1000ba80
cmp eax, 0x5846272a
je 0x1000ba97
cmp eax, 0x7c9ed459
je 0x1000bb21
cmp eax, 0x63996efe
jne 0x1000ba40
cmp byte [esp + 0x2b], 0
mov eax, 0x5846272a
mov ecx, 0x581cbd38
cmovne eax, ecx
jmp 0x1000ba40
cmp eax, 0xe0b88262
je 0x1000bb5b
cmp eax, 0x581cbd38
jne 0x1000ba40
jmp 0x1000bb6d
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
movups xmmword [eax + 0x30], xmm0
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x40], 0
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x30]
movups xmmword [eax], xmm0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1000bad5
mov eax, dword [esi]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
movaps xmm0, xmmword [0x10021970]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
mov eax, 0x7c9ed459
mov ecx, 0xe0b88262
cmove eax, ecx
jmp 0x1000ba40
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call ebp
sub esp, 4
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call ebp
sub esp, 4
mov eax, 0xe0b88262
jmp 0x1000ba40
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov eax, 0x581cbd38
jmp 0x1000ba40
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.100134da
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10014406
Capabilities:
Parse pe header

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

Function at 0x10015780
Capabilities:
Parse pe header

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

Function at 0x10015ad0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001f620
push 0x1001f618
push str.FlsAlloc
push 0x1f
call fcn.10015db3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015b04
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10015b0a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10015b4e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001f630
push 0x1001f628
push str.FlsGetValue
push 0x21
call fcn.10015db3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015b85
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10015b8d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001f638
push 0x1001f630
push str.FlsSetValue
push 0x22
call fcn.10015db3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015bc7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10018a8e
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 0x10018b2b
push ebx
push esi
call fcn.10018b2e
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.10018992
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10018ad8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018b2a
push edi
push eax
call fcn.10018d8c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10018af8
call fcn.10017080
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018b29
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10018992
add esp, 0x20
test eax, eax
jne 0x10018b17
push edi
call fcn.10017080
jmp 0x10018b1f
push ebx
call fcn.10017080
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 0x405120
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405140
xor eax, eax
add esp, 8
ret
push esi
push 0x208
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [esp + 8], 0x208
lea eax, [esp + 8]
push eax
push esi
push str.shellopencommand
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [esp + 4]
test eax, eax
je 0x405199
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop esi
add esp, 8
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x407073
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4070b2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4070b2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4070b2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4070b2
cmp dword [ecx + 0x74], 0xe
jbe 0x4070b2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40ce16
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 0x40ceb3
push ebx
push esi
call fcn.0040cddf
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.0040cd28
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40ce60
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ceb2
push edi
push eax
call fcn.0040b7db
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40ce80
call fcn.0040b936
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ceb1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040cd28
add esp, 0x20
test eax, eax
jne 0x40ce9f
push edi
call fcn.0040b936
jmp 0x40cea7
push ebx
call fcn.0040b936
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 0x40dcaf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416090
push 0x416088
push str.FlsAlloc
push 0x1e
call fcn.0040dbcd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40dce3
push dword [ebp + 8]
mov ecx, esi
call dword [0x4141c4]
call esi
jmp 0x40dce9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40dd2d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4160a0
push 0x416098
push str.FlsGetValue
push 0x20
call fcn.0040dbcd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40dd64
push dword [ebp + 8]
mov ecx, esi
call dword [0x4141c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]