joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002f944
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100ac040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ebx
mov al, byte [edx + 8]
mov byte [ebp - 0x15], al
cmp al, 3
je 0x1002fade
movzx ecx, byte [edx + 9]
push esi
xor esi, esi
mov dword [ebp - 0x1c], ecx
push edi
mov edi, dword [edx]
test al, 2
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], esi
je 0x1002f9ae
movzx eax, byte [eax]
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x1c]
push 3
movzx eax, byte [eax + 1]
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [eax + 2]
sub ecx, eax
mov dword [ebp - 0xc], ecx
pop ecx
jmp 0x1002f9c0
movzx eax, byte [eax + 3]
sub ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
xor ecx, ecx
inc ecx
mov dword [ebp - 0x1c], eax
test byte [ebp - 0x15], 4
mov dword [ebp - 0x20], ecx
je 0x1002f9de
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax + 4]
sub dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp + ecx*4 - 0x14], eax
inc ecx
mov dword [ebp - 0x20], ecx
mov eax, esi
test ecx, ecx
je 0x1002fadc
mov ebx, esi
cmp dword [ebp + eax*4 - 0x14], esi
jg 0x1002f9f6
mov dword [ebp + eax*4 - 0x14], esi
jmp 0x1002f9f9
xor ebx, ebx
inc ebx
inc eax
cmp eax, ecx
jl 0x1002f9ea
test bx, bx
mov ebx, dword [ebp - 0x24]
je 0x1002fadc
movzx eax, byte [edx + 9]
dec eax
sub eax, 1
je 0x1002fac7
dec eax
sub eax, 1
je 0x1002fa99
sub eax, 4
je 0x1002fa7b
sub eax, 8
jne 0x1002fadc
imul edi, ecx
mov dword [ebp - 0x24], edi
test edi, edi
je 0x1002fadc
mov eax, esi
xor edx, edx
div ecx
movzx esi, byte [ebx]
mov eax, 0x100
imul esi, eax
movzx eax, byte [ebx + 1]
mov cx, word [ebp + edx*4 - 0x14]
add si, ax
shr si, cl
movzx ecx, si
mov esi, dword [ebp - 0x28]
mov eax, ecx
shr eax, 8
inc esi
mov byte [ebx + 1], cl
mov ecx, dword [ebp - 0x20]
mov byte [ebx], al
lea ebx, [ebx + 2]
mov dword [ebp - 0x28], esi
cmp esi, dword [ebp - 0x24]
jb 0x1002fa3a
jmp 0x1002fadc
imul edi, ecx
test edi, edi
je 0x1002fadc
xor edx, edx
mov eax, esi
div ecx
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [ebx], cl
inc ebx
mov ecx, dword [ebp - 0x20]
inc esi
cmp esi, edi
jb 0x1002fa82
jmp 0x1002fadc
mov esi, dword [edx + 4]
mov edx, 0xf0
mov ecx, dword [ebp - 0x14]
sar edx, cl
push 0xf
pop eax
and dl, 0xf0
sar eax, cl
or dl, al
test esi, esi
je 0x1002fadc
mov al, byte [ebx]
mov cl, byte [ebp - 0x14]
shr al, cl
and al, dl
mov byte [ebx], al
inc ebx
sub esi, 1
jne 0x1002fab4
jmp 0x1002fadc
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x1002fadc
mov al, byte [ebx]
shr al, 1
and al, 0x55
mov byte [ebx], al
inc ebx
sub ecx, 1
jne 0x1002face
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100581ea
leave
ret
Function at 0x10032a57
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x10032a65
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x10032b24
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1008e0e8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1008e0e8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1008e0e8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1008e0e8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1008e0e8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1008e0e8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1008e0e8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1008e0e8]
sub edi, 1
jne 0x10032a7d
pop edi
test esi, esi
je 0x10032b40
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1008e0e8]
inc edx
sub esi, 1
jne 0x10032b28
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x10040dfd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [0x100ae544]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100638af
add esp, 0x10
pop ebp
ret 8

