joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10095ab0
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 0x10095c0a
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.100300d0
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 0x10095bdd
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 0x10095b63
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x10095bd3
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x10095b9d
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x10095b95
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 0x10095bd0
cmp edi, edx
je 0x10095bad
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x10095be6
cmp edi, edx
jne 0x10095ba1
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 0x10095b12
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 0x10095bd0
push str.invalid_hash_bucket_count
call fcn.100c19ce
int3
Function at 0x100aa860
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 0x100aa9f1
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x100aa9f1
mov eax, dword [0x101285dc]
cmp dword [eax + 0x174], 0
jne 0x100aa9f1
mov eax, dword [0x10128888]
add eax, 0xffffff8e
xor eax, 0x3aba15e1
cmp dword [eax + ebx], 0
mov eax, dword [0x10128850]
setle cl
add eax, 0xffffff9c
xor eax, 0x3aba15d3
xor edi, edi
mov byte [eax + ebx], cl
mov eax, dword [0x10128844]
add eax, 0xffffff9f
xor eax, 0x3aba15d0
mov dword [eax + ebx + 0xc], 0
mov eax, dword [0x10128848]
add eax, 0xffffff9e
xor eax, 0x3aba15d1
mov dword [eax + ebx + 0xc], 0
mov ecx, dword [0x1012884c]
lea eax, [ecx - 0x63]
xor eax, 0x3aba15d2
mov edx, dword [eax + ebx + 0xc]
mov dword [ebp - 4], edx
test edx, edx
je 0x100aa94e
lea eax, [ecx - 0x63]
xor eax, 0x3aba15d2
mov eax, dword [eax + ebx]
mov esi, dword [eax + edi*4]
lea ebx, [eax + edi*4]
test esi, esi
je 0x100aa946
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x100aa93a
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100aa937
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 4]
mov dword [ebx], 0
mov ecx, dword [0x1012884c]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, edx
jb 0x100aa903
lea eax, [ecx - 0x63]
xor eax, 0x3aba15d2
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 [0x101285f0]
xor ebx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
je 0x100aa9e2
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 0x100aa9a6
xor edx, edx
test ecx, ecx
je 0x100aa9cc
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x100aa9b3
cmp edi, 0x79705c5e
je 0x100aa9d7
inc ebx
cmp ebx, dword [ebp - 8]
jae 0x100aa9e2
mov ecx, dword [ebp - 4]
jmp 0x100aa990
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + ebx*4]
jmp 0x100aa9e4
xor ecx, ecx
push 0
push dword [ebp + 8]
push 0
call dword [0x101286cc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100ad100
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 + 0x100ae348]
Function at 0x100b1390
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f5aab
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10114080]
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 [0x101285dc]
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 0x100b13fd
cmp dword [0x10126b2c], 4
jne 0x100b13fd
mov ecx, dword [0x10128584]
push esi
push edi
push dword [ebp - 0x14]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0xc]
call eax
mov eax, dword [0x1012deb0]
test al, 1
jne 0x100b150a
or eax, 1
mov dword [0x1012deb0], eax
mov dword [ebp - 4], 0
xor eax, eax
movaps xmm0, xmmword [0x10102fa0]
movaps xmm2, xmmword [0x10103440]
movups xmmword [ebp - 0x3c], xmm0
mov word [ebp - 0x1c], 0x7376
movaps xmm0, xmmword [0x101033e0]
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 0x100b1442
cmp eax, 0x23
jae 0x100b146b
nop
xor byte [ebp + eax - 0x3c], 0x30
inc eax
cmp eax, 0x23
jb 0x100b1460
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 0x100b1486
sub ecx, edx
lea eax, [ebp - 0x3c]
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.1001fa20
mov byte [ebp - 4], 1
mov edx, dword [0x1012853c]
test edx, edx
je 0x100b14af
mov edx, dword [edx + 0x50]
jmp 0x100b14b1
xor edx, edx
mov eax, dword [0x10128534]
test eax, eax
je 0x100b14bf
mov eax, dword [eax + 0x18]
jmp 0x100b14c1
xor eax, eax
lea ecx, [ebp - 0x54]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.10045fd0
mov eax, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [0x1012deb4], eax
cmp ecx, 0xf
jbe 0x100b150a
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100b1500
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b1559
push ecx
push edx
call fcn.100c2eb2
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push dword [0x1012deb4]
mov dword [ebp - 0x14], 0
call esi
mov eax, dword [0x1012deb4]
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.100c2a32
mov esp, ebp
pop ebp
ret
call fcn.100c88db
int3
Function at 0x100bf800
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x101267ac], 0
push ebx
push esi
push edi
je 0x100bf9e4
movss xmm0, dword [0x1011c2c4]
mov eax, dword [0x101285d8]
mulss xmm0, dword [0x10102c94]
mov dword [ebp - 8], 0
cmp dword [eax + 0xc], 0
movss dword [ebp - 0xc], xmm0
jle 0x100bf9e4
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, dword [eax]
add edi, ecx
mov esi, dword [edi]
test esi, esi
je 0x100bf9ce
mov eax, dword [esi + 8]
lea ebx, [esi + 8]
mov ecx, ebx
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x100bf9c6
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x260]
call eax
test al, al
je 0x100bf9c6
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x28]
call eax
mov eax, dword [0x10128708]
mov edx, dword [0x1012876c]
add edx, 0xffffffd5
xor edx, 0x3aba159a
mov bh, byte [eax + esi]
mov eax, dword [0x101267ac]
mov ecx, dword [edx + esi]
cmp ecx, dword [edx + eax]
je 0x100bf8ae
mov bl, 1
jmp 0x100bf8c0
mov ecx, dword [0x10128640]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
setne bl
test bh, bh
jne 0x100bf922
test bl, bl
je 0x100bf8f5
push 0
push dword [0x1011c08c]
push dword [0x1011c088]
call fcn.100c1ef0
cmp eax, dword [0x1011c08c]
je 0x100bf9c6
mov edx, dword [0x1011c124]
mov ax, word [0x1011c126]
jmp 0x100bf95f
push 1
push dword [0x1011c08c]
push dword [0x1011c088]
call fcn.100c1ef0
cmp eax, dword [0x1011c08c]
je 0x100bf9c6
mov edx, dword [0x1011c1b8]
mov ax, word [0x1011c1ba]
jmp 0x100bf95f
push 2
push dword [0x1011c08c]
push dword [0x1011c088]
call fcn.100c1ef0
cmp eax, dword [0x1011c08c]
je 0x100bf9c6
test bl, bl
je 0x100bf953
mov edx, dword [0x1011c124]
mov ax, word [0x1011c126]
jmp 0x100bf95f
mov edx, dword [0x1011c24c]
mov ax, word [0x1011c24e]
movss xmm1, dword [0x10102c7c]
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 [0x101285d8]
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 0x100bf846
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100db704
Capabilities:
Print debug messages

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

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

