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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f952d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10121080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 1
xor edx, edx
mov edi, 0xf
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], dl
mov dword [ebp - 4], edx
mov esi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], eax
cmp esi, eax
je 0x1009947c
nop
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x100993f3
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x100993e1
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.1001ebe0
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
lea ecx, [edx - 3]
cmp ecx, edx
ja 0x1009940d
cmp edi, 0xf
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x1009941a
sub ecx, edx
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.10025940
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov edi, 0x811c9dc5
cmova eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
xor eax, eax
test edx, edx
je 0x10099454
mov esi, dword [ebp - 0x34]
nop dword [eax]
movzx ecx, byte [eax + esi]
inc eax
xor ecx, edi
imul edi, ecx, 0x1000193
cmp eax, edx
jb 0x10099440
mov esi, dword [ebp - 0x30]
cmp edi, dword [ebp + 8]
jne 0x10099464
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10099477
dec eax
mov dword [ebp - 0x2c], eax
add esi, 0x1c
mov dword [ebp - 0x30], esi
cmp esi, dword [ebp - 0x38]
je 0x1009947c
mov edi, dword [ebp - 0x14]
jmp 0x100993d0
mov esi, dword [esi + 0x18]
jmp 0x1009947e
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x100994b0
mov edx, dword [ebp - 0x28]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x100994a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100994cf
push ecx
push edx
call fcn.100c6572
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c60f2
mov esp, ebp
pop ebp
ret 0xc
call fcn.100d28cb
int3
Function at 0x10099bd0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 8], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x10099d2a
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.10031c00
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x10099cfd
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 0x10], edx
cmp edi, esi
jne 0x10099c83
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x10099cf3
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x10099cbd
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x10099cb5
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
jmp 0x10099cf0
cmp edi, edx
je 0x10099ccd
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x10099d06
cmp edi, edx
jne 0x10099cc1
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 8]
mov eax, ecx
cmp ecx, esi
jne 0x10099c32
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x10099cf0
push str.invalid_hash_bucket_count
call fcn.100c5091
int3
Function at 0x100ae510
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x100ae6a1
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x100ae6a1
mov eax, dword [0x10135694]
cmp dword [eax + 0x174], 0
jne 0x100ae6a1
mov eax, dword [0x10135934]
add eax, 0xffffff8f
xor eax, 0xdbe804d6
cmp dword [eax + ebx], 0
mov eax, dword [0x101358fc]
setle cl
add eax, 0xffffff9d
xor eax, 0xdbe804c8
xor edi, edi
mov byte [eax + ebx], cl
mov eax, dword [0x101358f0]
add eax, 0xffffffa0
xor eax, 0xdbe804c5
mov dword [eax + ebx + 0xc], 0
mov eax, dword [0x101358f4]
add eax, 0xffffff9f
xor eax, 0xdbe804c6
mov dword [eax + ebx + 0xc], 0
mov ecx, dword [0x101358f8]
lea eax, [ecx - 0x62]
xor eax, 0xdbe804c7
mov edx, dword [eax + ebx + 0xc]
mov dword [ebp - 4], edx
test edx, edx
je 0x100ae5fe
lea eax, [ecx - 0x62]
xor eax, 0xdbe804c7
mov eax, dword [eax + ebx]
mov esi, dword [eax + edi*4]
lea ebx, [eax + edi*4]
test esi, esi
je 0x100ae5f6
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x100ae5ea
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100ae5e7
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 4]
mov dword [ebx], 0
mov ecx, dword [0x101358f8]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, edx
jb 0x100ae5b3
lea eax, [ecx - 0x62]
xor eax, 0xdbe804c7
lea ecx, [ebx + 8]
push 0
mov dword [eax + ebx + 0xc], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
call eax
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
push 0
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [0x101356a8]
xor ebx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
je 0x100ae692
nop dword [eax]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [esi + ecx], 0
jne 0x100ae656
xor edx, edx
test ecx, ecx
je 0x100ae67c
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x100ae663
cmp edi, 0x79705c5e
je 0x100ae687
inc ebx
cmp ebx, dword [ebp - 8]
jae 0x100ae692
mov ecx, dword [ebp - 4]
jmp 0x100ae640
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + ebx*4]
jmp 0x100ae694
xor ecx, ecx
push 0
push dword [ebp + 8]
push 0
call dword [0x10135780]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100b0db0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, ecx
or eax, 0xffffffff
push esi
push edi
mov edi, 4
lea esi, [ebx + 4]
jmp dword [edi*4 + 0x100b1ff8]
Function at 0x100b5030
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010005b
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10121080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10135694]
mov edx, dword [eax + 0x174]
test edx, edx
setg byte [ebp - 0x14]
mov esi, dword [eax + 0x4cb0]
add esi, dword [eax + 0x4cac]
mov edi, dword [eax + 0x4cb4]
test edx, edx
jle 0x100b509d
cmp dword [0x10133be4], 4
jne 0x100b509d
mov ecx, dword [0x1013563c]
push esi
push edi
push dword [ebp - 0x14]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0xc]
call eax
mov eax, dword [0x1013b008]
test al, 1
jne 0x100b51aa
or eax, 1
mov dword [0x1013b008], eax
mov dword [ebp - 4], 0
xor eax, eax
movaps xmm0, xmmword [0x1010f240]
movaps xmm2, xmmword [0x1010f6e0]
movups xmmword [ebp - 0x3c], xmm0
mov word [ebp - 0x1c], 0x7376
movaps xmm0, xmmword [0x1010f680]
movups xmmword [ebp - 0x2c], xmm0
mov byte [ebp - 0x1a], 0x30
movups xmm0, xmmword [ebp + eax - 0x3c]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [ebp + eax - 0x3c], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x100b50e2
cmp eax, 0x23
jae 0x100b510b
nop
xor byte [ebp + eax - 0x3c], 0x30
inc eax
cmp eax, 0x23
jb 0x100b5100
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x54], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100b5126
sub ecx, edx
lea eax, [ebp - 0x3c]
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.1001fb00
mov byte [ebp - 4], 1
mov edx, dword [0x101355f4]
test edx, edx
je 0x100b514f
mov edx, dword [edx + 0x50]
jmp 0x100b5151
xor edx, edx
mov eax, dword [0x101355ec]
test eax, eax
je 0x100b515f
mov eax, dword [eax + 0x18]
jmp 0x100b5161
xor eax, eax
lea ecx, [ebp - 0x54]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.1004aa50
mov eax, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [0x1013b00c], eax
cmp ecx, 0xf
jbe 0x100b51aa
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100b51a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b51f9
push ecx
push edx
call fcn.100c6572
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push dword [0x1013b00c]
mov dword [ebp - 0x14], 0
call esi
mov eax, dword [0x1013b00c]
lea ecx, [ebp - 0x14]
push ecx
mov dword [eax], 0x3e
push dword [ebp - 0x14]
push 4
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c60f2
mov esp, ebp
pop ebp
ret
call fcn.100d28cb
int3
Function at 0x100c2ec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x10133864], 0
push ebx
push esi
push edi
je 0x100c30a4
movss xmm0, dword [0x101292bc]
mov eax, dword [0x10135690]
mulss xmm0, dword [0x1010ef34]
mov dword [ebp - 8], 0
cmp dword [eax + 0xc], 0
movss dword [ebp - 0xc], xmm0
jle 0x100c30a4
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, dword [eax]
add edi, ecx
mov esi, dword [edi]
test esi, esi
je 0x100c308e
mov eax, dword [esi + 8]
lea ebx, [esi + 8]
mov ecx, ebx
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x100c3086
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x260]
call eax
test al, al
je 0x100c3086
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x28]
call eax
mov eax, dword [0x101357bc]
mov edx, dword [0x1013581c]
add edx, 0xffffffd5
xor edx, 0xdbe80490
mov bh, byte [eax + esi]
mov eax, dword [0x10133864]
mov ecx, dword [edx + esi]
cmp ecx, dword [edx + eax]
je 0x100c2f6e
mov bl, 1
jmp 0x100c2f80
mov ecx, dword [0x101356f4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
setne bl
test bh, bh
jne 0x100c2fe2
test bl, bl
je 0x100c2fb5
push 0
push dword [0x10129084]
push dword [0x10129080]
call fcn.100c55b0
cmp eax, dword [0x10129084]
je 0x100c3086
mov edx, dword [0x1012911c]
mov ax, word [0x1012911e]
jmp 0x100c301f
push 1
push dword [0x10129084]
push dword [0x10129080]
call fcn.100c55b0
cmp eax, dword [0x10129084]
je 0x100c3086
mov edx, dword [0x101291b0]
mov ax, word [0x101291b2]
jmp 0x100c301f
push 2
push dword [0x10129084]
push dword [0x10129080]
call fcn.100c55b0
cmp eax, dword [0x10129084]
je 0x100c3086
test bl, bl
je 0x100c3013
mov edx, dword [0x1012911c]
mov ax, word [0x1012911e]
jmp 0x100c301f
mov edx, dword [0x10129244]
mov ax, word [0x10129246]
movss xmm1, dword [0x1010ef1c]
mov ecx, edx
movzx esi, ah
movzx ebx, ax
movzx eax, dl
shr ecx, 8
mov word [edi + 0x24], 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, cl
mulss xmm0, xmm1
movss dword [edi + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, bl
mulss xmm0, xmm1
movss dword [edi + 8], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [edi + 0xc], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
mulss xmm0, dword [ebp - 0xc]
movss dword [edi + 0x10], xmm0
mov ecx, dword [ebp - 4]
mov eax, dword [0x10135690]
mov esi, dword [ebp - 8]
add ecx, 0x38
inc esi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], esi
cmp esi, dword [eax + 0xc]
jl 0x100c2f06
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100e56f4
Capabilities:
Print debug messages

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

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

Function at 0x100e746e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10107f60
push 0x10107f58
push str.FlsAlloc
push 0x1e
call fcn.100e725b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100e74a2
push dword [ebp + 8]
mov ecx, esi
call dword [0x101031f8]
call esi
jmp 0x100e74a8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100e74ec
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10107f70
push 0x10107f68
push str.FlsGetValue
push 0x20
call fcn.100e725b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100e7523
push dword [ebp + 8]
mov ecx, esi
call dword [0x101031f8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100e7e5a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100c7160
mov eax, dword [0x10121080]
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.100e4377
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100e7e9c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100e7ff8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100f4570
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 + 0x1012f2f0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100e8c55
mov ecx, dword [esi*4 + 0x1012f2f0]
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 0x100e7ff1
cmp eax, dword [edi + ecx + 0x24]
jne 0x100e7ff1
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 0x100e7ff1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100e8c55
add esp, 0x14
test edx, edx
jl 0x100e7ff1
jg 0x100e7f67
test eax, eax
jb 0x100e7ff1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100e7ff1
jl 0x100e7f81
cmp dword [ebp - 0x1008], eax
ja 0x100e7ff1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100e7f9f
test ebx, ebx
je 0x100e7fd8
cmp ecx, edi
jae 0x100e7fd8
mov al, byte [ecx]
cmp al, 0xd
jne 0x100e7fb9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100e7fc5
cmp byte [ecx + 1], 0xa
jne 0x100e7fc5
inc ecx
jmp 0x100e7fc5
movzx eax, al
movsx eax, byte [eax + 0x10121330]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100e7f9f
cmp edx, ebx
jne 0x100e7f9f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100e7ff6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100c60f2
leave
ret
Function at 0x100e80f3
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 + 0x1012f2f0]
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 0x100e8133
cmp byte [ebx], 0xa
jne 0x100e8133
or byte [eax + edi + 0x28], 4
jmp 0x100e8138
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100e8236
mov al, byte [edx]
cmp al, 0x1a
je 0x100e8218
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100e8167
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100e818c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100e8196
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 0x100e8149
jmp 0x100e8236
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 0x100e8213
cmp dword [ebp - 0xc], 0
je 0x100e8213
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1012f2f0]
test byte [eax + edi + 0x28], 0x48
je 0x100e81ed
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100e81d8
mov byte [esi], dl
jmp 0x100e81e9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1012f2f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100e8236
cmp byte [ebp - 1], 0xa
jne 0x100e81fc
cmp esi, ebx
jne 0x100e81fc
mov byte [esi], 0xa
jmp 0x100e8235
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100e8c73
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100e8236
mov byte [esi], 0xd
jmp 0x100e8235
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1012f2f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100e8232
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100e8236
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100e823f
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 + 0x1012f2f0]
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 0x100e8282
cmp word [esi], dx
jne 0x100e8282
or byte [edi + eax + 0x28], 4
jmp 0x100e8287
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 0x100e83da
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 0x100e83ba
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100e82c9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100e82ff
cmp eax, edx
jae 0x100e830b
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 0x100e82a1
jmp 0x100e83da
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 0x100e83b6
cmp dword [ebp - 0x14], 0
je 0x100e83b6
mov eax, dword [ebx*4 + 0x1012f2f0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100e838e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100e8357
mov word [esi], cx
jmp 0x100e838a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1012f2f0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1012f2f0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1012f2f0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x100e83da
pop ebx
cmp word [ebp - 4], bx
jne 0x100e839f
cmp esi, dword [ebp + 0xc]
jne 0x100e839f
mov word [esi], bx
jmp 0x100e83d7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100e8c73
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100e83da
push 0xd
jmp 0x100e83d3
mov ecx, dword [ebx*4 + 0x1012f2f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100e83d1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100e83da
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 0x100ebfa7
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 0x100ec044
push ebx
push esi
call fcn.100ebf70
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.100e8d4d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100ebff1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100ec043
push edi
push eax
call fcn.100e3542
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100ec011
call fcn.100e34ab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100ec042
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100e8d4d
add esp, 0x20
test eax, eax
jne 0x100ec030
push edi
call fcn.100e34ab
jmp 0x100ec038
push ebx
call fcn.100e34ab
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 0x100ec047
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100ec058
pop esi
ret
push ebx
push edi
push esi
call fcn.100ebf70
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100e3542
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100ec080
push ebx
push esi
push edi
call fcn.100c7940
add esp, 0xc
push 0
call fcn.100e34ab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100ec444
Capabilities:
Set environment variable

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