Function at 0x10040fcb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push dword [0x100ae544]
push 1
push 8
push eax
call fcn.100638af
add esp, 0x10
cmp eax, 1
jae 0x10040ff0
xor eax, eax
leave
ret
push dword [0x100ae544]
call fcn.100658f7
add eax, dword [ebp - 8]
pop ecx
mov dword [ebp - 4], eax
mov ecx, 0x100ae52c
lea eax, [ebp - 4]
push eax
call fcn.10007626
push dword [ebp - 0xc]
call fcn.10041887
leave
ret
Function at 0x10046955
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
lea ecx, [edi + 0x90]
push ecx
lea eax, [edi + 0x9c]
lea edx, [edi + 0xc0]
push eax
push edx
lea ecx, [ebp - 0x14]
call fcn.10046718
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x14]
mov esi, eax
lea eax, [edx + 0xb4]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [edx + 0x90]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [edx + 0xc0]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10046718
mov ecx, dword [ebp - 4]
mov esi, eax
lea edi, [ecx + 0x10]
movsd dword es:[edi], dword [esi]
lea eax, [ecx + 0xa8]
push eax
lea eax, [ecx + 0xb4]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ecx + 0xc0]
push eax
lea ecx, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10046718
mov ecx, dword [ebp - 4]
mov esi, eax
lea edi, [ecx + 0x20]
movsd dword es:[edi], dword [esi]
lea eax, [ecx + 0x9c]
push eax
lea eax, [ecx + 0xa8]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ecx + 0xc0]
push eax
lea ecx, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10046718
mov ecx, dword [ebp - 4]
mov esi, eax
lea edi, [ecx + 0x30]
movsd dword es:[edi], dword [esi]
lea eax, [ecx + 0x84]
push eax
lea eax, [ecx + 0x60]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ecx + 0x6c]
push eax
lea ecx, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10046718
mov ecx, dword [ebp - 4]
mov esi, eax
lea edi, [ecx + 0x40]
movsd dword es:[edi], dword [esi]
lea eax, [ecx + 0xa8]
push eax
lea eax, [ecx + 0x9c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ecx + 0x90]
push eax
lea ecx, [ebp - 0x14]
call fcn.10046718
mov edx, dword [ebp - 4]
mov esi, eax
lea edi, [edx + 0x50]
movsd dword es:[edi], dword [esi]
lea ecx, [edx + 0xc0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movss xmm0, dword [ecx]
movss xmm1, dword [ecx + 4]
mulss xmm1, dword [edx + 0x44]
pop edi
mulss xmm0, dword [edx + 0x40]
pop esi
addss xmm1, xmm0
movss xmm0, dword [ecx + 8]
mulss xmm0, dword [edx + 0x48]
addss xmm1, xmm0
addss xmm1, dword [edx + 0x4c]
comiss xmm1, dword [0x100899a0]
jbe 0x10046aaa
movaps xmm4, xmmword [0x10089710]
lea eax, [edx + 8]
push 6
pop ecx
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x18]
xorps xmm0, xmm4
movups xmmword [eax - 0x18], xmm0
sub ecx, 1
jne 0x10046a97
leave
ret
Function at 0x1004747c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [edx - 1]
mov eax, esi
mov dword [ebp - 4], esi
sar eax, 1
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 8], edi
mov dword [ebp + 0xc], eax
cmp edi, eax
jge 0x100474d4
lea esi, [ecx + ecx]
push dword [ebx + esi*4 + 4]
lea ecx, [ebp + 0x18]
push dword [ebx + esi*4 + 8]
call fcn.10047718
movzx ecx, al
xor ecx, 1
inc ecx
add ecx, esi
mov eax, dword [ebx + ecx*4]
mov dword [ebx + edi*4], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jl 0x100474a3
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
cmp ecx, eax
jne 0x100474e6
test dl, 1
jne 0x100474e6
mov eax, dword [ebx + edx*4 - 4]
mov dword [ebx + edi*4], eax
mov edi, esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 8]
push edi
push ebx
call fcn.100475f2
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10052b37
Capabilities:
Read file on windows

