joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004a2d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x1004a31c
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1004a2ff
cmp edi, 2
jb 0x1004a2ff
cmp byte [esi], cl
jne 0x1004a2ff
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10108b18]
test edi, edi
jne 0x1004a2e5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1004a34b
cmp cl, 0x23
jne 0x1004a332
cmp byte [esi], cl
jne 0x1004a332
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10108b18]
test cl, cl
jne 0x1004a323
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x1004a4e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x1004a4f2
test esi, esi
jne 0x1004a509
push 0x5e4
push 0x10101358
push str.filename__mode
call fcn.100ba3ee
add esp, 0xc
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1004a516
mov dword [ebx], 0
mov edx, esi
mov ecx, edi
call fcn.1004a360
mov esi, eax
test esi, esi
je 0x1004a5fe
push esi
call fcn.100bc68c
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1004a5f5
push 2
push 0
push esi
call fcn.100bb5ad
add esp, 0xc
test eax, eax
jne 0x1004a5f5
push esi
call fcn.100bc68c
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x1004a5f5
push 0
push dword [ebp + 8]
push esi
call fcn.100bb5ad
add esp, 0xc
test eax, eax
jne 0x1004a5f5
mov eax, dword [0x1012f36c]
test eax, eax
je 0x1004a588
inc dword [eax + 0x374]
push dword [0x1012f368]
push edi
call fcn.10049990
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x1004a5f5
push esi
push edi
push 1
push eax
call fcn.100bbb2a
add esp, 0x10
push esi
cmp eax, edi
je 0x1004a5df
call fcn.100bbe9b
mov eax, dword [0x1012f36c]
add esp, 4
test eax, eax
je 0x1004a5c7
dec dword [eax + 0x374]
push dword [0x1012f368]
push dword [ebp + 8]
call fcn.100499a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.100bbe9b
add esp, 4
test ebx, ebx
je 0x1004a5ed
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.100bbe9b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x1004c8b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0xc4]
test ecx, ecx
jg 0x1004c8de
push 0x58d
push str.D:_aAmongUsMenuAmongUsMenuincludesimguiimgui.h
push str.Size___0
call fcn.100ba3ee
mov ecx, dword [esi + 0xc4]
add esp, 0xc
mov eax, dword [esi + 0xcc]
mov edi, 4
lea esi, [ebp + 8]
mov eax, dword [eax + ecx*4 - 4]
not eax
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10108b18]
sub edi, 1
jne 0x1004c8f2
mov ecx, dword [0x1012f36c]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1a50], eax
jne 0x1004c924
mov dword [ecx + 0x1a54], eax
cmp dword [ecx + 0x1a8c], eax
jne 0x1004c933
mov byte [ecx + 0x1a90], 1
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1012b124]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0xc4]
test edx, edx
jg 0x1004c97b
push 0x58d
push str.D:_aAmongUsMenuAmongUsMenuincludesimguiimgui.h
push str.Size___0
call fcn.100ba3ee
mov edx, dword [esi + 0xc4]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edi, 0x10
movss xmm0, dword [ecx]
subss xmm0, dword [esi + 0xc]
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 0xc]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xcc]
lea esi, [ebp - 0x14]
mov edx, dword [eax + edx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10108b18]
sub edi, 1
jne 0x1004c9d5
mov eax, dword [0x1012f36c]
not edx
pop edi
pop esi
cmp dword [eax + 0x1a50], edx
jne 0x1004ca06
mov dword [eax + 0x1a54], edx
cmp dword [eax + 0x1a8c], edx
jne 0x1004ca15
mov byte [eax + 0x1a90], 1
mov ecx, dword [ebp - 4]
mov eax, edx
xor ecx, ebp
call fcn.100b06c8
mov esp, ebp
pop ebp
ret 4
Function at 0x1004ed80
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi], 0
jne 0x1004ed99
cmp byte [edi + 0x2e1d], 0
je 0x1004edb0
push 0xf67
push 0x1010246c
push str._g.Initialized___g.SettingsLoaded
call fcn.100ba3ee
add esp, 0xc
or edx, 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0x10102464
mov esi, 0x101026cd
mov al, 0x57
or ebx, 0xffffffff
nop dword [eax + eax]
cmp al, 0x23
jne 0x1004edde
cmp byte [esi], al
jne 0x1004edde
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x10108b18]
test al, al
jne 0x1004edd0
mov esi, dword [edi + 0x2e30]
not edx
mov ecx, dword [edi + 0x2e34]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 0x1005c0c0
mov dword [ebp - 0x14], 0x1005c160
mov dword [ebp - 0x10], 0x1005c1f0
mov dword [ebp - 0xc], 0x1005c2c0
mov dword [ebp - 8], 0x1005c3e0
cmp esi, ecx
jne 0x1004eecc
inc esi
test ecx, ecx
je 0x1004ee43
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1004ee48
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1004eecc
mov eax, dword [0x1012f36c]
test eax, eax
je 0x1004ee60
inc dword [eax + 0x374]
push dword [0x1012f368]
lea eax, [esi + esi*8]
shl eax, 2
push eax
call fcn.10049990
mov ebx, eax
add esp, 8
mov eax, dword [edi + 0x2e38]
test eax, eax
je 0x1004eec0
mov ecx, dword [edi + 0x2e30]
lea ecx, [ecx + ecx*8]
shl ecx, 2
push ecx
push eax
push ebx
call fcn.100b24e0
mov ecx, dword [edi + 0x2e38]
add esp, 0xc
test ecx, ecx
je 0x1004eeb1
mov eax, dword [0x1012f36c]
test eax, eax
je 0x1004eeb1
dec dword [eax + 0x374]
push dword [0x1012f368]
push ecx
call fcn.100499a0
add esp, 8
mov dword [edi + 0x2e38], ebx
mov dword [edi + 0x2e34], esi
mov eax, dword [edi + 0x2e30]
movups xmm0, xmmword [ebp - 0x24]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x2e38]
movups xmmword [eax + ecx*4], xmm0
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [eax + ecx*4 + 0x10], xmm0
mov dword [eax + ecx*4 + 0x20], 0
inc dword [edi + 0x2e30]
mov byte [edi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10050380
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x100503bd
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x100503a3
cmp byte [esi], bl
jne 0x100503a3
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x10108b18]
test bl, bl
jne 0x10050394
pop edi
pop esi
not ecx
pop ebx
jmp fcn.10050310
Function at 0x10055aa0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1012f36c]
push ebx
push esi
push edi
mov edi, dword [eax + 0x1a18]
mov eax, dword [edi + 0xc4]
add edi, 0xc4
mov dword [ebp - 4], ecx
test eax, eax
jg 0x10055ade
push 0x58d
push str.D:_aAmongUsMenuAmongUsMenuincludesimguiimgui.h
push str.Size___0
call fcn.100ba3ee
mov eax, dword [edi]
add esp, 0xc
mov ebx, dword [edi + 8]
lea edx, [ebp - 4]
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10108b18]
sub esi, 1
jne 0x10055af0
mov esi, dword [edi + 4]
not ebx
mov ecx, dword [edi]
cmp ecx, esi
jne 0x10055b39
inc ecx
test esi, esi
je 0x10055b25
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x10055b2a
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1005cec0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100bc44f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100b1a20
mov eax, dword [0x1012b124]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100c9f03
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100bc491
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100bc5ed
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100d9940
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1012ecc8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100ccc04
mov ecx, dword [esi*4 + 0x1012ecc8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x100bc5e6
cmp eax, dword [edi + ecx + 0x24]
jne 0x100bc5e6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100bc5e6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100ccc04
add esp, 0x14
test edx, edx
jl 0x100bc5e6
jg 0x100bc55c
test eax, eax
jb 0x100bc5e6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100bc5e6
jl 0x100bc576
cmp dword [ebp - 0x1008], eax
ja 0x100bc5e6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100bc594
test ebx, ebx
je 0x100bc5cd
cmp ecx, edi
jae 0x100bc5cd
mov al, byte [ecx]
cmp al, 0xd
jne 0x100bc5ae
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100bc5ba
cmp byte [ecx + 1], 0xa
jne 0x100bc5ba
inc ecx
jmp 0x100bc5ba
movzx eax, al
movsx eax, byte [eax + 0x1012b3a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100bc594
cmp edx, ebx
jne 0x100bc594
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100bc5eb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100b06c8
leave
ret

Function at 0x100ca89c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100ca81e

Function at 0x100cb937
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100cb7a8
Function at 0x100ccc80
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x1012ecc8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100cccc0
cmp byte [ebx], 0xa
jne 0x100cccc0
or byte [eax + edi + 0x28], 4
jmp 0x100cccc5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100ccdc3
mov al, byte [edx]
cmp al, 0x1a
je 0x100ccda5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100cccf4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100ccd19
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100ccd23
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100cccd6
jmp 0x100ccdc3
push 0
lea eax, [ebp - 0xc]
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 0x100ccda0
cmp dword [ebp - 0xc], 0
je 0x100ccda0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1012ecc8]
test byte [eax + edi + 0x28], 0x48
je 0x100ccd7a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100ccd65
mov byte [esi], dl
jmp 0x100ccd76
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1012ecc8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100ccdc3
cmp byte [ebp - 1], 0xa
jne 0x100ccd89
cmp esi, ebx
jne 0x100ccd89
mov byte [esi], 0xa
jmp 0x100ccdc2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100ccc22
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100ccdc3
mov byte [esi], 0xd
jmp 0x100ccdc2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1012ecc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100ccdbf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100ccdc3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100ccdcc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1012ecc8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100cce0f
cmp word [esi], dx
jne 0x100cce0f
or byte [edi + eax + 0x28], 4
jmp 0x100cce14
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x100ccf67
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x100ccf47
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100cce56
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100cce8c
cmp eax, edx
jae 0x100cce98
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100cce2e
jmp 0x100ccf67
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100ccf43
cmp dword [ebp - 0x14], 0
je 0x100ccf43
mov eax, dword [ebx*4 + 0x1012ecc8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100ccf1b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100ccee4
mov word [esi], cx
jmp 0x100ccf17
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1012ecc8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1012ecc8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1012ecc8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x100ccf67
pop ebx
cmp word [ebp - 4], bx
jne 0x100ccf2c
cmp esi, dword [ebp + 0xc]
jne 0x100ccf2c
mov word [esi], bx
jmp 0x100ccf64
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100ccc22
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100ccf67
push 0xd
jmp 0x100ccf60
mov ecx, dword [ebx*4 + 0x1012ecc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100ccf5e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100ccf67
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100cdae3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100eba10
push 0x100eba08
push str.FlsAlloc
push 0x1e
call fcn.100cd8d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100cdb17
push dword [ebp + 8]
mov ecx, esi
call dword [0x100e62c0]
call esi
jmp 0x100cdb1d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100cdb61
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100eba20
push 0x100eba18
push str.FlsGetValue
push 0x20
call fcn.100cd8d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100cdb98
push dword [ebp + 8]
mov ecx, esi
call dword [0x100e62c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100d234c
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 0x100d23e9
push ebx
push esi
call fcn.100d2315
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.100d0b5c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100d2396
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d23e8
push edi
push eax
call fcn.100c8fda
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100d23b6
call fcn.100c8fa0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d23e7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100d0b5c
add esp, 0x20
test eax, eax
jne 0x100d23d5
push edi
call fcn.100c8fa0
jmp 0x100d23dd
push ebx
call fcn.100c8fa0
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 0x100d23ec
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100d23fd
pop esi
ret
push ebx
push edi
push esi
call fcn.100d2315
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100c8fda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100d2425
push ebx
push esi
push edi
call fcn.100b24e0
add esp, 0xc
push 0
call fcn.100c8fa0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100d27e9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d243a
Function at 0x100d8c71
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]
push dword [ebp + 0xc]
push ebx
call fcn.100d8bed
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100d8de9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100d8de9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100d8d98
jg 0x100d8cca
test eax, eax
je 0x100d8d8e
push 1
push 0x1000
call fcn.100cb680
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100d8cf0
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100d8d85
push 0x8000
push ebx
call fcn.100d8b1e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100d8d1c
jg 0x100d8d17
cmp ecx, 0x1000
jb 0x100d8d1c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100cc7db
add esp, 0x10
cmp eax, 0xffffffff
je 0x100d8d61
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 0x100d8d17
jl 0x100d8d48
test ecx, ecx
jne 0x100d8d09
push dword [ebp - 0xc]
push ebx
call fcn.100d8b1e
push esi
call fcn.100c8fa0
add esp, 0xc
xor edi, edi
jmp 0x100d8dfa
cmp byte [edi + 0x24], 0
je 0x100d8d78
cmp dword [edi + 0x20], 5
jne 0x100d8d78
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100d8d83
mov edi, dword [edi + 0x18]
jmp 0x100d8d85
xor edi, edi
push esi
call fcn.100c8fa0
pop ecx
jmp 0x100d8dfa
test ecx, ecx
jg 0x100d8d5a
jl 0x100d8d98
test eax, eax
jae 0x100d8d5a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100ccc22
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100d8dbb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100d8d5a
jmp 0x100d8df2
push ebx
call fcn.100d690a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100d8d5a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100d8dfa
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100d8df7
mov edi, dword [edi + 0x18]
jmp 0x100d8dfa
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100ccc22
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret