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

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
push ebx
push ebp
push esi
xor ebp, ebp
lea eax, [ecx + 0x10da8]
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
jmp 0x100f4400
mov edi, ebp
xor ebx, ebx
mov ebp, 4
mov eax, 1
mov edi, edi
movzx edx, word [ecx + eax*2 + 0x70f0]
mov esi, edi
and esi, 1
shr edx, 4
mov ecx, esi
shr edi, 1
neg ecx
shr ecx, 4
and ecx, 0x7f
lea eax, [esi + eax*2]
xor edx, ecx
movzx ecx, byte [edx + 0x101c1200]
add ebx, ecx
mov ecx, dword [esp + 0x1c]
dec ebp
jne 0x100f4410
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
inc ebp
mov dword [esp + 0x10], ebp
mov dword [ecx], ebx
add ecx, 4
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x1c]
cmp ebp, 0x10
jb 0x100f4400
pop edi
mov eax, ecx
pop esi
pop ebp
pop ebx
mov dword [eax + 0x10de8], 0
add esp, 8
ret
Function at 0x100f4480
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov edx, 0x3706
mov dword [esp + 0x24], edx
lea ebp, [edi + 0x101a0]
lea eax, [edi + 0x105a4]
mov dword [esp + 0x10], ebp
lea esi, [edi + 0x105ac]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
xor ebx, ebx
cmp dword [edi + 0x10da0], ebx
jbe 0x100f4512
lea esp, [esp]
mov ebp, dword [esp + 0x24]
lea eax, [ebx + 0x40]
xor esi, esi
lea esp, [esp]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
lea ecx, [eax + ebp]
and edx, 0x7f
movzx ecx, word [edi + ecx*2]
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x101c1200]
add esi, ecx
cmp eax, 1
jne 0x100f44d0
mov ebp, dword [esp + 0x10]
mov dword [ebp + ebx*4], esi
inc ebx
cmp ebx, dword [edi + 0x10da0]
jb 0x100f44c0
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov ecx, 0xe
cmp dword [edi + 0x10da0], ecx
jbe 0x100f4537
nop
mov eax, ecx
shr eax, 1
sub eax, 5
shl eax, 4
add dword [ebp + ecx*4], eax
inc ecx
cmp ecx, dword [edi + 0x10da0]
jb 0x100f4520
mov eax, dword [ebp]
add edx, 0x40
mov ecx, dword [esp + 0x14]
mov dword [esi - 0xc], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x24], edx
mov dword [ecx], eax
add ecx, 0x200
mov eax, dword [ebp + 8]
mov dword [esi - 4], eax
mov eax, dword [ebp + 0xc]
add ebp, 0x100
mov dword [esi], eax
add esi, 0x200
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
cmp edx, 0x3806
jb 0x100f44b2
mov esi, 4
lea eax, [edi + 0x105b0]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
cmp esi, 4
ja 0x100f459e
mov ebx, esi
jmp 0x100f45b4
bsr eax, esi
mov edx, eax
mov dword [esp + 0x24], eax
mov eax, esi
lea ecx, [edx - 1]
shr eax, cl
and eax, 1
lea ebx, [eax + edx*2]
mov eax, ebx
mov edx, ebx
shr eax, 1
and edx, 1
dec eax
or edx, 2
mov ecx, eax
mov dword [esp + 0x10], eax
shl edx, cl
mov eax, esi
mov esi, dword [esp + 0x10]
mov ecx, 1
sub eax, edx
mov dword [esp + 0x1c], edx
xor ebp, ebp
mov dword [esp + 0x24], ecx
mov edx, eax
sub ecx, ebx
add ecx, dword [esp + 0x1c]
and edx, 1
shr eax, 1
mov dword [esp + 0x10], eax
mov eax, edx
neg eax
movzx ecx, word [edi + ecx*2 + 0x700a]
shr eax, 4
shr ecx, 4
and eax, 0x7f
xor ecx, eax
movzx eax, byte [ecx + 0x101c1200]
mov ecx, dword [esp + 0x24]
add ebp, eax
mov eax, dword [esp + 0x10]
lea ecx, [edx + ecx*2]
mov dword [esp + 0x24], ecx
dec esi
jne 0x100f45e0
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + ebx*4 + 0x101a0]
mov esi, dword [esp + 0x18]
add eax, ebp
inc esi
mov dword [ecx], eax
mov eax, dword [edi + ebx*4 + 0x102a0]
add eax, ebp
mov dword [esp + 0x18], esi
mov dword [ecx + 0x200], eax
mov eax, dword [edi + ebx*4 + 0x103a0]
add eax, ebp
mov dword [ecx + 0x400], eax
mov eax, dword [edi + ebx*4 + 0x104a0]
add eax, ebp
mov dword [ecx + 0x600], eax
add ecx, 4
mov dword [esp + 0x14], ecx
cmp esi, 0x80
jb 0x100f4595
mov dword [edi + 0x10da4], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x100f4750
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ecx, 8
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov edx, dword [edi + 0xaa4]
lea ebp, [edi + 0xaac]
mov eax, dword [edi + 0xaa8]
sub ecx, edx
and eax, dword [esp + 0x18]
shr esi, cl
mov ecx, edx
shl eax, cl
add esi, eax
imul eax, esi, 0x600
add ebp, eax
cmp byte [esp + 0x20], bl
jne 0x100f47a5
push dword [esp + 0x28]
push 8
push ebp
call fcn.100f5d80
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esp + 0x28]
mov esi, 0x100
mov edi, dword [esp + 0x24]
add edx, esi
add edi, edi
mov ecx, esi
and ecx, edi
mov eax, edx
shr eax, 8
add ecx, esi
add eax, ecx
movzx ecx, word [ebp + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor ecx, eax
movzx eax, byte [ecx + 0x101c1200]
mov ecx, edi
xor ecx, edx
add ebx, eax
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x100f47b4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x100f5d80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0xc]
push esi
push edi
xor edi, edi
add ecx, eax
mov eax, dword [esp + 0xc]
lea esp, [esp]
mov esi, ecx
shr ecx, 1
and esi, 1
neg esi
shr esi, 4
movzx edx, word [eax + ecx*2]
and esi, 0x7f
shr edx, 4
xor edx, esi
movzx edx, byte [edx + 0x101c1200]
add edi, edx
cmp ecx, 1
jne 0x100f5da0
mov eax, edi
pop edi
pop esi
ret