Disassembly:
push 0x24
mov eax, 0x10085d5b
call fcn.1005825d
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x30], esi
mov dword [esi], ecx
and dword [esi + 4], ecx
and dword [esi + 8], ecx
and dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], ecx
movss xmm0, dword [0x100896fc]
subss xmm0, dword [ebp + 0xc]
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], ecx
mov byte [esi + 0x54], 1
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 4
movss dword [0x100b3dbc], xmm0
jbe 0x10052bb6
mov eax, dword [eax]
push 0x1008bfa4
push eax
call fcn.10064421
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10052cc4
push ebx
push 1
push 0x90
push 0x100b3f30
call fcn.100638af
add esp, 0x10
cmp dword [0x100b3f30], 0x50534249
jne 0x10052cbd
cmp dword [0x100b3f34], 0x2e
jne 0x10052cbd
push str.Header_OK
lea ecx, [ebp - 0x28]
call fcn.10002198
lea ecx, [ebp - 0x28]
call fcn.10002eed
mov edi, 0x100b3f38
cmp dword [edi], 0
je 0x10052c49
cmp dword [edi + 4], 0
je 0x10052c49
push 0
push dword [edi]
push ebx
call fcn.10063cb9
push dword [edi + 4]
call fcn.10058325
push ebx
push 1
push dword [edi + 4]
mov dword [edi], eax
push eax
call fcn.100638af
add esp, 0x20
jmp 0x10052c4c
and dword [edi], 0
add edi, 8
cmp edi, 0x100b3fc0
jl 0x10052c19
push 0
mov ecx, esi
call fcn.1005353c
mov ecx, esi
mov dword [esi], eax
call fcn.10052fd1
mov ecx, esi
call fcn.10053944
mov ecx, esi
call fcn.100533ad
mov ecx, esi
call fcn.10053686
mov ecx, esi
call fcn.10053be4
mov edi, 0x100b3f38
push dword [edi]
call fcn.10057b68
add edi, 8
pop ecx
cmp edi, 0x100b3fc0
jl 0x10052c8a
push ebx
call fcn.10062fff
pop ecx
push 1
mov ecx, esi
mov byte [esi + 0x54], 0
call fcn.100548d7
mov ecx, 0x100b3e8c
call fcn.10002ff0
jmp 0x10052cc4
push ebx
call fcn.10062fff
pop ecx
mov eax, esi
call fcn.1005820c
ret 8
Function at 0x100656ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10058e60
mov eax, dword [0x100ac040]
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.100756a2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100656fc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10065858
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10082620
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 + 0x100b4ba0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10077579
mov ecx, dword [esi*4 + 0x100b4ba0]
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 0x10065851
cmp eax, dword [edi + ecx + 0x24]
jne 0x10065851
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 0x10065851
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10077579
add esp, 0x14
test edx, edx
jl 0x10065851
jg 0x100657c7
test eax, eax
jb 0x10065851
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10065851
jl 0x100657e1
cmp dword [ebp - 0x1008], eax
ja 0x10065851
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100657ff
test ebx, ebx
je 0x10065838
cmp ecx, edi
jae 0x10065838
mov al, byte [ecx]
cmp al, 0xd
jne 0x10065819
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10065825
cmp byte [ecx + 1], 0xa
jne 0x10065825
inc ecx
jmp 0x10065825
movzx eax, al
movsx eax, byte [eax + 0x100ac4c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100657ff
cmp edx, ebx
jne 0x100657ff
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10065856
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100581ea
leave
ret

Function at 0x10074f76
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10094a78
push 0x10094a70
push str.FlsAlloc
push 0x1e
call fcn.10074de3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10074faa
push dword [ebp + 8]
mov ecx, esi
call dword [0x100873e4]
call esi
jmp 0x10074fb0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x10074ff4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10094a88
push 0x10094a80
push str.FlsGetValue
push 0x20
call fcn.10074de3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007502b
push dword [ebp + 8]
mov ecx, esi
call dword [0x100873e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100767ce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007663f

Function at 0x10076a31
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 + 0x100b4ba0]
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 0x10076a71
cmp byte [ebx], 0xa
jne 0x10076a71
or byte [eax + edi + 0x28], 4
jmp 0x10076a76
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10076b74
mov al, byte [edx]
cmp al, 0x1a
je 0x10076b56
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10076aa5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10076aca
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10076ad4
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 0x10076a87
jmp 0x10076b74
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 0x10076b51
cmp dword [ebp - 0xc], 0
je 0x10076b51
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100b4ba0]
test byte [eax + edi + 0x28], 0x48
je 0x10076b2b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10076b16
mov byte [esi], dl
jmp 0x10076b27
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100b4ba0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10076b74
cmp byte [ebp - 1], 0xa
jne 0x10076b3a
cmp esi, ebx
jne 0x10076b3a
mov byte [esi], 0xa
jmp 0x10076b73
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10077597
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10076b74
mov byte [esi], 0xd
jmp 0x10076b73
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100b4ba0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10076b70
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10076b74
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10076b7d
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 + 0x100b4ba0]
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 0x10076bc0
cmp word [esi], dx
jne 0x10076bc0
or byte [edi + eax + 0x28], 4
jmp 0x10076bc5
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 0x10076cfe
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 0x10076cde
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10076c07
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10076c3d
cmp eax, edx
jae 0x10076c49
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 0x10076bdf
jmp 0x10076cfe
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 0x10076cda
cmp dword [ebp - 0x14], 0
je 0x10076cda
mov eax, dword [ebx*4 + 0x100b4ba0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10076cb2
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x10076cf8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100b4ba0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x100b4ba0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100b4ba0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x10076cfb
pop ebx
cmp word [ebp - 4], bx
jne 0x10076cc3
cmp esi, dword [ebp + 0xc]
jne 0x10076cc3
mov word [esi], bx
jmp 0x10076cfb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10077597
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10076cfe
push 0xd
jmp 0x10076cf7
mov ecx, dword [ebx*4 + 0x100b4ba0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10076cf5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10076cfe
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 0x1007c049
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 0x1007c0e6
push ebx
push esi
call fcn.1007c012
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.10074a8b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1007c093
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007c0e5
push edi
push eax
call fcn.10070000
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1007c0b3
call fcn.1006f8bb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007c0e4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10074a8b
add esp, 0x20
test eax, eax
jne 0x1007c0d2
push edi
call fcn.1006f8bb
jmp 0x1007c0da
push ebx
call fcn.1006f8bb
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 0x1007c0e9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1007c0fa
pop esi
ret
push ebx
push edi
push esi
call fcn.1007c012
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10070000
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1007c122
push ebx
push esi
push edi
call fcn.1005a7a0
add esp, 0xc
push 0
call fcn.1006f8bb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1007c86e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007c395
Function at 0x100820ff
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.1008207b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10082277
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10082277
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10082226
jg 0x10082158
test eax, eax
je 0x1008221c
push 1
push 0x1000
call fcn.10075368
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1008217e
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10082213
push 0x8000
push ebx
call fcn.10081fac
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 0x100821aa
jg 0x100821a5
cmp ecx, 0x1000
jb 0x100821aa
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1007643f
add esp, 0x10
cmp eax, 0xffffffff
je 0x100821ef
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 0x100821a5
jl 0x100821d6
test ecx, ecx
jne 0x10082197
push dword [ebp - 0xc]
push ebx
call fcn.10081fac
push esi
call fcn.1006f8bb
add esp, 0xc
xor edi, edi
jmp 0x10082288
cmp byte [edi + 0x24], 0
je 0x10082206
cmp dword [edi + 0x20], 5
jne 0x10082206
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10082211
mov edi, dword [edi + 0x18]
jmp 0x10082213
xor edi, edi
push esi
call fcn.1006f8bb
pop ecx
jmp 0x10082288
test ecx, ecx
jg 0x100821e8
jl 0x10082226
test eax, eax
jae 0x100821e8
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10077597
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10082249
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100821e8
jmp 0x10082280
push ebx
call fcn.10080603
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100821e8
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 0x10082288
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10082285
mov edi, dword [edi + 0x18]
jmp 0x10082288
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10077597
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10082500
Capabilities:
Parse pe header

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