joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a7c70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c4
mov eax, dword [0x1023ebb0]
xor eax, esp
mov dword [esp + 0x1c0], eax
cmp byte [0x102429f8], 0
push ebx
mov ebx, dword [esp + 0x1cc]
mov dword [esp + 0x10], ebx
jne 0x100a7ca9
call fcn.100c68a0
test eax, eax
je 0x100a7cc1
mov byte [0x102429f8], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.101b493a
add esp, 0x1c4
ret
mov eax, dword [ebx + 0x9cc]
test eax, eax
je 0x100a7ce2
push 0x400
push eax
call fcn.100c7550
add esp, 8
call fcn.100c68a0
test eax, eax
jne 0x100a7ca9
push ebp
push esi
push edi
nop word [eax + eax]
mov ebx, 2
mov dword [esp + 0x18], 4
lea eax, [esp + 0x90]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
nop dword [eax]
lea eax, [esp + 0x40]
push eax
call fcn.1009af60
push 1
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x38], xmm0
movups xmmword [esp + 0x28], xmm0
call fcn.10095fe0
lea eax, [esp + 0x58]
push eax
call fcn.1009af60
mov esi, dword [eax + 8]
lea eax, [esp + 0x6c]
push eax
call fcn.1009af60
add esp, 0x10
lea ebp, [ebx + 1]
mov ecx, eax
mov eax, esi
cdq
push 0
add eax, dword [ecx]
push ebp
adc edx, dword [ecx + 4]
push edx
push eax
call fcn.101b5b50
movups xmm1, xmmword [esp + 0x30]
mov esi, dword [esp + 0x10]
mov edi, eax
mov ebx, edx
dec esi
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 4
movd ecx, xmm0
shld ebx, edi, 8
push ecx
push eax
push 0
push esi
shl edi, 8
call fcn.101b5b50
xor edi, eax
xor ebx, edx
lea eax, [esp + 0x70]
mov dword [esp + 0x20], edi
push eax
mov dword [esp + 0x28], ebx
call fcn.1009af60
lea esi, [eax + 8]
lea eax, [esp + 0x84]
push eax
call fcn.1009af60
mov edx, dword [esp + 0x18]
add esp, 8
mov ebx, ebp
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
add ecx, dword [esi]
lea eax, [edx + 2]
imul edx, dword [esp + 0x28]
imul ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 0x10
xor ecx, edx
mov dword [esp + 0x28], ecx
movups xmm0, xmmword [esp + 0x20]
movups xmmword [eax], xmm0
add eax, 0x10
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
jne 0x100a7d10
movsd xmm0, qword [0x101c6c58]
lea eax, [esp + 0x90]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.100c66f0
add esp, 0x10
call fcn.100c68a0
test eax, eax
je 0x100a7cf0
lea eax, [esp + 0xd0]
mov byte [esp + 0xd0], 0
push 0x100
push eax
call fcn.100c7390
add esp, 8
cmp byte [esp + 0xd0], 0
pop edi
pop esi
pop ebp
je 0x100a7e72
lea eax, [esp + 0xc4]
push 0x400
push eax
call fcn.100c7550
add esp, 8
call fcn.100c68a0
test eax, eax
jne 0x100a7ca9
push str.libcurl_is_now_using_a_weak_random_seed__n
push dword [esp + 0x14]
call fcn.10092d30
add esp, 8
call fcn.100c68a0
mov ecx, dword [esp + 0x1c4]
neg eax
pop ebx
sbb eax, eax
xor ecx, esp
and eax, 0xffffffdd
add eax, 0x23
call fcn.101b493a
add esp, 0x1c4
ret
Function at 0x100ac6f0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.101b5a40
mov eax, dword [0x1023ebb0]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push eax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x100ac759
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x100ac759
lea eax, [esp]
push eax
call dword [0x1023b0e4]
add esp, 4
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.101b493a
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1000]
xor eax, eax
xor ecx, esp
call fcn.101b493a
add esp, 0x1004
ret
Function at 0x100d0a70
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.101b5a40
push ebx
push esi
mov esi, dword [esp + 0x38]
xor ebx, ebx
mov eax, esi
sub eax, ebx
je 0x100d0ab8
sub eax, 2
je 0x100d0ab8
sub eax, 0x15
je 0x100d0ab8
push 0x293
push str.crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.100c9c80
add esp, 0x14
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
call fcn.100d0890
cmp eax, 1
jne 0x100d0ab0
mov eax, dword [esp + 0x3c]
xor ecx, ecx
push ebp
push edi
xorps xmm0, xmm0
mov dword [esp + 0x10], ecx
xor edi, edi
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
test esi, esi
jne 0x100d0af9
or ecx, 0x400
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x3c], 1
jne 0x100d0b07
or ecx, 1
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x48]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x100d0b5f
cmp esi, 8
je 0x100d0ba6
mov ecx, dword [esp + 0x10]
test ecx, 0x400
je 0x100d0b6e
push ebp
lea eax, [esp + 0x14]
and ecx, 0xfffffbff
push eax
push dword [esp + 0x40]
or ecx, 4
mov edi, esi
push dword [esp + 0x40]
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x100d0b25
mov ebx, 1
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push 0x2d4
push str.crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.100c9c80
test edi, edi
cmovne esi, edi
push esi
call fcn.100d0fb0
push eax
push 1
call fcn.100c92c0
add esp, 0x20
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push 0x2c5
push str.crypto_bio_b_addr.c
push 0x41
push 0x8f
push 0x20
call fcn.100c9c80
add esp, 0x14
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
Function at 0x1011fb80
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.101b5a40
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0x10
lea eax, [edx + 0xf]
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x1011fbc4
cmp ecx, edx
jb 0x1011fbc4
push edi
mov ecx, esi
sub edx, esi
mov edi, 0x10
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x1011fbb3
pop edi
jmp 0x1011fbd1
movups xmm1, xmmword [esi]
movups xmm0, xmmword [edx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
push 0x10
push esi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push esi
push dword [eax + 4]
call fcn.100f6700
add esp, 0x14
pop esi
test eax, eax
je 0x1011fbfb
cmp dword [esp], 0x10
jne 0x1011fbfb
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x1011fd40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x1011fdb3
mov edx, dword [esp + 0x10]
test edx, edx
je 0x1011fdb3
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov eax, dword [ebx + 0xc]
cmp edx, eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x1011fd83
push esi
mov esi, ebp
lea ecx, [ebx + 0x10]
nop dword [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x1011fd70
mov eax, dword [ebx + 0xc]
pop esi
cmp edx, eax
jbe 0x1011fdb1
sub edx, eax
cmp edx, 0x10
jbe 0x1011fd95
mov edx, 0x10
jmp 0x1011fd99
test edx, edx
je 0x1011fdb1
xor ecx, ecx
nop dword [eax + eax]
mov eax, dword [ebx + 0xc]
add eax, ecx
mov al, byte [eax + ebp]
xor byte [ebx + ecx + 0x30], al
inc ecx
cmp ecx, edx
jb 0x1011fda0
pop edi
pop ebx
pop ebp
ret
Function at 0x10125b10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.101b5a40
mov eax, dword [0x1023ebb0]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xb0]
push ebx
mov ebx, dword [esp + 0xac]
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0x10], 0
test edi, edi
je 0x10125b7d
cmp edi, eax
je 0x10125b71
test ebp, ebp
je 0x10125bf0
test ebx, ebx
js 0x10125bf0
mov dword [esp + 0x10], 1
mov dword [esi], edi
jmp 0x10125b83
test eax, eax
je 0x10125bf0
mov edi, eax
push edi
call fcn.1009b110
add esp, 4
test al, 2
jne 0x10125bf0
test ebp, ebp
je 0x10125cfb
push edi
mov dword [esp + 0x14], 1
call fcn.100ba690
add esp, 4
cmp eax, 0x90
jg 0x10125bf0
cmp eax, ebx
jge 0x10125c0b
push dword [esp + 0x14]
push edi
push dword [esi + 4]
call fcn.100c0f90
add esp, 0xc
test eax, eax
je 0x10125bf0
push ebx
push ebp
push dword [esi + 4]
call fcn.100c1140
add esp, 0xc
test eax, eax
je 0x10125bf0
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.100c0ef0
add esp, 0xc
test eax, eax
jne 0x10125c27
xor eax, eax
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101b493a
add esp, 0x9c
ret
cmp ebx, 0x90
ja 0x10125bf0
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x90
je 0x10125c4a
mov eax, 0x90
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x10125c50
mov ebp, dword [esp + 0x14]
push ebp
push edi
push dword [esi + 8]
call fcn.100c0f90
add esp, 0xc
test eax, eax
je 0x10125d08
push edi
call fcn.100ba690
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.100c1140
add esp, 0x10
test eax, eax
je 0x10125d08
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x10125ca0
push ebp
push edi
push dword [esi + 0xc]
call fcn.100c0f90
add esp, 0xc
test eax, eax
je 0x10125d08
push edi
call fcn.100ba690
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.100c1140
add esp, 0x10
test eax, eax
je 0x10125d08
push dword [esi + 8]
push dword [esi + 4]
call fcn.100c12d0
xor ebp, ebp
add esp, 8
test eax, eax
mov ecx, 1
cmovne ebp, ecx
jmp 0x10125d0a
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x10125cdf
jmp 0x10125c4e
xor ebp, ebp
test ebx, ebx
je 0x10125d20
lea eax, [esp + 0x18]
push 0x90
push eax
call fcn.10001320
add esp, 8
mov eax, ebp
jmp 0x10125bf2
Function at 0x101622c0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x101622d4
mov dword [esp + 0x18], fcn.10160aa0
jmp fcn.1015a000
mov dword [esp + 0x18], fcn.1015fd40
jmp fcn.10159d00
Function at 0x101a6dc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.101b5a40
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
inc ebp
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x30], 1
je 0x101a6e4a
mov edx, dword [esp + 0x24]
lea eax, [edx + ebp]
cmp eax, ecx
ja 0x101a6e4e
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push ebx
push dword [esi + 0x3cc]
mov al, byte [eax + ecx - 1]
movzx ebx, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebx
call fcn.100bea50
push eax
call fcn.100ba6a0
mov esi, dword [edi + 8]
add esp, 8
mov dword [esp + 0x18], esi
and eax, 0x200000
je 0x101a6e57
sub esi, ebx
mov eax, 1
dec esi
pop ebx
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
cmp ebp, ecx
jbe 0x101a6e02
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea ecx, [ebx + ebp]
mov eax, esi
mov ebx, esi
xor eax, ecx
sub ebx, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor ebp, ebp
mov dword [esp + 0x10], eax
test eax, eax
je 0x101a6ed3
mov edx, dword [esp + 0x20]
dec esi
mov edi, dword [edi + 0x14]
shr edx, 0x1f
add edi, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov eax, esi
lea edi, [edi - 1]
sub eax, ebp
mov ecx, ebp
shr ecx, 0x1f
inc ebp
shr eax, 0x1f
xor al, cl
xor cl, dl
or al, cl
movzx ecx, byte [esp + 0x2c]
dec al
movzx edx, al
movzx eax, byte [edi + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x14]
cmp ebp, dword [esp + 0x10]
jb 0x101a6e95
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
not ebx
movzx ecx, bl
inc eax
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov dword [edi + 8], esi
mov dword [esp + 0x2c], ecx
not ecx
pop ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
and ecx, 1
pop edi
pop esi
or eax, ecx
pop ebp
add esp, 0xc
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x741a7c9a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, str._dd
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x646858c7
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x1000d3b0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x1000d474
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x1002d34c], eax
call fcn.1000e580
test eax, eax
jne 0x1000d3d4
ret 0xc
mov ecx, dword [0x1002d34c]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
mov dword [0x1002d358], edx
mov dword [0x1002d354], eax
shl eax, 8
add eax, edx
shr ecx, 0x10
mov dword [0x1002d350], eax
mov dword [0x1002d34c], ecx
call fcn.1000d720
test eax, eax
jne 0x1000d416
call fcn.1000e5c0
xor eax, eax
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100471d0], eax
call fcn.1000e420
mov ecx, dword [0x100471d0]
mov dword [0x1002d338], eax
test ecx, ecx
je 0x1000d465
test eax, eax
je 0x1000d465
call fcn.1004fc8a
call fcn.1000e410
call fcn.1004fc8a
call fcn.1000db70
call fcn.1000d5c0
mov eax, dword [0x1002d334]
inc eax
mov dword [0x1002d334], eax
mov eax, 1
ret 0xc
call fcn.1000d780
call fcn.1000e5c0
xor eax, eax
ret 0xc
test eax, eax
jne 0x1000d4b4
mov eax, dword [0x1002d334]
test eax, eax
jle 0x1000d4af
mov ecx, eax
mov eax, dword [0x1002d384]
dec ecx
test eax, eax
mov dword [0x1002d334], ecx
jne 0x1000d498
call fcn.1000d610
call fcn.1000db10
call fcn.1000d780
call fcn.1000e5c0
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x1000d4c3
push 0
call fcn.1000d850
add esp, 4
mov eax, 1
ret 0xc