Function at 0x100f8b00
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [eax + 0x38]
mov bl, byte [eax + 0x34]
test esi, esi
jle 0x100f8b3b
mov edx, dword [eax + 0x260]
push edi
movzx edi, bl
lea ebx, [ebx]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, edi
xor edx, dword [ecx*4 + 0x10209a28]
mov dword [eax + 0x260], edx
dec esi
jne 0x100f8b20
pop edi
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], 1
mov edx, dword [eax + 0x38]
mov ecx, edx
dec ecx
je 0x100f8bc2
dec ecx
je 0x100f8ba7
dec ecx
je 0x100f8b9b
mov byte [edx + eax + 0x54], 1
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov esi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
inc dword [eax + 0x44]
pop esi
pop ebx
ret
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
Function at 0x1010fbb0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x20]
push 0
push edi
push eax
push ebp
push esi
call fcn.101125a0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x1010fc0f
movzx ecx, word [ebp]
push ecx
push esi
call fcn.1010b3f0
add esp, 8
test eax, eax
je 0x1010fbf0
mov eax, dword [eax + 0x1c]
jmp 0x1010fbf5
mov eax, str.unknown_tagname
push 0
push eax
push str.TIFFFetchStripThing
push ebx
push esi
call fcn.10112c80
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp dword [ebp + 0xc], 0
ja 0x1010fd0b
jb 0x1010fc24
cmp dword [ebp + 8], edi
jae 0x1010fd0b
movzx eax, word [ebp]
push eax
push esi
call fcn.1010b3f0
push str.LIBTIFF_STRILE_ARRAY_MAX_RESIZE_COUNT
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 0xc
mov ebx, 0xf4240
test eax, eax
je 0x1010fc56
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1010fc63
mov ecx, dword [eax + 0x1c]
jmp 0x1010fc68
mov ecx, str.unknown_tagname
push ecx
cmp edi, ebx
jbe 0x1010fc84
push str.Incorrect_count_for___s_
push str.TIFFFetchStripThing
push dword [esi + 0x304]
call fcn.1010b340
jmp 0x1010fc99
push str.Incorrect_count_for___s___tag_ignored
push str.TIFFFetchStripThing
push dword [esi + 0x304]
call fcn.1010ab50
add esp, 0x10
cmp edi, ebx
jbe 0x1010fcb4
push dword [esp + 0x20]
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.for_strip_array
push 8
push edi
push esi
call fcn.1010caf0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x1010fca0
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x20]
shl eax, 3
push eax
push esi
push ebx
call fcn.10100e90
mov eax, dword [ebp + 8]
sub edi, eax
shl edi, 3
push edi
push 0
lea eax, [ebx + eax*8]
push eax
call fcn.10100ea0
push esi
call sub.MSVCRT.dll_free
mov eax, dword [esp + 0x40]
add esp, 0x1c
pop edi
pop esi
mov dword [eax], ebx
mov eax, 1
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
pop edi
pop esi
mov dword [eax], ebx
mov eax, 1
pop ebp
pop ebx
pop ecx
ret