Function at 0x100dd47e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100fc928
push 0x100fc920
push str.FlsAlloc
push 0x1e
call fcn.100dd26b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100dd4b2
push dword [ebp + 8]
mov ecx, esi
call dword [0x100f8194]
call esi
jmp 0x100dd4b8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100dd4fc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100fc938
push 0x100fc930
push str.FlsGetValue
push 0x20
call fcn.100dd26b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100dd533
push dword [ebp + 8]
mov ecx, esi
call dword [0x100f8194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100dde6a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100c3aa0
mov eax, dword [0x10114080]
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.100da387
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100ddeac
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100de008
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100ea580
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 + 0x10122138]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100dec65
mov ecx, dword [esi*4 + 0x10122138]
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 0x100de001
cmp eax, dword [edi + ecx + 0x24]
jne 0x100de001
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 0x100de001
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100dec65
add esp, 0x14
test edx, edx
jl 0x100de001
jg 0x100ddf77
test eax, eax
jb 0x100de001
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100de001
jl 0x100ddf91
cmp dword [ebp - 0x1008], eax
ja 0x100de001
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100ddfaf
test ebx, ebx
je 0x100ddfe8
cmp ecx, edi
jae 0x100ddfe8
mov al, byte [ecx]
cmp al, 0xd
jne 0x100ddfc9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100ddfd5
cmp byte [ecx + 1], 0xa
jne 0x100ddfd5
inc ecx
jmp 0x100ddfd5
movzx eax, al
movsx eax, byte [eax + 0x10114320]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100ddfaf
cmp edx, ebx
jne 0x100ddfaf
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100de006
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100c2a32
leave
ret
Function at 0x100de103
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 + 0x10122138]
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 0x100de143
cmp byte [ebx], 0xa
jne 0x100de143
or byte [eax + edi + 0x28], 4
jmp 0x100de148
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100de246
mov al, byte [edx]
cmp al, 0x1a
je 0x100de228
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100de177
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100de19c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100de1a6
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 0x100de159
jmp 0x100de246
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 0x100de223
cmp dword [ebp - 0xc], 0
je 0x100de223
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10122138]
test byte [eax + edi + 0x28], 0x48
je 0x100de1fd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100de1e8
mov byte [esi], dl
jmp 0x100de1f9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10122138]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100de246
cmp byte [ebp - 1], 0xa
jne 0x100de20c
cmp esi, ebx
jne 0x100de20c
mov byte [esi], 0xa
jmp 0x100de245
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100dec83
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100de246
mov byte [esi], 0xd
jmp 0x100de245
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10122138]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100de242
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100de246
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100de24f
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 + 0x10122138]
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 0x100de292
cmp word [esi], dx
jne 0x100de292
or byte [edi + eax + 0x28], 4
jmp 0x100de297
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 0x100de3ea
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 0x100de3ca
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100de2d9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100de30f
cmp eax, edx
jae 0x100de31b
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 0x100de2b1
jmp 0x100de3ea
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 0x100de3c6
cmp dword [ebp - 0x14], 0
je 0x100de3c6
mov eax, dword [ebx*4 + 0x10122138]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100de39e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100de367
mov word [esi], cx
jmp 0x100de39a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10122138]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10122138]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10122138]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x100de3ea
pop ebx
cmp word [ebp - 4], bx
jne 0x100de3af
cmp esi, dword [ebp + 0xc]
jne 0x100de3af
mov word [esi], bx
jmp 0x100de3e7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100dec83
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100de3ea
push 0xd
jmp 0x100de3e3
mov ecx, dword [ebx*4 + 0x10122138]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100de3e1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100de3ea
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 0x100e1fb7
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 0x100e2054
push ebx
push esi
call fcn.100e1f80
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.100ded5d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100e2001
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100e2053
push edi
push eax
call fcn.100d9552
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100e2021
call fcn.100d94bb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100e2052
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100ded5d
add esp, 0x20
test eax, eax
jne 0x100e2040
push edi
call fcn.100d94bb
jmp 0x100e2048
push ebx
call fcn.100d94bb
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 0x100e2057
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100e2068
pop esi
ret
push ebx
push edi
push esi
call fcn.100e1f80
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100d9552
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100e2090
push ebx
push esi
push edi
call fcn.100c41b0
add esp, 0xc
push 0
call fcn.100d94bb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100e2454
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100e20a5
Function at 0x100e8d11
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.100e8c8d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100e8e89
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100e8e89
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100e8e38
jg 0x100e8d6a
test eax, eax
je 0x100e8e2e
push 1
push 0x1000
call fcn.100d94f5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100e8d90
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100e8e25
push 0x8000
push ebx
call fcn.100e8bbe
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 0x100e8dbc
jg 0x100e8db7
cmp ecx, 0x1000
jb 0x100e8dbc
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100dc852
add esp, 0x10
cmp eax, 0xffffffff
je 0x100e8e01
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 0x100e8db7
jl 0x100e8de8
test ecx, ecx
jne 0x100e8da9
push dword [ebp - 0xc]
push ebx
call fcn.100e8bbe
push esi
call fcn.100d94bb
add esp, 0xc
xor edi, edi
jmp 0x100e8e9a
cmp byte [edi + 0x24], 0
je 0x100e8e18
cmp dword [edi + 0x20], 5
jne 0x100e8e18
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100e8e23
mov edi, dword [edi + 0x18]
jmp 0x100e8e25
xor edi, edi
push esi
call fcn.100d94bb
pop ecx
jmp 0x100e8e9a
test ecx, ecx
jg 0x100e8dfa
jl 0x100e8e38
test eax, eax
jae 0x100e8dfa
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100dec83
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100e8e5b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100e8dfa
jmp 0x100e8e92
push ebx
call fcn.100e658e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100e8dfa
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 0x100e8e9a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100e8e97
mov edi, dword [edi + 0x18]
jmp 0x100e8e9a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100dec83
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100ea4a0
Capabilities:
Parse pe header

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