Function at 0x1000d620
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.1000d6e0
mov eax, dword [0x1002d388]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x1000d644
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x1002d384], 1
mov byte [0x1002d380], bl
jne 0x1000d69e
mov ecx, dword [0x100471c8]
test ecx, ecx
je 0x1000d68c
mov esi, dword [0x100471c4]
sub esi, 4
cmp esi, ecx
jb 0x1000d68c
mov eax, dword [esi]
test eax, eax
je 0x1000d685
call eax
mov ecx, dword [0x100471c8]
sub esi, 4
cmp esi, ecx
jae 0x1000d677
push 0x1001501c
push 0x10015014
call fcn.1000d700
add esp, 8
push 0x10015024
push 0x10015020
call fcn.1000d700
add esp, 8
test ebx, ebx
je 0x1000d6bd
call fcn.1000d6f0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x1002d388], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000d720
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.1000e820
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1001695c], eax
je 0x1000d778
push 0x74
push 1
call fcn.1000ea50
mov esi, eax
add esp, 8
test esi, esi
je 0x1000d778
mov eax, dword [0x1001695c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1000d778
push esi
call fcn.1000d7b0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1000d7d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1001695c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1000d83e
push 0x74
push 1
call fcn.1000ea50
mov esi, eax
add esp, 8
test esi, esi
je 0x1000d834
mov ecx, dword [0x1001695c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1000d834
push esi
call fcn.1000d7b0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.1000d580
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x1000d850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1001695c]
cmp eax, 0xffffffff
je 0x1000d8ff
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x1000d874
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1000d8f0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x1000d884
push eax
call fcn.1000eb00
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1000d894
push eax
call fcn.1000eb00
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1000d8a4
push eax
call fcn.1000eb00
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1000d8b4
push eax
call fcn.1000eb00
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1000d8c4
push eax
call fcn.1000eb00
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1000d8d4
push eax
call fcn.1000eb00
add esp, 4
mov eax, dword [esi + 0x50]
cmp eax, 0x10016bd8
je 0x1000d8e7
push eax
call fcn.1000eb00
add esp, 4
push esi
call fcn.1000eb00
add esp, 4
mov eax, dword [0x1001695c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x1000e420
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x1002d6bc]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x1000e462
call edi
mov esi, eax
test esi, esi
je 0x1000e44c
mov eax, 1
jmp 0x1000e45d
call ebp
mov ebx, eax
test ebx, ebx
je 0x1000e56f
mov eax, 2
mov dword [0x1002d6bc], eax
cmp eax, 1
jne 0x1000e502
test esi, esi
jne 0x1000e47b
call edi
mov esi, eax
test esi, esi
je 0x1000e56f
cmp word [esi], 0
mov eax, esi
je 0x1000e495
add eax, 2
cmp word [eax], 0
jne 0x1000e483
add eax, 2
cmp word [eax], 0
jne 0x1000e483
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x1000e4f4
push edi
call fcn.1000eb70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000e4f4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000e4e6
push ebx
call fcn.1000eb00
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x1000e56f
test ebx, ebx
jne 0x1000e513
call ebp
mov ebx, eax
test ebx, ebx
je 0x1000e56f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x1000e52b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1000e51b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1000e51b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.1000eb70
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1000e54d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x1004a1c4
Capabilities:
Encode data using xor

Disassembly:
call 0x1004a13d
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1004a16d
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1004a189
xor edx, 0
jmp 0x1004a194
xor edx, edx
jmp 0x1004a1ab
jmp 0x1004a1b7
xor eax, eax
push 0x8427d7c0
call 0x1004a1c4
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1004a200
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1004a1d9
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1004a217
add eax, 0
jno 0x1004a21c
add esi, 0
ret 0x10

Function at 0x1004af85
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1004afa7
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1004b149
cmp edi, dword [ebp + 0x10]
jb 0x1004b149
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1004aa71
inc edi
jmp 0x1004b030
jmp 0x1004b03d
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1004aa71
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1004aa71
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1004b091
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1004b075
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1004b0bf
add dword [eax], 0x39
jle 0x1004b09b
sub al, 0xf5
mov ch, al
call fcn.1004b0d4
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10