Function at 0x10119ec0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x290]
mov dword [eax], 0x10119cd0
push str.LIBTIFF_JPEG_MAX_ALLOWED_SCAN_NUMBER
mov dword [esi + 8], eax
mov dword [esi + 0x340], 0x64
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x10119f02
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esi + 0x340], eax
lea eax, [esi + 0x250]
push 0
push eax
call sub.MSVCRT.dll__setjmp3
add esp, 8
test eax, eax
je 0x10119f1c
xor eax, eax
pop esi
pop ebp
ret
push dword [ebp + 8]
call fcn.10174990
add esp, 4
mov eax, 1
pop esi
pop ebp
ret
Function at 0x1014b710
Capabilities:
Query environment variable

Disassembly:
push edi
push str.OPJ_NUM_THREADS
call sub.MSVCRT.dll_getenv
mov edi, eax
add esp, 4
test edi, edi
je 0x1014b790
call fcn.1015b030
test eax, eax
je 0x1014b790
push esi
call fcn.1015b020
mov esi, eax
mov ecx, str.ALL_CPUS
mov edx, edi
push ebx
lea ecx, [ecx]
mov bl, byte [edx]
cmp bl, byte [ecx]
jne 0x1014b760
test bl, bl
je 0x1014b75c
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x1014b760
add edx, 2
add ecx, 2
test al, al
jne 0x1014b740
xor eax, eax
jmp 0x1014b765
sbb eax, eax
or eax, 1
pop ebx
test eax, eax
je 0x1014b78b
test esi, esi
jne 0x1014b773
mov esi, 0x20
push edi
call sub.MSVCRT.dll_atoi
add esp, 4
test eax, eax
jns 0x1014b785
xor eax, eax
pop esi
pop edi
ret
add esi, esi
cmp eax, esi
jle 0x1014b782
mov eax, esi
pop esi
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x10170c00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add ecx, 6
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov ebp, 1
shl ebp, cl
xor ecx, ecx
mov dword [eax], 0
mov dword [esp + 0x14], ebp
test dword [edi + 0x80], 0xfffffffc
mov dword [esp + 0x10], ecx
jbe 0x10170d78
lea ecx, [ecx]
mov eax, dword [edi + 0x7c]
xor ebx, ebx
test eax, eax
je 0x10170d60
shr ecx, 2
mov dword [esp + 0x1c], ecx
lea edx, [ecx + 1]
mov dword [esp + 0x20], edx
jmp 0x10170c60
lea ecx, [eax + 2]
mov eax, dword [edi + 0x78]
imul ecx, edx
xor edx, edx
add ecx, ebx
cmp dword [eax + ecx*4 + 4], edx
sete dl
xor esi, esi
mov dword [esp + 0x18], edx
test edx, edx
je 0x10170cfc
mov eax, dword [edi + 0x8c]
mov ecx, dword [edi + 0x74]
mov edi, dword [esp + 0x14]
lea ebp, [eax*4]
imul eax, dword [esp + 0x10]
add eax, ebx
lea ecx, [ecx + eax*4]
lea esp, [esp]
mov eax, dword [ecx]
cdq
xor eax, edx
sub eax, edx
test edi, eax
jne 0x10170cb3
inc esi
add ecx, ebp
cmp esi, 4
jb 0x10170ca0
mov edi, dword [esp + 0x28]
lea eax, [edi + 0x60]
mov dword [edi + 0x68], eax
xor eax, eax
cmp esi, 4
setne al
push eax
push edi
call fcn.101739b0
add esp, 8
cmp esi, 4
je 0x10170d48
lea eax, [edi + 0x64]
mov dword [edi + 0x68], eax
mov eax, esi
shr eax, 1
push eax
push edi
call fcn.101739b0
mov eax, esi
and eax, 1
push eax
push edi
call fcn.101739b0
mov edx, dword [esp + 0x28]
add esp, 0x10
mov ebp, dword [esp + 0x14]
push dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x74]
add ecx, esi
imul ecx, dword [edi + 0x8c]
push 4
push esi
push edx
push dword [esp + 0x40]
add ecx, ebx
push ebp
push dword [esp + 0x44]
lea eax, [eax + ecx*4]
mov ecx, dword [edi + 0x7c]
push eax
mov eax, dword [esp + 0x3c]
add ecx, 2
inc eax
imul ecx, eax
mov eax, dword [edi + 0x78]
add ecx, ebx
lea eax, [eax + ecx*4]
add eax, 4
push eax
push edi
call fcn.10170e00
add esp, 0x28
jmp 0x10170d4c
mov ebp, dword [esp + 0x14]
mov eax, dword [edi + 0x7c]
inc ebx
mov edx, dword [esp + 0x20]
cmp ebx, eax
jb 0x10170c60
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x80]
add ecx, 4
and eax, 0xfffffffc
mov dword [esp + 0x10], ecx
cmp ecx, eax
jb 0x10170c40
cmp ecx, dword [edi + 0x80]
jae 0x10170df3
mov edx, dword [edi + 0x7c]
xor esi, esi
test edx, edx
je 0x10170df3
mov eax, ecx
shr eax, 2
lea ebx, [eax*4 + 4]
jmp 0x10170da0
push dword [esp + 0x34]
mov eax, dword [edi + 0x80]
sub eax, ecx
mov ecx, dword [edi + 0x8c]
imul ecx, dword [esp + 0x14]
push eax
mov eax, dword [edi + 0x74]
push 0
push 0
push dword [esp + 0x40]
add ecx, esi
push ebp
push dword [esp + 0x44]
lea eax, [eax + ecx*4]
push eax
lea eax, [edx + 2]
imul eax, ebx
lea eax, [eax + esi*4]
add eax, 4
add eax, dword [edi + 0x78]
push eax
push edi
call fcn.10170e00
mov edx, dword [edi + 0x7c]
inc esi
mov ecx, dword [esp + 0x38]
add esp, 0x28
cmp esi, edx
jb 0x10170da0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10174990
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x101749bf
push esi
call fcn.10174b70
add esp, 4
cmp byte [esi + 0x40], 0
je 0x101749b8
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x10174a42
mov eax, dword [esi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x10174a2d
mov eax, dword [esi + 8]
test eax, eax
je 0x101749e5
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a8]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x10174a28
cmp eax, 2
je 0x10174a2d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x101749d6
cmp eax, 3
je 0x10174a0d
cmp eax, 1
jne 0x101749d6
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x101749d6
mov eax, dword [esi + 0x128]
add eax, edi
mov dword [edx + 8], eax
jmp 0x101749d6
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.10174a70
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x10174a64
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.10174a70
add esp, 4
pop edi
pop esi
ret

Function at 0x10174a70
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x10174a9c
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
je 0x10174b22
lea ebx, [esi + 0x78]
jmp 0x10174ab0
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x10174af6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10174ad5
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x19c]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x10174b38
cmp eax, dword [esi + 0x60]
jb 0x10174ab7
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
jne 0x10174ab0
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x101792f0
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.10184cc0
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.10184c90
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10179337
push edi
call fcn.10184cd0
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.10178f80
mov dword [esi + 4], fcn.10178e10
mov dword [esi + 8], fcn.10178ee0
mov dword [esi + 0xc], fcn.10178d60
mov dword [esi + 0x10], 0x10179650
mov dword [esi + 0x14], 0x101795e0
mov dword [esi + 0x18], 0x10179440
mov dword [esi + 0x1c], 0x10178c10
mov dword [esi + 0x20], 0x10178ac0
mov dword [esi + 0x24], 0x101791f0
mov dword [esi + 0x28], 0x101796c0
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x1017941a
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x1017941a
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x10179409
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x10179411
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x1017a850
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
cmp dword [ebp + 0x4c], 1
mov ebx, dword [ebp + 0x1c0]
mov dword [esp + 0x1c], ebx
jne 0x1017a875
mov esi, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x1017a87b
xor esi, esi
mov byte [ebx + 0x1c], 0
push dword [ebp + 0x64]
mov ecx, dword [ebp + 4]
lea eax, [esi + 0x100]
push eax
push 1
push ebp
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], esi
call eax
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x64], ecx
jle 0x1017a990
push edi
lea ecx, [ecx]
mov edi, dword [ebx + ecx*4 + 0x20]
cdq
idiv edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
test esi, esi
je 0x1017a8cd
mov eax, dword [ebx + 0x18]
add dword [eax + ecx*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov ebp, dword [eax + ecx*4]
lea eax, [edi + 0xfe]
lea ecx, [edi*2 - 2]
cdq
idiv ecx
xor esi, esi
mov edx, eax
lea esp, [esp]
cmp esi, edx
jle 0x1017a926
mov ecx, dword [esp + 0x10]
lea edi, [edi*2 - 2]
imul eax, ebx, 0x1fe
add ecx, 0xfe
add ecx, eax
lea ecx, [ecx]
add ecx, 0x1fe
inc ebx
mov eax, ecx
cdq
idiv edi
mov edx, eax
cmp esi, edx
jg 0x1017a910
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x1017a8f0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1017a971
mov ecx, 1
lea edx, [ebp - 1]
jmp 0x1017a950
movzx eax, byte [ebp]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebp + 0xff]
mov byte [ecx + ebp + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x1017a950
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x64]
mov eax, dword [esp + 0x1c]
jl 0x1017a8b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x101ab10b
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x101ab1c1
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x101ab1a1
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x101ab17c
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x101ab1b6
add edi, dword [esp + 0x14]
jmp 0x101ab1ba
add edi, dword [esp + 0x24]
test edx, edx
jne 0x101ab15a
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x101ab4cc
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x101ab5a6
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x101ab57c
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x101ab544
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x101ab593
add edi, ecx
jmp 0x101ab597
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x101ab51a
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x101abbc6
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x101abc7b
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x101abc5c
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x101abc37
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x101abc71
add edx, dword [esp + 0x14]
jmp 0x101abc75
add edx, dword [esp + 0x24]
test esi, esi
jne 0x101abc15
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24